/* saywind.com. Light by default (white and the icon's blue), dark in warm
   charcoal and ivory, as in the app (Sources/Saywind/Theme.swift). System
   fonts only; nothing loads from anywhere else. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --band: #f6fafe;
  --surface: #ffffff;
  --raised: #f3f8fd;
  --border: #e2ebf4;
  --border-strong: #c9d7e6;
  --hairline: rgba(62, 141, 211, 0.14);
  --control: #7d8ea2;
  --text: #14202c;
  --text-2: #55636f;
  --accent: #3e8dd3;
  --sky: #8cc6f0;
  --link: #2a74b7;
  --kicker: #2a74b7;
  --button: #2a74b7;
  --button-hover: #23659f;
  --on-button: #ffffff;
  --struck: #627080;
  --strike: #8cc6f0;
  --glow: rgba(140, 198, 240, 0.32);
  --stage: linear-gradient(180deg, #f3f8fd 0%, #ffffff 100%);
  --shadow-sm: 0 1px 2px rgba(20, 32, 44, 0.05), 0 2px 8px rgba(20, 32, 44, 0.04);
  --shadow-lg: 0 2px 6px rgba(20, 32, 44, 0.05), 0 18px 48px rgba(31, 79, 128, 0.12);
  --gust-from: #8cc6f0;
  --gust-to: #3e8dd3;

  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1b;
    --band: #202020;
    --surface: #222222;
    --raised: #2a2a2a;
    --border: #363636;
    --border-strong: #4a4a48;
    --hairline: rgba(244, 241, 232, 0.08);
    --control: #8f8c84;
    --text: #f4f1e8;
    --text-2: #b0ada4;
    --accent: #8cc6f0;
    --link: #9dd0f4;
    --kicker: #8cc6f0;
    --button: #f4f1e8;
    --button-hover: #fffdf0;
    --on-button: #1b1b1b;
    --struck: #9a978e;
    --strike: #5f8fb5;
    --glow: rgba(140, 198, 240, 0.14);
    --stage: linear-gradient(180deg, #232323 0%, #1b1b1b 100%);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px rgba(0, 0, 0, 0.45);
    --gust-from: #a7d3f3;
    --gust-to: #5aa5e6;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
figcaption { text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  overflow-wrap: break-word;
}

.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: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  margin-bottom: 14px;
  color: var(--kicker);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--button);
  color: var(--on-button);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: var(--button-hover); transform: translateY(-1px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; flex: none; }

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.button-secondary:hover { background: var(--raised); }

.button-small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
}

/* On a phone or tablet, Download buttons say "Get it on your Mac", and a
   note offers to send the link (app.js). Macs see the .on-mac words. */
.on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .on-touch { display: revert; }
  .on-mac { display: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 23px; }

.site-nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--raised); }
.header-cta { margin-left: auto; }

