/* Trial&Tally site. System fonts only; nothing loaded from other sites.
   Colors come from the app: outcome green/yellow/red (Theme.swift), the icon's blue, and the
   student tab colors (StudentPalette). Text pairs are 4.5:1 or better in light and dark mode. */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --card: #ffffff;
  --ink: #0f1b2d;
  --muted: #4a5568;
  --line: #d9e1ec;
  --blue: #2468ce;          /* the icon's "T&T" blue; 5.0:1 on white */
  --link: #1d58b3;
  --on-blue: #ffffff;
  --focus: #1d58b3;
  --green: #1b7a34;         /* app: correct */
  --yellow: #f6c324;        /* app: prompted */
  --yellow-soft: #f7cd4c;
  --yellow-tint: #fdf1c7;
  --red: #c0262d;           /* app: incorrect */
  --danger: #a51f27;
  --app-bg: #f2f2f7;        /* iOS grouped background */
  --app-card: #ffffff;
  --app-muted: #5f6368;
  --tab-blue: #1f5fbf;
  --tab-blue-tint: #e3ecf9;
  --tab-purple: #7b3fa0;
  --tab-purple-tint: #efe6f5;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px rgba(15, 27, 45, .10);
  --radius: 20px;
  --header-h: 60px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --bg-soft: #141f31;
    --card: #1a2538;
    --ink: #eef2f8;
    --muted: #b4bfce;
    --line: #2c3a52;
    --blue: #7fb0ff;
    --link: #8ab8ff;
    --on-blue: #0b1322;
    --focus: #8ab8ff;
    --yellow-tint: #4a3d0c;
    --app-bg: #000000;
    --app-card: #1c1c1e;
    --app-muted: #a8a8b0;
    --tab-blue: #8db4f5;
    --tab-blue-tint: #15243d;
    --tab-purple: #cfa8ec;
    --tab-purple-tint: #2a1838;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.sr-only {
  position: absolute !important; 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: -9999px; top: 8px; z-index: 100; background: var(--bg); color: var(--link);
  padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15, 23, 36, .92); }
  @supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .site-header { background: rgba(15, 23, 36, .78); }
  }
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.site-nav { margin-left: auto; }
.site-nav ul, .footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 10px; }
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); background: var(--card); }
.lang a:hover { border-color: var(--link); }
@media (max-width: 759px) {
  .nav-anchor { display: none; }
  .page-home .site-nav { margin-left: auto; }
  .page-home .lang { margin-left: 0; }
  body:not(.page-home) .site-nav { order: 3; width: 100%; margin: 0 0 0 -10px; }
  body:not(.page-home) .lang { margin-left: auto; }
}
@media (max-width: 359px) {
  .brand span { font-size: 1rem; }
  .site-nav a { padding: 0 6px; }
  .lang a { padding: 0 10px; }
}

