/* Onform website — one stylesheet for every page.
 *
 * Tokens are the app's own (DESIGN-SYSTEM.md, Brand/BRAND-BRIEF.md): true-black
 * ground, one lime accent that means "you can act", tabular figures.
 *
 * DARK ONLY, on purpose. The default is to design both themes; overridden
 * because this site is a window onto an app whose default theme and every
 * screenshot is dark, and the brand's light-mode accent (#7CB518) measures
 * 2.5:1 against white — it cannot carry a button there.
 *
 * Accent budget: ONE lime element per view — the primary button. The mark in
 * the header is drawn in text colour for that reason.
 *
 * Scale (px): 12 · 13 · 15 · 17 · 20 · 28 · 36 · 44. Spacing on 4px:
 * 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96.
 */

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;          /* 19.3:1 on --bg */
  --dim: #8e8e93;           /* 6.4:1 on --bg, 5.2:1 on --surface */
  --hairline: #38383a;      /* BORDER ONLY — never text */
  --edge: #8e8e93;          /* borders that must pass 3:1 (controls) */
  --accent: #b0f127;        /* 15.4:1 on --bg */
  --accent-pressed: #8fc41e;
  --on-accent: #000000;     /* 15.4:1 on --accent */

  --gutter: 16px;
  --max: 1120px;
  --prose: 65ch;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -64px;
  background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: var(--r-sm);
  z-index: 10;
}
.skip:focus { top: 8px; }

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

/* ---------- type ---------- */

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
}
.display {
  font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) { .display { font-size: 44px; line-height: 48px; } }

.title { font-size: 28px; line-height: 32px; font-weight: 600; text-wrap: balance; }
.heading { font-size: 20px; line-height: 28px; font-weight: 600; }
.lede { font-size: 17px; line-height: 24px; color: var(--text); max-width: var(--prose); }
.body { max-width: var(--prose); }
.dim, .muted { color: var(--dim); }
.small { font-size: 13px; line-height: 20px; }

/* ---------- buttons: the one definition ---------- */
/* Seven states: rest · hover · pressed · focus-visible are drawn here.
 * disabled / loading / error do not exist on this site: every button is a
 * plain link to a page, so there is nothing to disable, wait on or fail. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms ease-out, background-color 120ms ease-out, box-shadow 120ms ease-out;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
/* hover: a black inner ring — a shape channel, 15:1 against the lime it sits on */
.btn-primary:hover { box-shadow: inset 0 0 0 2px var(--on-accent); }
.btn-primary:active { background: var(--accent-pressed); transform: scale(0.98); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--edge); }
.btn-secondary:hover { border-color: var(--text); background: var(--surface); }
.btn-secondary:active { transform: scale(0.98); background: var(--surface-2); }

.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- header / footer ---------- */

.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-size: 15px; line-height: 20px; color: var(--dim); display: inline-flex; align-items: center; min-height: 44px; position: relative; }
.nav a:hover { color: var(--text); }
/* "you are here": a bar under the item, outside its text box — position, not hue */
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--text); }

.site-footer { border-top: 1px solid var(--hairline); padding-block: 32px 48px; margin-top: 96px; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text); font-size: 15px; line-height: 20px; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p { color: var(--dim); font-size: 13px; line-height: 20px; }

/* ---------- sections ---------- */

.section { padding-block: 64px 0; }
@media (min-width: 768px) { .section { padding-block: 96px 0; } }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: var(--prose); }

/* hero */
.hero { padding-block: 32px 0; display: grid; gap: 32px; }
.hero-copy { display: grid; gap: 16px; align-content: start; }
.hero-actions { display: grid; gap: 12px; margin-top: 8px; }
.hero-actions .note { color: var(--dim); font-size: 13px; line-height: 20px; }
.hero-shot { max-width: 320px; }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 320px; gap: 48px; padding-block: 64px 0; align-items: start; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; }
  .hero-actions .note { flex-basis: 100%; }
}

