/* Medicoo. Light only. The app's own language: one blue, white squircle cards, real screens. */

:root {
  --bg: #FFFFFF;
  --soft: #F3F6FD;
  --app-bg: #EEF2FC;
  --ink: #0B1020;
  --ink-2: #434B61;
  --ink-3: #6A7288;
  --blue: #2B50E8;
  --blue-deep: #1E3EC8;
  --blue-soft: #5B7BFF;
  --tint: #E4EAFD;
  --green: #0B7A5E;
  --green-tint: #DBF1E9;
  --coral: #C8321F;
  --coral-tint: #FCE6E2;
  --line: #E1E7F3;
  --radius: 28px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --shadow: 0 1px 2px rgba(18, 28, 70, .04), 0 18px 40px -22px rgba(18, 28, 70, .22);
  --shadow-lift: 0 2px 4px rgba(18, 28, 70, .05), 0 32px 64px -28px rgba(18, 28, 70, .34);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0; min-width: 0; width: 100%; max-width: 100%; overflow-x: clip;
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, table { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.375rem, 1.2rem + 5vw, 4.75rem); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; overflow-wrap: break-word; text-wrap: pretty; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, var(--blue-soft) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* A squircle: big radius everywhere, the true superellipse where the browser can draw it. */
.sq { border-radius: var(--radius); }
@supports (corner-shape: squircle) {
  .sq, .card, .stage, .closing, .price, .panel-blue, .figures div, .field input, .field textarea, .pager a, .table-wrap, .app-note, .bento article, .notice, .steps li, .faq-item, .site-header .header-row, .main-nav {
    corner-shape: squircle;
  }
  .sq, .card, .price, .bento article, .figures div, .table-wrap, .app-note, .faq-item, .steps li, .pager a { border-radius: 44px; }
  .stage, .closing, .panel-blue { border-radius: 72px; }
}
.tile { display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--blue); color: #fff; clip-path: url(#squircle); flex: none; }
.tile .ic { width: 26px; height: 26px; }
.tile-soft { background: var(--tint); color: var(--blue-deep); }
.tile-green { background: var(--green); }
.tile-ink { background: var(--ink); }
.tile-letter { font-weight: 700; font-size: 1.375rem; }
.app-icon { width: 72px; height: 72px; clip-path: url(#squircle); }

/* ---------- controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px -12px rgba(43, 80, 232, .7); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(43, 80, 232, .8); }
.btn-ghost { background: var(--tint); color: var(--blue-deep); }
.btn-ghost:hover { background: #D6DFFC; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { transform: translateY(-2px); }
.btn-store { background: var(--ink); color: #fff; min-height: 60px; padding: 0 24px 0 20px; }
.btn-store:hover { transform: translateY(-2px); }
.btn-store .apple { width: 28px; height: 28px; }
.btn-store span { display: grid; text-align: left; font-size: 1.25rem; line-height: 1.1; }
.btn-store small { font-size: .75rem; font-weight: 500; opacity: .8; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic, a:hover > .link-arrow .ic { transform: translateX(4px); }

.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.8vw, 32px); min-width: 0; box-shadow: var(--shadow); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.label { font-size: .9375rem; font-weight: 700; color: var(--blue); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { color: var(--green); margin-top: .22em; }

/* ---------- header */

.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; pointer-events: none; }
.header-row { pointer-events: auto; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 10px 8px 18px; position: relative; border-radius: 24px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); box-shadow: 0 0 0 1px rgba(18, 28, 70, .06), 0 14px 34px -22px rgba(18, 28, 70, .3); transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled .header-row { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(18, 28, 70, .08), 0 20px 40px -22px rgba(18, 28, 70, .42); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.pulse-mark { width: 36px; height: 36px; flex: none; clip-path: url(#squircle); }
.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a:not(.btn) { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .2s, color .2s; }
.main-nav a:not(.btn):hover { color: var(--ink); background: rgba(43, 80, 232, .08); }
.main-nav a[aria-current="page"] { color: var(--blue-deep); background: var(--tint); }
.nav-cta, .nav-extra { display: none; }
.header-cta { min-height: 46px; padding: 0 20px; font-size: .9375rem; }
.menu-toggle { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 16px; background: var(--tint); color: var(--blue-deep); cursor: pointer; flex: none; }
.menu-toggle i { position: absolute; left: 14px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle i:nth-of-type(1) { top: 18px; }
.menu-toggle i:nth-of-type(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .header-row { padding-left: 14px; gap: 8px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 12px; display: grid; gap: 12px;
    background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(18, 28, 70, .06), var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    max-height: calc(100dvh - 112px); overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { display: grid; gap: 2px; }
  .main-nav a:not(.btn) { padding: 13px 16px; font-size: 1.0625rem; }
  .nav-cta { display: inline-flex; }
  .nav-extra { display: block; }
}
@media (max-width: 400px) { .header-cta { padding: 0 14px; } .brand { font-size: 1.125rem; } }

/* ---------- the iPhone: a thin frame, the Dynamic Island, a real capture inside */

.device { position: relative; width: min(100%, 300px); margin: 0; aspect-ratio: 1206 / 2622; padding: 1.5%; border-radius: 17.5% / 8.05%; background: linear-gradient(145deg, #3A3D47, #0C0E14 30%, #1B1D25 70%, #34363F); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 0 0 1px #05060A, 0 40px 70px -34px rgba(13, 22, 66, .6), 0 18px 30px -18px rgba(13, 22, 66, .35); flex: none; }
.device::before { content: ""; position: absolute; left: -1.1%; top: 22%; width: 1.1%; height: 7%; border-radius: 2px 0 0 2px; background: #23252D; box-shadow: 0 260% 0 #23252D; }
.device::after { content: ""; position: absolute; right: -1.1%; top: 30%; width: 1.1%; height: 11%; border-radius: 0 2px 2px 0; background: #23252D; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 16% / 7.35%; overflow: hidden; background: var(--app-bg); isolation: isolate; }
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 5; left: 50%; top: 1.35%; width: 30%; height: 4.15%; margin-left: -15%; border-radius: 999px; background: #000; }
.island::after { content: ""; position: absolute; right: 12%; top: 50%; width: 11%; aspect-ratio: 1; margin-top: -5.5%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2B3550, #0A0D18 60%); }
.stage { position: relative; display: grid; place-items: center; padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 40px); border-radius: clamp(28px, 4vw, 48px); background: radial-gradient(120% 90% at 50% 0%, #E3EAFF, var(--app-bg) 60%); min-width: 0; overflow: hidden; }

/* The flashcard turns: two real captures of the same card, front and back. */
.flip { position: absolute; z-index: 2; left: 4.35%; top: 14.3%; width: 91.3%; height: 74.1%; perspective: 1400px; }
.flip::before { content: ""; position: absolute; inset: -1.5% -2% -3%; background: #EDF1FB; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.flip-face { position: absolute; inset: 0; border-radius: 10.6% / 6%; background-size: 109.53% 134.95%; background-position: 50% 55.2%; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 30px -18px rgba(20, 32, 80, .5); }
.flip-back { transform: rotateY(180deg); }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* ---------- hero */

.hero { position: relative; margin-top: -88px; padding: clamp(128px, 14vw, 184px) 0 0; text-align: center; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 50% at 50% 0%, #DCE5FF 0%, rgba(220, 229, 255, 0) 70%), linear-gradient(180deg, #F4F7FF, #fff 70%); }
.hero-copy { display: grid; gap: 24px; justify-items: center; }
.hero h1 { max-width: 13em; }
.lead { font-size: clamp(1.0625rem, 1rem + .55vw, 1.375rem); color: var(--ink-2); max-width: 38em; }
.hero .lead { max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .ic { color: var(--green); }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.4vw, 36px); margin-top: clamp(40px, 6vw, 72px); height: clamp(360px, 46vw, 600px); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.hero-phones::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 6%; width: min(900px, 120%); aspect-ratio: 1.5; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 80, 232, .38), rgba(43, 80, 232, 0)); filter: blur(10px); }
.hero-phones .device { width: clamp(190px, 25vw, 320px); }
.hero-phones .device:nth-child(1) { transform: translateY(calc(11% + var(--py, 0px))) rotate(-7deg); transform-origin: bottom right; width: clamp(160px, 21vw, 270px); }
.hero-phones .device:nth-child(3) { transform: translateY(calc(11% + var(--py, 0px))) rotate(7deg); transform-origin: bottom left; width: clamp(160px, 21vw, 270px); }
.hero-phones .device:nth-child(2) { z-index: 2; }
@keyframes rise { from { opacity: 0; translate: 0 64px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .hero-phones { gap: 0; height: 420px; }
  .hero-phones .device:nth-child(2) { width: 220px; }
  .hero-phones .device:nth-child(1), .hero-phones .device:nth-child(3) { width: 180px; margin: 0 -70px; }
}

/* ---------- waiting list and forms */

.waitlist { display: grid; gap: 12px; width: 100%; max-width: 520px; min-width: 0; justify-items: center; }
.waitlist-note { font-size: .9375rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.waitlist-note .apple { width: 16px; height: 16px; }
.waitlist-form { display: grid; gap: 12px; width: 100%; min-width: 0; }
.field-inline { display: flex; gap: 6px; min-width: 0; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .1), 0 16px 34px -20px rgba(18, 28, 70, .34); transition: box-shadow .2s; }
.field-inline:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 16px 34px -20px rgba(43, 80, 232, .5); }
.field-inline input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; padding: 0 12px 0 20px; outline: none; font-size: 1rem; }
.field-inline input::placeholder { color: var(--ink-3); }
.field-inline .btn { min-height: 48px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--ink-3); text-align: left; cursor: pointer; max-width: 440px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; font-weight: 600; font-size: .9375rem; text-align: left; }
.notice-ok { background: var(--green-tint); color: var(--green); }
.notice-bad { background: var(--coral-tint); color: var(--coral); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.cta-note { font-size: .875rem; color: var(--ink-3); }
@media (max-width: 480px) {
  .field-inline { flex-direction: column; border-radius: 28px; }
  .field-inline input { text-align: center; padding: 0 16px; }
  .field-inline .btn { width: 100%; }
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 80, 232, .16); }
.field .error { color: var(--coral); font-size: .875rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }

/* ---------- sections */

.section { padding: clamp(64px, 9vw, 136px) 0; position: relative; }
.section-soft { background: var(--soft); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.section-head > p { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); margin: 0; }
.figures div { display: grid; gap: 4px; padding: clamp(18px, 2.6vw, 30px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; text-align: left; }
.figures dd { margin: 0; font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--blue); }
.figures dt { font-size: .9375rem; color: var(--ink-2); font-weight: 500; }
.band { position: relative; z-index: 3; margin-top: clamp(-56px, -5vw, -32px); }
@media (max-width: 720px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The showcase: the text scrolls, the phone stays and changes its screen. */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.showcase-steps { display: grid; }
.step { display: grid; gap: 18px; align-content: center; justify-items: start; min-height: 86vh; padding: 32px 0; opacity: .32; transition: opacity .5s var(--ease); }
.step.active { opacity: 1; }
.step h3 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.035em; line-height: 1.08; }
.step > p:not(.label) { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); }
.step .stage { display: none; width: 100%; }
.step-head { display: flex; align-items: center; gap: 14px; }
.showcase-stage { position: sticky; top: max(104px, calc(50vh - 340px)); }
.showcase-stage .stage { padding-block: clamp(28px, 4vh, 56px); }
.showcase-stage .device { width: min(100%, 300px, calc((100vh - 220px) * .46)); }
.showcase-stage .device-screen picture, .showcase-stage .device-screen > .flip { opacity: 0; transition: opacity .55s var(--ease); }
.showcase-stage .device-screen picture.on, .showcase-stage .device-screen > .flip.on { opacity: 1; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0 44px; }
  .step .stage { display: grid; margin-top: 8px; }
}

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.bento article { grid-column: span 2; display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.8vw, 32px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bento article:nth-child(1), .bento article:nth-child(6) { grid-column: span 3; }
.bento article:nth-child(2), .bento article:nth-child(5) { grid-column: span 3; }
.bento article:nth-child(3), .bento article:nth-child(4) { grid-column: span 3; }
.bento p { color: var(--ink-2); }
.bento .big { font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--blue); }
@media (min-width: 900px) {
  .bento article:nth-child(1) { grid-column: span 2; }
  .bento article:nth-child(2) { grid-column: span 2; }
  .bento article:nth-child(3) { grid-column: span 2; }
  .bento article:nth-child(4) { grid-column: span 2; }
  .bento article:nth-child(5) { grid-column: span 2; }
  .bento article:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 620px) { .bento article, .bento article:nth-child(n) { grid-column: span 6; } }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.points article { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 28px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; }
.section-soft .points article, .section-soft .card { box-shadow: 0 1px 2px rgba(18, 28, 70, .04), 0 14px 30px -22px rgba(18, 28, 70, .2); }
.points p { color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.grid-3 .card, .book, .post-card { display: grid; gap: 12px; align-content: start; }
.grid-3 .card p, .post-card p { color: var(--ink-2); }
.book-figures { color: var(--ink-2); font-size: .9375rem; }
.stack { display: grid; gap: clamp(24px, 4vw, 48px); min-width: 0; }

.marquee { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 110s linear infinite; }
.marquee-track.back { animation-direction: reverse; animation-duration: 130s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee a { display: block; padding: 11px 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.marquee a:hover { background: var(--blue); color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

.plan-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(12px, 1.6vw, 20px); max-width: 960px; margin-inline: auto; }
.plan { display: grid; gap: 20px; align-content: start; padding: clamp(26px, 3.4vw, 40px); }
.plan-price { color: var(--ink-2); }
.plan-price b { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.panel-blue { background: var(--blue); color: #fff; background-image: radial-gradient(120% 110% at 100% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #3B62F4, #2444D8); box-shadow: 0 34px 64px -30px rgba(43, 80, 232, .75); }
.panel-blue .plan-price, .panel-blue .plan-price b, .panel-blue h2, .panel-blue h3 { color: #fff; }
.panel-blue .ticks .ic { color: #fff; }
.panel-blue .btn { justify-self: start; }

.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07); transition: box-shadow .25s; }
.faq-item[open] { box-shadow: 0 0 0 1px rgba(18, 28, 70, .07), var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.faq-item summary .ic { color: var(--blue); transition: transform .3s var(--ease); }
.faq-item[open] summary .ic { transform: rotate(90deg); }
.faq-answer { padding: 0 24px 22px; color: var(--ink-2); max-width: 48em; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

.closing { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 64px); border-radius: clamp(28px, 4vw, 48px); overflow: hidden; }
.closing h2 { max-width: 14em; }
.closing > p { color: rgba(255, 255, 255, .88); max-width: 30em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.closing .waitlist { margin-top: 8px; }
.closing .consent { color: rgba(255, 255, 255, .86); }
.closing .consent a { color: #fff; }
.closing .consent input { accent-color: #0B1020; }
.closing .field-inline { box-shadow: none; }
.closing .btn-primary { background: var(--ink); box-shadow: none; }
.closing .btn-store { background: #fff; color: var(--ink); }
.closing .cta-note { color: rgba(255, 255, 255, .86); }
.closing .notice { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- inner pages */

.page-head { position: relative; margin-top: -88px; padding: clamp(120px, 12vw, 168px) 0 clamp(32px, 5vw, 56px); isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 50% 0%, #DFE7FF 0%, rgba(223, 231, 255, 0) 70%), linear-gradient(180deg, #F4F7FF, #fff); }
.page-head .wrap { display: grid; gap: 20px; justify-items: start; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); letter-spacing: -.035em; line-height: 1.05; max-width: 18em; }
.page-head .lead { max-width: 44em; }
.page-head .waitlist { justify-items: start; }
.page-head .cta-row { justify-content: flex-start; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.split { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.prose { display: grid; gap: 18px; max-width: 720px; font-size: 1.125rem; line-height: 1.7; min-width: 0; }
.prose h2 { font-size: 1.75rem; letter-spacing: -.025em; margin-top: 20px; }
.prose h3 { font-size: 1.25rem; margin-top: 12px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote { margin: 0; padding: 18px 22px; border-radius: 20px; background: var(--soft); }

.steps { display: grid; gap: 10px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue); color: #fff; font-weight: 700; clip-path: url(#squircle); }
.steps b { display: block; }
.steps span { color: var(--ink-2); }

.table-wrap { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
.plans th, .plans td, .chapters th, .chapters td { padding: 16px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.plans tbody tr:last-child > *, .chapters tbody tr:last-child > * { border-bottom: 0; }
.plans thead th, .chapters thead th { font-size: .875rem; color: var(--ink-3); font-weight: 600; background: var(--soft); }
.plans tbody th { font-weight: 600; width: 40%; }
.plans td { color: var(--ink-2); }
.plans .yes { color: var(--green); display: inline-flex; }
.plans .no { color: #A3AABC; display: inline-flex; }
.chapters tbody tr { transition: background-color .15s; }
.chapters tbody tr:hover { background: #F7F9FF; }
@media (max-width: 640px) {
  .plans thead { display: none; }
  .plans tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .plans tbody tr:last-child { border-bottom: 0; }
  .plans tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding-bottom: 2px; }
  .plans td { border-bottom: 0; padding-top: 6px; font-size: .9375rem; }
  .plans td::before { content: attr(data-plan); display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
}

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.price { display: grid; gap: 6px; align-content: start; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; }
.price p { color: var(--ink-2); }
.price-value b { font-size: clamp(2.75rem, 2rem + 2.6vw, 3.75rem); letter-spacing: -.045em; color: var(--ink); line-height: 1.05; }
.price-monthly { font-weight: 600; }
.price-featured { background: var(--blue); color: #fff; background-image: radial-gradient(120% 110% at 100% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #3B62F4, #2444D8); box-shadow: 0 34px 64px -30px rgba(43, 80, 232, .75); }
.price-featured p, .price-featured .price-value b, .price-featured h3 { color: #fff; }
.price-tag { justify-self: start; font-size: .8125rem; font-weight: 700; color: var(--blue-deep); background: #fff; padding: 5px 12px; border-radius: 999px; }
.code-card .price-tag { background: var(--tint); }
.fineprint { font-size: .875rem; color: var(--ink-3); max-width: 60em; }

.chapters td.n, .chapters th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chapters a { font-weight: 600; text-decoration: none; color: var(--ink); }
.chapters a:hover { color: var(--blue); }
.chapters small { display: block; color: var(--ink-3); font-weight: 400; }
.chapters .only-s { display: none; }
@media (max-width: 680px) {
  .chapters thead, .chapters .hide-s { display: none; }
  .chapters .only-s { display: block; }
  .chapters th, .chapters td { padding: 14px 18px; }
}

.sub-list { display: grid; gap: 8px; }
.sub-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07); }
.sub-list b { font-weight: 600; }
.sub-list span { color: var(--ink-3); font-size: .9375rem; }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pager a { display: grid; gap: 2px; padding: 18px 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07); text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pager a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(18, 28, 70, .07), var(--shadow); }
.pager small { color: var(--blue); font-weight: 600; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill { display: grid; gap: 0; padding: 14px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 28, 70, .07), 0 12px 26px -20px rgba(18, 28, 70, .3); }
.stat-pill b { font-size: 1.625rem; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--blue); }
.stat-pill span { color: var(--ink-3); font-size: .875rem; }

.code-card { display: grid; gap: 14px; justify-items: center; text-align: center; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(1.375rem, 1rem + 2.4vw, 2.125rem); font-weight: 700; letter-spacing: .08em; padding: 14px 28px; border-radius: 18px; background: var(--soft); border: 1.5px dashed #9FB0E8; overflow-wrap: anywhere; }
.post-cover, .post-card img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.app-note { display: grid; gap: 12px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--soft); justify-items: start; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.gallery-item { margin: 0; display: grid; gap: 14px; min-width: 0; }
.gallery-item .stage { padding: 28px 22px; }
.gallery-item figcaption { display: grid; gap: 2px; padding: 0 6px; }
.gallery-item figcaption span { color: var(--ink-2); font-size: .9375rem; }

.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: clamp(48px, 8vw, 104px) 0; }
.error-page .wrap { display: grid; gap: 18px; justify-items: center; }
.error-code { font-size: clamp(5rem, 3rem + 12vw, 10rem); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- footer */

.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 calc(28px + env(safe-area-inset-bottom)); background: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; max-width: 340px; color: var(--ink-2); font-size: .9375rem; }
.site-footer h2 { font-size: .9375rem; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.site-footer nav a:hover { color: var(--blue); }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .8125rem; color: var(--ink-3); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- motion, off when the visitor asks for less */

@media (prefers-reduced-motion: no-preference) {
  @media (scripting: enabled) {
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
    .reveal.in { opacity: 1; transform: none; }
  }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-phones .device { animation: rise 1.1s var(--ease) .3s both; }
  .hero-phones .device:nth-child(1) { animation-delay: .46s; }
  .hero-phones .device:nth-child(3) { animation-delay: .56s; }
  .in .flip-inner, .flip.on .flip-inner { animation: flip 8s var(--ease) 1s infinite; }
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track.back { display: none; }
  .step { opacity: 1; }
}
@media (min-width: 1800px) { html { font-size: 106.25%; } .wrap { max-width: 1280px; } .wrap-narrow { max-width: 860px; } }
@media print { .site-header, .site-footer nav, .waitlist, .stage, .hero-phones, .marquee { display: none; } .hero, .page-head { margin-top: 0; } }

/* The App Store note reads as one sentence, wherever it wraps. */
.waitlist-note { display: block; }
.waitlist-note .apple { display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* The bezel is measured against the phone itself, never against the section it sits in. */
.device { padding: 0; }
.device-screen { position: absolute; inset: .69% 1.5%; width: auto; height: auto; }

/* The phone has its own width, so it can never collapse inside a shrinking column. */
.device { width: 300px; max-width: 100%; }
.split > * { justify-self: stretch; }
.split > .stack { justify-self: start; }
.stage { width: 100%; }
.gallery-item .device { width: 240px; }

/* Room above the three phones, so their tops and the rotated corners are never cut. */
.hero-phones { padding-top: 64px; box-sizing: content-box; }
@media (max-width: 640px) { .hero-phones { margin-top: 56px; padding-top: 48px; } }

/* The chapter strips keep a little room, so the outline of each chip is never cut. */
.marquee { padding: 8px 0 12px; }

/* Chapter strips, rebuilt for iOS Safari: no mask over a moving layer (it drops whole rows and
   cuts chips there). The soft edges are two overlays, and each chip has a real border. */
.marquee { position: relative; -webkit-mask-image: none; mask-image: none; padding: 10px 0 14px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 8vw, 120px); z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee-track { animation-name: marquee3d; will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.marquee li { flex: none; }
.marquee a { box-shadow: none; border: 1px solid #DFE5F2; corner-shape: round; }
@keyframes marquee3d { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .marquee::before, .marquee::after { display: none; } }
