/* ninety9.app landing styles.
 *
 * **Option B, flat** (§3.2, Fellipe 2026-10-18): the warm stone ground, teal
 * accent, Figtree, and no gradient background anywhere — not on the hero,
 * sections, cards, buttons, nav, footer or the pricing highlight. The only
 * gradient the site draws is inside the logo mark's ring, which §3.2 carves
 * out by name. Search this file for `gradient` and that is what you find.
 *
 * Tokens, breakpoints and type scale are brief/landing_page_handoff.md §3.1
 * and §3.2 — every value here has a row in that table, read from the Flutter
 * theme in packages/ui_kit/lib/src/theme/. No hex appears that the brief did
 * not give.
 *
 * One stylesheet, no build step, no framework (§3.6).
 */

:root {
  color-scheme: light dark;

  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-alt: #F1EFEA;
  --border: #E7E4DD;
  --text: #1C1917;
  --text-2: #57534E;
  --muted: #736D66;

  /* The teal fill only ever carries dark text: never white on #93C1BE (§3.3). */
  --accent: #93C1BE;
  --accent-hover: #86B0AD;
  --on-accent: #1C1917;
  --accent-ink: #0F766E;
  --accent-tint: #E7F1F0;
  --success: #15803D;

  --radius: 12px;
  --pill: 999px;
  --gutter: 20px;
  --max: 1120px;

  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* §3.2: follow prefers-color-scheme, as the app and the privacy page do.
 *
 * The dark values are the teal swatch's own pair out of `n99_accents.dart`,
 * which is where the brief's table points for them ("from the dark swatch").
 * Read from the code rather than guessed, so the fill still carries dark
 * text — white never sits on the teal, in either scheme. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: #201E1B;
    --surface-alt: #2A2724;
    --border: #34302B;
    --text: #F5F5F4;
    --text-2: #D6D3D1;
    --muted: #A8A29E;
    --success: #86EFAC;
    --accent: #4FBFB0;
    --accent-hover: #6ED0C3;
    --on-accent: #04201E;
    --accent-ink: #4FBFB0;
    --accent-tint: #273530;
  }
}

/* Figtree 400/500/600, self-hosted and **subset** — no
 * `fonts.googleapis.com` request, which is the app's rule and §3.2's.
 *
 * Built from the three TTFs `packages/ui_kit` ships, cut to Latin +
 * Latin Extended-A plus the typographic punctuation these pages use, and
 * written as woff2. That is 16.2 + 16.4 + 16.6 = **49.2 KB for all
 * three**, against §3.6's 60 KB budget; the TTFs they replace were 169 KB.
 * Every character the three language pages render is in all three subsets,
 * which is checked rather than assumed.
 *
 * Hashed names because the landing target caches `/assets/**` for a year and
 * immutable. The OFL licence text ships beside them, as it does in the
 * package. */
@font-face {
  font-family: Figtree;
  src: url("/assets/Figtree-Regular.200f5a8d.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/Figtree-Medium.c7d6d25b.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/Figtree-SemiBold.da85e985.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--accent-ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible + label {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 16px;
  z-index: 20;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 14px; }

.sub, .lead { color: var(--text-2); }
.lead { font-size: 1.0625rem; }
.fine, .plan-fine, .toggle-hint, .tagline, .apple { color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- buttons */

.btn, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px minimum target, everywhere (§3.3). */
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.btn { background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-hover); }
.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.ghost:hover { background: var(--surface-alt); }
.btn.big { padding: 13px 22px; font-size: 1.0625rem; }
.btn.full { display: flex; width: 100%; margin-top: auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .nav { background: var(--bg); }
}
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  min-height: 44px;
}
.wordmark { letter-spacing: -0.02em; }
/* Orange is reserved for "the one" (§3.2), and this is it: the 9. */
.nine { color: #E0713F; }
.mark { flex: none; }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.nav-links { display: none; }
.menu-toggle:checked ~ .nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 0 16px;
  border-top: 1px solid var(--border);
}
.nav-links > a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links > a.btn { color: var(--on-accent); justify-content: center; }

.langs, .foot-langs-row { display: flex; gap: 4px; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.lang[aria-current] { background: var(--accent-tint); color: var(--accent-ink); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border: 0;
    width: auto;
    flex-direction: row;
  }
  .nav-links > a { padding: 10px 12px; }
  .langs { margin: 0 6px; }
}

/* --------------------------------------------------------- suggestion bar */

