/* Care Ease case study page only. The top bar, side menu and base colours come from style.css. */

:root {
  --indigo: #3f51b5;
  --indigo-deep: #2b3a91;
  --lav: #e8eaf6;
  --orange: #ff9800;
  --green-deep: #2b3a91;
  --gold-deep: #8a6a22;
  --stone-brown: #7a5c3e;
  --muted: #5c6360;
  --frame: 1px solid rgba(138, 106, 34, 0.35);
}

html { scroll-behavior: smooth; }
body.cs-page { background: var(--cream); color: var(--ink); font-family: "Inter", system-ui, sans-serif; line-height: 1.65; }
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: "Fraunces", serif; font-weight: 600; }

/* ---------- Scroll progress bar at the very top ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 11; height: 3px; background: linear-gradient(90deg, var(--orange), var(--gold)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Top bar: clear over the hero, cream fade over light sections (careease.js sets .on-light) ---------- */
.cs-page .topbar a, .cs-page .menu-btn span { transition: color 0.5s var(--ease), background 0.5s var(--ease); }
.cs-page.on-light:not(.menu-open) .topbar { background: linear-gradient(var(--cream) 55%, rgba(246, 239, 224, 0)); padding-bottom: 22px; }
.cs-page.on-light:not(.menu-open) .topbar a { color: var(--green-deep); }
.cs-page.on-light:not(.menu-open) .menu-btn span { background: var(--green-deep); }

/* ---------- Image placeholders (shown until your real image loads) ---------- */
.pic { position: relative; overflow: hidden; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(138, 106, 34, 0.09) 0 10px, transparent 10px 20px), #f3ecdf; }
.pic::before {
  content: "Add your image\A" attr(data-ph); white-space: pre;
  position: absolute; inset: 8px; display: grid; place-content: center; text-align: center;
  padding: 10px; border: 1.5px dashed rgba(138, 106, 34, 0.55); border-radius: 12px;
  font-size: 0.78rem; line-height: 1.7; color: var(--gold-deep);
}
.pic img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.pic.loaded { background: none; }
.pic.loaded::before { display: none; }
.phone { margin: 0; }
.phone .pic { aspect-ratio: 1243 / 2291; }