@media (min-width: 720px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Gust mark ---------- */

.gust-stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gust-from { stop-color: var(--gust-from); }
.gust-to { stop-color: var(--gust-to); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 56px 0 40px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 520px;
  z-index: -2;
  background: radial-gradient(60% 60% at 50% 30%, var(--glow), transparent 70%);
}

/* The gust mark sits above the kicker; the product sits beside the words
   from 1024 px, and under them below that. */
.hero-mark {
  width: 58px;
  height: 39px;
  margin: 0 auto 18px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}
.hero-copy { min-width: 0; }

.hero h1 {
  max-width: 13ch;
  margin: 0 auto;
  font-size: clamp(2.7rem, 1.3rem + 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 1.04;
  /* SF Pro Display already tightens itself at this size: any more and the
     comma tucks under the k, and the t touches the y. */
  letter-spacing: -0.022em;
}
.hero .lead {
  max-width: 34rem;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-actions .button { min-width: 200px; }

.fine-print {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14.5px;
}
.fine-print strong { color: var(--text); font-weight: 600; }

.touch-note {
  max-width: 26rem;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 15px;
}
.touch-note .button { margin-top: 12px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 720px) {
  .hero { padding: 88px 0 72px; }
  .hero + .section { padding-top: 72px; }
}

@media (min-width: 1024px) {
  .hero { padding: 72px 0 80px; text-align: left; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
  }
  .hero-mark { margin: 0 0 18px; }
  .hero h1 { margin: 0; font-size: clamp(3.4rem, 1.2rem + 3.6vw, 4.5rem); }
  .hero .lead { margin: 22px 0 0; }
  .hero-actions, .chips { justify-content: flex-start; }
  .touch-note { margin-left: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-band { background: var(--band); border-block: 1px solid var(--hairline); }
.section-head {
  max-width: 44rem;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h1, .section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head .lead { margin-top: 16px; }

@media (min-width: 720px) {
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- The illustration ---------- */

.illustration {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 0 0;
}

.illustration-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage {
  position: relative;
  padding: 18px 14px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--stage);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-window {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
}
.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mock-bar span {
  margin-left: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.mock-body { padding: 16px 18px 22px; }
.mock-field {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 14.5px;
}
.mock-field b { color: var(--text); font-weight: 500; }
.mock-text {
  position: relative;
  min-height: 5.4em;
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
}
/* The sentence lands whole, as the real app pastes it. */
.mock-sentence {
  opacity: 0;
  animation: text-land 10s infinite;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: caret 1s steps(1) infinite, caret-before 10s infinite;
}
/* One caret waits at the start; the other follows the words once they land. */
.caret-start { position: absolute; left: 0; top: 0.22em; margin-left: 0; }
.caret-end { animation: caret 1s steps(1) infinite, caret-after 10s infinite; }

.mock-pill {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 36px;
  margin-left: -64px;
  border-radius: 999px;
  background: rgba(27, 27, 27, 0.97);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 22px rgba(0, 0, 0, 0.28);
  opacity: 0;
  animation: pill 10s infinite;
}
@media (prefers-color-scheme: dark) {
  /* A lighter ring, so the dark pill stands out from the dark stage. */
  .mock-pill { box-shadow: 0 0 0 1px rgba(244, 241, 232, 0.22) inset, 0 8px 22px rgba(0, 0, 0, 0.5); }
}
.mock-bars, .mock-dots {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-bars i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #f4f1e8;
  transform: scaleY(0.25);
  animation: bar 0.9s ease-in-out infinite alternate;
}
.mock-bars i:nth-child(1), .mock-bars i:nth-child(11) { opacity: 0.55; animation-delay: -0.1s; }
.mock-bars i:nth-child(2), .mock-bars i:nth-child(10) { opacity: 0.65; animation-delay: -0.5s; }
.mock-bars i:nth-child(3), .mock-bars i:nth-child(9) { opacity: 0.75; animation-delay: -0.3s; }
.mock-bars i:nth-child(4), .mock-bars i:nth-child(8) { opacity: 0.85; animation-delay: -0.7s; }
.mock-bars i:nth-child(5), .mock-bars i:nth-child(7) { animation-delay: -0.2s; }
.mock-bars i:nth-child(6) { animation-delay: -0.6s; }
.mock-bars { animation: bars-show 10s infinite; }
.mock-dots { opacity: 0; animation: dots-show 10s infinite; }
.mock-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4f1e8;
  animation: dot 0.8s ease-in-out infinite;
}
.mock-dots i:nth-child(2) { animation-delay: 0.15s; }
.mock-dots i:nth-child(3) { animation-delay: 0.3s; }

.mock-key {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  animation: key 10s infinite;
}

.illustration figcaption {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 14.5px;
  text-align: center;
}
@media (min-width: 1024px) {
  .illustration figcaption { text-align: left; margin-left: 0; }
}

/* The loop, 10 s: fn goes down at 0.6 s and the pill listens; fn comes up
   at 4.6 s, the dots show for a fifth of a second, then the sentence lands
   in one go (a 150 ms fade) and the pill gets out of the way. */
@keyframes text-land {
  0%, 48% { opacity: 0; transform: translateX(-6px); }
  49.5%, 92% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes pill {
  0%, 6% { opacity: 0; transform: translateY(8px) scale(0.92); }
  8%, 48% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: translateY(6px) scale(0.96); }
}
@keyframes bars-show {
  0%, 46% { opacity: 1; }
  46.1%, 100% { opacity: 0; }
}
@keyframes dots-show {
  0%, 46% { opacity: 0; }
  46.1%, 100% { opacity: 1; }
}
@keyframes bar {
  from { transform: scaleY(0.22); }
  to { transform: scaleY(1); }
}
@keyframes dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes key {
  0%, 5.9% { transform: none; border-bottom-width: 3px; color: var(--text-2); }
  6%, 45.9% { transform: translateY(2px); border-bottom-width: 1px; color: var(--accent); border-color: var(--accent); }
  46%, 100% { transform: none; border-bottom-width: 3px; color: var(--text-2); }
}
@keyframes caret-before {
  0%, 48% { visibility: visible; }
  48.1%, 100% { visibility: hidden; }
}
@keyframes caret-after {
  0%, 49.4% { visibility: hidden; }
  49.5%, 92% { visibility: visible; }
  92.1%, 100% { visibility: hidden; }
}
@keyframes caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (min-width: 720px) {
  .stage { padding: 28px 36px 84px; }
  .mock-pill { bottom: 26px; }
  .mock-key { left: 26px; bottom: 22px; }
  .mock-text { font-size: 18px; }
}

/* ---------- Real app screens ---------- */

.screens {
  margin-top: 8px;
}
.screens-head {
  max-width: 40rem;
  margin: 0 auto 28px;
  text-align: center;
}
.screens-head h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
}
.screens-head p { margin-top: 10px; color: var(--text-2); }

.shot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.shot {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.shot picture, .shot img {
  border-radius: 10px;
}
.shot img {
  width: 100%;
  border: 1px solid var(--hairline);
}
.shot figcaption {
  padding: 12px 4px 2px;
  color: var(--text-2);
  font-size: 15px;
}
.shot figcaption b { display: block; color: var(--text); font-weight: 600; }

.shot-wide {
  max-width: 960px;
  margin: 20px auto 0;
}
.shot-wide img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
/* Insights and Settings › Writing are crops: shown no larger than they
   were drawn (1 pt to 1 px), so their text stays sharp and readable. The
   figure is the image's width plus its padding and border. */
.shot-crop { max-width: calc(var(--w) + 30px); }
.shot-insights { --w: 670px; }
.shot-writing { --w: 552px; }

.shots-note {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14.5px;
  text-align: center;
}

/* ---------- Speed ---------- */

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .stats-two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
}
.stat {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(2.6rem, 2rem + 2.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-value small {
  color: var(--text-2);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0;
}
.stat p { margin-top: 14px; color: var(--text-2); }
.stat .stat-value { margin-top: 0; color: var(--text); }
.stat p strong { color: var(--text); font-weight: 600; }
.stats-note {
  max-width: 44rem;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: 14.5px;
  text-align: center;
}

/* ---------- What you say, what you get ---------- */

.say-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .say-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .say-card-wide { grid-column: 1 / -1; }
}

.say-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.say-card h3 {
  padding: 22px 24px 0;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.say-part { padding: 14px 24px 18px; }
.say-part + .say-part {
  position: relative;
  flex: 1;
  border-top: 1px dashed var(--border-strong);
  background: var(--raised);
}
.say-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.say-label svg { width: 15px; height: 15px; color: var(--accent); }
.say-text { color: var(--text-2); font-size: 17px; }
.say-text del {
  color: var(--struck);
  text-decoration-line: line-through;
  text-decoration-color: var(--strike);
  text-decoration-thickness: 2px;
}
.get-text {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  white-space: pre-line;
}
.get-text ins, .say-text mark {
  background: var(--glow);
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  padding: 0 2px;
}
.say-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 24px 18px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 14px;
}
.say-note::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--sky);
  flex: none;
}
.say-note.is-smart::before { background: var(--accent); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
.feature {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
/* Phones: the icon beside the words, in one card, so eight features don't
   stack into a long column of boxes. */
@media (max-width: 619px) {
  .feature-grid {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 14px;
    padding: 18px 16px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .feature + .feature { border-top: 1px solid var(--border); }
  .feature-icon { grid-row: span 2; width: 38px; height: 38px; margin: 0; border-radius: 11px; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature h3 { align-self: center; }
  .feature p { margin-top: 4px; font-size: 15px; }
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-stars { color: var(--accent); letter-spacing: 2px; }
.review-stars-off { color: var(--border-strong); }
.review-quote { margin: 0; font-size: 17px; }
.review-by { margin-top: auto; display: flex; flex-direction: column; font-size: 14.5px; }
.review-name { font-weight: 600; }
.review-meta { color: var(--text-2); }

.reviews-empty {
  grid-column: 1 / -1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 36px 26px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.reviews-empty svg { width: 54px; height: 36px; margin: 0 auto 14px; }
.reviews-empty p { color: var(--text-2); }
.reviews-empty .button { margin-top: 20px; }

.reviews-caption {
  max-width: 44rem;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 14.5px;
  text-align: center;
}
.reviews-caption strong { color: var(--text); font-weight: 600; }
.reviews-more { margin-top: 24px; text-align: center; }

/* ---------- Pricing ---------- */

.price-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 26px 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gust-from), var(--gust-to));
}
.price {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.price-promise {
  max-width: 28rem;
  margin: 14px auto 0;
  color: var(--text);
  font-size: 17.5px;
}
.ticks {
  display: grid;
  gap: 10px;
  max-width: 22rem;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.38em;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
}
.price-card .button { margin-top: 28px; min-width: 220px; }
.price-card .fine-print { margin-top: 12px; }

/* ---------- FAQ ---------- */

.faq {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--link); }
.faq .answer { padding: 0 2px 22px; color: var(--text-2); }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 10px; }
.faq .answer ul { margin: 10px 0 0; padding-left: 1.2em; }
.faq .answer li + li { margin-top: 4px; }
.faq .answer strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
  background: var(--band);
  color: var(--text-2);
  font-size: 15px;
}
.footer-top {
  display: grid;
  gap: 28px;
}
@media (min-width: 820px) {
  .footer-top { grid-template-columns: 1.3fr 2fr; align-items: start; }
}
.footer-tagline { margin-top: 10px; max-width: 22rem; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 620px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-nav h2 {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.6;
}
.legal p + p { margin-top: 6px; }

/* ---------- Article pages (privacy, acknowledgements) ---------- */

.page { padding: 48px 0 80px; }
.page-narrow { max-width: 46rem; }
.page h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}
.page .lead { margin-top: 14px; }
.prose { margin-top: 36px; }
.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.prose h3 { margin: 26px 0 8px; font-size: 18.5px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose .summary {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--raised);
}
.prose .summary ul { margin: 0; }
.prose .callout {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--raised);
}

.licence-text {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-page { padding-top: 72px; text-align: left; }
.notice-page .lead { margin: 16px 0 20px; }
.notice-page p + p { margin-top: 12px; }
.notice-page .button { margin-top: 12px; }
.notice-gust { width: 120px; height: 80px; margin-bottom: 24px; }

/* ---------- Download page ---------- */

.download-page { padding-top: 24px; }
.steps {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 20px 22px 20px 70px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--kicker);
  font-weight: 700;
}
.steps h2 { font-size: 18.5px; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--text-2); }
.steps b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.steps-then { margin-top: 22px; font-weight: 500; }
.download-page .fine-print { margin-top: 10px; }
.share-row { margin-top: 24px; }
.download-anyway { margin-top: 18px; color: var(--text-2); font-size: 15px; }

/* ---------- Feedback form ---------- */

.form {
  display: grid;
  gap: 26px;
  margin-top: 36px;
}
.field { display: grid; gap: 8px; }
.field label, .field legend, .field .label {
  font-size: 16.5px;
  font-weight: 600;
}
.hint { color: var(--text-2); font-size: 14.5px; font-weight: 400; }
.optional { color: var(--text-2); font-weight: 400; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus,
.input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rating-stars {
  display: flex;
  gap: 4px;
}
.rating-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating-stars label {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--control);
  cursor: pointer;
  transition: color 0.12s ease;
}
.rating-stars label svg { width: 34px; height: 34px; }
.rating-stars label svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.rating-stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }
/* Filled up to the chosen star, or the one under the pointer. */
.rating-stars:has(#rating-1:checked) label:nth-of-type(-n+1),
.rating-stars:has(#rating-2:checked) label:nth-of-type(-n+2),
.rating-stars:has(#rating-3:checked) label:nth-of-type(-n+3),
.rating-stars:has(#rating-4:checked) label:nth-of-type(-n+4),
.rating-stars:has(#rating-5:checked) label:nth-of-type(-n+5) { color: var(--accent); }
.rating-stars:has(#rating-1:checked) label:nth-of-type(-n+1) path,
.rating-stars:has(#rating-2:checked) label:nth-of-type(-n+2) path,
.rating-stars:has(#rating-3:checked) label:nth-of-type(-n+3) path,
.rating-stars:has(#rating-4:checked) label:nth-of-type(-n+4) path,
.rating-stars:has(#rating-5:checked) label:nth-of-type(-n+5) path { fill: currentColor; }
@media (hover: hover) {
  .rating-stars:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1),
  .rating-stars:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2),
  .rating-stars:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3),
  .rating-stars:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4),
  .rating-stars:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) { color: var(--accent); }
}
.rating-scale { color: var(--text-2); font-size: 14.5px; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--raised);
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--link);
}
.check label { font-weight: 600; }
.check .hint { display: block; margin-top: 4px; }

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--raised);
  color: var(--text-2);
  font-size: 14.5px;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15.5px; font-weight: 500; }
.form-status.is-error { color: var(--text); }
.form-status.is-error::before { content: "\26A0\FE0E  "; color: #b7791f; }
.from-app {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 15px;
}
.sent {
  margin-top: 36px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--raised);
}
.sent h2 { font-size: 24px; }
.sent p { margin-top: 10px; color: var(--text-2); }

/* ---------- Motion ---------- */

.hero-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: gust-draw 2.2s cubic-bezier(0.22, 0.8, 0.25, 1) both;
}
@keyframes gust-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@supports (animation-timeline: view()) {
  .rise {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-mark path { stroke-dashoffset: 0; }
  .mock-sentence { opacity: 1; }
  .mock-pill { opacity: 0; }
  .caret { opacity: 1; }
  .caret-start { display: none; }
  .rise { opacity: 1; transform: none; }
}