/* phone screenshot */
.shot { border-radius: 28px; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; }

/* the four places */
.places { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.places li { background: var(--bg); padding: 24px; list-style: none; display: grid; gap: 8px; }
.places { padding: 0; }
@media (min-width: 768px) { .places { grid-template-columns: 1fr 1fr; } }
.places .what { font-weight: 600; }
.places .cost { color: var(--dim); }

/* features: text + screenshot, alternating nothing — one strong left edge */
.feature { display: grid; gap: 24px; padding-block: 48px; border-top: 1px solid var(--hairline); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-copy { display: grid; gap: 12px; align-content: start; }
.feature-copy ul { padding-inline-start: 20px; display: grid; gap: 8px; max-width: var(--prose); }
.feature-copy li { color: var(--text); }
.feature-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 480px; }
.feature-shots.one { grid-template-columns: minmax(0, 240px); }
.feature-shots figcaption { color: var(--dim); font-size: 13px; line-height: 20px; margin-top: 8px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
  .feature-shots.one { grid-template-columns: minmax(0, 280px); }
}

/* client app strip */
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.strip figcaption { margin-top: 12px; display: grid; gap: 4px; }
.strip figcaption strong { font-size: 15px; line-height: 20px; font-weight: 600; }
.strip figcaption span { color: var(--dim); font-size: 13px; line-height: 20px; }

/* plain list of facts */
.facts { display: grid; gap: 24px; padding: 0; }
.facts li { list-style: none; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--hairline); max-width: var(--prose); }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* closing call to action */
.closer { margin-top: 96px; padding: 32px var(--gutter); border: 1px solid var(--hairline); border-radius: var(--r-lg); display: grid; gap: 16px; }
@media (min-width: 768px) { .closer { padding: 48px; } }
.closer .actions { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 768px) { .closer .actions { grid-auto-flow: column; justify-content: start; } }

/* ---------- pricing ---------- */

.plans { display: grid; gap: 16px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 32px 24px;
  display: grid; grid-template-rows: auto auto auto auto 1fr; gap: 16px; background: var(--surface);
}
@media (min-width: 768px) { .plan { padding: 32px; } }
.plan-name { font-size: 28px; line-height: 32px; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price .per { color: var(--dim); font-size: 15px; line-height: 20px; }
.plan-who { color: var(--dim); min-height: 24px; }
.plan-limits { padding: 0; display: grid; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.plan-limits li { list-style: none; }

.steps { counter-reset: step; padding: 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { list-style: none; counter-increment: step; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.steps li::before { content: counter(step); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--dim); }

.included { padding: 0; display: grid; gap: 8px 48px; }
@media (min-width: 768px) { .included { grid-template-columns: 1fr 1fr; } }
.included li { list-style: none; padding-block: 12px; border-bottom: 1px solid var(--hairline); }

.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; padding-block: 16px; font-weight: 600; min-height: 48px; list-style-position: inside; }
.faq details > p { padding-bottom: 16px; color: var(--text); max-width: var(--prose); }
.faq details > p + p { margin-top: -8px; }

/* ---------- legal pages ---------- */

.doc { max-width: 680px; padding-block: 48px 0; }
.doc h1 { font-size: 28px; line-height: 32px; font-weight: 600; margin-bottom: 4px; }
.doc .updated { color: var(--dim); font-size: 13px; line-height: 20px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 48px 0 12px; }
.doc p, .doc li { margin-bottom: 16px; }
.doc ul { padding-inline-start: 20px; margin-bottom: 16px; }
.doc .lede { margin-bottom: 16px; }
.doc .card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 24px; margin: 0 0 16px; }
.doc .card p:last-child { margin-bottom: 0; }
.doc .card .label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.doc .card .value { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.doc details { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 12px; }
.doc summary { font-weight: 600; cursor: pointer; min-height: 32px; display: list-item; list-style-position: inside; }
.doc details p { margin: 12px 0 0; }
.doc .contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.doc .contact h2 { margin-top: 0; }