/* ---------- Hero (indigo band, with your gold details) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 128px 0 180px;
  background: radial-gradient(circle at 72% 45%, #5a6bd0, var(--indigo) 46%, var(--indigo-deep) 100%);
}
.hero::before { content: ""; position: absolute; inset: 88px 28px 110px; z-index: 0; border: 1px solid rgba(201, 162, 75, 0.28); border-radius: 18px; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; z-index: 1; height: 90px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.motes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.motes span { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0; left: var(--x); animation: mote var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 0.8; } 100% { opacity: 0; transform: translate(var(--dx), -105vh); } }
.sun { position: absolute; top: 130px; right: 12%; z-index: 0; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #ffb43a, var(--orange) 62%); box-shadow: 0 0 90px rgba(255, 152, 0, 0.5); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(18px) scale(1.04); } }
.hero-lotus { position: absolute; right: -4%; bottom: 40px; z-index: 0; width: min(700px, 62vw); height: auto; aspect-ratio: 80 / 50; color: var(--gold); opacity: 0.3; pointer-events: none; }
.ecg { position: absolute; left: 0; bottom: 95px; z-index: 0; width: 100%; height: 90px; opacity: 0.3; pointer-events: none; }
.ecg path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.22 0.78; animation: pulse 5s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* floating healthcare icons in the hero */
.fl { position: absolute; z-index: 0; width: 28px; height: 28px; color: var(--gold); opacity: 0.55; animation: drift 6s ease-in-out infinite alternate; pointer-events: none; }
.fl.f1 { top: 150px; left: 7%; }
.fl.f2 { top: 270px; left: 46%; width: 22px; height: 22px; color: var(--orange); animation-delay: -2s; }
.fl.f3 { bottom: 220px; left: 12%; width: 34px; height: 34px; animation-delay: -3s; }
.fl.f4 { top: 120px; right: 32%; width: 20px; height: 20px; color: #fff; opacity: 0.4; animation-delay: -1s; }
.fl.f5 { bottom: 270px; right: 5%; width: 30px; height: 30px; color: var(--orange); animation-delay: -4s; }
.fl.f6 { top: 360px; left: 3%; width: 24px; height: 24px; color: #fff; opacity: 0.35; animation-delay: -5s; }
@keyframes drift { to { transform: translateY(-16px) rotate(10deg); } }

.hero-grid { z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.mark { display: block; width: 104px; height: 104px; margin: 0 0 20px; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28)); }
.kicker { margin: 0 0 0.7rem; color: var(--gold-deep); font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.kicker.light { color: var(--gold); }
.hero h1 { margin: 0; font-size: clamp(3rem, 7.4vw, 5rem); line-height: 1.05; color: var(--cream); }
.tagline { margin: 0.7rem 0 0; font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; color: var(--gold); }
.hero-sub { margin: 1.2rem 0 0; max-width: 40ch; color: rgba(246, 239, 224, 0.88); }
.hero-shot { position: relative; min-height: 520px; }
.hero-shot .front { position: relative; z-index: 2; width: min(300px, 62%); margin-left: 8%; }
.hero-shot .back { position: absolute; z-index: 1; width: min(250px, 52%); right: 0; top: 70px; }

/* ---------- Hero entrance: the indigo band unveils from the top, then the text and the screens rise into place ---------- */
@keyframes heroUnveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoneFront { from { opacity: 0; transform: translateY(110px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes heroPhoneBack { from { opacity: 0; transform: translate(60px, 90px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes sunrise { from { opacity: 0; scale: 0.45; } to { opacity: 1; scale: 1; } }
@keyframes lotusIn { from { opacity: 0; scale: 0.85; } to { opacity: 0.3; scale: 1; } }
.hero { animation: heroUnveil 1.3s var(--ease) both; }
.hero-copy > * { animation: heroRise 1s var(--ease) both; animation-delay: calc(0.55s + var(--k, 0) * 0.14s); }
.hero-copy > :nth-child(2) { --k: 1; } .hero-copy > :nth-child(3) { --k: 2; } .hero-copy > :nth-child(4) { --k: 3; } .hero-copy > :nth-child(5) { --k: 4; }
.hero-shot .front { animation: heroPhoneFront 1.4s var(--ease) 0.9s both; }
.hero-shot .back { animation: heroPhoneBack 1.4s var(--ease) 1.2s both; }
.sun { animation: float 7s ease-in-out infinite alternate, sunrise 1.8s var(--ease) 0.5s both; }
.hero-lotus { animation: lotusIn 2s ease 0.8s both; }

/* ---------- Framed cards (your gold hairline frame) ---------- */
.facts ul, .pcard, .insights, .gap-wrap, .persona, .stage, .dcard {
  background: #fff; border: var(--frame); border-radius: 14px;
  box-shadow: 0 0 0 5px rgba(246, 239, 224, 0.9), 0 0 0 6px rgba(138, 106, 34, 0.25);
}

/* ---------- Facts strip ---------- */
.facts { z-index: 3; margin-top: -76px; text-align: center; }
.facts ul { list-style: none; margin: 0; padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts b { display: block; font-family: "Fraunces", serif; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--indigo); }
.facts span { font-size: 0.85rem; color: var(--muted); }
.facts p { margin: 22px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections (cream drawing paper) ---------- */
.sec { position: relative; overflow: hidden; padding: 96px 0; background: radial-gradient(rgba(138, 106, 34, 0.16) 1.1px, transparent 1.5px) 0 0 / 24px 24px, var(--cream); }
.sec.has-orn { padding-bottom: 40px; }
.sec.after-orn { padding-top: 48px; }
.sec-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--green-deep); }
.lead { margin: 0.9rem 0 0; color: #3a463e; }
.muted { color: var(--muted); font-size: 0.92rem; }
.wave-top { position: absolute; z-index: 2; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* ---------- Reveal on scroll: fade up, slide in from the sides, or pop (careease.js adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: none; transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
/* style.css has its own .reveal that plays on load. animation: none above turns it off here, so only the scroll version runs. */
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.pop { transform: translateY(14px) scale(0.9); }
.reveal.in { opacity: 1; transform: none; }

/* gold ornament divider: heartbeat, lotus, heartbeat */
.orn-row { margin-top: 64px; text-align: center; line-height: 0; }
.orn { display: inline-block; width: min(360px, 80%); height: 40px; }

/* ---------- Illustrated scenes ---------- */
.scene { margin: 0 0 56px; }
.scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.scene .cap { font-family: "Caveat", cursive; font-weight: 600; font-size: 30px; fill: var(--stone-brown); }
.bubble { transform-box: fill-box; transform-origin: center; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.scene.team { max-width: 760px; margin: 56px auto 0; }
.heart-float { transform-box: fill-box; transform-origin: center; animation: beat 1.5s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
.twinkle { animation: twinkle 2.8s ease-in-out infinite; }
.twinkle.t2 { animation-delay: -1.4s; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* the ambulance drives across as you scroll (careease.js moves it) */
.road { position: relative; height: 110px; margin: 64px 6px 0; border-bottom: 3px dashed rgba(138, 106, 34, 0.55); overflow: hidden; }
.road-note { position: absolute; left: 50%; top: 8px; margin: 0; transform: translateX(-50%); font-family: "Caveat", cursive; font-weight: 600; font-size: 1.8rem; color: var(--stone-brown); }
.amb { position: absolute; left: 0; bottom: -5px; width: 200px; height: 92px; translate: var(--x, -240px) 0; will-change: translate; }
.siren { animation: siren 0.7s steps(1) infinite; }
@keyframes siren { 50% { fill: #e53935; } }

/* ---------- Problem ---------- */
.cards3 { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { padding: 28px; }
.pcard h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--green-deep); }
.pcard p { margin: 0; font-size: 0.93rem; color: #3a463e; }
.ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold-deep); color: var(--indigo); }
.ico svg { width: 34px; height: 34px; }
.idea { margin: 40px 6px 0; padding: 24px 28px; text-align: center; background: var(--green-deep); color: var(--cream); border: 1px solid var(--gold); border-radius: 14px; }
.idea strong { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.idea p { margin: 0; font-family: "Fraunces", serif; font-size: 1.2rem; }

/* ---------- Research ---------- */
.research { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 0 6px; }
.bignum { display: grid; place-content: center; text-align: center; padding: 32px; background: var(--indigo); color: #fff; border: 1px solid var(--gold); border-radius: 14px; }
.bignum b { font-family: "Fraunces", serif; font-size: 6rem; font-weight: 600; line-height: 1; color: var(--gold); }
.bignum p { margin: 8px 0 0; }
.insights { padding: 28px; }
.insights h3 { margin: 0 0 14px; font-size: 1.2rem; color: var(--green-deep); }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insights li { position: relative; padding-left: 26px; }
.insights li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--orange); transform: rotate(45deg); }
.so-what { margin: 18px 0 0; padding: 14px 16px; background: var(--cream); border-radius: 10px; font-size: 0.92rem; }

.gap-wrap { margin: 32px 6px 0; padding: 28px; }
.gap-wrap h3 { margin: 0 0 4px; font-size: 1.2rem; color: var(--green-deep); }
.table-scroll { margin-top: 18px; overflow-x: auto; }
.gap { width: 100%; border-collapse: collapse; min-width: 520px; }
.gap th, .gap td { padding: 12px 10px; text-align: center; border-bottom: 1px solid rgba(138, 106, 34, 0.22); font-size: 0.9rem; }
.gap thead th { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.gap tbody th { text-align: left; font-weight: 500; }
.gap tr.hl { background: rgba(255, 152, 0, 0.12); }
.gap tr.hl th { color: #a85a00; font-weight: 600; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot.yes { background: var(--indigo); }
.dot.no { border: 2px solid var(--orange); }
.legend { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Persona ---------- */
.persona { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin: 0 6px; padding: 32px; }
.persona .pic { aspect-ratio: 4 / 5; border-radius: 6px; border: 8px solid #fff; outline: 1px solid rgba(138, 106, 34, 0.35); transform: rotate(-2deg); box-shadow: 0 10px 24px rgba(60, 44, 20, 0.22); }
.persona .pic img { object-fit: cover; }
.pq { margin: 0 0 14px; font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 1.6rem; line-height: 1.3; color: var(--green-deep); }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 14px; background: var(--cream); border: 1px solid var(--gold-deep); border-radius: 999px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--gold-deep); }
.chips.center { justify-content: center; margin-bottom: 36px; }
.about-her { margin: 0 0 18px; color: #3a463e; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two h4 { margin: 0 0 8px; color: var(--green-deep); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.mini li { position: relative; padding-left: 20px; }
.mini li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }

/* ---------- Journey ---------- */
.journey { max-width: 1000px; margin: 0 auto; }
.curve { position: relative; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve path { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease; }
.journey.in .curve path { stroke-dashoffset: 0; }
.curve i { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--k, 0) * 0.45s + 0.5s); }
.journey.in .curve i { transform: scale(1); }
.axis { margin: 6px 0 22px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.stages { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: start; }
.stage { height: auto; min-height: 0; padding: 18px 18px 14px; font-size: 0.85rem; }
.stage .n { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 0.8rem; font-weight: 600; }
.stage h4 { margin: 0 0 2px; font-size: 1rem; color: var(--green-deep); }
.stage .feel { margin: 0 0 10px; font-family: "Caveat", cursive; font-weight: 600; font-size: 1.25rem; line-height: 1.1; color: var(--stone-brown); }
.stage p { margin: 0 0 8px; }
.stage p:last-child { margin-bottom: 0; }
.stage b { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.stage .idea-line { padding-top: 8px; border-top: 1px dashed rgba(138, 106, 34, 0.4); }

/* ---------- Main screens (lavender, the app's world) ---------- */
.sec.screens { padding-top: 150px; background: radial-gradient(circle at 50% 0%, #f3f4fc, transparent 60%), var(--lav); }
.block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px dashed rgba(63, 81, 181, 0.3); }
.block:first-of-type { border-top: 0; padding-top: 0; }
.block.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } /* phones sit in the first column here, so it gets the wider share and the screens stay the same size */
.block.rev .block-text { order: 2; }
.say { margin: 0 0 4px; font-family: "Caveat", cursive; font-weight: 600; font-size: 2rem; line-height: 1.15; color: var(--stone-brown); }
.block h3 { margin: 0 0 18px; font-family: "Inter", sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo); }
.callouts { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 16px; }
.callouts li { position: relative; padding-left: 44px; counter-increment: c; font-size: 0.95rem; color: #2f3a34; }
.callouts li::before { content: counter(c); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 0.8rem; font-weight: 600; }
.law { display: inline-block; margin-top: 6px; padding: 2px 10px; border: 1px solid var(--indigo); border-radius: 999px; font-size: 0.72rem; font-weight: 500; color: var(--indigo); }
.phones { position: relative; display: flex; gap: 20px; justify-content: center; align-items: center; }
.phones::before { content: ""; position: absolute; inset: 6% 4%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%); }
/* Every screen in every block gets the exact same width (and so the same height, because .phone .pic has one fixed ratio).
   Two screens fit side by side, and a single screen is the same size as each of them. */
.phones .phone { position: relative; z-index: 1; flex: 0 0 auto; width: min(250px, calc((100% - 20px) / 2)); }
.phones .phone .pic img { object-fit: cover; object-position: top center; }

/* a character stands above each group of screens */
.char { display: block; width: 84px; height: 154px; margin: 0 0 8px; overflow: visible; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate; }
.char.wide { width: 122px; height: 114px; }
@keyframes sway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }

/* ---------- More illustrations ---------- */
.scene.research, .scene.test { max-width: 780px; margin: 44px auto 0; }
.scene.test { margin: 0 auto 40px; }
.scene .bt { font-family: "Caveat", cursive; font-weight: 600; font-size: 24px; fill: var(--indigo-deep); }
.bubble.b2 { animation-delay: -1.5s; }
.nomi-ring { transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.3); opacity: 0; } }
.lens { transform-box: fill-box; transform-origin: 30% 30%; animation: scan 4s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translate(14px, 26px); } }

/* a small icon on every journey stage */
.stage { position: relative; }
.stage .st-ico { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; color: var(--indigo); }
.stage:nth-child(3) .st-ico { color: var(--orange); }

/* soft floating icons behind the screens and the design band */
.sec > .fl.s1 { top: 9%; left: 3%; } .sec > .fl.s2 { top: 31%; right: 3%; width: 36px; height: 36px; animation-delay: -2s; }
.sec > .fl.s3 { top: 55%; left: 2%; width: 34px; height: 34px; animation-delay: -3s; } .sec > .fl.s4 { top: 78%; right: 3%; animation-delay: -4s; }
.screens > .fl { color: var(--indigo); opacity: 0.2; }
.screens > .fl.s2, .screens > .fl.s4 { color: var(--orange); opacity: 0.3; }
.band > .fl.s1 { top: 22%; } .band > .fl.s2 { top: 36%; } .band > .fl.s3 { top: auto; bottom: 16%; } .band > .fl.s4 { top: auto; bottom: 26%; }
.band > .fl { color: var(--gold); opacity: 0.45; }

/* ---------- Added feature: AI Voice Health Monitoring ---------- */
.scene.voice-call { max-width: 780px; margin: 0 auto 24px; }
.wavebar { transform-box: fill-box; transform-origin: center; animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -0.13s); }
@keyframes wave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
.voice .cards3 { margin-top: 24px; }
/* The two voice screens sit in the same box as every other screen (same width, same height).
   contain = the whole picture is always shown, so a soft shadow baked into the image is never cropped. */
.phones .phone.tall .pic img { object-fit: contain; }

/* ---------- Testing ---------- */
.sec.testing { padding-top: 150px; }
.ba { max-width: 620px; margin: 0 auto 36px; }
.ba .pic { aspect-ratio: 5372 / 4624; background-color: transparent; }
.two-text { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-text h4 { margin: 0 0 4px; font-family: "Inter", sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.two-text p { margin: 0; }

/* ---------- Design choices (indigo band) ---------- */
.sec.band { padding-top: 150px; color: var(--cream); background: radial-gradient(circle at 20% 0%, #4657c0, transparent 55%), var(--indigo-deep); }
.sec.band .sec-head h2 { color: var(--cream); }
.ds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0 6px; }
.dcard { padding: 28px; background: #fffaf0; color: var(--ink); }
.dcard h3 { margin: 0 0 18px; font-size: 1.2rem; color: var(--green-deep); }
.sw { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: 0.88rem; }
.sw i { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.12); }
.sw b { display: block; font-weight: 500; }
/* the app's own font stays here, as the guest */
.demo { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-family: "Poppins", sans-serif; }
.b-primary, .b-sos { padding: 10px 20px; border-radius: 8px; color: #fff; font-size: 0.85rem; font-weight: 500; }
.b-primary { background: var(--indigo); }
.b-sos { background: var(--orange); }
.c-on, .c-off { padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; border: 1px solid rgba(63, 81, 181, 0.25); }
.c-on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.c-off { color: var(--indigo); background: #fff; }
.t { margin: 0 0 8px; font-family: "Poppins", sans-serif; color: #424242; }
.t16 { font-size: 1.3rem; font-weight: 500; }
.t14 { font-size: 1.15rem; font-weight: 500; }
.t12 { font-size: 1rem; }
.t10 { font-size: 0.85rem; }

/* ---------- Takeaways + footer ---------- */
.sec.takeaways { padding-top: 150px; }
.cs-foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.btn-primary { padding: 12px 28px; background: var(--indigo); color: #fff; border-radius: 999px; font-weight: 500; text-decoration: none; transition: background 0.4s; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--indigo-deep); }
.back { color: var(--gold-deep); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.5s var(--ease); }
.back:hover, .back:focus-visible { border-bottom-color: var(--gold-deep); }
.foot-line { margin: 18px 0 0; text-align: center; font-family: "Fraunces", serif; font-style: italic; font-size: 1.05rem; color: var(--gold-deep); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .hero { padding-bottom: 160px; }
  .hero-grid, .research, .persona, .block, .block.rev { grid-template-columns: 1fr; }
  .hero-shot { min-height: 0; }
  .hero-shot .front { margin: 0 auto; }
  .hero-shot .back, .sun, .fl { display: none; }
  .cards3, .ds { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: 1fr; }
  .curve, .axis { display: none; }
  .block { gap: 28px; }
  .block.rev .block-text { order: 0; }
  .persona .pic { max-width: 280px; margin: 0 auto; }
  .char { width: 70px; height: 128px; }
  .char.wide { width: 100px; height: 94px; }
}
@media (max-width: 620px) {
  .sec { padding: 72px 0; }
  .sec.screens, .sec.testing, .sec.band, .sec.takeaways { padding-top: 120px; }
  .hero::before { display: none; }
  .two, .two-text { grid-template-columns: 1fr; }
  .phones { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-page *, .cs-page *::before, .cs-page *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.from-left, .reveal.from-right, .reveal.pop { opacity: 1; transform: none; }
  .curve path { stroke-dashoffset: 0; }
  .curve i { transform: none; }
  .progress { display: none; }
  .amb { translate: 40px 0; }
  .motes { display: none; }
  html { scroll-behavior: auto; }
}

.cs-page .scene { position: relative; inset: auto; display: block; visibility: visible; place-items: normal; }

@media (max-width: 620px) {
  /* a single phone screenshot should not be tiny */
  .phones .phone:only-child { width: min(250px, 72%); }

  /* illustrations: keep text readable, let the drawing scroll sideways */
  .scene { overflow-x: auto; }
  .scene svg { min-width: 600px; }
  .scene .lb, .scene .lw, .scene .sm { font-size: 17px; }
}