/* ---------------------------------------------------------------- buttons & store */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-quiet { background: var(--app-card); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--link); }
.btn-clear, .btn-danger { background: var(--danger); color: #fff; }
.btn-clear:hover, .btn-danger:hover { background: #8c1a21; }

.store { margin: 24px 0 12px; display: flex; flex-wrap: wrap; align-items: center; }
/* Apple: badge at least 40 px tall, clear space of a quarter of its height around it. */
.store-badge { display: inline-block; padding: 0; margin: 0; line-height: 0; border-radius: 9px; }
.store-badge img { height: 50px; width: auto; display: block; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px;
  border-radius: 12px; background: #000; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
}
@media (prefers-color-scheme: dark) { .store-soon { box-shadow: 0 0 0 1px #a6a6a6; } }
.store-soon svg { width: 20px; height: 20px; flex: none; }
.price-line { font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- phone mockup */
.phone {
  --w: 240px;
  position: relative; width: var(--w); max-width: 100%;
  padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .16);
  background: #0c0f14; box-shadow: var(--shadow), inset 0 0 0 2px #2a2f38;
  margin: 0 auto;
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .125); background: #f2f2f7; }
.phone::before { /* the Dynamic Island */
  content: ""; position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .065); width: calc(var(--w) * .27); height: calc(var(--w) * .08);
  border-radius: 999px; background: #0c0f14;
}
@media (min-width: 900px) { .phone { --w: 300px; } }

/* ---------------------------------------------------------------- hero */
.hero {
  padding: 32px 0 56px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(36, 104, 206, .12), transparent 60%),
    radial-gradient(40rem 24rem at -10% 20%, rgba(46, 156, 79, .08), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}
.hero-brand { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.hero-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero-icon {
  position: relative; display: block; width: 88px; height: 88px; flex: none;
  border-radius: 22.37%; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 27, 45, .08), 0 8px 24px rgba(36, 104, 206, .22);
}
.hero-icon img, .hero-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero h1 { font-size: clamp(2.6rem, 10.5vw, 5.25rem); font-weight: 850; letter-spacing: -.03em; word-spacing: .06em; line-height: 1; margin: 0 0 20px; }
.hero-lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 0; }
.hero .store { margin-top: 28px; }
.hero-try a { display: inline-block; padding: 10px 0; font-weight: 700; }
.hero-try a::after { content: "\00a0↓"; }
.hero-phone { display: flex; justify-content: center; }

/* Icon animation: bars rise, then the check draws itself. Off under reduced motion (end state). */
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
.check { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bar { animation: bar-rise .7s cubic-bezier(.2, .9, .25, 1.15) both; }
  .bar-1 { animation-delay: .15s; }
  .bar-2 { animation-delay: .3s; }
  .bar-3 { animation-delay: .45s; }
  .check { animation: check-draw .45s .95s ease-out both; }
}
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-soft { background: var(--bg-soft); }
.section-title { max-width: 22em; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.section-more a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------------------------------------------------------------- demo */
.demo-section { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-top: 1px solid var(--line); }
.demo-grid { display: grid; gap: 24px; align-items: start; }
.demo-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: .9fr 1.1fr; grid-template-areas: "intro demo" "more demo"; grid-template-rows: auto 1fr; gap: 8px 56px; }
  .demo-intro { grid-area: intro; } .demo { grid-area: demo; } .demo-more { grid-area: more; }
}
.demo-intro p { margin: 0; }
.demo-intro p { color: var(--muted); font-size: 1.1rem; }
.demo-hints { list-style: none; padding: 0; margin: 0 0 20px; }
.demo-hints li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: baseline; margin: 10px 0; color: var(--muted); }
.demo-hints strong { color: var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(1px); }
.dot-green { background: var(--green); } .dot-yellow { background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); } .dot-red { background: var(--red); }
.demo-note { font-size: .98rem !important; color: var(--ink) !important; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 12px 14px; }

