/* ============================================================
   POSTAVA — marketing site
   Light, premium, Apple-product-page calm. Brand signature: the
   flip-clock aesthetic (deeply-rounded ink cards, heavy white rounded
   numerals) carried by the in-app hero video. A focused front door —
   minimal, fast, lightly animated.
   ============================================================ */

/* ============ Design tokens ============ */
:root {
  /* Canvas + ink */
  --paper: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #1A1A1E;

  /* Posture-semantic accents (GOOD / NORMAL / BAD) */
  --green: #6ADF76;
  --orange: #FFA352;
  --red: #FF4C4C;

  /* Text */
  --text: #1A1A1E;
  --muted: #6E6E76;
  --muted-2: #9A9AA2;
  --line: rgba(26, 26, 30, 0.10);
  --line-soft: rgba(26, 26, 30, 0.06);

  /* Radii */
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 28px;

  /* Shadows */
  --shadow-soft: 0 8px 30px rgba(26, 26, 30, 0.07);
  --shadow-card: 0 20px 50px rgba(26, 26, 30, 0.10);
  --shadow-deep: 0 36px 90px rgba(26, 26, 30, 0.20);
  --shadow-btn: 0 10px 26px rgba(26, 26, 30, 0.22);

  /* Layout */
  --container: min(1140px, 100% - 48px);
  --nav-h: 110px;

  /* Type — rounded (SF Pro Rounded on Apple devices) for display + labels */
  --font-rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    "Quicksand", system-ui, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset / base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-system);
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { flex: 1; }
img, svg, video { display: block; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
::selection { background: rgba(106, 223, 118, 0.32); }

:focus-visible {
  outline: 3px solid rgba(106, 223, 118, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* Visually hidden until focused by keyboard (a proper a11y skip-link). */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto; height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

/* ============ Ambient background ============ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.glow-green {
  width: 640px; height: 640px;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(106, 223, 118, 0.20), transparent 70%);
}
.glow-ink {
  width: 560px; height: 560px;
  bottom: -280px; left: -180px;
  background: radial-gradient(circle, rgba(26, 26, 30, 0.05), transparent 70%);
}

/* ============ Navigation (glass pill) ============ */
.site-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: var(--container);
  margin: 14px auto 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 34px rgba(26, 26, 30, 0.10);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(26, 26, 30, 0.16);
}
.brand-word {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}
/* Nav is just the logo + Download button — no links or mobile toggle. */

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(26, 26, 30, 0.28); }
.btn-dark:active { transform: scale(0.98); }
.btn-nav { min-height: 40px; padding: 10px 18px; font-size: 13.5px; }

/* App Store badge (official SVG) */
.appstore-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.appstore-badge img { height: 52px; width: auto; }
.appstore-badge:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 12px 24px rgba(26, 26, 30, 0.22)); }

/* ============ Shared section scaffolding ============ */
.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}
.eyebrow {
  font-family: var(--font-rounded);
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2 {
  font-family: var(--font-rounded);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.section h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
}
.section-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  max-width: 38em;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .section-sub { margin-top: 18px; }

/* ============ 1 · Hero ============ */
.hero {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 52px) 0 clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.social-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.hero-copy h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  font-weight: 850;
  max-width: 14ch;
}
.lead {
  margin-top: 18px;
  color: #54545c;
  font-weight: 560;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.5;
  max-width: 28em;
}
.cta-group { margin-top: 32px; }
.cta-group--center { display: flex; flex-direction: column; align-items: center; }
.cta-note { margin-top: 14px; color: var(--muted-2); font-size: 13.5px; font-weight: 500; }

/* Hero device stage */
.hero-stage { position: relative; display: grid; place-items: center; min-width: 0; }
.stage-glow {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 223, 118, 0.26), transparent 70%);
  filter: blur(50px);
}
.stage-glow--soft { background: radial-gradient(circle, rgba(106, 223, 118, 0.16), transparent 70%); }

/* Device: video screen sits under the transparent-screen bezel PNG.
   Insets measured from device-frame.png (aspect 587/1200). */
.device {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 587 / 1200;
  filter: drop-shadow(0 36px 64px rgba(26, 26, 30, 0.24));
}
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.device-screen {
  position: absolute;
  top: 2.583%;
  left: 5.451%;
  width: 89.097%;
  height: 94.833%;
  z-index: 1;
  overflow: hidden;
  background: var(--surface);
  border-radius: 8% / 3.6%;
}
.device-video { width: 100%; height: 100%; object-fit: cover; }
.device-camera {
  position: absolute;
  z-index: 3;
  top: 5%;
  right: -7%;
  width: clamp(118px, 34%, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--paper);
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(26, 26, 30, 0.24);
}
.camera-video { width: 100%; height: 100%; object-fit: cover; }

