/* Family Window website. System fonts only: the sportscoaching.ai CSP allows
   fonts from 'self' and data: only. Colours are tokens; text pairs are checked
   for WCAG contrast (body text AAA, small text AA) in light and dark. */
:root {
  color-scheme: light dark;
  /* Surfaces */
  --bg: #fbf7f1;
  --bg-2: #f4ece1;
  --bg-3: #efe4d5;
  --surface: #ffffff;
  --surface-2: #fffcf8;
  /* Text */
  --text: #1d2a26;
  --muted: #4a5853;        /* 7.0:1 on --bg (AAA) */
  --subtle: #5f6d68;       /* 5.1:1 on --bg (AA) */
  --line: #e6ddd0;
  --line-2: #d9cebf;
  /* Brand */
  --brand: #1f6b5c;        /* 5.9:1 on --bg */
  --brand-2: #2b8a76;
  --brand-deep: #134a40;
  --brand-ink: #ffffff;
  --brand-soft: #dcefe8;
  --accent: #e8825f;       /* decorative only */
  --accent-ink: #b04a28;   /* coral for text: 5.1:1 on --bg */
  --accent-soft: #fde7dc;
  --accent-btn: #bb502c;   /* white text on it: 4.9:1 */
  --danger: #b3261e;
  --focus: #e8825f;
  /* Depth */
  --shadow-sm: 0 1px 2px rgba(31, 61, 52, 0.06), 0 2px 8px -4px rgba(31, 61, 52, 0.12);
  --shadow: 0 1px 2px rgba(31, 61, 52, 0.05), 0 24px 48px -28px rgba(31, 61, 52, 0.38);
  --shadow-lg: 0 40px 80px -40px rgba(31, 61, 52, 0.5), 0 12px 24px -16px rgba(31, 61, 52, 0.25);
  /* Shape, type and space */
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --serif: ui-serif, 'New York', 'Iowan Old Style', Charter, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-sm: 15px;
  --fs-base: 18px;
  --fs-lg: 20px;
  --fs-xl: clamp(19px, 1.6vw, 21px);
  --fs-h3: 20px;
  --fs-h2: clamp(30px, 4vw, 42px);
  --fs-h1: clamp(40px, 6.2vw, 66px);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --bg-2: #151c19;
    --bg-3: #1a2420;
    --surface: #1a2320;
    --surface-2: #1d2724;
    --text: #edf2ef;
    --muted: #b4c0bb;      /* 9.8:1 */
    --subtle: #98a6a0;     /* 6.9:1 */
    --line: #273430;
    --line-2: #33433e;
    --brand: #7fd0b9;      /* 10:1 */
    --brand-2: #9fdcca;
    --brand-deep: #134a40;
    --brand-ink: #0b1714;
    --brand-soft: #1b332d;
    --accent: #f2a283;
    --accent-ink: #f4ab8f; /* 9.7:1 */
    --accent-soft: #35261f;
    --accent-btn: #bb502c;
    --danger: #ff8a80;
    --focus: #f4ab8f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px -4px rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 12px 24px -16px rgba(0, 0, 0, 0.6);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs-base)/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
::selection { background: color-mix(in srgb, var(--brand-2) 30%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); min-height: var(--header-h); flex-wrap: wrap; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.015em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #34a08a, #1f6b5c 60%, #134a40); display: grid; place-items: center; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -10px #1f6b5c; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.site-nav { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; font-size: 16px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 550; transition: color 0.2s ease, background-color 0.2s ease; }
.site-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.site-nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
.site-nav a.nav-cta { color: var(--brand-ink); background: var(--brand); margin-left: var(--s-2); padding: 8px 16px; box-shadow: var(--shadow-sm); }
.site-nav a.nav-cta:hover { background: var(--brand-2); color: var(--brand-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 16px; font-weight: 650; font-size: 17px; letter-spacing: -0.005em; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateY(2px); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand)); color: var(--brand-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 30px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn-ghost { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hero */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--brand); background: color-mix(in srgb, var(--surface) 70%, var(--brand-soft)); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow svg { flex: none; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.025em; margin: var(--s-5) 0 var(--s-5); text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0.04em; right: 0.02em; bottom: 0.04em; height: 0.14em; border-radius: 999px; background: var(--accent); opacity: 0.55; z-index: -1; }
.hero .lead { font-size: var(--fs-xl); line-height: 1.6; color: var(--muted); max-width: 33em; margin: 0 0 var(--s-6); text-wrap: pretty; }
.actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.note-soon { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--subtle); margin: var(--s-5) 0 0; }
.note-soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* Background glow */
.aurora { position: absolute; inset: -30% -10% 0 -10%; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 44vmax; height: 44vmax; border-radius: 50%; filter: blur(80px); opacity: 0.7; }
.aurora span:nth-child(1) { background: var(--brand-soft); left: -12%; top: 0; }
.aurora span:nth-child(2) { background: var(--accent-soft); right: -12%; top: 10%; }
.aurora span:nth-child(3) { background: color-mix(in srgb, var(--brand-2) 16%, transparent); left: 35%; top: 40%; width: 28vmax; height: 28vmax; }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; padding: var(--s-4) 0; }
.blob { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%), radial-gradient(closest-side at 70% 30%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 76%); filter: blur(10px); z-index: 0; }
.phone { position: relative; z-index: 1; width: min(316px, 74vw); aspect-ratio: 9 / 19; border-radius: 50px; background: linear-gradient(150deg, #3a4542, #141a18 40%, #0c100f); padding: 11px; box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255, 255, 255, 0.09) inset, 0 0 0 1px rgba(0, 0, 0, 0.35); transform: rotate(-2.5deg); }
.phone::before { content: ''; position: absolute; right: -3px; top: 22%; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2a3331; }
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #c7856a; }
.screen .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .island { position: absolute; top: 10px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 999px; background: #0a0d0c; z-index: 3; }
.screen .statusbar { position: absolute; top: 12px; left: 26px; right: 22px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 12px; font-weight: 650; z-index: 2; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.screen .statusbar svg { display: inline-block; }
.screen .who { position: absolute; left: 16px; top: 52px; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.25; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); z-index: 2; }
.screen .who small { display: flex; align-items: center; gap: 6px; font-weight: 550; opacity: 0.92; font-size: 12px; }
.screen .who small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6ee7c2; }
.screen .pip { position: absolute; right: 12px; top: 50px; width: 76px; height: 101px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); z-index: 2; }
.screen .pip img { width: 100%; height: 100%; object-fit: cover; }
.caption { position: absolute; left: 10px; right: 10px; bottom: 84px; z-index: 2; background: rgba(14, 20, 18, 0.8); color: #fff; border-radius: 20px; padding: 13px 16px 15px; font-size: 21px; line-height: 1.28; font-weight: 650; letter-spacing: -0.005em; -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.caption .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fe8d2; margin-bottom: 4px; }
.caption .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fd3ad; box-shadow: 0 0 0 3px rgba(95, 211, 173, 0.25); }
.caption .words { min-height: 3.84em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: #9fe8d2; }
.controls { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 2; }
.controls span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.controls span.end { background: #e2493b; width: 62px; border-radius: 24px; box-shadow: 0 8px 18px -8px #e2493b; }

/* Floating chips */
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; font-size: 14px; font-weight: 650; line-height: 1.3; box-shadow: var(--shadow); white-space: nowrap; }
.chip small { display: block; font-weight: 500; color: var(--subtle); font-size: 12.5px; }
.chip .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.chip .dot.warm { background: var(--accent-soft); color: var(--accent-ink); }
.chip-1 { left: -2%; top: 30%; }
.chip-2 { right: -4%; top: 44%; }
.chip-3 { left: -6%; top: 56%; }

/* Sections */
section { padding: var(--section) 0; }
.section-alt { background: var(--bg-2); position: relative; }
.section-alt::before, .section-alt::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }
.section-head { max-width: 660px; margin: 0 0 var(--s-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .prose h1, .prose h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.018em; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.12; margin: 0 0 var(--s-4); text-wrap: balance; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.6; margin: 0; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 var(--s-3); }
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.section-head.center .kicker::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6) 28px 30px; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; margin: var(--s-5) 0 var(--s-2); }
.feature p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 60%, var(--surface))); color: var(--brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent) inset; }
.icon.warm { background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--surface))); color: var(--accent-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) inset; }

