/* Coil website. Same "Tactile" look as the app: sage ground, Rubik, raised cards and buttons with a darker edge.
   Layout: single centred column (max 1120px), sections stack on phones.
   Motion: entrances only run when the inline head script has added .js-motion to <html> (never with reduced motion). */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/rubik-400.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/rubik-500.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/rubik-600.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/rubik-700.woff2') format('woff2'); }
:root {
  --bg: #F1F5EE;
  --bg-deep: #E3EADF;
  --surface: #FFFFFF;
  --line: #D3DDCF;
  --edge: #C6D2C1;
  --ink: #14271F;
  --muted: #55635B;
  --faint: #7E8B83;
  --brand: #22493E;
  --brand-edge: #0E2620;
  --on-brand: #F6F1E7;
  --sage: #A9C3A4;
  --sage-edge: #7FA27A;
  --sage-soft: #E3ECDF;
  --wm-ink: #22493E;
  --coral: #E06B4F;
  --danger: #D33A2F;
  --danger-edge: #8F2119;
  --danger-soft: #FCE7E3;
  --danger-line: #F0B9B0;
  --danger-ink: #B42318; /* red for small text: 5.3:1 or better on every light surface */
  --amber: #F0A93A;
  --amber-soft: #FCEFD6;
  --cleared: #2F7A4F;
  --cleared-soft: #DCEFE2;
  --focus: #22493E;
  --field-line: #7E8B83; /* 3.5:1 on white, so fields are easy to find */
  --font: 'Rubik', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px;
  --header-h: 66px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-press: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A15; --bg-deep: #0A140F; --surface: #15241E; --line: #2A3D35; --edge: #1F3029;
    --ink: #E6EEE4; --muted: #A9B8AF; --faint: #82948A;
    --brand: #A9C3A4; --brand-edge: #6E8F69; --on-brand: #0E1A15;
    --sage: #A9C3A4; --sage-edge: #6E8F69; --sage-soft: #1E3029; --wm-ink: #F6F1E7;
    --danger: #CC3A2F; --danger-edge: #8A231B; --danger-soft: #3A1F1B; --danger-line: #6B2C26; --danger-ink: #F28B7F;
    --amber: #F0A93A; --amber-soft: #3A2E17; --cleared: #4FA36F; --cleared-soft: #183527;
    --focus: #A9C3A4; --field-line: #61786C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A15; --bg-deep: #0A140F; --surface: #15241E; --line: #2A3D35; --edge: #1F3029;
  --ink: #E6EEE4; --muted: #A9B8AF; --faint: #82948A;
  --brand: #A9C3A4; --brand-edge: #6E8F69; --on-brand: #0E1A15;
  --sage: #A9C3A4; --sage-edge: #6E8F69; --sage-soft: #1E3029; --wm-ink: #F6F1E7;
  --danger: #CC3A2F; --danger-edge: #8A231B; --danger-soft: #3A1F1B; --danger-line: #6B2C26; --danger-ink: #F28B7F;
  --amber: #F0A93A; --amber-soft: #3A2E17; --cleared: #4FA36F; --cleared-soft: #183527;
  --focus: #A9C3A4; --field-line: #61786C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .15s ease, text-decoration-color .15s ease; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
h3, .h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
.lead, .card p, .faq p, .how-step p, .prose p { text-wrap: pretty; }
/* Focus: a dark green ring (light theme) or sage ring (dark theme), 9:1 against the page. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.card.brand { --focus: var(--on-brand); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus-visible { transform: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 380px) { .wrap { padding-inline: 16px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 10px; background: var(--sage-soft); color: var(--brand); border: 2px solid var(--sage); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 4px; background: var(--cleared); }
.eyebrow.danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--wm-ink); border-radius: 10px; }
.site-header .logo { margin-right: auto; }
.logo svg { height: 36px; width: auto; display: block; overflow: visible; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 500; padding: 0 12px; border-radius: 12px; font-size: 16px; transition: background-color .18s ease, color .18s ease; }
.nav a[aria-current="page"] { color: var(--brand); background: var(--sage-soft); }
.nav a:hover { background: var(--sage-soft); }
.header-cta { flex: none; }
.menu-toggle { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 13px; border: 2px solid var(--line); border-bottom-width: 4px; border-bottom-color: var(--edge); background: var(--surface); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .25s var(--ease-press), border-bottom-width .25s var(--ease-press); }
.menu-toggle:active { transform: translateY(2px); border-bottom-width: 2px; transition-duration: .05s; }
.menu-toggle svg { width: 22px; height: 22px; overflow: visible; }
.menu-toggle .bar { transition: transform .28s var(--ease-out), opacity .18s ease; transform-box: fill-box; transform-origin: center; }
.menu-open .menu-toggle .bar-top { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle .bar-mid { opacity: 0; }
.menu-open .menu-toggle .bar-bot { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 719px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 18px; background: var(--bg); border-bottom: 2px solid var(--line); box-shadow: 0 18px 30px -18px rgba(20, 39, 31, .35); }
  .js .menu-open .nav { display: flex; animation: menu-in .26s var(--ease-out); }
  .js .nav a { min-height: 50px; font-size: 18px; padding: 0 14px; }
  /* without JavaScript the links simply wrap onto their own row */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; width: 100%; flex-wrap: wrap; }
  .header-cta { height: 44px; padding: 0 14px; font-size: 15px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; height: 50px; padding: 0 20px; border-radius: 15px; font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; border: 2px solid var(--line); border-bottom-width: 5px; border-bottom-color: var(--edge); background: var(--surface); color: var(--brand); white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform .34s var(--ease-press), border-bottom-width .34s var(--ease-press), filter .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active { transform: translateY(3px); border-bottom-width: 2px; transition-duration: .05s; }
/* click ripple, added by site.js where the finger or cursor lands */
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .24; transform: scale(0); pointer-events: none; animation: btn-ripple .7s cubic-bezier(.3, .55, .4, 1) forwards; }
@keyframes btn-ripple { to { transform: scale(1); opacity: 0; } }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); border-bottom-color: var(--brand-edge); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); border-bottom-color: var(--danger-edge); }
.btn.small { height: 44px; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 13px; border-bottom-width: 4px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* cards */
.card { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 6px; border-radius: var(--r); padding: 24px; min-width: 0; }
.card.sage { background: var(--sage-soft); border-color: var(--sage); }
.card.danger { background: var(--danger-soft); border-color: var(--danger-line); }
.card.brand { background: var(--brand); border-color: var(--brand); border-bottom-color: var(--brand-edge); color: var(--on-brand); }
.card.brand .muted, .card.brand p { color: color-mix(in srgb, var(--on-brand) 86%, transparent); }
.card.brand .icon-tile { background: var(--on-brand); border-color: var(--on-brand); color: #22493E; }
.icon-tile { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; color: var(--brand); flex: none; }
.icon-tile svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .card { padding: 20px; } }

/* sections */
section { padding-block: 56px; }
section[id] { scroll-margin-top: var(--header-h); }
section.tight { padding-block: 32px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 28px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 720px) and (max-width: 959px) { .grid3 > .card { padding: 20px; } .grid3 h3 { font-size: 18px; } .grid3 .muted { font-size: 16px; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.grid2.stretch, .grid3.stretch { align-items: stretch; }
/* four cards: one column on phones, two by two on tablets, one row on laptops */
.grid4 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid4 > .card { padding: 22px; } .grid4 h3 { font-size: 19px; } .grid4 .muted { font-size: 16px; } }
/* a small plain label above a heading */
.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
@media (min-width: 720px) and (max-width: 899px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero */
.hero { padding-block: 44px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero .wrap.single { grid-template-columns: 1fr; }
.hero-copy { gap: 22px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero { padding-block: 28px 32px; } .hero-copy { gap: 18px; } }
.page-intro { gap: 18px; max-width: 760px; }

/* home: the headline, then the explainer video front and centre, then the two main actions */
.hero.hero-center { padding-block: 36px 24px; }
.hero.hero-center .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-intro { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 920px; }
.hero-kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.hero-intro .lead { max-width: 44em; }
/* as wide as the page allows, but short enough that the whole video fits on a laptop screen with the headline */
.hero-demo { width: 100%; max-width: 960px; }
@media (min-width: 720px) { .hero-demo { max-width: clamp(620px, calc((100vh - 360px) * 16 / 9), 960px); } }
.hero-demo .demo-frame { border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 39, 31, .18); }
.hero-demo .demo-caption { text-align: center; }
.hero-ctas { justify-content: center; }
@media (max-width: 560px) {
  .hero.hero-center { padding-block: 24px 16px; }
  .hero.hero-center .wrap { gap: 20px; }
  .hero-intro { gap: 14px; }
  .hero-demo .demo-frame { border-radius: 16px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* the beta sign-up, beside the app on two phones */
.join-section { padding-block: 32px 40px; }
.join-section .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.join-copy { gap: 22px; }
@media (max-width: 880px) { .join-section .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .join-section { padding-block: 16px 32px; } .join-copy { gap: 18px; } }

/* phones: sized from the column they sit in, so two always fit side by side */
.join-art { container-type: inline-size; min-width: 0; }
.phones { display: flex; justify-content: center; align-items: flex-start; padding: 0 0 8px; }
/* an iPhone: frame with a metal edge and side buttons, a screen with rounded corners inset from it, the
   status bar (time, Dynamic Island, signal, battery) above the app and the home bar below it */
.phone { --pw: min(268px, 40vw); --bz: calc(var(--pw) * .042); position: relative; flex: none; width: var(--pw); padding: var(--bz); border-radius: calc(var(--pw) * .175); background: linear-gradient(150deg, #24382F, #14271F 45%); box-shadow: inset 0 0 0 calc(var(--pw) * .009) #41554B, 0 22px 44px rgba(20, 39, 31, 0.20); }
@supports (width: 1cqi) { .phone { --pw: min(268px, 47cqi); } }
.phone::before, .phone::after { content: ''; position: absolute; width: calc(var(--pw) * .016); background: #33463D; }
.phone::before { left: calc(var(--pw) * -.014); top: 21%; height: 6.5%; border-radius: 3px 0 0 3px; box-shadow: 0 calc(var(--pw) * .19) 0 #33463D; }
.phone::after { right: calc(var(--pw) * -.014); top: 27%; height: 10%; border-radius: 0 3px 3px 0; }
.phone-screen { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--pw) * .133); background: var(--screen-top, #F1F5EE); }
.phone-status { display: block; width: 100%; height: auto; color: var(--status-ink, #14271F); font-family: var(--font); }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-shot { position: relative; }
.phone-home { display: flex; align-items: center; justify-content: center; height: calc(var(--pw) * .07); background: var(--screen-bottom, #FFFFFF); }
.phone-home::before { content: ''; width: 36%; height: max(3px, calc(var(--pw) * .014)); border-radius: 99px; background: #14271F; }
.phone.back { margin-top: calc(var(--pw) * .21); margin-right: calc(var(--pw) * -.1); }
.phone.front { z-index: 1; }
/* a single phone, e.g. on the About page */
.phone.solo { --pw: min(260px, 70vw); margin-inline: auto; }

/* Snake alerts: what they do, beside a phone showing one on the lock screen */
.alerts-feature { background: var(--bg-deep); }
.alerts-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 880px) { .alerts-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }
.alerts-copy { gap: 16px; }
.alerts-copy .lead { max-width: 34em; }
.alerts-art { display: flex; justify-content: center; container-type: inline-size; min-width: 0; }
.lockphone { --pw: min(280px, 72vw); }
@supports (width: 1cqi) { .lockphone { --pw: min(280px, 76cqi); } }
.phone-screen.lock-screen {
  aspect-ratio: 390 / 844; display: flex; flex-direction: column; color: #F6F1E7;
  background: radial-gradient(circle at 18% 78%, rgba(207, 226, 200, .16) 0 26%, transparent 27%),
    radial-gradient(circle at 88% 58%, rgba(207, 226, 200, .12) 0 20%, transparent 21%),
    linear-gradient(170deg, #244E42 0%, #4C7C60 58%, #6F9A70 100%);
}
.lock-top { display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--pw) * .02); }
.lock-pad { width: calc(var(--pw) * .042); height: auto; color: #F6F1E7; }
.lock-date { margin: calc(var(--pw) * .025) 0 0; font-size: calc(var(--pw) * .05); font-weight: 500; line-height: 1.2; }
.lock-time { margin: 0; font-size: calc(var(--pw) * .215); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.lock-note { margin: calc(var(--pw) * .07) calc(var(--pw) * .035) 0; padding: calc(var(--pw) * .042); border-radius: calc(var(--pw) * .065); background: rgba(246, 241, 231, .95); color: #14271F; box-shadow: 0 calc(var(--pw) * .03) calc(var(--pw) * .07) rgba(14, 26, 21, .28); }
.lock-note-head { display: flex; align-items: center; gap: calc(var(--pw) * .025); margin-bottom: calc(var(--pw) * .022); }
.lock-icon { flex: none; width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); border-radius: calc(var(--pw) * .024); background: #22493E; color: #F6F1E7; display: grid; place-items: center; }
.lock-icon svg { width: 74%; height: auto; }
.lock-app { flex: 1; font-size: calc(var(--pw) * .044); font-weight: 600; color: #55635B; }
.lock-when { font-size: calc(var(--pw) * .04); color: #6B7871; }
.lock-title { margin: 0 0 calc(var(--pw) * .012); font-size: calc(var(--pw) * .054); font-weight: 700; line-height: 1.2; }
.lock-body { margin: 0; font-size: calc(var(--pw) * .047); line-height: 1.32; color: #33423A; }
.lock-bottom { margin-top: auto; display: flex; justify-content: space-between; padding: 0 calc(var(--pw) * .1) calc(var(--pw) * .045); }
.lock-bottom span { width: calc(var(--pw) * .13); height: calc(var(--pw) * .13); border-radius: 50%; background: rgba(14, 26, 21, .28); }
.lock-home { align-self: center; width: 36%; height: max(3px, calc(var(--pw) * .013)); border-radius: 99px; background: #F6F1E7; margin-bottom: calc(var(--pw) * .028); }
/* as it scrolls into view the alert drops in and the phone buzzes once (motion only) */
.js-motion .alerts-art.is-in .lock-note { animation: note-in .6s var(--ease-out) .35s both; }
.js-motion .alerts-art.is-in .lockphone { animation: lock-buzz .55s ease-in-out .5s 1 both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lock-buzz { 0%, 100% { transform: none; } 15% { transform: translateX(-3px) rotate(-1.5deg); } 30% { transform: translateX(3px) rotate(1.5deg); } 45% { transform: translateX(-2px) rotate(-1deg); } 60% { transform: translateX(2px) rotate(1deg); } 78% { transform: translateX(-1px); } }

/* the map pin that drops into the phone as it scrolls into view (decorative, motion only) */
.pin-drop { display: none; position: absolute; z-index: 2; left: var(--pin-x, 50%); top: var(--pin-y, 42%); width: 17%; transform: translate(-50%, -100%); pointer-events: none; }
.pin-drop svg { display: block; width: 100%; height: auto; overflow: visible; }
.js-motion .pin-drop { display: block; }
.js-motion .is-in .pin-drop .pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pin-drop .75s cubic-bezier(.3, .7, .4, 1) .55s both; }
.js-motion .is-in .pin-drop .pin-ring { transform-box: fill-box; transform-origin: center; animation: pin-ring 1.1s var(--ease-out) 1.05s both; }
.js-motion .is-in .pin-drop .pin-shadow { transform-box: fill-box; transform-origin: center; animation: pin-shadow .75s cubic-bezier(.3, .7, .4, 1) .55s both; }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-160%); } 40% { opacity: 1; } 62% { transform: translateY(0) scale(1); } 74% { transform: translateY(0) scale(1.08, .88); } 88% { transform: translateY(-7%) scale(.97, 1.04); } 100% { opacity: 1; transform: none; } }
@keyframes pin-ring { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes pin-shadow { 0% { opacity: 0; transform: scale(.3); } 62% { opacity: .35; transform: scale(1); } 100% { opacity: .3; transform: none; } }

/* How it works: four short steps (the video is at the top of the page) */
@media (min-width: 960px) {
  .how-steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how-steps-row .how-step { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .how-steps-row .how-step h3 { margin-top: 0; }
}
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) and (max-width: 959px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.how-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px 18px 18px; }
.how-step h3 { font-size: 18px; margin: 7px 0 4px; }
.how-step p { font-size: 16px; }
.how-step .num { margin-top: 0; }
@media (max-width: 959px) { .how-step { padding: 18px; } }

.demo { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; isolation: isolate; border: 2px solid var(--line); border-bottom-width: 6px; background: linear-gradient(135deg, var(--sage-soft), var(--bg-deep)); }
.demo-poster, .demo-poster img, .demo-video, .demo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-poster img, .demo-video { object-fit: cover; }
.demo-video { opacity: 0; transition: opacity .35s ease; background: transparent; }
.demo-frame.has-frame .demo-video { opacity: 1; }
.demo-fallback { display: none; align-items: center; justify-content: center; color: var(--wm-ink); }
.demo-fallback svg { width: 34%; height: auto; opacity: .9; }
.demo-frame.no-poster .demo-poster { display: none; }
.demo-frame.no-poster .demo-fallback { display: flex; }
.demo-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(closest-side, rgba(14, 26, 21, .28), rgba(14, 26, 21, .08)); }
.demo-overlay .btn { background: #F6F1E7; color: #14271F; border-color: #F6F1E7; border-bottom-color: #C9BEA6; box-shadow: 0 10px 28px rgba(14, 26, 21, .3); }
.demo-overlay .btn svg { width: 18px; height: 18px; }
/* at the end, keep the closing card readable: Replay sits bottom left on a soft bottom scrim */
.demo-overlay.is-end { place-items: end start; padding: 14px 12px; background: linear-gradient(to top, rgba(14, 26, 21, .32), rgba(14, 26, 21, 0) 45%); }
.demo-overlay.is-end .btn { height: 44px; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 13px; border-bottom-width: 4px; }
.demo-bar { position: absolute; left: 12px; bottom: 14px; display: flex; gap: 8px; }
.demo-ctl { display: inline-flex; align-items: center; gap: 7px; min-width: 44px; height: 44px; padding: 0 16px 0 13px; border-radius: 22px; border: 0; background: rgba(14, 26, 21, .82); color: #fff; font: 600 15px/1 var(--font); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .18s ease, transform .25s var(--ease-press); -webkit-tap-highlight-color: transparent; }
.demo-ctl:hover { background: rgba(14, 26, 21, .94); }
.demo-ctl:active { transform: scale(.96); }
.demo-ctl svg { width: 16px; height: 16px; flex: none; }
.demo-frame .demo-ctl:focus-visible, .demo-frame .btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(14, 26, 21, .9); }
.demo-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .28); }
.demo-progress span { display: block; height: 100%; background: var(--sage); transform-origin: 0 50%; transform: scaleX(0); }
.demo-caption, .demo-status { font-size: 15px; color: var(--muted); padding-inline: 4px; }
.demo.failed .demo-caption { display: none; }
.demo-status:not(.visually-hidden) { color: var(--ink); }
/* small frames: round icon buttons; the labels stay available to screen readers */
@media (max-width: 520px) {
  .demo-bar { left: 8px; bottom: 10px; gap: 6px; }
  .demo-ctl { width: 44px; padding: 0; justify-content: center; }
  .demo-ctl .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-ctl svg { width: 18px; height: 18px; }
  .demo-overlay.is-end { padding: 10px 8px; }
}

/* forms */
form .field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; font-size: 15px; }
input[type="email"], input[type="text"], textarea, select { width: 100%; min-height: 50px; font: 400 17px/1.3 var(--font); color: var(--ink); background: var(--surface); border: 2px solid var(--field-line); border-radius: 14px; padding: 13px 14px; transition: border-color .18s ease; }
input[type="email"]:hover, input[type="text"]:hover, textarea:hover { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 500; font-size: 16px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-card { gap: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.join-card h2 { font-size: 24px; }

/* traffic light explainer */
.lights { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .lights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.light { display: flex; gap: 14px; align-items: flex-start; }
@media (min-width: 720px) and (max-width: 1023px) { .light { flex-direction: column; } .light.card { padding: 20px; } }
.light .swatch { width: 54px; height: 54px; border-radius: 15px; flex: none; border: 3px solid; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; color: #fff; }
.light .swatch svg { width: 30px; height: 30px; }
.light.red .swatch { background: #D33A2F; border-color: #8F2119; }
.light.amber .swatch { background: var(--amber); border-color: #B5761A; color: #14271F; }
.light.green .swatch { background: #2F7A4F; border-color: #1C5233; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: var(--on-brand); border-bottom: 4px solid var(--brand-edge); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; }
.step.first .n { background: var(--danger); border-bottom-color: var(--danger-edge); color: #fff; }
.step h3 { margin-bottom: 4px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px 36px; }
.num { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--brand); color: var(--on-brand); border-bottom: 4px solid var(--brand-edge); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.num.danger { background: var(--danger); border-bottom-color: var(--danger-edge); color: #fff; }
.about-how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .about-how.has-phone { grid-template-columns: minmax(0, 1fr) auto; } }

/* illustrated first aid steps */
.fa-body { display: flex; flex-direction: column; gap: 18px; }
.fa-body > .grid3, .fa-body > .grid2 { gap: 18px; }
.fa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
@media (min-width: 640px) and (max-width: 959px) { .fa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fa-step { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 22px; }
.fa-art { border-radius: 14px; overflow: hidden; border: 2px solid #C6D2C1; background: #E3ECDF; aspect-ratio: 3 / 2; }
.fa-art svg { display: block; width: 100%; height: 100%; }
.fa-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 0; }
.fa-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.fa-step > p { padding-inline: 6px; }
/* Text in the step cards lines up with the text in the cards below them. */
@media (min-width: 561px) and (max-width: 719px), (min-width: 960px) { .fa-head, .fa-step > p { padding-inline: 10px; } }
@media (min-width: 720px) and (max-width: 959px) { .fa-body .card:not(.fa-step) { padding: 20px; } }
.source-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.source-links a { display: inline-flex; align-items: center; min-height: 44px; }
ul.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
ul.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; text-wrap: pretty; }
ul.ticks li::before { content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322493E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border: 2px solid var(--sage); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ul.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9C3A4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] ul.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9C3A4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
ul.dots { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.avatar-row { display: flex; margin-top: 10px; }
.avatar-row img { width: 36px; height: 36px; border-radius: 50%; margin-right: -6px; box-shadow: 0 0 0 2.5px var(--surface); background: var(--surface); }
.js-motion .is-in .avatar-row img { animation: avatar-pop .5s var(--ease-press) both; }
.js-motion .is-in .avatar-row img:nth-child(2) { animation-delay: .06s; }
.js-motion .is-in .avatar-row img:nth-child(3) { animation-delay: .12s; }
.js-motion .is-in .avatar-row img:nth-child(4) { animation-delay: .18s; }
.js-motion .is-in .avatar-row img:nth-child(5) { animation-delay: .24s; }
@keyframes avatar-pop { from { opacity: 0; transform: translateY(6px) scale(.85); } to { opacity: 1; transform: none; } }
.tag-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: 2px; background: var(--amber-soft); color: var(--ink); border: 1.5px solid #E7C58A; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr; gap: 32px 18px; align-items: stretch; padding-top: 15px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plans .plan:last-child { grid-column: 1 / -1; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; }
.plan h2 { font-size: 26px; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.featured { border-color: var(--brand); border-bottom-color: var(--brand-edge); }
.plan .tag { position: absolute; top: -15px; left: 22px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 9px; background: var(--brand); color: var(--on-brand); }
.beta-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; max-width: 860px; }
.beta-note h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 480px) { .beta-note { grid-template-columns: 1fr; } }
.fine-print p { max-width: 860px; }
.nowrap { white-space: nowrap; }
.faq-list { max-width: 820px; }
.faq-list h2 { margin-bottom: 10px; }

/* compare table: a normal table on wide screens; on phones each feature becomes a row of three plan cells
   under a sticky plan header. Explicit ARIA roles keep it a table for screen readers in every layout. */
.tablewrap { border-radius: var(--r); border: 2px solid var(--line); border-bottom-width: 6px; background: var(--surface); }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare thead th { position: sticky; top: var(--header-h); z-index: 2; font-size: 15px; font-weight: 600; background: var(--bg-deep); border-bottom: 2px solid var(--line); }
table.compare thead th:first-child { border-top-left-radius: 18px; }
table.compare thead th:last-child { border-top-right-radius: 18px; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tbody th { font-weight: 500; }
table.compare tbody th .note { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
table.compare tr.group th { padding: 22px 16px 8px; font-size: 14px; font-weight: 600; color: var(--brand); text-align: left; letter-spacing: .01em; background: var(--surface); }
table.compare tbody:last-child tr:last-child > * { border-bottom: 0; }
table.compare .price-row th, table.compare .price-row td { background: var(--sage-soft); }
table.compare tbody:last-child tr:last-child th { border-bottom-left-radius: 16px; }
table.compare tbody:last-child tr:last-child td:last-child { border-bottom-right-radius: 16px; }
table.compare .feat-col { width: 34%; }
.yes { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--on-brand); align-items: center; justify-content: center; vertical-align: middle; }
.yes svg { width: 15px; height: 15px; }
.no { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; color: var(--muted); vertical-align: middle; }
.no svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  table.compare, table.compare thead, table.compare tbody { display: block; }
  table.compare { font-size: 15px; }
  table.compare thead { position: sticky; top: var(--header-h); z-index: 2; }
  table.compare thead th { position: static; }
  table.compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.compare thead th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }
  table.compare thead th { padding: 12px 6px; font-size: 14px; border-radius: 0; }
  table.compare thead th:nth-child(2) { border-top-left-radius: 18px; }
  table.compare tbody th[scope="row"] { grid-column: 1 / -1; padding: 14px 14px 2px; border-bottom: 0; }
  table.compare tbody td { padding: 8px 6px 14px; text-align: center; }
  table.compare tr.group th { grid-column: 1 / -1; padding: 20px 14px 6px; border-bottom: 1px solid var(--line); }
  table.compare tbody:last-child tr:last-child td:first-of-type { border-bottom-left-radius: 16px; }
  table.compare tbody:last-child tr:last-child th { border-radius: 0; }
  table.compare .feat-col { width: auto; }
}

/* FAQ */
details.faq { border-bottom: 2px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding-block: 12px; border-radius: 8px; }
details.faq summary::-webkit-details-marker, .toc-card summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--sage-soft); color: var(--brand); font-weight: 700; transition: transform .25s var(--ease-out); }
details.faq[open] summary::after { content: '\2212'; transform: rotate(180deg); }
details.faq summary:hover { color: var(--brand); }
details.faq p { margin: 0 0 16px; color: var(--muted); max-width: 44em; }
.js-motion details.faq[open] p { animation: faq-open .32s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* prose (legal, about) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--header-h) - 44px); overflow: auto; padding-bottom: 6px; }
.safety-notice p { font-size: 15px; }
.toc-card { padding: 10px 18px; }
.toc-card summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-radius: 8px; }
.toc-card summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.toc-card[open] summary::after { content: '\2212'; }
.toc-part { margin-top: 8px; font-weight: 600; font-size: 15px; }
.toc-part a, .toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.toc-part a:hover, .toc a:hover { color: var(--brand); text-decoration: underline; }
ol.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; font-size: 14px; line-height: 1.35; }
.legal { max-width: 740px; gap: 14px; }
.legal h2 { font-size: 30px; margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 20px; margin-top: 14px; }
.legal h2, .legal h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal ul.alpha { list-style: none; padding-left: 18px; }
mark.ph { background: #FCEFD6; color: #7A4A06; border-radius: 5px; padding: 0 4px; font-weight: 600; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-aside { position: static; max-height: none; overflow: visible; }
}

/* footer */
.site-footer { margin-top: 24px; border-top: 2px solid var(--line); background: var(--bg-deep); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 24px; justify-content: space-between; align-items: flex-start; padding-block: 32px 40px; }
.footer-brand { gap: 8px; max-width: 360px; }
.footer-brand .logo { align-self: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -10px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 10px; transition: background-color .18s ease; }
.site-footer nav a:hover { background: color-mix(in srgb, var(--sage) 30%, transparent); }
.site-footer a.plain { color: inherit; }
.site-footer .emergency { color: var(--danger-ink); font-weight: 600; }
.footer-legal { width: 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--line); }
.footer-legal a { color: inherit; }

/* logo intro: once per visit the snake swings into its coil and flicks its tongue (motion only) */
.js-motion.intro .site-header .logo-snake { transform-box: fill-box; transform-origin: 40% 90%; animation: logo-slither 1.05s var(--ease-out) .1s both; }
.js-motion.intro .site-header .logo-tongue { transform-box: fill-box; transform-origin: 0 50%; animation: logo-flick .6s ease-in-out 1s both; }
.js-motion.intro .site-header .logo-oil { animation: logo-rise .55s var(--ease-out) .3s both; }
@keyframes logo-slither { 0% { transform: translateX(-8%) rotate(-14deg); } 30% { transform: translateX(3%) rotate(7deg); } 55% { transform: rotate(-4deg); } 78% { transform: rotate(1.5deg); } 100% { transform: none; } }
@keyframes logo-flick { 0% { transform: scaleX(1); } 20% { transform: scaleX(0); } 45% { transform: scaleX(1.15); } 65% { transform: scaleX(.3); } 85% { transform: scaleX(1.1); } 100% { transform: scaleX(1); } }
@keyframes logo-rise { from { transform: translateY(10px); } to { transform: none; } }

/* entrances: content only hides once JS has said it will reveal it (.js-motion), and each element animates once */
.js-motion [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
.js-motion .hero-demo { animation: hero-rise .8s var(--ease-out) .12s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn .ripple { display: none; }
  .btn:hover, .btn:active { transform: none; }
}
@media print {
  .site-header, .skip-link, .demo-overlay, .demo-bar { display: none !important; }
  [data-reveal], .hero-demo { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* Share Coil ----------------------------------------------------------------------------------------------- */
.share-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-line p { margin: 0; font-weight: 600; }
.share-card { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; border-color: var(--coral); }
.share-card .share-copy { flex: 1 1 320px; }
@media (max-width: 560px) { .share-card .btn-row, .share-card .btn { width: 100%; } }
.btn[data-share] { white-space: normal; height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 10px; line-height: 1.2; text-align: center; }
.btn.small[data-share] { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