.demo {
  width: 100%; max-width: 460px; margin: 0 auto;
  background: var(--app-bg); color: var(--ink);
  border-radius: 30px; padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.demo-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.demo-bar .demo-undo { justify-self: start; }
.demo-bar-title { font-weight: 700; }
.demo-bar button, .link-btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; border-radius: 999px;
}
.demo-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--app-card); color: var(--ink); border: 1px solid var(--line); }
.demo-bar button svg { width: 20px; height: 20px; flex: none; }
.demo-bar button:disabled { color: var(--app-muted); cursor: default; opacity: .7; }
.demo-tabs { display: flex; gap: 10px; margin: 0 0 14px; }
.demo-tab {
  --tab-color: var(--tab-blue); --tab-tint: var(--tab-blue-tint);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 76px; justify-content: center;
  padding: 0 18px; border-radius: 999px; border: 3px solid var(--tab-color); background: var(--tab-tint);
  color: var(--tab-color); font: inherit; font-weight: 800; font-size: 1.15rem; cursor: pointer;
}
.tab-purple { --tab-color: var(--tab-purple); --tab-tint: var(--tab-purple-tint); }
.demo-tab[aria-selected="true"] { background: var(--tab-color); color: #fff; }
@media (prefers-color-scheme: dark) { .demo-tab[aria-selected="true"] { color: #0b0b0d; } }
.tab-check { width: 20px; height: 20px; display: none; }
.demo-tab[aria-selected="true"] .tab-check { display: block; }

.goal-card { background: var(--app-card); border-radius: 18px; padding: 16px; }
.goal-card:focus-visible { outline-offset: 2px; }
.goal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.goal-head > div { min-width: 0; }
.goal-title { font-size: 1.1rem; margin: 0 0 4px; letter-spacing: 0; }
.goal-counts { color: var(--app-muted); font-size: .95rem; margin: 0; }
.phrase { display: inline-block; }
.goal-pct { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: -4px 0 0; line-height: 1.1; min-width: 3ch; text-align: right; white-space: nowrap; flex: none; }
.goal-pct.is-empty { color: var(--app-muted); font-weight: 500; }
.goal-step { display: grid; gap: 10px; }
.goal-step[hidden] { display: none; }
.big {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 64px; padding: 6px 10px; border-radius: 14px; border: 0;
  font: inherit; font-size: 1.25rem; font-weight: 750; cursor: pointer; line-height: 1.2;
  transition: transform .08s ease, filter .08s ease;
}
.big svg { width: 24px; height: 24px; flex: none; }
.big:active { transform: scale(.97); filter: brightness(.9); }
.big:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.big-correct { background: var(--green); color: #fff; }
.big-prompted { background: var(--yellow); color: #000; }
.big-incorrect { background: var(--red); color: #fff; }
.big-prompt { background: var(--yellow-soft); color: #000; min-height: 56px; font-size: 1.15rem; }
.prompt-grid, .result-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.step-label { justify-self: start; background: var(--yellow-tint); color: var(--ink); border-radius: 10px; padding: 4px 12px; font-weight: 650; margin: 0; }
.step-links { display: flex; justify-content: space-between; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--link); padding: 0 6px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; }
.demo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.demo-actions .btn { padding: 0 12px; }
.demo-summary { min-width: 0; overflow: hidden; margin-top: 14px; background: var(--app-card); border-radius: 18px; padding: 14px 16px; }
@media (max-width: 420px) { .demo { padding: 10px; border-radius: 24px; } .demo-summary { padding: 12px; } }
.demo-summary h3 { font-size: 1rem; margin-bottom: 8px; }
.demo-summary pre {
  margin: 0; padding: 4px 0 6px; overflow-x: auto; font: clamp(.66rem, 2.75vw, .8rem)/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink); white-space: pre;
}
.demo-summary pre:empty { display: none; }
.demo-empty { color: var(--app-muted); margin: 0; }
.demo-noscript { margin: 12px 0 0; font-weight: 600; }
.demo-dialog {
  border: 0; border-radius: 20px; padding: 20px; width: min(360px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.demo-dialog::backdrop { background: rgba(15, 23, 36, .5); }
.demo-dialog h3 { font-size: 1.2rem; }
.demo-dialog p { color: var(--muted); }
.dialog-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }

/* ---------------------------------------------------------------- story */
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.story-step { display: grid; gap: 20px; align-items: center; }
.story-text { max-width: 30em; }
.story-text h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 8px; }
.story-text p { color: var(--muted); font-size: 1.08rem; }
.story-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); font-weight: 800;
}
.story-phone { display: none; }
@media (min-width: 700px) {
  .story-step { grid-template-columns: 1fr auto; gap: 40px; }
}
/* Sticky version: added by site.js only on wide screens without reduced motion. */
.story.is-sticky { display: grid; grid-template-columns: 1fr auto; gap: 56px; }
.story.is-sticky .story-steps { gap: 0; }
.story.is-sticky .story-step { display: flex; min-height: 72vh; align-items: center; }
.story.is-sticky .story-shot { display: none; }
/* The active step is marked by its number and a bar, not by fading the others (keeps 4.5:1 text). */
.story.is-sticky .story-text { border-left: 4px solid transparent; padding-left: 20px; margin-left: -24px; transition: border-color .3s ease; }
.story.is-sticky .story-num { background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .3s ease; }
.story.is-sticky .story-step.is-active .story-text { border-left-color: var(--blue); }
.story.is-sticky .story-step.is-active .story-num { background: var(--blue); color: var(--on-blue); box-shadow: none; }
.story.is-sticky .story-text h3 { font-size: 2rem; }
.story.is-sticky .story-text p { font-size: 1.2rem; }
.story.is-sticky .story-phone { display: block; position: sticky; top: max(calc(var(--header-h) + 20px), calc(50vh - 330px)); align-self: start; margin-top: 8vh; }
.story.is-sticky .story-phone .phone { --w: min(300px, calc((100vh - var(--header-h) - 60px) * .44)); }
.stack { position: relative; aspect-ratio: 1320 / 2868; }
.stack picture { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.stack picture.is-active { opacity: 1; }

/* ---------------------------------------------------------------- video */
.video-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .video-grid { grid-template-columns: 1fr auto; gap: 64px; } }
.video-copy p { color: var(--muted); font-size: 1.1rem; }
.video-steps { padding-left: 1.4em; margin: 0; }
.video-steps li { margin: 6px 0; font-weight: 600; }
.video-frame { width: min(320px, 82vw); margin: 0 auto; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 590 / 1280; border-radius: 28px; background: #1b7a34; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- calculator */
.calc-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.calc-grid > div:first-child p { color: var(--muted); font-size: 1.1rem; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input {
  font: inherit; font-size: 1.3rem; font-weight: 700; width: 8rem; min-height: 52px; padding: 0 12px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
}
.field input:focus-visible { border-color: var(--focus); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.calc-result { background: var(--bg-soft); border-radius: 14px; padding: 16px; margin-top: 8px; }
.calc-result-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.calc-result output { display: grid; gap: 2px; }
.calc-big { font-size: 1.6rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.calc-small { line-height: 1.35; }
.calc-small { font-size: 1.1rem; font-weight: 650; }
.calc-math { margin-top: 12px; }

/* ---------------------------------------------------------------- privacy, who, maker */
.privacy-list, .who-list { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.who-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.privacy-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.privacy-list li, .who-list li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.privacy-list svg { width: 32px; height: 32px; color: var(--green); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .privacy-list svg { color: #4cc36f; } }
.privacy-list p, .who-list p { color: var(--muted); margin: 0; }
.who-list li { border-top: 6px solid var(--green); }
.who-list li:nth-child(5n+2) { border-top-color: var(--yellow); }
.who-list li:nth-child(5n+3) { border-top-color: var(--red); }
.who-list li:nth-child(5n+4) { border-top-color: var(--blue); }
.who-list li:nth-child(5n+5) { border-top-color: var(--tab-purple); }
.maker { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.maker-copy { flex: 1 1 320px; max-width: 46em; }
.maker-copy > p { font-size: 1.15rem; color: var(--muted); }
.maker-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.maker-quote { margin: 20px 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--blue); }
.maker-quote blockquote { margin: 0; font-size: 1.2rem; font-weight: 600; }
.maker-quote figcaption, .maker-name { color: var(--muted); font-weight: 650; margin-top: 8px; }

/* ---------------------------------------------------------------- pricing & faq */
.pricing-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.price-card { background: var(--card); border: 2px solid var(--blue); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.price-card h2 { font-size: 1.6rem; }
.price-big { font-size: 1.4rem; line-height: 1.35; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin: 10px 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.faq h2 { font-size: 1.6rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 10px 0; font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--link); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------------------------------------------------------------- final call to action */
.cta { background: linear-gradient(160deg, #1d4f9e, #2468ce); color: #fff; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { border-radius: 22.37%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); margin-bottom: 20px; }
.cta h2 { color: #fff; }
.cta p { color: #eaf1fc; font-size: 1.15rem; }
.cta .price-line { color: #fff; }
.cta .store { justify-content: center; }
.cta :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0 40px; font-size: .98rem; }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.footer-brand img { border-radius: 22%; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; margin-right: 6px; font-weight: 600; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 12px 0 0 -11px; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--muted); }
.footer-social a:hover { color: var(--ink); background: var(--line); }
.footer-social svg { fill: currentColor; }
.footer-contact { margin: 0; }
.footer-contact a { display: inline-block; padding: 10px 0; }

/* ---------------------------------------------------------------- Support / Privacy / Terms */
.prose { max-width: 46rem; padding-top: 40px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 850; letter-spacing: -.035em; margin: 0 0 12px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 10px; letter-spacing: -.015em; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 6px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 8px 0; }
.prose a { word-break: break-word; }
.lead { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; }
.callout, .warning { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 24px 0; }
.warning { background: #fff4d6; color: #5a4300; border-color: #f0d68a; }
@media (prefers-color-scheme: dark) { .warning { background: #3a3014; color: #ffe08a; border-color: #5a4a1c; } }

/* ---------------------------------------------------------------- free data sheet */
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--link); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.download-note { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.sheet-preview { margin: 28px 0 8px; }
.sheet-preview img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.prose ol { padding-left: 1.4rem; }
.home-datasheet { margin: 20px 0 0; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
