/* qAuto website. One style sheet, no build step (_doc/qauto-website-plan.md). The colors come
   from the logo: the emerald-to-teal gradient, on cool light gray or near black. */

:root {
  color-scheme: light dark;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: light-dark(#f5f7fa, #0b0d11);
  --bg-2: light-dark(#eef1f5, #0f1218);
  --surface: light-dark(#ffffff, #141821);
  --fill: light-dark(#edf0f4, #1b202a);
  --line: light-dark(#e2e6ec, #232936);
  --line-strong: light-dark(#cbd2db, #343c4b);
  --text: light-dark(#14171c, #eef0f3);
  --text-2: light-dark(#3a3f47, #c9ced6);
  --muted: light-dark(#6b7079, #98a1ae);
  --emerald: light-dark(#047857, #34d399);
  --teal: light-dark(#0e7490, #22d3ee);
  --focus: light-dark(#059669, #34d399);
  --shadow: light-dark(rgb(20 23 28 / 0.08), rgb(0 0 0 / 0.5));
  --shadow-lg: light-dark(rgb(20 23 28 / 0.2), rgb(0 0 0 / 0.7));
  --glow-a: light-dark(rgb(16 185 129 / 0.22), rgb(16 185 129 / 0.2));
  --glow-b: light-dark(rgb(14 116 144 / 0.14), rgb(34 211 238 / 0.1));

  --good: light-dark(#047857, #34d399);
  --good-bg: light-dark(#e7f7ef, rgb(16 185 129 / 0.15));
  --bad: light-dark(#b91c1c, #f87171);
  --bad-bg: light-dark(#fdeeee, rgb(239 68 68 / 0.15));
  --warn: light-dark(#b45309, #fbbf24);
  --warn-bg: light-dark(#fdf3e2, rgb(245 158 11 / 0.14));
  --quiet-bg: light-dark(#eceff3, #232936);

  /* The shop app on the home page's phone. */
  --app-bg: light-dark(#ffffff, #16181d);
  --app-text: light-dark(#111827, #f3f4f6);
  --app-muted: light-dark(#6b7280, #9ca3af);
  --app-line: light-dark(#eceef2, #262a32);
  --app-fill: light-dark(#f5f6f8, #1f2229);
  --app-primary: light-dark(#4f46e5, #818cf8);
  --app-primary-text: light-dark(#ffffff, #111827);

  /* The terminal, dark in both themes. */
  --term: light-dark(#0f1116, #0c0e12);
  --term-bar: light-dark(#191c23, #14171d);
  --term-edge: light-dark(#0f1116, #2a303c);
  --t-text: #e6e8ec;
  --t-muted: #8b94a3;
  --t-green: #3fcf8e;
  --t-red: #ff7b72;
  --t-yellow: #f5c451;
  --t-path: #a5d6ff;
  --t-dir: #79b8ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
svg { display: block; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--focus) 26%, transparent); }
code { padding: 1px 6px; font: 0.86em var(--mono); background: var(--fill); border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
.icon { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* background-image, not the background shorthand: when background-clip overrides part of a shorthand
   that holds var(), Dark Reader can't read the shorthand from a linked style sheet. It then fills the
   text with its own near-black background. */
.grad { color: var(--emerald); background-image: linear-gradient(100deg, var(--emerald), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.center { text-align: center; }
.nw { white-space: nowrap; }

/* ------------------------------------------------------------ Header */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--fill); }
.bar .btn { margin-left: auto; }

/* ------------------------------------------------------------ Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  color: var(--text);
  font: 600 15.5px/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { background: var(--fill); }
.btn-primary { color: #fff; background: linear-gradient(100deg, #047857, #0e7490); border: 0; box-shadow: 0 10px 24px -10px rgb(4 120 87 / 0.7); }
.btn-primary:hover { background: linear-gradient(100deg, #065f46, #155e75); transform: translateY(-1px); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }

/* ------------------------------------------------------------ Home: hero */

/* Clipped sideways, because the glow behind the phone is wider than a small screen. */
.hero { position: relative; isolation: isolate; padding: 56px 0 0; overflow-x: clip; }
.hero-text { max-width: 920px; margin: 0 auto; text-align: center; }
/* The negative margin takes back the letter spacing after the last letter, so it centers. */
.eyebrow { display: inline-block; margin: 0 -0.16em 16px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(46px, 6.6vw, 80px); font-weight: 750; line-height: 1.04; letter-spacing: -0.048em; }
.lede { max-width: 36em; margin: 20px auto 32px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.lede .ln { display: block; }
.hero .actions { justify-content: center; }

/* The test on the left, the phone running it, and what qAuto printed on the right. Wider than
   the text, so the terminal's lines fit. */
.wide { max-width: 1340px; }
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 48px; margin: 56px 0 0; }
.scene > * { grid-row: 1; }
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 760px;
  height: 760px;
  translate: -50% -50%;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, transparent);
}

.note {
  position: relative;
  grid-column: 1;
  align-self: start;
  justify-self: end;
  width: min(100%, 360px);
  margin: 104px 0 0;
  padding: 20px 22px 22px;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px var(--shadow), 0 24px 48px -20px var(--shadow-lg);
}
.scene .term { grid-column: 3; align-self: start; justify-self: start; width: min(100%, 440px); margin: 232px 0 0; }
/* Dashed lines to the phone: from the test to the Apply button, and from the terminal to the total. */
.note::after, .scene .term::after { content: ""; position: absolute; top: 50%; width: 48px; border-top: 2px dashed var(--line-strong); }
.note::after { left: 100%; }
.scene .term::after { right: 100%; }
.note-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font: 12px var(--mono); }
.note-head .icon { width: 16px; height: 16px; }
.note-title { margin: 0 0 12px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }

.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-2); }
.mark { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; color: #fff; border-radius: 50%; }
.mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark-ok { background: #10b981; }
.mark-bad { background: #ef4444; }
.expect { margin: 14px 0 0; padding: 10px 12px; color: var(--text-2); font-size: 13.5px; background: var(--fill); border-radius: 12px; }
.expect b { color: var(--text); }

.pill {
  --tone: var(--muted);
  --tone-bg: var(--quiet-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  color: var(--tone);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  background: var(--tone-bg);
  border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.pill-good { --tone: var(--good); --tone-bg: var(--good-bg); }
.pill-bad { --tone: var(--bad); --tone-bg: var(--bad-bg); }
.pill-warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }

/* A terminal. What it prints is the client's own output (client/docs/cli.md), without the steps
   it prints as it goes. */
.term {
  position: relative;
  color: var(--t-text);
  background: var(--term);
  border: 1px solid var(--term-edge);
  border-radius: 16px;
  box-shadow: 0 1px 2px var(--shadow), 0 32px 64px -28px var(--shadow-lg);
}
.term-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 16px; color: var(--t-muted); font: 12px var(--mono); background: var(--term-bar); border-bottom: 1px solid rgb(255 255 255 / 0.06); border-radius: 15px 15px 0 0; }
.term-bar > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; flex: none; gap: 7px; }
.dots i { width: 11px; height: 11px; background: #3a3f4a; border-radius: 50%; }
/* One element a line. A line too long for the terminal wraps, and goes on under its own text.
   Paths break only after a slash. */
.lines { padding: 14px 18px 18px; font: 11.5px/1.7 var(--mono); }
.lines > * { padding-left: 2ch; text-indent: -2ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.lines > .head { padding-left: 8ch; text-indent: -8ch; }
.lines > .in { padding-left: 8ch; text-indent: 0; }
.lines > .kv { display: grid; grid-template-columns: 10ch minmax(0, 1fr); padding-left: 8ch; text-indent: 0; }
.t-muted { color: var(--t-muted); }
.t-red { color: var(--t-red); }
.t-yellow { color: var(--t-yellow); }
.t-b { font-weight: 700; }
.t-path { color: var(--t-path); }
.t-dir { color: var(--t-dir); font-weight: 700; }
.prompt { color: var(--t-green); -webkit-user-select: none; user-select: none; }
.cursor { display: inline-block; width: 0.6em; height: 1.2em; background: var(--t-text); vertical-align: -0.25em; opacity: 0.75; }

/* The phone, drawn in CSS. Its parts are named after the shop app's, so they stay inside .screen. */
.phone {
  grid-column: 2;
  position: relative;
  width: 300px;
  padding: 11px;
  background: #0e1014;
  border-radius: 48px;
  box-shadow: inset 0 0 0 1.5px light-dark(#2b303a, #454c5a), 0 2px 4px var(--shadow), 0 60px 100px -40px var(--shadow-lg);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 132px; width: 3px; height: 72px; background: #232730; border-radius: 0 3px 3px 0; }
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
  padding: 0 16px 10px;
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.4;
  background: var(--app-bg);
  border-radius: 38px;
}
.screen::before { content: ""; position: absolute; top: 13px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #0e1014; border-radius: 50%; }
.screen .status { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.screen .sys { display: flex; align-items: center; gap: 5px; }
.screen .status svg { height: 11px; width: auto; }
.screen .appbar { display: flex; align-items: center; gap: 10px; height: 46px; font-size: 17px; font-weight: 650; }
.screen .appbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen .item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 8px 0 0; padding: 12px 0 16px; border-bottom: 1px solid var(--app-line); }
.screen .thumb { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: linear-gradient(135deg, #f59e0b, #ec4899); border-radius: 14px; }
.screen .thumb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen .item b { display: block; font-size: 14px; }
.screen .item small { color: var(--app-muted); font-size: 12px; }
.screen .price { font-weight: 600; }
.screen .label { margin: 18px 0 8px; color: var(--app-muted); font-size: 12px; font-weight: 600; }
.screen .coupon { display: flex; gap: 8px; }
.screen .field { display: flex; flex: 1; align-items: center; height: 44px; padding: 0 12px; font: 600 14px var(--mono); letter-spacing: 0.04em; border: 1.5px solid var(--app-primary); border-radius: 12px; }
.screen .caret { width: 1.5px; height: 18px; margin-left: 2px; background: var(--app-primary); }
.screen .apply { position: relative; display: grid; place-items: center; width: 76px; height: 44px; color: var(--app-primary-text); font-weight: 650; background: var(--app-primary); border-radius: 12px; }
.screen .tap { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; background: rgb(16 185 129 / 0.3); border: 2px solid #10b981; border-radius: 50%; }
.screen .tap::after { content: ""; position: absolute; inset: -2px; border: 2px solid #10b981; border-radius: 50%; }
.screen .tip { position: absolute; right: -6px; bottom: calc(100% + 12px); padding: 5px 9px; color: #fff; font: 600 11px/1.3 var(--mono); white-space: nowrap; background: #0e1014; border-radius: 8px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.5); }
.screen .tip::after { content: ""; position: absolute; right: 32px; top: 100%; border: 6px solid transparent; border-top-color: #0e1014; }
.screen .tip b { color: #34d399; }
.screen .summary { display: grid; gap: 10px; margin: 22px 0 0; }
.screen .summary div { display: flex; justify-content: space-between; }
.screen .summary dt { color: var(--app-muted); }
.screen .summary dd { margin: 0; }
.screen .total { position: relative; margin-top: 6px; padding: 10px 12px; font-size: 15px; font-weight: 700; background: color-mix(in srgb, #ef4444 9%, transparent); border-radius: 12px; box-shadow: 0 0 0 2px #ef4444; }
.screen .total dt { color: var(--app-text); }
.screen .flag { position: absolute; right: 8px; top: -11px; padding: 1px 8px; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; background: #ef4444; border-radius: 999px; }
.screen .order { display: grid; place-items: center; height: 48px; margin: auto 0 0; color: var(--app-primary-text); font-weight: 650; background: var(--app-primary); border-radius: 14px; }
.screen .gesture { width: 110px; height: 4px; margin: 12px auto 0; background: var(--app-text); border-radius: 2px; opacity: 0.3; }

/* ------------------------------------------------------------ Sections */

.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 88px 0 0; padding: 0; list-style: none; }
.strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--text-2); font-size: 14.5px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.strip .icon { width: 16px; height: 16px; color: var(--emerald); stroke-width: 2.4; }

.section { padding: 128px 0 0; }
.section.tight { padding-top: 56px; }
.section.last { padding-bottom: 128px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; }
h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); font-weight: 750; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.section-head p:last-child:not(.kicker) { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px var(--shadow); }
.card-art { display: grid; place-items: center; height: 200px; padding: 20px; background: radial-gradient(120% 100% at 50% 0%, var(--glow-a), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); }
.card-body { padding: 24px 26px 28px; }
.card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card h3 .n { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; font-size: 14px; background: linear-gradient(135deg, #047857, #0e7490); border-radius: 50%; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.doc { width: 100%; max-width: 270px; padding: 14px 16px; color: var(--text-2); font: 12px/1.75 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px -14px var(--shadow-lg); }
.doc .ph { color: light-dark(#7c3aed, #c4b5fd); }
.doc .ex { display: block; margin-top: 6px; color: var(--muted); }

.board { display: flex; align-items: center; gap: 8px; }
.board > svg { width: 16px; height: 16px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini { position: relative; display: flex; flex-direction: column; gap: 7px; width: 72px; height: 130px; padding: 18px 9px 9px; background: var(--app-bg); border: 5px solid #0e1014; border-radius: 16px; box-shadow: 0 12px 24px -12px var(--shadow-lg); }
.mini i { display: block; height: 6px; background: var(--app-fill); border-radius: 3px; }
.mini .w80 { width: 80%; }
.mini .w55 { width: 55%; }
.mini .in { height: 14px; background: transparent; border: 1.5px solid var(--app-line); border-radius: 5px; }
.mini .bt { position: relative; height: 16px; margin-top: auto; background: var(--app-primary); border-radius: 5px; }
.mini .hi { height: auto; color: var(--app-text); font: 700 10px/1.2 var(--sans); background: none; }
.mini .ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: rgb(16 185 129 / 0.3); border: 2px solid #10b981; border-radius: 50%; }
.mini-ok { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: #10b981; border: 2px solid var(--bg-2); border-radius: 50%; }
.mini-ok svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.verdicts { display: grid; gap: 8px; width: 100%; max-width: 300px; margin: 0; padding: 0; list-style: none; }
.verdicts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px 5px 14px; color: var(--muted); font-size: 12.5px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.split .section-head { margin: 0; text-align: left; }
.checks { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks .tick { display: grid; flex: none; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: var(--emerald); background: var(--good-bg); border-radius: 50%; }
.checks .tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.chat { display: grid; gap: 14px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 20px; }
.msg p { margin: 0; }
.msg p + p, .msg .run + p { margin-top: 10px; }
.who { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.75; }
.you { justify-self: end; color: #fff; background: linear-gradient(100deg, #047857, #0e7490); border-bottom-right-radius: 6px; }
.agent { color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px var(--shadow); }
.run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; padding: 10px 12px; font-size: 14px; background: var(--fill); border-radius: 12px; }
.run .quiet { color: var(--muted); font-size: 13px; }

/* Privacy: dark in both themes. */
.band { margin: 128px 0 0; padding: 104px 0; color: #eef0f3; background: radial-gradient(80% 120% at 0% 0%, rgb(16 185 129 / 0.16), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgb(14 116 144 / 0.22), transparent 60%), #0b0d11; }
.band .section-head p:last-child { color: #a3acb9; }
.band .kicker { color: #34d399; }
.band-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.band-grid > div { padding: 26px 24px; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 20px; }
.band-grid .icon { width: 22px; height: 22px; margin: 0 0 18px; color: #34d399; }
.band-grid h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.band-grid p { margin: 0; color: #a3acb9; font-size: 14.5px; }
.band-grid code { color: #e5e7eb; background: rgb(255 255 255 / 0.08); }
.band .more { color: #34d399; }
.more { display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 0; color: var(--emerald); font-size: 15.5px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* The plans, on the home page and the pricing page. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px var(--shadow); }
/* .plan.plan-best, not .plan-best: Dark Reader repeats the .plan rule after this style sheet, and at
   equal weight its 1px border would win. */
.plan.plan-best { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #10b981, #0e7490) border-box; box-shadow: 0 24px 48px -24px var(--shadow-lg); }
.plan-name { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 16px; font-weight: 700; }
.badge { padding: 3px 10px; color: #fff; font-size: 12px; font-weight: 650; background: linear-gradient(100deg, #047857, #0e7490); border-radius: 999px; }
.plan-price { margin: 14px 0 4px; font-size: 42px; font-weight: 750; line-height: 1.1; letter-spacing: -0.04em; }
.plan-price small { color: var(--muted); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan p { margin: 0; color: var(--text-2); }
.plan .about { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; }
.pricing-foot { margin: 24px 0 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.pricing-foot .more { margin: 10px 0 0; }

.cta {
  position: relative;
  overflow: hidden;
  padding: 88px 32px;
  color: #fff;
  text-align: center;
  background: radial-gradient(60% 90% at 85% 10%, rgb(255 255 255 / 0.18), transparent 60%), linear-gradient(120deg, #047857, #0e7490);
  border-radius: 32px;
}
.cta h2 { max-width: 15em; margin: 0 auto; }
.cta p { max-width: 32em; margin: 18px auto 32px; color: rgb(255 255 255 / 0.85); font-size: 18px; }
.cta .actions { justify-content: center; }
.btn-white { color: #064e3b; background: #fff; border: 0; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.4); }
.btn-white:hover { background: #ecfdf5; }
.btn-clear { color: #fff; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.4); }
.btn-clear:hover { background: rgb(255 255 255 / 0.18); }

/* ------------------------------------------------------------ Other pages */

/* The top of the pricing, legal, and 404 pages, on a glow like the one behind the phone. */
.page-head, .doc-head { position: relative; isolation: isolate; }
.page-head::before, .doc-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -300px;
  width: min(1000px, 100vw);
  height: 640px;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, transparent);
  opacity: 0.75;
}
.page-head { padding: 80px 0 0; text-align: center; }
.page-head h1 { max-width: 13em; margin: 0 auto; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.page-head .lede { margin-bottom: 0; text-wrap: balance; }
.doc-head { padding: 80px 0 40px; }
.doc-head .wrap { max-width: 776px; }
.doc-head h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.045em; }
.updated { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }

/* Pricing. */
.plan-credits { font-weight: 650; }
.plan .checks { gap: 10px; margin: 22px 0 0; font-size: 15px; }
.plans-note { max-width: 40em; margin: 28px auto 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.page-actions { justify-content: center; margin: 28px 0 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.fact { padding: 28px 28px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px var(--shadow); }
.fact-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 18px; color: var(--emerald); background: var(--good-bg); border-radius: 14px; }
.fact-icon .icon { width: 22px; height: 22px; }
.fact h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.fact p { margin: 0; color: var(--muted); font-size: 15.5px; }

.faq { max-width: 780px; margin: 0 auto; padding: 4px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16.5px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* A plus in a circle, which turns into a cross when the answer is open. */
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: linear-gradient(var(--text-2), var(--text-2)) center / 12px 2px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 2px 12px no-repeat, var(--fill);
  border-radius: 50%;
  transition: rotate 0.2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { max-width: 64ch; margin: -6px 0 22px; color: var(--muted); }
.faq a { color: var(--emerald); text-underline-offset: 3px; }

/* Terms, privacy, and refunds. */
.prose { max-width: 712px; margin: 0 auto; padding: 0 0 120px; color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { margin: 48px 0 12px; color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--emerald); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--emerald); text-underline-offset: 3px; }
.prose .summary { margin: 0 0 8px; padding: 24px 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px var(--shadow), 0 24px 48px -32px var(--shadow-lg); }
.prose .summary h2 { margin: 0 0 8px; font-size: 17px; }
.prose .summary ul { margin: 0; }

/* The page for an address that doesn't exist. */
.notfound { padding-bottom: 128px; }
.notfound .term { max-width: 460px; margin: 0 auto 48px; text-align: left; }
.notfound .actions { justify-content: center; }

/* ------------------------------------------------------------ Footer */

.footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot .logo { color: var(--text); font-size: 16px; }
.foot .logo svg { width: 22px; height: 22px; }
.foot p { margin: 8px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.legal { margin: 28px 0 0; font-size: 13px; }

/* ------------------------------------------------------------ Smaller screens */

/* One column: the phone first, then the test and the terminal. Below this width the terminal
   would be too narrow for its lines. */
@media (max-width: 1260px) {
  .scene { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 560px; margin-inline: auto; }
  .scene::before { top: 311px; }
  .scene > * { grid-row: auto; grid-column: 1; }
  .phone { order: -1; justify-self: center; margin-bottom: 20px; }
  .note, .scene .term { grid-column: 1; width: 100%; margin: 0; }
  .note::after, .scene .term::after { display: none; }
}

@media (max-width: 1080px) {
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cards, .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 760px) {
  .lede .ln { display: inline; }
  .facts { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  /* Two rows on a phone, so it scrolls away instead of covering the page. */
  .header { position: static; }
  .bar { flex-wrap: wrap; gap: 4px 16px; height: auto; padding-block: 10px 6px; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .hero { padding: 40px 0 0; }
  .eyebrow { margin-right: -0.14em; font-size: 12px; letter-spacing: 0.14em; }
  .lede { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .scene { gap: 16px; margin-top: 44px; }
  .scene::before { top: 280px; width: 640px; height: 640px; }
  .phone { zoom: 0.9; margin-bottom: 16px; }
  .term-bar { height: 34px; }
  .lines { padding: 12px 14px 16px; font-size: 11px; }
  .lines > .in, .lines > .kv { padding-left: 2ch; }
  .lines > .head { padding-left: 2ch; text-indent: -2ch; }
  .strip { margin-top: 56px; }
  /* Small enough that three phones fit on a 320-pixel screen. */
  .board { gap: 6px; }
  .mini { width: 64px; height: 118px; }
  .strip li { font-size: 13.5px; }
  .section { padding-top: 88px; }
  .section.tight { padding-top: 40px; }
  .section.last { padding-bottom: 88px; }
  .section-head { margin-bottom: 40px; }
  .chat { padding: 16px; border-radius: 22px; }
  .msg { max-width: 94%; }
  .band { margin-top: 88px; padding: 72px 0; }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 64px 20px; border-radius: 24px; }
  .cta .actions .btn, .page-actions .btn { flex: 1 1 auto; }
  .page-head { padding-top: 48px; }
  .doc-head { padding: 48px 0 28px; }
  .fact { padding: 24px; }
  .faq { padding: 0 20px; border-radius: 20px; }
  .prose { padding-bottom: 88px; font-size: 16px; }
  .prose .summary { padding: 20px 20px 18px; }
  .notfound { padding-bottom: 88px; }
}

/* The longest verdict is wider than its card on a 320-pixel screen. */
@media (max-width: 359px) {
  .verdicts { zoom: 0.88; }
}

@media (prefers-reduced-motion: no-preference) {
  .screen .tap::after { animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
  .screen .caret, .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
  @keyframes blink { 50% { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .faq summary::after { transition: none; }
  .btn-primary:hover { transform: none; }
}