.suggest { background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.suggest-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}
.suggest-row a { color: var(--accent-ink); }
.suggest-x {
  margin-left: auto;
  min-width: 44px; min-height: 44px;
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ------------------------------------------------------------------ bands */

.band { padding: 56px 0; }
.band.alt { background: var(--surface-alt); }
.band.final { text-align: center; }
.band.final .cta-row { justify-content: center; }

/* ------------------------------------------------------------------- hero */

.hero { padding: 40px 0 56px; }
.hero-in { display: grid; gap: 32px; }
.eyebrow {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 8px;
}
.trust { color: var(--muted); font-size: 0.9375rem; }

.hero-art { position: relative; min-height: 280px; }
.hero-panel {
  position: absolute;
  inset: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.hero-ring { width: 78%; opacity: 0.35; }
.hero-ring-one { fill: #E0713F; opacity: 0.9; }

/* The screenshots, on the ring panel (§3.5).
 *
 * **No frames.** §3.5 asked for CSS rounded rectangles around each shot, and
 * Design took them out on #392 when they stood empty. The captures carry
 * their own chrome, so a frame now would draw a second border around a
 * window that already has one; a radius and a soft shadow are enough to lift
 * them off the panel.
 *
 * Percentage widths with `height: auto`, so the aspect ratio comes from the
 * `width`/`height` attributes on the img and the layout does not move when
 * the file loads (§3.6 wants CLS under 0.05). That also means App Manager's
 * retakes swap in by filename alone, at any pixel size, as long as the shape
 * is the same. */
/* **The look, wherever a shot appears** — in the hero panel, and in a feature
 * card. Only the placement is the hero's, so that lives under `.hero-art`
 * below; a shot anywhere else is an ordinary block image at the width of
 * whatever holds it. */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(28 25 23 / 14%);
}

/* In a feature card it sits under the copy, which is why the card is a
 * column. `auto` rather than a fixed gap pins it to the bottom, so two cards
 * side by side line their screenshots up even when one has more words.
 *
 * **No padding here.** It was `padding-top: 16px`, which is inside the
 * element — so it fell within the radius and the shadow, painting a blank
 * strip across the top of the shot and squaring off its top corners
 * (Design, #392). The paragraph above already ends with a 14px bottom
 * margin, which is the gap. */
.card .shot {
  margin-top: auto;
}

/* The hero's two are placed, not stacked. */
.hero-art .shot {
  position: absolute;
}

/* The web shot is the ground: wide, high on the panel, leaving the bottom
 * right clear for the phone to sit over it. */
.hero-art .shot-web {
  width: 84%;
  left: 2%;
  top: 9%;
}

/* And the phone overlaps it there — "web for staff, phone for members" in one
 * image, which is the whole point of the pairing. A touch wider on a small
 * screen, where 26 % of a narrow column is too small to read as a phone. */
.hero-art .shot-phone {
  width: 30%;
  right: 2%;
  bottom: 3%;
  border-radius: 14px;
}

@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-art { min-height: 440px; }
  body { font-size: 1.125rem; }
}

/* ------------------------------------------------------------------ cards */

.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.ficon { width: 24px; height: 24px; color: var(--accent-ink); margin-bottom: 10px; }

@media (min-width: 600px) {
  .cards.three, .cards.feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.extras {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.extras-list { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }
@media (min-width: 900px) { .extras-list { grid-template-columns: repeat(2, 1fr); } }

.plain { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); }
.checks li { padding-left: 26px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.pill {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent-ink);
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.toggle {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
}
.cy:checked ~ label[for="cycle-yearly"],
.cm:checked ~ label[for="cycle-monthly"] {
  background: var(--accent-tint);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.toggle-hint { flex-basis: 100%; margin: 6px 0 0; }

/* The whole switch, in CSS: both prices are in the DOM and one is shown, so
 * the page behaves the same with JavaScript off (§3.6). */
.plans .monthly { display: none; }
body:has(.cm:checked) .plans .yearly { display: none; }
body:has(.cm:checked) .plans .monthly { display: block; }

.plan { gap: 4px; }
.plan-for { color: var(--text-2); font-size: 0.9375rem; }
.price { margin: 10px 0 14px; }
.amount { font-size: 2rem; font-weight: 600; margin: 0; }
.per { font-size: 0.9375rem; font-weight: 500; color: var(--text-2); }
.price-note { margin: 2px 0 0; color: var(--text-2); font-size: 0.9375rem; }
.price-alt { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
.save { color: var(--success); font-weight: 600; }
.plan-note { color: var(--accent-ink); font-weight: 600; margin: 0 0 8px; }
.plan.featured { border-color: var(--accent); }
.tag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.ticks { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
/* min-height, never height: es and pt run about 30% longer (§4). */
.cards.plans .plan { min-height: 100%; }
@media (min-width: 600px) { .cards.plans { max-width: 480px; } }
@media (min-width: 900px) {
  .cards.plans { max-width: none; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* -------------------------------------------------------------------- faq */

.faq-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq-row summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
}
.faq-row summary::after {
  content: "";
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
}
.faq-row[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding-bottom: 6px; color: var(--text-2); }

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

.foot { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; }
.foot-in { display: grid; gap: 24px; }
.foot-links { display: grid; gap: 4px; }
.foot-links a, .foot-a {
  color: var(--text-2);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-langs-label { color: var(--muted); font-size: 0.875rem; display: block; }
.foot-langs-row a {
  color: var(--text-2);
  text-decoration: none;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
}
.foot-langs-row a[aria-current] { background: var(--accent-tint); color: var(--accent-ink); }
.foot-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.foot-legal p { color: var(--muted); font-size: 0.875rem; }

@media (min-width: 900px) {
  .foot-in { grid-template-columns: 2fr 1fr 1fr; }
}
