/* PainOS landing page. PainOS Brand Guidelines v1.1 (Nov 2, 2026): navy +
   teal, frosted glass over a tinted canvas, light hero numerals.
   Product mocks use demonstration data only. */

:root {
  --navy: #07172E;
  --navy-2: #12345F;
  --teal: #16B8C4;
  --teal-dark: #087F91;
  --cyan: #55D7CC;
  --cyan-soft: #E6F9FA;
  --cyan-eyebrow: #7CEAF0;
  --chart: #0B6F7D;
  --ink: #101828;
  --body: #344054;
  --muted: #525D70;
  --line: rgba(16, 24, 40, .08);
  --grid: #EDF0F5;
  --red: #D64545;
  --amber: #E8902F;
  --info: #175CD3;
  --green: #3FA86B;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .20) 100%);
  --glass-dense: rgba(255, 255, 255, .88);
  --glass-edge: rgba(255, 255, 255, .8);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 12px 32px rgba(44, 56, 96, .07), 0 1px 3px rgba(44, 56, 96, .05);
  --btn-shadow: 0 8px 20px rgba(7, 23, 46, .15);
  --grad: linear-gradient(135deg, #07172E 0%, #12345F 58%, #0C8E99 100%);
  --grad-teal: linear-gradient(135deg, #087F91 0%, #16B8C4 55%, #55D7CC 100%);
  --hero-panel: radial-gradient(circle at 70% 18%, rgba(85, 215, 204, .28), transparent 40%), linear-gradient(150deg, #07172E 0%, #0D2A52 52%, #0B6F7D 100%);
  --hero-edge: rgba(89, 218, 223, .22);
  --radius: 18px;
  --radius-hero: 26px;
  --max: 1240px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: #EBECF2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.03em; }
em { font-style: normal; color: var(--teal-dark); background: linear-gradient(90deg, var(--navy-2), var(--teal-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Canvas: soft teal, cyan and periwinkle discs (periwinkle lives only here) */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #EBECF2 0%, #E2E4EC 100%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: -120px; background: rgba(22, 184, 196, .3); }
.aurora i:nth-child(2) { width: 520px; height: 520px; right: -160px; top: 30vh; background: rgba(129, 140, 214, .5); animation-delay: -8s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; left: 30vw; bottom: -160px; background: rgba(85, 215, 204, .46); animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .tabs button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.showcase :focus-visible, .asm-band :focus-visible, .demo :focus-visible { outline-color: var(--cyan) !important; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: var(--btn-shadow); }
.demo .btn-primary, .asm-band .btn-primary { background: var(--grad-teal); }
.btn-glass { color: var(--ink); background: rgba(255, 255, 255, .62); border: 1px solid var(--glass-edge); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.btn-white { color: var(--navy-2); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.arrow { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.btn-white .arrow { background: var(--cyan-soft); }
.play { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 10px; }

/* Nav */
.nav { position: sticky; top: 16px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 16px auto 0; padding: 10px 10px 10px 22px; border: 1px solid var(--glass-edge); border-radius: 999px; background: rgba(255,255,255,.62); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand b { color: var(--teal-dark); font-weight: 800; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 17px; font-weight: 800; }
.links { display: flex; gap: 4px; }
.links a { padding: 10px 16px; border-radius: 999px; color: var(--body); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .2s; }
.links a:hover { background: rgba(255,255,255,.9); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 72px 20px 40px; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass); color: var(--teal-dark); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(24px) saturate(160%); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(22,184,196,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(22,184,196,0); } 100% { box-shadow: 0 0 0 0 rgba(22,184,196,0); } }
.hero h1 { font-size: clamp(38px, 4.4vw, 64px); font-weight: 700; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.lead { max-width: 520px; margin: 24px 0 32px; font-size: 18px; line-height: 1.6; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 14px; margin: 40px 0 0; }
.hero-stats div { flex: 1; padding: 16px 18px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.hero-stats dt { color: var(--ink); font-size: 26px; font-weight: 750; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.hero-stats dd { max-width: 120px; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.hero-stage { position: relative; min-height: 600px; }

/* Window mock */
@keyframes float { 50% { transform: translateY(-10px); } }

small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.hot { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; animation: pulse 2.4s ease-out infinite; }
.hot.sev3 { background: var(--red); } .hot.sev2 { background: var(--amber); animation-delay: .5s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
@keyframes scan { 0%, 100% { top: 4%; opacity: 0; } 10%, 90% { opacity: 1; } 50% { top: 94%; } }


.spark { width: 100%; height: 40px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--chart); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2s .4s forwards; }
.spark circle { fill: var(--chart); stroke: #fff; stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Phone mock */
.nrs { display: flex; align-items: baseline; gap: 4px; }
.nrs b { color: var(--ink); font-size: 46px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .3s; }
.nrs span { color: var(--muted); font-weight: 600; }
.nrs-track { position: relative; height: 10px; margin: 8px 0 6px; border-radius: 9px; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); }
.nrs-knob { position: absolute; top: 50%; left: 70%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 4px solid #fff; border-radius: 50%; background: var(--navy); box-shadow: 0 4px 10px rgba(7,23,46,.25); transition: left .8s cubic-bezier(.3,.8,.3,1); }
.nrs-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 600; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.ph-chips span { padding: 5px 9px; border-radius: 99px; background: var(--grid); color: var(--body); font-size: 10.5px; font-weight: 600; }
.ph-chips .on { background: var(--navy); color: #fff; }

.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: rgba(255,255,255,.78); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); animation: float 8s ease-in-out infinite; }
.float-chip b { display: block; color: var(--ink); font-size: 13px; }
.float-chip small { font-weight: 500; }
.fc-1 { left: 47%; top: 26px; animation-delay: -3s; }
.fc-2 { right: 10px; bottom: 18px; animation-delay: -5s; }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; font-weight: 800; }
.ico-green { background: rgba(63,168,107,.14); color: #027A48; }
.ico-teal { background: var(--cyan-soft); color: var(--teal-dark); font-size: 11px; }

/* Trust */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; max-width: var(--max); margin: 30px auto 0; padding: 0 20px; }
.trust p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trust li { padding: 8px 16px; border: 1px solid var(--glass-edge); border-radius: 99px; background: rgba(255,255,255,.5); color: var(--body); font-size: 13px; font-weight: 600; }
/* Partner logos sit on one glass tile each so the colours read on the canvas */
.trust .logos { gap: 14px; }
.trust .logos li { display: grid; place-items: center; height: 76px; padding: 14px 26px; border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.trust .logos img { width: auto; height: 46px; }
@media (max-width: 760px) {
  .trust .logos li { height: 64px; padding: 12px 18px; }
  .trust .logos img { height: 36px; }
}

/* Statement */
.statement { position: relative; overflow-x: clip; max-width: 980px; margin: 110px auto 40px; padding: 0 20px; text-align: center; }
.statement p { position: relative; z-index: 1; margin: 0; color: var(--ink); font-size: clamp(26px, 3.4vw, 42px); font-weight: 400; line-height: 1.25; letter-spacing: -.03em; }
.statement p strong { font-weight: 700; }
.ghost { position: absolute; left: 50%; top: 50%; z-index: 0; transform: translate(-50%, -50%); font-size: clamp(120px, 20vw, 260px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(8,127,145,.14); background: linear-gradient(180deg, rgba(22,184,196,.16), transparent 80%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; pointer-events: none; }

/* Patient pulse bento: check-in trend, AI insight, pain domains, photo.
   Layout after a wellness-app reference; PainOS colors and type. */
.bento { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; max-width: var(--max); margin: 70px auto 0; padding: 0 20px; }
.bento-left { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; }
.bento-chart { display: flex; flex-direction: column; padding: 10px 0 6px; }
.chart-wrap { position: relative; flex: 1; min-height: 230px; margin-top: 40px; }
.pulse-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.pulse-chart rect { fill: rgba(18, 52, 95, .15); transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--k) * 14ms); }
.pulse-chart rect.hi { fill: var(--chart); }
.pulse-chart .trend { fill: none; stroke: var(--navy-2); stroke-width: 1.6; stroke-dasharray: .009 .007; stroke-linecap: round; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.4,0,.2,1) .7s; }
.bento-chart.in-view rect { transform: none; }
.bento-chart.in-view .trend { clip-path: inset(0 0 0 0); }
.chart-tip { position: absolute; z-index: 1; transform: translateX(-82%); padding: 7px 13px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px rgba(7,23,46,.18); opacity: 0; translate: 0 6px; transition: opacity .5s ease 1.6s, translate .5s ease 1.6s; }
.chart-tip::after { content: ""; position: absolute; left: 82%; bottom: -5px; width: 10px; height: 10px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bento-chart.in-view .chart-tip { opacity: 1; translate: none; }

.bento-insight { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 24px 24px; border: 1px solid var(--hero-edge); border-radius: var(--radius-hero); background: var(--hero-panel); color: #fff; text-align: center; box-shadow: 0 30px 60px rgba(7,23,46,.18); }
.bento-insight .eyebrow { margin: 0; }
.bento-insight p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.9); font-size: 16px; font-weight: 300; line-height: 1.55; }
.bento-insight small { color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.orb { position: relative; width: 92px; height: 92px; margin: 6px 0; }
.orb::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(85,215,204,.42), transparent 62%); animation: orb-breathe 5s ease-in-out infinite; }
.orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 14%, #E6F9FA 30%, #9BEDE6 52%, #55D7CC 70%, #16B8C4 86%, #087F91 100%); box-shadow: inset -8px -10px 22px rgba(8,127,145,.55), inset 6px 8px 16px rgba(255,255,255,.7), 0 14px 30px rgba(0,0,0,.25); animation: float 6s ease-in-out infinite; }
@keyframes orb-breathe { 50% { transform: scale(1.12); opacity: .75; } }

.bento-domains { grid-column: 1 / -1; padding: 28px 30px 30px; border: 1px solid var(--glass-edge); border-radius: var(--radius-hero); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.bd-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.bd-head h3 { margin: 0 0 6px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.bd-head p { margin: 0; color: var(--muted); font-size: 15px; }
.bd-go { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--glass-edge); border-radius: 50%; background: rgba(255,255,255,.75); color: var(--ink); font-size: 20px; text-decoration: none; box-shadow: 0 6px 16px rgba(7,23,46,.08); transition: transform .25s, background .25s; }
.bd-go:hover { transform: translateY(-2px) rotate(8deg); background: #fff; }
.bd-go:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rings li { position: relative; display: grid; justify-items: center; gap: 10px; }
.rings svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 6; }
.rings .track { stroke: rgba(18, 52, 95, .1); }
.rings .arc { stroke: var(--chart); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.bento-domains.in-view .arc { stroke-dashoffset: calc(1 - var(--v)); }
.rings b { position: absolute; top: 0; left: 50%; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; translate: -50% 0; color: var(--ink); font-size: 32px; font-weight: 300; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.rings b small { margin: 10px 0 0 2px; color: var(--muted); font-size: 14px; font-weight: 400; }
.rings li > span { color: var(--ink); font-size: 14px; font-weight: 500; }

.bento-photo { position: relative; min-height: 520px; margin: 0 0 30px; }
.bento-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-hero); box-shadow: 0 30px 60px rgba(7,23,46,.16); }
.bento-photo figcaption { position: absolute; right: 18px; bottom: -26px; display: flex; align-items: center; gap: 6px; }
.bp-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); box-shadow: var(--btn-shadow); }
.bp-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-pill { display: grid; place-items: center; height: 54px; padding: 0 24px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 500; box-shadow: var(--btn-shadow); }
.bento-note { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: minmax(0, 1fr); margin-left: 0; margin-right: 0; }
  .bento-photo { min-height: 440px; }
}
@media (max-width: 760px) {
  .bento-left { grid-template-columns: minmax(0, 1fr); }
  .chart-wrap { min-height: 170px; margin-top: 56px; }
  .bento-domains { padding: 22px 18px; }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .bento-photo { min-height: 360px; }
  .bento-photo figcaption { right: 12px; }
  .bp-pill { padding: 0 18px; font-size: 15px; }
}

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 20px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-head > p { max-width: 400px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.eyebrow-light { color: var(--cyan-eyebrow); }
h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 16px 16px 26px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); transition: transform .3s; }
.feature:hover { transform: translateY(-6px); }
.feature h3 { margin: 22px 10px 8px; font-size: 21px; font-weight: 650; }
.feature p { margin: 0 10px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feature a { margin: 0 10px; color: var(--teal-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.feature-shot { display: grid; place-items: center; height: 220px; padding: 18px; border-radius: 14px; background: linear-gradient(150deg, var(--cyan-soft), #F7F9FC 60%, #EBECF2); overflow: hidden; }
.mini-q { width: 100%; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(7,23,46,.1); }
.mini-q b { display: block; margin: 6px 0 12px; color: var(--ink); font-size: 14px; }
.opts { display: grid; gap: 6px; }
.opts span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.opts .on { border-color: var(--teal); background: var(--cyan-soft); color: var(--teal-dark); font-weight: 600; }
.risk-list { width: 100%; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.risk-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px rgba(7,23,46,.07); }
.risk-list span { margin-left: auto; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.risk-list i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
i.r { background: var(--red); } i.a { background: var(--amber); } i.v { background: var(--info); }
.asm-bars { display: flex; align-items: end; gap: 18px; height: 150px; }
.asm-bars span { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 8px; height: 100%; }
.asm-bars i { align-self: end; width: 34px; height: calc(var(--v) * 100%); border-radius: 8px; background: var(--grad-teal); transform-origin: bottom; }
.in-view .asm-bars i { animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.asm-bars span:nth-child(2) i { animation-delay: .1s; } .asm-bars span:nth-child(3) i { animation-delay: .2s; } .asm-bars span:nth-child(4) i { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(.05); } }
.asm-bars b { color: var(--muted); font-size: 11.5px; }

/* Showcase */
.showcase { position: relative; margin: 110px 16px 0; padding: 80px 20px 90px; border: 1px solid var(--hero-edge); border-radius: var(--radius-hero); background: var(--hero-panel); overflow: clip; }
.showcase::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.showcase-head { position: relative; max-width: var(--max); margin: 0 auto 40px; text-align: center; }
.showcase h2 { color: #fff; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; padding: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.tabs button { position: relative; overflow: hidden; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.82); font: 600 14px Inter, sans-serif; cursor: pointer; transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy-2); }
.tabs button i { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.tabs button[aria-selected="true"] i { animation: progress var(--cycle, 6s) linear forwards; }
.tabs.paused button i { animation: none; transform: scaleX(0); }
@keyframes progress { to { transform: scaleX(1); } }



@keyframes pop { from { transform: scale(.4); opacity: 0; } }

@keyframes slide { from { opacity: 0; transform: translateX(-16px); } }

@keyframes fillbar { from { background: linear-gradient(90deg, var(--teal) 0%, var(--grid) 0); } }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tech { padding: 28px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.tech h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 650; }
.tech p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tech-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px; }
.tech-wide p { margin-bottom: 22px; }
.tech-wide figure { margin: 0; height: 320px; overflow: hidden; border-radius: 14px; }
.tech-wide figure img { width: 100%; height: 100%; object-fit: cover; }
.tech-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 22px; }
.ph-streak { display: flex; gap: 6px; }
.ph-streak i { flex: 1; height: 26px; border-radius: 8px; background: var(--grid); }
.ph-streak i.on { background: var(--grad-teal); }
.fhir { display: flex; align-items: center; justify-content: center; gap: 0; height: 200px; }
.fhir span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 12px 26px rgba(7,23,46,.1); }
.fhir span.me { width: 100px; height: 100px; background: var(--grad); color: #fff; }
.fhir i { position: relative; width: 50px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 20px 0; } }
.tech-ehr { display: flex; flex-direction: column; }
.ehr-wall { margin-top: auto; padding-top: 26px; }
.ehr-label { margin: 0 0 12px !important; color: var(--teal-dark) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ehr-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ehr-logos li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 8px; border: 1px solid var(--glass-edge); border-radius: 14px; background: var(--glass-dense); box-shadow: 0 6px 16px rgba(7,23,46,.06); transition: transform .25s, box-shadow .25s; }
.ehr-logos li:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7,23,46,.1); }
.ehr-logos li.live { border-color: rgba(22,184,196,.45); box-shadow: 0 0 0 3px rgba(22,184,196,.1), 0 6px 16px rgba(7,23,46,.06); }
.ehr-logos .lg { display: block; width: auto; max-width: 100%; height: 24px; object-fit: contain; }
.ehr-logos .lg-epic { height: 28px; }
.ehr-logos .lg-oracle { height: 30px; }
.ehr-logos .lg-wide { height: 15px; }
.ehr-logos small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ehr-logos li.live small { color: var(--teal-dark); }
.ehr-logos .live-dot { width: 6px; height: 6px; }
@media (max-width: 1080px) { .ehr-logos { grid-template-columns: repeat(2, 1fr); } }

/* ASM band */
.asm-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; max-width: var(--max); margin: 110px auto 0; padding: 56px; border: 1px solid var(--hero-edge); border-radius: var(--radius-hero); background: var(--hero-panel); color: rgba(255,255,255,.85); box-shadow: 0 40px 90px rgba(7,23,46,.22); }
.asm-band h2 { color: #fff; }
.asm-band p { font-size: 17px; line-height: 1.6; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.countdown div { display: grid; justify-items: center; padding: 22px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.countdown b { color: #fff; font-size: 48px; font-weight: 300; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.countdown span { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
.countdown p { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: 14px; }

/* Evidence */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev { padding: 32px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.ev b { display: block; color: var(--ink); font-size: 60px; font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ev p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }


/* Demo */
.demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; max-width: var(--max); margin: 110px auto 0; padding: 56px; border: 1px solid var(--hero-edge); border-radius: var(--radius-hero); background: var(--hero-panel); color: rgba(255,255,255,.85); }
.demo h2 { color: #fff; }
.demo ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.demo li { display: flex; gap: 12px; font-size: 16px; }
.demo li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255,255,255,.15); color: var(--cyan); font-size: 12px; font-weight: 800; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.demo-form label { display: grid; gap: 6px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; }
.demo-form input, .demo-form select { height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font: 500 16px Inter, sans-serif; }
.demo-form select option { color: var(--ink); }
.demo-form button { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* Footer */
.footer { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; max-width: var(--max); margin: 80px auto 0; padding: 40px 20px 50px; border-top: 1px solid var(--line); }
.footer p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer nav a { color: var(--body); font-size: 14px; text-decoration: none; }
.footer .fine { grid-column: 1 / -1; font-size: 12.5px; }

/* Hero principles */
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.proof li::before { content: "✓"; margin-right: 6px; color: var(--teal-dark); font-weight: 800; }

/* One-view band */
.band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; max-width: var(--max); margin: 40px auto 0; padding: 18px 28px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.band .eyebrow { margin: 0; }
.band ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 14px; font-weight: 600; }
.band li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--teal); }
.statement p.statement-kicker { position: relative; z-index: 1; margin: 0 0 18px; color: var(--teal-dark); font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: .8px; }
.cards-3 .tech h3 { margin-top: 20px; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 22px 4px 0; border-top: 2px solid rgba(8, 127, 145, .35); }
.steps b { color: var(--teal-dark); font: 600 12px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.steps h3 { margin: 18px 0 8px; font-size: 24px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Safety + trust */
.safety { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.safety-box h3 { margin: 0 0 18px; font-size: 24px; }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checks li { padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 14px; background: rgba(255, 255, 255, .55); color: var(--body); font-size: 14px; font-weight: 500; }
.checks li::before { content: "✓"; margin-right: 10px; color: var(--teal-dark); font-weight: 800; }
.safety .eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: 10px; line-height: 1.4; }
.trust-copy h2 { margin-bottom: 16px; }
.trust-copy p { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.trust-copy .assure { color: var(--ink); font-size: 15px; font-weight: 700; }

/* CTA strip */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 100px auto 0; padding: 40px 48px; border: 1px solid var(--glass-edge); border-radius: var(--radius-hero); background: linear-gradient(120deg, rgba(230, 249, 250, .8), rgba(255, 255, 255, .45)); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow); }
.cta-strip h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta-strip p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.cta-strip .btn { flex: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 90ms); }

/* Motion: line-draw rules, scroll state, scroll-linked settle, sticky steps.
   One-shot, scroll-triggered; everything resolves to the static layout under
   reduced motion. */
.nav { transition: max-width .45s cubic-bezier(.2,.8,.2,1), background .35s ease, box-shadow .35s ease; }
.nav.scrolled { max-width: calc(var(--max) - 96px); background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 40px rgba(44,56,96,.14), 0 1px 3px rgba(44,56,96,.06); }

.steps li { position: relative; border-top: 0; }
.steps li::before, .steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.steps li::before { background: rgba(8, 127, 145, .16); }
.steps li::after { background: var(--grad-teal); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(.25s + var(--i, 0) * 120ms); }
.steps li.in-view::after { transform: none; }
.steps h3, .steps p, .steps b { transition: opacity .45s ease, color .45s ease; }

@media (min-width: 1081px) {
  #how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  #how .section-head { position: sticky; top: 130px; flex-direction: column; align-items: start; gap: 18px; margin: 0; }
  #how .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #how .steps li { min-height: 28vh; padding: 30px 0 44px 34px; }
  #how .steps li::before, #how .steps li::after { right: auto; bottom: 0; width: 2px; height: auto; }
  #how .steps li::after { transform: scaleY(0); transform-origin: top; transition-delay: 0s; }
  #how .steps li.active::after { transform: none; }
  #how .steps h3 { font-size: 30px; }
  #how.steps-live .steps li:not(.active) :is(h3, p) { opacity: .38; }
  #how.steps-live .steps li.active b { color: var(--teal); }
}

/* EHR card: nodes and connectors draw in, then the vendor tiles arrive */
.tech-ehr .fhir span { opacity: 0; scale: .86; transition: opacity .5s ease .2s, scale .6s cubic-bezier(.2,.8,.2,1) .2s; }
.tech-ehr .fhir span.me { transition-delay: .65s; }
.tech-ehr .fhir span:last-child { transition-delay: 1.1s; }
.tech-ehr .fhir i { transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1) .4s; }
.tech-ehr .fhir i ~ i { transition-delay: .85s; }
.tech-ehr.in-view .fhir span { opacity: 1; scale: 1; }
.tech-ehr.in-view .fhir i { transform: none; }
.tech-ehr .ehr-logos li { opacity: 0; translate: 0 12px; transition: opacity .5s ease, translate .6s cubic-bezier(.2,.8,.2,1), transform .25s, box-shadow .25s; transition-delay: calc(1.1s + var(--j, 0) * 70ms), calc(1.1s + var(--j, 0) * 70ms), 0s, 0s; }
.tech-ehr.in-view .ehr-logos li { opacity: 1; translate: none; }

/* Scroll-linked settle: the product stage eases into
   place as they rise, in browsers with scroll-driven animations */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .showcase-stage { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes settle { from { scale: .92; translate: 0 48px; } to { scale: 1; translate: 0 0; } }

/* Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-stage { min-height: 560px; }
  .links { display: none; }
  .cards-3, .evidence { grid-template-columns: 1fr 1fr; }
  .asm-band, .demo { grid-template-columns: 1fr; padding: 40px; margin-left: 16px; margin-right: 16px; }
  .band, .cta-strip { margin-left: 16px; margin-right: 16px; }
  .safety { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .nav { margin: 10px 10px 0; top: 10px; }
  .hero-stats { gap: 8px; }
  .hero-stats div { padding: 12px; }
  .hero-stats dt { font-size: 22px; }
  .hero-stage { min-height: 0; display: grid; gap: 16px; }
  .float-chip { position: relative; inset: auto; width: auto; animation: none; }
  .fc-1, .fc-2 { left: auto; right: auto; top: auto; bottom: auto; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .cards-3, .evidence, .tech-grid, .tech-wide { grid-template-columns: minmax(0, 1fr); }
  .tech { padding: 20px; }
  .fhir span { width: 64px; height: 64px; font-size: 13px; } .fhir span.me { width: 80px; height: 80px; } .fhir i { width: 28px; }
  .tech-wide figure { height: 220px; }
  .showcase { margin: 80px 0 0; padding: 60px 12px; }
  .tabs { border-radius: 22px; }
  .asm-band, .demo { padding: 28px; }
  .countdown b { font-size: 36px; }
  .hero-stats dt { font-size: 22px; }
  .demo-form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 16px 20px; }
  .band ul { gap: 8px 18px; font-size: 13px; }
  .cta-strip { flex-direction: column; align-items: start; padding: 28px; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: rgba(255, 255, 255, .94); }
  .nav, .btn-glass, .float-chip, .trust li { background: rgba(255, 255, 255, .96); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .spark polyline { stroke-dashoffset: 0; }
  .steps li::after, .tech-ehr .fhir i { transform: none; }
  .tech-ehr .fhir span, .tech-ehr .ehr-logos li { opacity: 1; scale: none; translate: none; }
  .pulse-chart rect { transform: none; }
  .pulse-chart .trend { clip-path: none; }
  .chart-tip { opacity: 1; translate: none; }
  .rings .arc { stroke-dashoffset: calc(1 - var(--v)); }
}

/* ===== 3D devices: real PainOS screens in a tilted laptop and phone ===== */
.scene { --rx: 0deg; --ry: 0deg; position: relative; perspective: 2200px; perspective-origin: 50% 30%; }
.scene > * { transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* Laptop: real MacBook Pro frame from the mockup bundle; the screen sits at
   x 247, y 72, 1818 x 1136 of the 2312 x 1344 image. */
.mbp { position: relative; transform-style: preserve-3d; }
.mbp-frame { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(7,23,46,.28)) drop-shadow(0 12px 14px rgba(7,23,46,.18)); }
.mbp .display { position: absolute; left: 10.683%; top: 5.357%; width: 78.633%; height: 84.524%; aspect-ratio: auto; border-radius: 0; }
.display { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; background: #EBECF2; container-type: size; }
.display img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; }
.display img.pan { animation: pan 16s ease-in-out 1.2s infinite alternate; }
@keyframes pan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.display::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.display .shot { opacity: 0; transition: opacity .7s; }
.display .shot.on { opacity: 1; }

/* Phone */
.ios-bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 26px 0 30px; color: var(--ink); font-size: 13px; }
.island { position: absolute; left: 50%; top: 12px; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #05070a; }
.ios-ic { display: flex; align-items: end; gap: 2px; }
.ios-ic i { width: 3px; border-radius: 1px; background: var(--ink); } .ios-ic i:nth-child(1) { height: 5px; } .ios-ic i:nth-child(2) { height: 8px; } .ios-ic i:nth-child(3) { width: 18px; height: 9px; margin-left: 4px; border-radius: 3px; }
.pscreens { position: absolute; inset: 46px 0 0; }
.ps { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 20px 24px; opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .5s; }
.ps.on { opacity: 1; transform: none; transition-delay: .18s; }
.ps.out { opacity: 0; transform: translateX(-30px); transition-duration: .2s; }
.ps-kicker { margin: 0; color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.ps-title { margin: 6px 0 4px; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.ps-sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ps-sub b { color: #027A48; }
.center { text-align: center; }
.mt12 { margin-top: 18px; }
.ps .nrs { margin-top: 10px; }
.ps .nrs-scale { font-size: 10.5px; }
.ps-btn { display: grid; place-items: center; height: 46px; margin-top: auto; border-radius: 14px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--btn-shadow); }
.ps-body { position: relative; flex: 1; min-height: 0; margin: 8px -6px; border-radius: var(--radius); background: var(--hero-panel); }
.ps-body img { position: absolute; left: 50%; top: 4%; height: 92%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 0 16px rgba(85,215,204,.5)); }
.ps-body .hot { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 11px; }
.ps-done { display: grid; place-items: center; width: 64px; height: 64px; margin: 24px auto 10px; border-radius: 50%; background: linear-gradient(135deg, #3FA86B, #027A48); color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 0 0 10px rgba(63,168,107,.14); }
.ps.on .ps-done { animation: pop .5s .1s backwards; }
.ps-card { margin: 18px 0 14px; padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(7,23,46,.08); }
.ps-card .spark { height: 54px; margin: 8px 0 4px; }

/* Hero scene */
.hero-stage { min-height: 620px; }
.hero-stage .scene { position: absolute; inset: 0; }
@keyframes phoneFloat { 50% { translate: 0 -12px; } }
.hero-stage .fc-1 { left: 4%; top: 18px; z-index: 5; }
.hero-stage .fc-2 { right: 26%; bottom: 40px; z-index: 5; }

/* Showcase scene */
.showcase-stage { position: relative; max-width: 1060px; margin: 10px auto 0; padding: 0 30px; }
.mbp-big { transform: rotateX(calc(4deg + var(--rx))) rotateY(var(--ry)); }
.mbp-big .mbp-frame { filter: drop-shadow(0 50px 60px rgba(0,0,0,.35)) drop-shadow(0 0 80px rgba(85,215,204,.25)); }
.caps { position: relative; max-width: 640px; min-height: 52px; margin: 28px auto 0; text-align: center; }
.cap { position: absolute; inset: 0; margin: 0; color: rgba(255,255,255,.9); font-size: 17px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: .5s; }
.cap.on { opacity: 1; transform: none; }
.demo-note { position: relative; margin: 6px 0 0; color: rgba(255,255,255,.55); font-size: 12.5px; text-align: center; }

/* Tech card phone */
.scene-phone { display: grid; place-items: center; height: 420px; overflow: visible; }

@media (max-width: 1080px) {
  .hero-stage { min-height: 560px; max-width: 720px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .hero-stage { min-height: 0; display: block; }
  .hero-stage .scene { position: relative; height: 420px; }
  .hero-stage .float-chip { display: none; }
  .showcase-stage { padding: 0 4px; }
  .cap { font-size: 15px; }
  .caps { min-height: 70px; }
  .scene-phone { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .display img.pan { animation: none; }
}

/* ===== Real device frames from the mockup pack =====
   The frame image sits on top; its screen opening is transparent. The live
   screen underneath is a fixed-size box mapped onto the opening's four
   corners with a matrix3d (see landing.js), so it keeps animating. */
.dev { position: relative; }
.dev-frame { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none; }
.dev .dev-screen { position: absolute; z-index: 1; left: 0; top: 0; overflow: hidden; aspect-ratio: auto; border-radius: 0; transform-origin: 0 0; visibility: hidden; }
.dev.mapped .dev-screen { visibility: visible; }
.phone-ui { background: linear-gradient(180deg, #F7F9FC, #EBECF2); }
.phone-ui .island { display: none; }
.phone-ui .ios-bar { height: 50px; padding: 14px 30px 0 34px; }
.phone-ui .pscreens { inset: 50px 0 0; }
.phone-ui .ps { padding: 16px 22px 30px; }
/* Real app screenshots fill the screen under the status bar */
.phone-ui .ps-img { padding: 0; background: #F7F9FC; }
/* Status bar picks up the app's tinted glass canvas so there is no seam */
.phone-ui:has(.ps-img) { background: linear-gradient(90deg, #AFDDE5, #C5E3EA 50%, #DAE9ED); }
.ps-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.scene { --px: 0; --py: 0; }
/* Laptop opens toward the hero copy: hinge on the right, screen facing left */
.dev-mbp { position: absolute; right: -10%; top: 0; width: 96%; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.dev-mbp .dev-frame { filter: drop-shadow(0 30px 40px rgba(7,23,46,.18)); }
/* Hero phone stands upright at the laptop's front-left corner */
.dev-phone-hero { position: absolute; left: 4%; top: 250px; width: 29%; max-width: 210px; transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 1081px) and (max-width: 1320px) {
  .dev-mbp { right: 0; width: 90%; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .hero-stage { min-height: 640px; }
  .dev-mbp { right: 0; width: 84%; }
  .dev-phone-hero { left: 4%; top: 220px; }
}
.dev-phone-hero .dev-frame { filter: drop-shadow(0 30px 34px rgba(7,23,46,.26)) drop-shadow(0 8px 10px rgba(7,23,46,.14)); }
.dev-phone-front { width: 190px; margin: 0 auto; transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 6px), 0); transition: transform .6s; }
.dev-phone-front .dev-frame { filter: drop-shadow(0 24px 30px rgba(7,23,46,.22)); }
.hero-stage .fc-1 { left: 6%; top: 60px; }
.hero-stage .fc-2 { left: auto; right: 0; bottom: 40px; }

@media (max-width: 760px) {
  .hero-stage .scene { height: 400px; }
  .dev-mbp { right: -2%; width: 100%; }
  .dev-phone-hero { left: 0; top: 150px; width: 31%; }
}