/* Try it */
.tryit { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.demo-screen { position: relative; isolation: isolate; border-radius: var(--radius-lg); padding: var(--s-5); aspect-ratio: 4 / 3.3; min-height: 320px; display: flex; align-items: flex-end; background: #c7856a; box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; border: 8px solid #141a18; }
.demo-screen .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; z-index: -1; }
.demo-screen .live-tag { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(14, 20, 18, 0.6); color: #fff; font-size: 13px; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-screen .live-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fd3ad; }
.demo-caption { width: 100%; background: rgba(14, 20, 18, 0.82); color: #fff; border-radius: 20px; padding: 16px 22px; font-weight: 650; line-height: 1.25; font-size: 30px; transition: font-size 0.2s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.demo-controls { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.demo-controls label, .control-label { display: block; font-weight: 650; margin: 0 0 var(--s-2); }
.range-row { display: flex; align-items: center; gap: var(--s-3); }
.range-row .a { font-size: 15px; font-weight: 650; color: var(--subtle); }
.range-row .a.big { font-size: 24px; }
input[type='range'] { width: 100%; padding: 0; border: 0; background: transparent; accent-color: var(--brand); height: 36px; cursor: pointer; }
input[type='range']:focus { outline: none; }
input[type='range']:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { margin: 0; min-height: 44px; padding: 0 18px; background: transparent; color: var(--text); border-radius: 10px; font-weight: 650; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.seg button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.35); }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ''; position: absolute; top: 52px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, #34a08a, #1f6b5c 65%); color: #fff; font: 600 22px/1 var(--serif); margin-bottom: var(--s-5); box-shadow: 0 0 0 6px var(--surface), 0 10px 20px -10px #1f6b5c; }
.steps h3 { margin: 0 0 var(--s-2); font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

/* Promise */
.promise { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.promise .section-head { margin-bottom: 0; }
.seal { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: var(--s-5); color: #fff; background: linear-gradient(145deg, #34a08a, #1f6b5c 55%, #134a40); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 36px -18px #1f6b5c; }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.promise li { display: flex; flex-direction: column; gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.promise li svg { flex: none; color: var(--brand); width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--brand-soft); }
.promise li strong { display: block; font-size: 18px; margin-bottom: 2px; }
.promise li span { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Call to action (always deep teal, so its white text keeps its contrast in dark mode) */
.cta { text-align: center; padding-top: var(--s-7); }
.cta-card { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #2b8a76 0%, transparent 55%), radial-gradient(80% 80% at 100% 100%, rgba(232, 130, 95, 0.32) 0%, transparent 60%), linear-gradient(150deg, #1f6b5c, #134a40); color: #fff; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 56px); box-shadow: var(--shadow-lg); }
.cta-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.cta-card .cta-icon { width: 60px; height: 60px; margin: 0 auto var(--s-5); border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset; }
.cta-card h2 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.018em; margin: 0 0 var(--s-3); text-wrap: balance; }
.cta-card p { margin: 0 auto var(--s-6); max-width: 32em; color: rgba(255, 255, 255, 0.9); font-size: var(--fs-lg); }
.cta-card a:focus-visible, .cta-card input:focus-visible, .cta-card button:focus-visible { outline-color: #ffd2bf; }

/* Content pages */
body:has(> main.page-hero) { background: radial-gradient(900px 420px at 15% -80px, var(--brand-soft), transparent 70%), radial-gradient(700px 380px at 95% -60px, var(--accent-soft), transparent 70%), var(--bg); background-repeat: no-repeat; }
.page-hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: var(--s-7); }
.prose { max-width: calc(68ch + 2 * clamp(16px, 4vw, 32px)); }
.prose h1 { font-size: clamp(36px, 5.5vw, 54px); line-height: 1.06; letter-spacing: -0.022em; margin: 0 0 var(--s-4); text-wrap: balance; }
.prose h2 { font-size: clamp(25px, 3vw, 30px); line-height: 1.2; margin: var(--s-7) 0 var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.prose h3 { font-size: var(--fs-h3); line-height: 1.35; margin: var(--s-6) 0 var(--s-1); letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text); line-height: 1.72; }
.prose .kicker { color: var(--accent-ink); }
.prose .note { color: var(--subtle); }
.card form > label:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin: var(--s-2) 0; }
.prose ul li::before { content: ''; position: absolute; left: 6px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); opacity: 0.85; }
.prose ol { padding-left: 24px; }
.prose ol li { margin: var(--s-2) 0; padding-left: 4px; }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.lead-text { font-size: var(--fs-xl); line-height: 1.6; color: var(--muted) !important; }
.meta { display: inline-flex; align-items: center; gap: 8px; color: var(--subtle) !important; font-size: var(--fs-sm); margin: 0 0 var(--s-5); padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tr:nth-child(odd) td { background: color-mix(in srgb, var(--bg-2) 35%, transparent); }
th { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); margin: var(--s-6) 0; box-shadow: var(--shadow); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 14px; padding: 16px 20px; margin: var(--s-5) 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin: var(--s-3) 0; box-shadow: var(--shadow-sm); transition: border-color 0.2s ease, box-shadow 0.3s var(--ease); }
details:hover { border-color: var(--line-2); }
details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
details summary { cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(var(--brand), var(--brand)) center / 13px 2.5px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2.5px 13px no-repeat, var(--brand-soft); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: var(--s-2); }
details[open] > :not(summary) { animation: open-in 0.35s var(--ease); }

/* Forms (delete account) */
label { display: block; font-weight: 650; margin: var(--s-4) 0 6px; }
input { width: 100%; font: inherit; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
button { font: inherit; font-weight: 650; margin-top: 18px; padding: 12px 24px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); cursor: pointer; min-height: 52px; transition: transform 0.25s var(--ease), background-color 0.2s ease, box-shadow 0.25s var(--ease); }
button:hover:not(:disabled) { transform: translateY(-1px); }
button.danger { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { button.danger { background: #c4362c; } }
button:disabled { opacity: 0.6; cursor: default; }
.note { color: var(--subtle); font-size: var(--fs-sm); }
.status { margin-top: 14px; font-weight: 650; }
.status.error { color: var(--danger); }
.status.ok { color: var(--brand); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { position: relative; margin-top: var(--s-8); padding: var(--s-8) 0 var(--s-7); color: var(--muted); font-size: var(--fs-sm); background: var(--bg-2); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6) var(--s-7); align-items: start; }
.footer-brand p { margin: var(--s-3) 0 0; max-width: 30em; line-height: 1.6; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--s-2) var(--s-7); justify-content: end; }
.site-footer nav a { color: var(--muted); text-decoration: none; padding: 4px 0; font-weight: 550; }
.site-footer nav a:hover { color: var(--brand); }
.footer-legal { grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--subtle); font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .chip-1 { left: -4%; }
  .chip-3 { left: -4%; }
}
@media (max-width: 860px) {
  .hero .wrap, .promise, .tryit { grid-template-columns: 1fr; }
  .hero .wrap > :first-child { text-align: left; }
  .features, .steps { grid-template-columns: 1fr; gap: var(--s-4); }
  .steps::before { top: 40px; bottom: 40px; left: 52px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 16px); }
  .phone { transform: none; width: min(292px, 76vw); }
  .chip { font-size: 13px; padding: 8px 12px 8px 8px; }
  .chip small { font-size: 12px; }
  .chip .dot { width: 28px; height: 28px; }
  .chip-1 { left: 0; top: 30%; }
  .chip-2 { right: 0; top: 47%; }
  .chip-3 { display: none; }
  .demo-screen { aspect-ratio: 1; min-height: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: start; }
}
@media (max-width: 600px) {
  :root { --fs-base: 17.5px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 6px; }
  :root { --header-h: 104px; }
  .site-header .wrap { gap: 2px; }
  .site-nav { flex-wrap: nowrap; gap: 2px; margin: 0 -12px; width: calc(100% + 24px); overflow-x: auto; scrollbar-width: none; }
  .site-nav a { padding: 6px 12px; white-space: nowrap; font-size: 15.5px; }
  .site-nav a.nav-cta { display: none; }
  .features .feature { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 22px 20px; }
  .feature .icon { grid-row: span 2; }
  .feature h3 { margin: 2px 0 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 20px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps h3 { margin: 8px 0 0; }
  .steps::before { left: 44px; }
  .promise ul { grid-template-columns: 1fr; }
  .promise li { flex-direction: row; align-items: flex-start; gap: var(--s-4); padding: 18px; }
  .demo-caption { padding: 14px 16px; }
  .demo-screen { padding: var(--s-4); border-width: 6px; }
  .actions .btn { flex: 1 1 auto; }
}

/* Motion. Everything is visible without JS; motion is skipped for people who
   ask for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3n + 3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.tryit .reveal + .reveal { transition-delay: 0.1s; }
@keyframes open-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .phone-stage { animation: rise 1.1s 0.15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  .aurora span { animation: drift 20s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation-duration: 24s; animation-delay: -6s; }
  .aurora span:nth-child(3) { animation-duration: 28s; animation-delay: -12s; }
  @keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, 8%) scale(1.12); } }
  .chip { animation: float 7s ease-in-out infinite; }
  .chip-2 { animation-delay: -2.3s; }
  .chip-3 { animation-delay: -4.6s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .phone { animation: tilt 10s ease-in-out infinite; }
  @keyframes tilt { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(-1.2deg) translateY(-8px); } }
  .caret { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .note-soon::before { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 860px) {
  .phone { animation: none; }
}

/* Notify me */
.notify-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; flex-wrap: wrap; justify-content: center; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset; }
.notify-form input[type='email'] { flex: 1 1 240px; min-height: 54px; background: #fff; color: #1d2a26; border: 0; font-size: 17px; border-radius: 14px; }
.notify-form input[type='email']:focus { box-shadow: 0 0 0 4px rgba(255, 210, 191, 0.6); }
.notify-form input[type='email']::placeholder { color: #66736e; }
.notify-form .btn { flex: 0 0 auto; margin: 0; min-height: 54px; border-radius: 14px; background: var(--accent-btn); color: #fff; box-shadow: 0 10px 22px -12px #000; }
.notify-form .btn:hover { background: #a8431f; transform: translateY(-1px); }
.notify-status { min-height: 1.5em; margin: 16px 0 0 !important; font-weight: 650; color: #fff !important; }
.notify-status.error { color: #ffd6c9 !important; }
.notify-fine { font-size: 14px !important; margin: 4px auto 0 !important; color: rgba(255, 255, 255, 0.82) !important; }
.notify-fine a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
