/* cw4.css - shared components for the 2026 revamp pages (the next ChildWatch).
   Builds on childwatch.css variables (--cw-navy, --cw-blue, --cw-green ...). Blue Light look:
   blue leads (trust), green accents (warmth), navy/gray support. */

.x-hero { background: linear-gradient(135deg, #17324D 0%, #1E4A72 50%, #2563EB 100%); padding: 4.5rem 0 4rem; color: #fff; overflow: hidden; }
.x-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.x-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #BFDBFE; margin-bottom: .9rem; }
.x-pill { display: inline-flex; align-items: center; gap: .45rem; background: rgba(132,204,22,.18); color: #ECFCCB; border: 1px solid rgba(132,204,22,.4); border-radius: 999px; font-size: .85rem; font-weight: 600; padding: .32rem .95rem; margin-bottom: 1.2rem; }
.x-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.12; color: #fff; margin: 0 0 1rem; }
.x-hero h1, .x-head h2, .x-split h2, .x-band h2, .x-card h3, .x-step h3 { text-transform: none; letter-spacing: -.01em; }
.x-hero h1 em { font-style: normal; color: #A3E635; }
.x-hero .x-lead { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.85); margin-bottom: 1.6rem; max-width: 36rem; }
.x-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.x-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; font-weight: 700; font-size: 1rem; padding: .78rem 1.7rem; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.x-btn-go { background: #84CC16; color: #14290A !important; }
.x-btn-go:hover { background: #A3E635; }
.x-btn-blue { background: #2563EB; color: #fff !important; }
.x-btn-blue:hover { background: #1D4ED8; }
.x-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); font-weight: 600; }
.x-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.x-btn-line { background: #fff; color: #1D4ED8 !important; border-color: #BFDBFE; }
.x-btn-line:hover { border-color: #2563EB; }

/* Browser frame around a screenshot */
.x-shot { background: #fff; border-radius: 12px; box-shadow: 0 18px 48px rgba(8,20,40,.35); overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.x-shot-bar { height: 28px; background: #EEF2F7; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #E5E7EB; }
.x-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; display: inline-block; }
.x-shot img, .x-shot video { display: block; width: 100%; height: auto; }
.x-section .x-shot { box-shadow: 0 12px 34px rgba(15,23,42,.14); border-color: #E5E7EB; }
.x-shot { max-width: 100%; }
.x-hero-grid > *, .x-split > * { min-width: 0; }

/* Device frames for app screenshots (2026-10-11 scaling rule):
   .x-phone  - phone screenshots (app-family, family-pay, app-staff-meals): a phone-sized frame, never wider than 300 px.
   .x-tablet - tablet screenshots (app-kiosk): fits its column, never wider than 600 px.
   In a hero, wrap the phone in .x-hero-media - it then takes the height of the text beside it (never taller). */
.x-phone, .x-tablet { background: #0F172A; box-shadow: 0 18px 44px rgba(8,20,40,.35); margin: 0 auto; box-sizing: border-box; }
.x-phone { width: 280px; max-width: 100%; padding: 8px; border-radius: 34px; }
.x-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.x-tablet { width: 100%; max-width: 600px; padding: 12px; border-radius: 22px; }
.x-tablet img { display: block; width: 100%; height: auto; border-radius: 10px; }
.x-section .x-phone, .x-section .x-tablet { box-shadow: 0 12px 34px rgba(15,23,42,.18); }
.x-split .x-phone { width: 240px; }
.x-hero-media { position: relative; align-self: stretch; min-height: 360px; }
.x-hero-media .x-phone { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: auto; height: 100%; max-height: 620px; }
.x-hero-media .x-phone img { width: auto; height: 100%; max-width: none; }

/* Screenshot lightbox (2026-10-11b). The script in Masters/Site1.Master marks every framed screenshot
   (.x-shot / .x-phone / .x-tablet img, not inside a link) with .x-zoom-img and its frame with .x-zoom,
   and opens the full-size image in .x-lb on click, tap, Enter or Space. */
.x-zoom { position: relative; }
.x-zoom-img { cursor: zoom-in; }
.x-zoom-img:focus-visible { outline: 3px solid #84CC16; outline-offset: 2px; }
.x-zoom:after { content: "Click to enlarge"; position: absolute; right: 12px; bottom: 12px; pointer-events: none; background: rgba(15,23,42,.78); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1; padding: .42rem .7rem; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.x-phone.x-zoom:after, .x-tablet.x-zoom:after { right: 50%; transform: translateX(50%); bottom: 20px; white-space: nowrap; }
.x-zoom:hover:after, .x-zoom:focus-within:after { opacity: 1; }
@media (hover: none) {
  .x-zoom:after { content: "Tap to enlarge"; opacity: .85; font-size: .72rem; padding: .35rem .6rem; }
}
.x-lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 2vh 2.5vw; background: rgba(8,15,30,.9); overscroll-behavior: contain; }
.x-lb[hidden] { display: none; }
.x-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 95vw; max-height: 92vh; }
.x-lb-img { display: block; width: auto; height: auto; max-width: 95vw; max-height: calc(92vh - 2.75rem); object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.x-lb-cap { margin-top: .7rem; max-width: 95vw; color: #E2E8F0; font-size: .95rem; line-height: 1.35; text-align: center; }
.x-lb-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(15,23,42,.85); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.x-lb-close:hover, .x-lb-close:focus-visible { background: #2563EB; border-color: #fff; outline: none; }
html.x-lb-open, html.x-lb-open body { overflow: hidden; }
@media (max-width: 767.98px) {
  /* keep the close button clear of the picture on phones */
  .x-lb { padding: 66px 2.5vw 2vh; }
  .x-lb-fig { max-height: calc(100vh - 74px); }
  .x-lb-img { max-height: calc(100vh - 74px - 4.5rem); }
  .x-lb-cap { font-size: .85rem; }
}

/* Three pillars on the home page */
.x-pillar { border-top: 4px solid #2563EB; }
.x-pillar.x-pg { border-top-color: #84CC16; }
.x-pillar.x-po { border-top-color: #F97316; }
.x-pillar ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.x-pillar li { position: relative; padding: .22rem 0 .22rem 1.2rem; color: #334155; font-size: .95rem; line-height: 1.45; }
.x-pillar li:before { content: ""; position: absolute; left: 0; top: .72rem; width: 6px; height: 6px; border-radius: 50%; background: #93C5FD; }
.x-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9A3412; background: #FFF1E6; border-radius: 999px; padding: .15rem .6rem; margin-left: .35rem; vertical-align: middle; }

/* Sections */
.x-section { padding: 4.5rem 0; background: #fff; }
.x-section.x-tint { background: #F5F9FF; }
.x-section.x-warm { background: #FFFBF5; }
.x-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.x-head .x-eyebrow { color: #2563EB; }
.x-head h2, .x-split h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; color: #17324D; line-height: 1.2; margin: 0 0 .75rem; }
.x-head p { font-size: 1.05rem; color: #64748B; margin: 0; }

/* Trust strip */
.x-trust { background: #fff; border-bottom: 1px solid #E5E7EB; padding: 1rem 0; }
.x-trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.x-trust-item { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: #475569; }
.x-trust-item i { color: #2563EB; }

/* Audience cards */
.x-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.x-cards.x-four { grid-template-columns: repeat(4, 1fr); }
.x-cards.x-two { grid-template-columns: repeat(2, 1fr); }
.x-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 1.75rem 1.6rem; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; color: inherit; text-decoration: none !important; }
a.x-card:hover { box-shadow: 0 12px 30px rgba(37,99,235,.13); transform: translateY(-2px); border-color: #BFDBFE; }
.x-card h3 { font-size: 1.2rem; font-weight: 700; color: #17324D; margin: 0 0 .5rem; }
.x-card p { color: #64748B; font-size: .97rem; line-height: 1.55; margin: 0 0 1rem; }
.x-card .x-more { margin-top: auto; font-weight: 700; color: #2563EB; font-size: .95rem; }
.x-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; background: #EAF2FF; color: #2563EB; }
.x-icon.x-g { background: #EEF9DD; color: #4D7C0F; }
.x-icon.x-o { background: #FFF1E6; color: #C2410C; }
.x-icon.x-n { background: #E8EEF5; color: #17324D; }

/* Split feature rows */
.x-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.x-split + .x-split { margin-top: 4.5rem; }
.x-split.x-flip > :first-child { order: 2; }
.x-split p { color: #475569; font-size: 1.03rem; line-height: 1.65; margin: 0 0 1rem; }
.x-checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.x-checks li { position: relative; padding: .32rem 0 .32rem 1.9rem; color: #1F2937; font-size: .98rem; line-height: 1.5; }
.x-checks li:before { content: "\f00c"; font-family: "Font Awesome 7 Free", "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: .38rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #EEF9DD; color: #4D7C0F; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.x-hero .x-checks li { color: rgba(255,255,255,.9); }
.x-hero .x-checks li:before { background: rgba(132,204,22,.25); color: #D9F99D; }
.x-link { font-weight: 700; color: #2563EB; text-decoration: none; }
.x-link:hover { text-decoration: underline; }

/* Band */
.x-band { background: linear-gradient(135deg, #17324D 0%, #1E4A72 60%, #2563EB 100%); color: #fff; padding: 4rem 0; text-align: center; }
.x-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 0 0 .75rem; }
.x-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 42rem; margin: 0 auto 1.75rem; }
.x-band .x-actions { justify-content: center; }
.x-note { font-size: .85rem; color: #64748B; }
.x-band .x-note { color: rgba(255,255,255,.65); margin-top: 1.1rem; }

/* Steps */
.x-steps { counter-reset: xs; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.x-step { counter-increment: xs; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 1.6rem; }
.x-step:before { content: counter(xs); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #2563EB; color: #fff; font-weight: 800; margin-bottom: .9rem; }
.x-step h3 { font-size: 1.1rem; font-weight: 700; color: #17324D; margin: 0 0 .4rem; }
.x-step p { color: #64748B; margin: 0; font-size: .96rem; line-height: 1.55; }

@media (max-width: 991.98px) {
  .x-cards.x-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .x-hero { padding: 3rem 0 2.75rem; }
  .x-hero-grid, .x-split, .x-cards, .x-cards.x-two, .x-cards.x-four, .x-steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .x-split.x-flip > :first-child { order: 0; }
  .x-section { padding: 3rem 0; }
  .x-split + .x-split { margin-top: 3rem; }
  .x-phone { width: 230px; }
  .x-hero-media { min-height: 0; }
  .x-hero-media .x-phone { position: static; transform: none; width: 230px; height: auto; max-height: none; }
  .x-hero-media .x-phone img { width: 100%; height: auto; }
}