/* Desktop: size the device by viewport height so the whole hero fits the
   first screen — a bit bigger, generous vh-based top spacing, never cut off. */
@media (min-width: 1041px) {
  .hero { min-height: calc(100svh - 96px); padding-top: clamp(28px, 5svh, 64px); }
  .device { width: auto; height: min(74svh, 660px); }
}

/* ============ 2 · How it works ============ */
.how {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.how-copy .section-sub { margin-top: 16px; }
.steps {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 16px;
}
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 16px;
}
.step strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.footnote {
  margin-top: 26px;
  padding: 14px 18px;
  border-left: 3px solid rgba(106, 223, 118, 0.5);
  background: rgba(106, 223, 118, 0.08);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 44ch;
}
.how-visual { position: relative; display: grid; place-items: center; }
.how-visual img {
  position: relative;
  z-index: 1;
  width: min(300px, 72vw);
  height: auto;
  filter: drop-shadow(0 34px 64px rgba(26, 26, 30, 0.22));
}

/* ============ Showcase (horizontal screenshot row) ============
   Default = native scroll-snap carousel (mobile + reduced motion). On
   desktop with motion, app.js adds `.is-pinned` and GSAP drives translateX. */
/* No background of its own — sits on the exact same page background as every
   other section. No header: the phone row comes first. Big top spacing
   (clears the navbar when pinned) + big bottom spacing before next section. */
.showcase { padding: clamp(72px, 11vw, 120px) 0 clamp(100px, 13vw, 160px); }
.showcase-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 14px 48px;
  scroll-padding-inline: max(24px, (100% - var(--container)) / 2);
}
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase-track {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: clamp(36px, 6vw, 96px);
  width: max-content;
  padding-inline: max(24px, (100% - var(--container)) / 2);
  will-change: transform;
}
.showcase-item { scroll-snap-align: center; flex: 0 0 auto; }
.showcase-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.showcase-item img {
  width: auto;
  height: min(70vh, 620px);
  /* Light shadow only — heavy shadows on 5 phones stacked into a grey "panel". */
  filter: drop-shadow(0 12px 26px rgba(26, 26, 30, 0.10));
}
.showcase-item figcaption {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.01em;
  color: #1A1A1E;
}
.showcase-viewport.is-pinned { overflow: hidden; scroll-snap-type: none; }

/* ============ 4 · FAQ ============ */
.faq { max-width: 860px; }
.faq-head { margin-bottom: 36px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p {
  overflow: hidden;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
  transition: height 0.3s var(--ease);
}

/* ============ 5 · Founder ============ */
.founder {
  display: grid;
  /* Photo column sized to the photo itself (no fr-slack) so it sits right
     next to the text — only `gap` separates them. */
  grid-template-columns: 260px 1fr;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: center;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 260px;
}
.founder-photo img { width: 100%; height: auto; }
.founder-copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.founder-copy p { color: var(--muted); font-size: clamp(16px, 1.7vw, 18.5px); line-height: 1.68; }
.build-links { margin-top: 28px; }
.build-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-row { display: flex; gap: 12px; }
.social-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}
.social-btn svg { width: 20px; height: 20px; }
/* The Threads glyph reads thinner than X at the same size — nudge it up so
   the two icons look optically matched in weight. */
.social-btn[aria-label*="Threads"] svg { width: 23px; height: 23px; }
.social-btn:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
.social-btn--sm { width: 40px; height: 40px; }
.social-btn--sm svg { width: 17px; height: 17px; }
.social-btn--sm[aria-label*="Threads"] svg { width: 20px; height: 20px; }

/* ============ 6 · Final CTA ============ */
.final-cta { text-align: center; padding-block: clamp(90px, 11vw, 120px); }
.final-cta h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  max-width: 16ch;
  margin: 0 auto 24px;
}
.final-cta .appstore-badge img { height: 58px; }

