/* The public site's look (#399, 2026-11-29): madeforit.io's stylesheet from the Cloudflare front page
   (#389, #394; holding/site.css on the holding-site branch), moved into the app with its pages, dark
   only. Every public page links this one file (templates/public/base.html); the app itself keeps
   app.css. Additions for pages only the app has (pricing, the FAQ search, form errors) are at the end. */
:root {
  --bg: #10141b; --panel: #171d26; --ink: #e7ebf1; --muted: #97a0b1; --line: #28303c;
  --line-strong: #3a4553; --accent: #58b5ad; --accent-soft: #163330; --ok: #4cb782; --warn: #d9a441; --danger: #e0788a;
  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Room for the scrollbar is kept on every page, so a short page doesn't shift sideways. */
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
p, li, summary, figcaption, label { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* A jump to a section (#join) lands below the sticky top bar, not under it. */
[id] { scroll-margin-top: 76px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 720px; }
.center { text-align: center; }
.center.narrow > * { margin-left: auto; margin-right: auto; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* Buttons */
.btn { display: inline-block; appearance: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  border-radius: 8px; padding: 11px 18px; border: 1px solid var(--accent); background: var(--accent); color: #0b1512; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .tm { font-size: .55em; font-weight: 600; vertical-align: super; margin-left: 1px; }
.badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px; line-height: 1.5; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); background: var(--accent-soft); }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--accent); }
/* The page you're on: its tab is underlined, as well as coloured. */
.nav a[aria-current] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Hero */
/* Every page opens the same way (owner, 2026-11-20): the same band, the kicker line at the same
   size and place, then the title at one size, so nothing jumps when you switch pages. */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 14px; max-width: 22ch; letter-spacing: -.02em; }
.hero > .wrap > :last-child { margin-bottom: 0; }
.lede { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; margin: 0 0 12px; }
.hero-text { font-size: 18px; color: var(--muted); max-width: 72ch; margin: 0 0 28px; }
/* Phones get the short description, so "Join the Beta" shows on the first screen (#394). */
.hero-short { display: none; }
@media (max-width: 520px) { .hero-long { display: none; } .hero-short { display: block; } }

/* The "Made for ..." reel: "Made for" stays, ten tags slot in (1.4 s each, one pass) and it lands
   on "you". CSS only. Ten tags = ten steps of 10%; change the tag count and the keyframes together. */
