/* Tokens mirror app/src/app/(frontend)/styles.css so the page and the product read as one thing. */
:root {
  --bg: #f2f4ef;
  --surface: #e9ede4;
  --surface-raised: #fbfcf9;
  --border: #d3d9c9;
  --border-strong: #bcc3ac;
  --ink: #1b201a;
  --ink-soft: #363d33;
  --muted: #5b6255;
  --accent: #4c6a34;
  --accent-hover: #3d5629;
  --accent-tint: #e4ecd9;
  --studio-surface: #38502a;
  --studio-surface-light: #3d572d;
  --studio-border: rgba(255, 255, 255, 0.2);
  --danger: #8a3324;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-lifted: 0 1px 3px rgba(27, 32, 26, 0.07), 0 6px 18px rgba(27, 32, 26, 0.07);
  --shadow-shot: 0 1px 2px rgba(27, 32, 26, 0.06), 0 18px 48px -12px rgba(27, 32, 26, 0.22);
  --page-max: 1160px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 32px, var(--page-max)); margin-inline: auto; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 16px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow-inverse { color: rgba(255, 255, 255, 0.78); }
.small { font-size: 0.9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-quiet { border-color: var(--border-strong); color: var(--ink); background: var(--surface-raised); }
.btn-quiet:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-inverse { background: #fff; color: var(--studio-surface); }
.btn-inverse:hover { background: var(--accent-tint); color: var(--studio-surface); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--studio-surface);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.header-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; }
.header-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 860px) {
  .header-nav a:not(.btn):not(.nav-signin) { display: none; }
  .header-nav { gap: 16px; }
  .header-nav .btn { white-space: nowrap; }
}
@media (max-width: 480px) {
  .header-nav .nav-signin { display: none; }
}

/* Hero */
.hero { padding: 80px 0 24px; overflow: hidden; }
.hero-grid { display: grid; gap: 56px; }
.hero-copy { max-width: 800px; }
.lede { margin-top: 22px; font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

.hero-shots { position: relative; margin: 0; padding-bottom: 48px; }
.frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-shot);
}
.frame-desktop { width: 100%; }
.frame-phone { border-radius: 26px; border: 6px solid var(--ink); background: var(--ink); }
.frame-phone img { border-radius: 20px; }
.hero-shots { padding-right: 9%; }
.hero-shots .frame-phone { position: absolute; right: 0; bottom: 0; width: 22%; max-width: 260px; }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { gap: 40px; }
  .hero-shots { padding-right: 14%; }
  .hero-shots .frame-phone { width: 32%; }
}

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-quiet { padding: 72px 0; text-align: center; }
.section-quiet p { margin-top: 18px; color: var(--ink-soft); font-size: 1.1rem; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
.step-n { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  margin-top: 88px;
}
.section-tint .feature, #weak-points .feature { margin-top: 0; }
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-copy { order: 2; }
.feature-copy h2, .feature-copy h3 { margin-bottom: 18px; }
.feature-copy h3 { font-size: 1.6rem; }
.feature-copy p + p { margin-top: 14px; }
.feature-copy > p { color: var(--ink-soft); }
@media (max-width: 960px) {
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 36px; margin-top: 64px; }
  .feature-flip .feature-copy { order: 0; }
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); }


/* Beta: the page's one committed surface, same recipe as the app's studio panels. */
.beta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 56px;
  border-radius: 18px;
  color: #fff;
  background-color: var(--studio-surface);
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(145deg, var(--studio-surface-light) 0%, var(--studio-surface) 76%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.beta h2 { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); }
.beta h2 span { font-size: 0.45em; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.8); }
.beta-offer p { margin-top: 18px; color: rgba(255, 255, 255, 0.9); max-width: 32em; }
.beta-offer .small { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 860px) {
  .beta { grid-template-columns: 1fr; gap: 36px; padding: 32px 22px; }
}

.beta-form { display: grid; gap: 8px; align-content: start; }
.beta-form label { font-weight: 600; font-size: 0.95rem; }
.beta-form label:not(:first-of-type) { margin-top: 10px; }
.beta-form .opt { font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.beta-form input, .beta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.beta-form textarea { resize: vertical; min-height: 88px; }
.beta-form input::placeholder, .beta-form textarea::placeholder { color: #7a8174; }
.beta-form input:focus-visible, .beta-form textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.beta-form .btn { margin-top: 16px; justify-self: start; }
.beta-form :focus-visible { outline-color: #fff; }
.form-status { min-height: 1.6em; font-size: 0.95rem; }
.form-status[data-tone='ok'] { font-weight: 600; }
.form-status[data-tone='error'] { color: #ffd9cf; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; }
.site-footer a { color: var(--ink-soft); }