/* ============ Footer ============ */
.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 52px 0 60px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-word {
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
}
.footer-by { color: var(--muted); font-size: 13.5px; }
.footer-mid { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-mail {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.footer-mail:hover { text-decoration-color: currentColor; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.footer-legal a:hover { color: var(--text); text-decoration-color: currentColor; }
.footer-note { color: var(--muted-2); font-size: 12.5px; max-width: 40ch; }
.footer-copy { color: var(--muted-2); font-size: 12.5px; font-weight: 600; }

/* ============ Reveal on scroll (minimal fade + rise) ============
   Anti-FOUC: pre-hide reveal targets ONLY when JS is present AND motion is
   allowed, so no-JS and reduced-motion users always see content. app.js
   adds `.in` (via IntersectionObserver) to play the transition. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* ============ Legal pages (privacy.html / terms.html) ============
   These pages share this stylesheet: a simple top bar + centered document. */
.topbar {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0 8px;
  justify-content: space-between;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.legal-main {
  flex: 1;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 76px;
}
.legal-document { max-width: 760px; margin: 0 auto; }
.legal-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 30, 0.2);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-back:hover { color: var(--ink); text-decoration-color: currentColor; }
.legal-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 36px;
}
.legal-header .eyebrow { margin-bottom: 16px; }
.legal-main h1 {
  font-family: var(--font-rounded);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.legal-updated { margin-top: 16px; color: var(--muted-2); font-size: 14px; font-weight: 600; }
.legal-main h2 {
  font-family: var(--font-rounded);
  margin: 42px 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 750;
}
.legal-main section:first-of-type h2 { margin-top: 0; }
.legal-main p,
.legal-main li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.legal-main p { margin-bottom: 14px; }
.legal-main ul { margin: 0 0 18px; padding-left: 22px; }
.legal-main li { margin-bottom: 8px; }
.legal-main li::marker { color: var(--green); }
.legal-main strong { color: var(--text); font-weight: 700; }
.legal-main a:not(.btn) {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 30, 0.26);
  text-underline-offset: 4px;
}
.legal-main a:not(.btn):hover { text-decoration-color: currentColor; }
.legal-main code {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.35em;
  color: var(--text);
  font-size: 0.92em;
}
.legal-callout {
  margin: 24px 0 10px;
  padding: 18px 20px;
  border: 1px solid rgba(106, 223, 118, 0.34);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(106, 223, 118, 0.1);
  box-shadow: var(--shadow-soft);
}
.legal-callout p { margin: 0; color: var(--text); font-weight: 600; }
.legal-contact { border-left: 3px solid rgba(106, 223, 118, 0.55); padding-left: 18px; }
.legal-bottom-action { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.footer-sep { display: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.footer-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.footer-links a:hover { text-decoration-color: currentColor; }

/* ============ Support / feedback form (support.html) ============ */
.support-intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.support-intro a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 30, 0.26);
  text-underline-offset: 4px;
}
.support-intro a:hover { text-decoration-color: currentColor; }

.support-form { margin-top: 4px; }
.field { border: 0; margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row .field { margin-bottom: 22px; }

.field-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.field-opt { color: var(--muted-2); font-weight: 600; }
.field-hint { margin-top: 7px; color: var(--muted-2); font-size: 13px; font-weight: 500; }

.input {
  width: 100%;
  font-family: var(--font-system);
  font-size: 16px; /* ≥16px so iOS doesn't zoom on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: var(--muted-2); }
.input:focus-visible,
.input:focus {
  outline: none;
  border-color: rgba(106, 223, 118, 0.9);
  box-shadow: 0 0 0 4px rgba(106, 223, 118, 0.18), var(--shadow-soft);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.55; }

/* Topic picker — radio inputs styled as selectable pills. */
.field-topic { margin-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 16px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover span { transform: translateY(-1px); border-color: rgba(26, 26, 30, 0.2); }
.chip input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(106, 223, 118, 0.28);
}

/* Honeypot — off-screen, never shown to humans, skipped by tab/AT. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile-box { margin: 22px 0 4px; min-height: 65px; }

.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.support-actions .btn[disabled] { opacity: 0.6; cursor: default; }
.form-status {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.form-status.is-error { color: var(--red); }
.form-status.is-success { color: #2FAF4A; } /* readable green on light paper */

/* ============ Responsive ============ */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy h1 { max-width: 18ch; }
  .lead { margin-inline: auto; }
  .cta-group { display: flex; flex-direction: column; align-items: center; }
  .how, .founder { grid-template-columns: 1fr; gap: 40px; }
  .how-visual { order: -1; } /* visual above copy on stacked layout */
}

@media (max-width: 820px) {
  :root { --container: min(100% - 32px, 1140px); --nav-h: 96px; }
  .section { padding-block: 72px; }
  .site-nav { border-radius: 26px; top: 10px; }
  .showcase-item img { height: min(60vh, 480px); }
}

@media (max-width: 560px) {
  .brand-word { font-size: 13px; letter-spacing: 0.24em; }
  .device { width: min(300px, 82vw); }
  .device-camera { right: -4%; width: clamp(106px, 34%, 146px); }
  .founder-photo { margin: 0 auto; }
  .footer-note { max-width: 30ch; }
  .legal-main { width: min(100% - 32px, 760px); padding: 36px 0 58px; }
  .legal-header { margin-bottom: 28px; }
  .legal-main h1 { font-size: 38px; }
  .legal-main h2 { margin-top: 34px; font-size: 20px; }
  .legal-main p, .legal-main li { font-size: 15.5px; line-height: 1.68; }
  .legal-callout { border-radius: 18px; padding: 16px; }
  .support-intro { font-size: 15.5px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