.kicker { display: flex; align-items: baseline; column-gap: .3em; flex-wrap: nowrap; white-space: nowrap; font-size: clamp(20px, 3.4vw, 32px);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.5; color: var(--accent); margin: 0 0 18px; }
.reel { position: relative; display: inline-block; height: 1.5em; line-height: 1.5em; overflow: hidden; vertical-align: bottom; color: var(--ink);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.reel-strip { display: block; animation: reel 14s linear .6s 1 both; }
.reel-strip > span { display: block; height: 1.5em; white-space: nowrap; }
@keyframes reel {
  0% { transform: translateY(0); }
  7.5% { transform: translateY(0); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  10% { transform: translateY(-1.5em); }
  17.5% { transform: translateY(-1.5em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  20% { transform: translateY(-3em); }
  27.5% { transform: translateY(-3em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  30% { transform: translateY(-4.5em); }
  37.5% { transform: translateY(-4.5em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  40% { transform: translateY(-6em); }
  47.5% { transform: translateY(-6em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  50% { transform: translateY(-7.5em); }
  57.5% { transform: translateY(-7.5em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  60% { transform: translateY(-9em); }
  67.5% { transform: translateY(-9em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  70% { transform: translateY(-10.5em); }
  77.5% { transform: translateY(-10.5em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  80% { transform: translateY(-12em); }
  87.5% { transform: translateY(-12em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  90% { transform: translateY(-13.5em); }
  97.5% { transform: translateY(-13.5em); animation-timing-function: cubic-bezier(.45,-.35,.25,1.45); }
  100% { transform: translateY(-15em); }
}
@media (prefers-reduced-motion: reduce) { .reel-strip { animation: none; transform: translateY(-15em); } }
@media (max-width: 359px) { .kicker { font-size: 17px; } }

/* Sections */
.section { padding: 72px 0; }
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 14px; }
.section h3 { font-size: 18px; margin: 0 0 8px; }
.section p { margin: 0 0 12px; }
.big { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }

/* The never-invents example */
.example { padding: 20px 22px; margin: 0; font-size: 15px; }
.ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.ex-step { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 14px; margin-bottom: 14px; }
.ex-step p { margin: 2px 0 8px; }
.ex-after { border-left-color: var(--ok); }
.ex-after p { font-weight: 600; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps > li { min-width: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0b1512; font-weight: 700; margin-bottom: 12px; }
.fit { margin-top: 14px; padding: 14px 16px; font-size: 14px; }
.fit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fit-role { font-weight: 700; }
.fit-score { font-size: 24px; font-weight: 600; color: var(--ok); }
.fit-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.ask { background: var(--warn); }
.dot.miss { background: var(--danger); }
/* A poor fit (the tour's second example): a low score, what's missing, and advice to skip it. */
.fit-poor .fit-score { color: var(--danger); }
.fit-advice strong { color: var(--danger); }

/* The "How it works" tour (home page): the steps on the left, what each one shows on the right.
   home.js adds .tour-on; without it every step and panel simply shows. */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.tour-side { min-width: 0; }
.tour-steps { display: flex; flex-direction: column; gap: 8px; }
.tour-step { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.tour-step .step-n { flex: 0 0 auto; margin: 0; width: 30px; height: 30px; font-size: 14px; background: var(--line-strong); color: var(--ink); }
.tour-step-text { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tour-step-text strong { font-size: 17px; }
.tour-step-desc { display: block; min-height: 0; overflow: hidden; color: var(--muted); font-size: 15px; }
.tour-step-desc > span { display: block; padding-top: 4px; }
.tour-step:hover { background: var(--panel); }
.tour-step[aria-selected="true"] { background: var(--panel); border-color: var(--line-strong); }
.tour-step[aria-selected="true"] .step-n { background: var(--accent); color: #0b1512; }
/* Only the chosen step shows its explanation, so the list stays short. */
/* The chosen step's explanation opens while the last one closes (owner, 2026-11-21). */
.tour-on .tour-step-text { transition: grid-template-rows .45s ease; }
.tour-on .tour-step-desc { transition: opacity .35s ease; }
.tour-on .tour-step[aria-selected="false"] .tour-step-text { grid-template-rows: auto 0fr; }
.tour-on .tour-step[aria-selected="false"] .tour-step-desc { opacity: 0; }
.tour-step { transition: background-color .3s, border-color .3s; }
.tour-step .step-n { transition: background-color .3s, color .3s; }
.tour-measuring, .tour-measuring * { transition: none !important; }
/* The bar under the chosen step fills over the time until the next one. */
.tour-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.tour-timing .tour-step[aria-selected="true"]::after { animation: tour-fill var(--tour-ms, 7s) linear forwards; }
@keyframes tour-fill { from { width: 0; } to { width: 100%; } }
.tour-panels { display: flex; flex-direction: column; gap: 16px; }
.tour-on .tour-panels { display: grid; }
/* The example boxes cross-fade: the old one fades out as the new one fades in and settles up. */
.tour-on .tour-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s .4s; }
.tour-on .tour-panel.tour-on-panel { visibility: visible; opacity: 1; transform: none;
  transition: opacity .45s ease .1s, transform .45s ease .1s; }
.tour-panel { padding: 24px; min-width: 0; display: flex; flex-direction: column; }
.tour-panel > :last-child { margin-bottom: 0; }
/* Each step's example fills the box, which is as tall as the tallest step: its parts spread out
   evenly instead of leaving a gap at the bottom. */
.tour-panel > .example, .tour-panel > .fit-stack, .tour-panel > .ats-points { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tour-panel .example .ex-step { margin-bottom: 0; }
.fit-stack .fit { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tour-panel h3 { font-size: 22px; margin: 0 0 6px; }
.tour-panel > p { margin: 0 0 16px; }
.tour-panel .example { padding: 0; }
.tour-panel .fit { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ats-points { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.ats-points li { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); }
.ats-points strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .tour-on .tour-panel, .tour-on .tour-step-text, .tour-on .tour-step-desc, .tour-step, .tour-step .step-n { transition: none; }
  .tour-on .tour-panel { transform: none; }
}
/* Phones (#394): the steps become a row of three tabs, the chosen step's explanation shows under
   the row, and its example right below. home.js fills the explanation; without it, nothing changes. */
.tour-step-short, .tour-explain { display: none; }
@media (max-width: 620px) {
  .tour-on .tour-steps { flex-direction: row; gap: 6px; min-height: 0 !important; }
  .tour-on .tour-step { flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; text-align: center;
    border-color: var(--line); min-height: 44px; }
  .tour-on .tour-step-text { display: block; }
  .tour-on .tour-step-text strong, .tour-on .tour-step-desc { display: none; }
  .tour-on .tour-step-short { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
  /* If any label would wrap, all three break at the same set points (home.js), so the tabs match. */
  .tour-labels-split .tour-step-short .tl { display: block; }
  .tour-on .tour-step[aria-selected="true"] { border-color: var(--accent); }
  .tour-on .tour-step::after { display: none; }
  .tour-on .tour-explain { display: block; margin: 12px 2px 0; color: var(--muted); font-size: 15px; }
  .tour-explain-in { animation: tour-explain .35s ease; }
}
@keyframes tour-explain { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-explain-in { animation: none; } }
/* On a shaded band the tour's boxes take the page colour, so they still stand out. */
.alt .tour-panel, .alt .tour-step:hover, .alt .tour-step[aria-selected="true"] { background: var(--bg); }
.alt .tour-panel .fit { background: var(--panel); }

/* Cards (ATS, trust, pillars) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { padding: 20px 22px; min-width: 0; }
.card p { color: var(--muted); margin: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: 140px minmax(0, 720px); gap: 32px; align-items: start; }
.founder-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.founder-blank { background: var(--accent-soft); border: 1px dashed var(--line-strong); }
.placeholder { color: var(--muted); font-style: italic; }
/* The founder's story runs the page's full width, like every other section; the photo sits
   inline with the first paragraph. */
.story p { margin: 0 0 16px; }
/* The photo is a column of its own beside all of the story's text. */
.story-body { display: flex; gap: 36px; align-items: center; }
.story-text { flex: 1; min-width: 0; }
.story-photo { flex: 0 0 auto; width: 280px; height: 280px; border-radius: 50%; display: block; object-fit: cover;
  font-size: 56px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); }
@media (max-width: 960px) { .story-photo { width: 220px; height: 220px; } }
.story .meta { margin-top: 4px; font-size: 15px; }
.fn { text-decoration: none; font-weight: 700; padding: 0 1px; }
/* The founder's before and after, as two figures instead of buried in the text. */
/* The before and after, side by side under the story and its sign-off. */
.before-after { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.ba { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ba-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ba strong { font-size: 22px; }
.ba > span:last-child { color: var(--muted); font-size: 15px; }
.ba-after { border-color: var(--accent); background: var(--accent-soft); }
.ba-after .ba-label { color: var(--accent); }

/* The note on the founder's results figures (#252): small, at the foot of the page. */
.results-note { padding: 28px 0 8px; }
.results-note p { font-size: 13px; color: var(--muted); margin: 0; }
/* Phones (#394): Before and After stay side by side, smaller, so both show at once. */
@media (max-width: 440px) {
  .before-after { gap: 8px; }
  .ba { padding: 12px; }
  .ba strong { font-size: 17px; line-height: 1.25; }
  .ba > span:last-child { font-size: 13px; }
}
/* Narrow phones: both figures break before "applications", so the two boxes match. */
@media (max-width: 400px) { .ba strong .tl { display: block; } }
/* Phones (#394): a smaller photo at the top left, with the story wrapping around it. */
@media (max-width: 620px) {
  .story-body { display: flow-root; }
  .story-photo { float: left; width: 112px; height: 112px; margin: 4px 16px 8px 0; }
}

/* The beta and its sign-up form */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.perks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.perks li { padding-left: 18px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
form.signup { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
form.signup label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
form.signup label span { font-weight: 400; color: var(--muted); font-size: 14px; }
form.signup input[type=text], form.signup input[type=email] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%; }
form.signup .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
form.signup .check input { margin-top: 5px; }
form.signup .btn { align-self: flex-start; }
/* While a form is sending (form.js), and its note when the person check hasn't passed yet. */
form.signup .btn:disabled { opacity: .65; cursor: progress; }
.form-note { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--warn); color: var(--ink); background: var(--panel); font-size: 14px; }
form.signup input[type=url], form.signup textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%; }
form.signup textarea { min-height: 140px; resize: vertical; }
/* Careers (unlisted): the open roles, and a role's page. */
.role { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.role:hover, .role:focus-visible { border-color: var(--accent); outline: none; }
.role strong { font-size: 18px; }
.role span { color: var(--muted); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts span { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); }
.role-page h2 { font-size: 22px; margin: 36px 0 10px; }
.role-page h2:first-child { margin-top: 0; }
.role-page ul { margin: 0 0 12px; padding-left: 1.2em; }
.role-page li + li { margin-top: 4px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phones (#394): the beta section tightens so the form starts soon after the points. */
@media (max-width: 620px) {
  .beta { gap: 18px; }
  .beta h2 { margin-bottom: 10px; }
  .perks { gap: 8px; margin-bottom: 10px; font-size: 15px; }
  .beta > div > p.muted { font-size: 14px; margin: 0; }
  form.signup { gap: 12px; }
  form.signup label { gap: 4px; }
  form.signup label span { font-size: 13px; }
}
/* About: the mission and the pillars */
.mission { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.25; max-width: 24ch; margin: 0; }
/* "Made For You": the "You" in the accent colour, as the home page's reel lands on "you". */
.you { color: var(--accent); }
.pillars { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* The founder's story on phones (#394): a short version first; "Read the full story" opens the
   rest smoothly (story.js). Wider screens, and phones without the script, show the full story. */
.story-abridged, .story-toggle { display: none; }
@media (max-width: 620px) {
  .story-js .story-abridged { display: block; }
  /* Plain blocks, so the text keeps wrapping around the photo when the full story opens; story.js
     animates the height of the whole story around it. */
  .story-js .story-full { display: none; }
  .story-js.story-open .story-full { display: block; }
  .story-js.story-open .story-abridged { display: none; }
  .story-js.story-open .story-full-inner { animation: story-in .45s ease; }
  .story-js .story-toggle { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 12px; padding: 0;
    font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; }
  .story-js .story-toggle::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s ease; }
  .story-js.story-open .story-toggle::after { transform: translateY(2px) rotate(-135deg); }
}
@keyframes story-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .story-js.story-open .story-full-inner { animation: none; } .story-js .story-toggle::after { transition: none; } }
/* Phones (#394): the pillars become compact cards, still one per row. */
@media (max-width: 620px) {
  .pillars { gap: 10px; margin-top: 16px; }
  .pillars .card { padding: 14px 16px; }
  .pillars .card h3 { font-size: 16px; margin-bottom: 4px; }
  .pillars .card p { font-size: 14px; line-height: 1.5; }
}
/* FAQ and long text */
.faq-group { font-size: 20px; margin: 32px 0 4px; }
.faq-group:first-child { margin-top: 0; }
/* .section h2 sets its own margins; the FAQ's group headings need their space above back. */
.section .faq-group { margin: 32px 0 4px; font-size: 20px; }
.section .faq-group:first-child { margin-top: 0; }
.faq { border-bottom: 1px solid var(--line); }
/* The whole row is the tap target, not just the question's text (#394). */
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq p { margin: -6px 0 14px; color: var(--muted); }
.legal h1 { margin: 0 0 4px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal li { margin-bottom: 6px; line-height: 1.5; }

.cta h2 { margin-bottom: 8px; }
.cta .actions { justify-content: center; }

/* Footer */
.foot { padding: 28px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

@media (max-width: 820px) {
  .split, .steps, .cards, .beta, .tour { grid-template-columns: 1fr; }
  .tour { gap: 16px; }
  .split, .beta { gap: 28px; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 52px 0; }
  .founder { grid-template-columns: 1fr; gap: 16px; }
  .founder-photo { width: 96px; height: 96px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; font-size: 13px; }
  .brand { font-size: 15px; }
  form.signup { padding: 16px; }
}
@media (max-width: 440px) { .nav .nav-extra { display: none; } .top-row { gap: 8px; } .nav { gap: 10px; } }

/* Phones: the tabs move into a menu button (a plain <details>, so it needs no script). */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 38px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; transition: transform .15s; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 190px; display: flex; flex-direction: column; gap: 2px;
  padding: 6px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.menu-panel a { padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.menu-panel a:hover { background: var(--accent-soft); }
.menu-panel a[aria-current] { color: var(--accent); font-weight: 600; background: var(--accent-soft); text-decoration: none; }
@media (max-width: 440px) { .menu { display: block; } }
/* The smallest phones (320px): the top bar's pieces tighten so it still fits on one line. */
@media (max-width: 360px) { .brand { font-size: 14px; } .badge { margin-left: 4px; padding: 1px 5px; } .top .btn.sm { padding: 7px 9px; font-size: 12px; } .nav { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .menu-icon::before, .menu-icon::after { transition: none; } }

/* Phones (#394): less space between sections, and everything you tap is at least 44px tall. */
@media (max-width: 620px) {
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 34px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .top .btn.sm { display: inline-flex; align-items: center; min-height: 44px; }
  .menu summary { width: 44px; height: 44px; }
  .menu-panel a { padding: 12px; }
  .foot-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot { padding: 12px 0 20px; }
  form.signup .check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
  .fn { display: inline-block; padding: 0 4px; }
}

/* --- The app's own public pages (#399) ------------------------------------------------------- */
/* The FAQ's search (#183): results replace the browsing list while there are any. */
.faq-search input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--panel); color: var(--ink); margin-bottom: 18px; }
#faq-results:has(.faq-results) + .faq-browse { display: none; }
.faq-results { margin-bottom: 18px; }
.under { color: var(--muted); font-size: 15px; margin: 16px 0 0; }

/* Pricing (#174): the three plans side by side. Out of the top bar during the beta (#399). */
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; min-width: 680px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.price-table .col-label { width: 28%; }
.price-table .col-plan { width: 24%; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line);
  font-size: 15px; overflow-wrap: anywhere; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th .meta { font-weight: 400; margin-top: 2px; }
.price-table thead th { position: relative; padding-top: 30px; }
.price-table tfoot td, .price-table tfoot th { border-bottom: 0; }
.price-table .btn { white-space: nowrap; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.plan-pitch { font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.best { background: var(--accent-soft); }
.price-table thead th.best { border-top-right-radius: 12px; }
.price-table tfoot td.best { border-bottom-right-radius: 12px; }
.ribbon { position: absolute; top: 6px; left: 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  color: #0b1512; background: var(--accent); border-radius: 4px; padding: 1px 6px; }

/* A form sent back with something to fix (the beta sign-up, a careers application). */
.form-errors { margin: 0; padding: 10px 12px 10px 30px; border-radius: 8px; border: 1px solid var(--danger); background: var(--panel); font-size: 14px; }
.form-errors li + li { margin-top: 4px; }
