/* Profit Outpost public website (v7, "Outpost, light and dark"). Hand-written; see site-src/DESIGN.md.
   One stylesheet and two small same-origin scripts (theme.js, hero-waves.js); no inline styles or scripts and no
   external assets (strict CSP). Light is the default theme; html[data-theme="dark"] swaps the tokens.
   Palette: the 21st.dev Darkmatter theme (serafimcloud) adapted to the Outpost identity: copper (brand action),
   teal (your Amazon account), warm sand (Keepa research), plus profit green and loss red. */

/* ------------------------------------------------------------------------------------------------ tokens */

:root {
  /* the system stacks (owner feedback round 4, 2026-10-29): no webfonts are served */
  --sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --ui: var(--sans);
  --r-xl: 28px;
  --r-card: 22px;
  --r-inner: 12px;
  --r-btn: 999px;
  --w: 1200px;
  --g: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* light (the default) */
  --bg: #fbfaf7;
  --bg-2: #f3f0ea;
  --card: #ffffff;
  --card-2: #f5f2ed;
  --ink: #3b3732;
  --ink-hi: #191612;
  --muted: #69625a;
  --line: #e7e2da;
  --line-hi: #d5cec3;
  --brand: #d87943;
  --brand-ink: #a14f24;
  --brand-mid: #c2652f;
  --btn-top: #b85d2c;
  --btn-bot: #a14f24;
  --on-brand: #ffffff;
  --ring: #a14f24;
  --teal: #456666;
  --keepa: #7a5c24;
  --profit: #1c7548;
  --loss: #b02a1c;
  --warn: #865900;
  --brand-soft: rgb(216 121 67 / 0.12);
  --teal-soft: rgb(82 117 117 / 0.12);
  --keepa-soft: rgb(251 203 151 / 0.4);
  --profit-soft: rgb(28 117 72 / 0.1);
  --loss-soft: rgb(176 42 28 / 0.08);
  --warn-soft: rgb(229 180 84 / 0.22);
  --glass: rgb(255 255 255 / 0.66);
  --rim: rgb(255 255 255 / 0.9);
  --glow-a: rgb(216 121 67 / 0.34);
  --glow-b: rgb(82 117 117 / 0.26);
  --glow-c: rgb(251 203 151 / 0.5);
  --blob-a: rgb(232 150 98 / 0.28);
  --blob-b: rgb(110 160 160 / 0.2);
  --blob-c: rgb(251 203 151 / 0.42);
  --shadow: 0 1px 2px rgb(40 30 20 / 0.05), 0 4px 16px -8px rgb(40 30 20 / 0.08);
  --shadow-hi: 0 24px 60px -28px rgb(40 30 20 / 0.3);
  --shadow-win: 0 2px 6px rgb(40 30 20 / 0.06), 0 50px 120px -50px rgb(60 35 15 / 0.45);
  --wave-1: rgb(216 121 67 / 0.62);
  --wave-2: rgb(69 102 102 / 0.42);
  --wave-3: rgb(236 170 110 / 0.62);
  --wave-4: rgb(161 79 36 / 0.32);
  --wave-5: rgb(25 22 18 / 0.14);
  --wave-blend: source-over;
  --wave-glow: 18;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0f0e10;
  --bg-2: #161518;
  --card: #1d1c20;
  --card-2: #27252b;
  --ink: #d2cec9;
  --ink-hi: #f6f3ef;
  --muted: #a7a19a;
  --line: #343138;
  --line-hi: #4a4650;
  --brand: #ee925a;
  --brand-ink: #f5a16a;
  --brand-mid: #f4b27f;
  --btn-top: #f0a06c;
  --btn-bot: #e78a53;
  --on-brand: #1a0e07;
  --ring: #f0995f;
  --teal: #92bcbc;
  --keepa: #fdd2a3;
  --profit: #78d8a0;
  --loss: #f79487;
  --warn: #eebd5c;
  --brand-soft: rgb(231 138 83 / 0.15);
  --teal-soft: rgb(95 135 135 / 0.22);
  --keepa-soft: rgb(251 203 151 / 0.13);
  --profit-soft: rgb(111 207 151 / 0.13);
  --loss-soft: rgb(242 139 125 / 0.13);
  --warn-soft: rgb(229 180 84 / 0.15);
  --glass: rgb(29 28 32 / 0.68);
  --rim: rgb(255 255 255 / 0.09);
  --glow-a: rgb(231 138 83 / 0.3);
  --glow-b: rgb(95 135 135 / 0.3);
  --glow-c: rgb(251 203 151 / 0.14);
  --blob-a: rgb(231 138 83 / 0.2);
  --blob-b: rgb(95 135 135 / 0.24);
  --blob-c: rgb(251 203 151 / 0.1);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 4px 16px -8px rgb(0 0 0 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.04);
  --shadow-hi: 0 30px 80px -30px rgb(0 0 0 / 0.85);
  --shadow-win: 0 2px 6px rgb(0 0 0 / 0.4), 0 60px 140px -50px rgb(0 0 0 / 0.95);
  --wave-1: rgb(231 138 83 / 0.75);
  --wave-2: rgb(127 168 168 / 0.6);
  --wave-3: rgb(251 203 151 / 0.55);
  --wave-4: rgb(216 121 67 / 0.5);
  --wave-5: rgb(237 237 237 / 0.16);
  --wave-blend: lighter;
  --wave-glow: 34;
  color-scheme: dark;
}

.tone-amazon { --tone: var(--teal); --tone-soft: var(--teal-soft); }
.tone-keepa { --tone: var(--keepa); --tone-soft: var(--keepa-soft); }
.tone-either { --tone: var(--brand-ink); --tone-soft: var(--brand-soft); }

/* Screenshots follow the theme: the light capture in light mode, the dark capture in dark mode (pic() in
   scripts/build-site.py). The hidden one is loading="lazy", so it isn't fetched. */
.th-d { display: none; }
html[data-theme="dark"] .th-l { display: none; }
html[data-theme="dark"] .th-d { display: block; }

/* ------------------------------------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink-hi);
  font-weight: 600;
  letter-spacing: -0.019em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ink-hi);
  text-decoration-line: underline;
  text-decoration-color: var(--line-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--brand-ink);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

b,
strong {
  color: var(--ink-hi);
  font-weight: 600;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 0.88em;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink-hi);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink-hi);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* The accented words of a headline: a copper-to-teal gradient (large text, at least 3:1 everywhere). */
.em {
  color: var(--brand-ink);
  font-style: normal;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .em {
    background: linear-gradient(100deg, var(--brand-ink) 0%, var(--brand-mid) 48%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .ink-grad,
  .phead-h,
  .sec-top h2,
  .foot-word {
    background-image: linear-gradient(180deg, var(--ink-hi) 35%, color-mix(in srgb, var(--ink-hi) 66%, var(--bg)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .phead-h .em,
  .sec-top h2 .em {
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active) {
  .em,
  .ink-grad,
  .phead-h,
  .sec-top h2,
  .foot-word {
    background: none;
    color: CanvasText;
  }
}

.kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.5;
}


.chev {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-ink);
  font-weight: 550;
  text-decoration: none;
}

.more:hover .chev,
a:hover > .chev {
  transform: translateX(3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-hi);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: 0.06em;
  text-transform: none;
}

.tag svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.tag-ea svg { color: var(--brand-ink); }
.tag-test svg { color: var(--warn); }
.tag-amz svg { color: var(--muted); }

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.note.center {
  width: min(100% - 2 * var(--g), 760px);
  margin: 48px auto 0;
  text-align: center;
}

.env-note {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--r-inner);
  background: var(--warn-soft);
  color: var(--ink);
  font-size: 0.9375rem;
  text-align: left;
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}

.list li::marker {
  color: var(--brand-ink);
}

.list-num {
  padding-left: 1.4em;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}

/* ------------------------------------------------------------------------------------------------ buttons */

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.acts-c {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.15s, border-color 0.15s,
    color 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 26px -12px var(--glow-a), 0 1px 2px rgb(0 0 0 / 0.12);
}

.btn-primary:hover {
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 16px 34px -12px var(--glow-a), 0 1px 2px rgb(0 0 0 / 0.12);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  border-color: var(--line-hi);
  background: var(--glass);
  color: var(--ink-hi);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--card);
  color: var(--ink-hi);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------------------------------------------------------------------------ top bar */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar-h);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}

.bar-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(100% - 2 * var(--g), var(--w));
  height: 100%;
  margin: 0 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink-hi);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.014em;
  text-decoration: none;
  white-space: nowrap;
}

.mark:hover {
  color: var(--ink-hi);
}

.mark-icon {
  width: 28px;
  height: 28px;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bar-nav a,
.bar-link {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.bar-nav a:hover,
.bar-link:hover {
  background: color-mix(in srgb, var(--ink-hi) 6%, transparent);
  color: var(--ink-hi);
}

.bar-nav a[aria-current="page"],
.bar-link[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.bar-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  justify-self: end;
}

.bar-cta {
  margin-left: 4px;
}

.theme-btn,
.menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-hi);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.2s var(--ease);
}

.theme-btn[hidden] {
  display: none;
}

.theme-btn:hover,
.menu summary:hover {
  border-color: var(--line-hi);
  background: var(--card);
}

.theme-btn svg,
.menu summary svg {
  width: 18px;
  height: 18px;
}

.theme-btn .i-sun,
html[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}

html[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}

.theme-btn:active svg {
  transform: rotate(-25deg);
}

.theme-btn svg {
  transition: transform 0.3s var(--ease);
}

.menu {
  display: none;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.25s var(--ease);
}

.menu .m-a {
  transform-origin: 10px 7px;
}

.menu .m-b {
  transform-origin: 10px 13px;
}

.menu[open] .m-a {
  transform: translateY(3px) rotate(45deg);
}

.menu[open] .m-b {
  transform: translateY(-3px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  max-height: calc(100dvh - var(--bar-h));
  padding: 12px var(--g) 24px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-hi);
}

.menu[open] .menu-panel {
  animation: menu-down 0.25s var(--ease) both;
}

@keyframes menu-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.menu-panel a:not(.btn) {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-hi);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.menu-panel a[aria-current="page"] {
  color: var(--brand-ink);
}

.menu-panel .btn {
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .bar-nav {
    display: none;
  }

  .bar-in {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 640px) {
  .bar-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .bar-cta {
    display: none;
  }
}

@media (max-width: 360px) {
  .mark span {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------------------------------------------ sections */

main {
  display: block;
}

.sec {
  width: min(100% - 2 * var(--g), var(--w));
  margin: clamp(96px, 12vw, 168px) auto 0;
}

/* A full-width tinted band behind a section, without widening the page. */
.decide,
.planes,
.steps {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--bg-2);
  box-shadow: 0 0 0 100vmax var(--bg-2);
  clip-path: inset(0 -100vmax);
}

.sec-top {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-top-c {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.sec-top-c .kick {
  justify-self: center;
}

.sec-top h2 {
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.sec-top > p:not(.kick) {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
}

/* ------------------------------------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--bar-h) + clamp(56px, 9vw, 120px)) 0 0;
}

.hero-bg,
.phead-bg {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(640px, 100svh, 940px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 62%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg::after,
.phead-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 50%, rgb(0 0 0 / 0.22), #000 100%);
  mask-image: radial-gradient(ellipse 34% 30% at 50% 50%, rgb(0 0 0 / 0.22), #000 100%);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.waves.on {
  opacity: 1;
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
}

.blob-a {
  top: -22%;
  left: -8%;
  background: radial-gradient(closest-side, var(--blob-a), transparent);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
  top: -4%;
  right: -12%;
  background: radial-gradient(closest-side, var(--blob-b), transparent);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
  bottom: -18%;
  left: 30%;
  background: radial-gradient(closest-side, var(--blob-c), transparent);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  to { transform: translate(6%, 8%) scale(1.08); }
}

@keyframes drift-b {
  to { transform: translate(-8%, 6%) scale(0.94); }
}

.hero-in {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(100% - 2 * var(--g), 1000px);
  margin: 0 auto;
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s, color 0.15s;
}

.announce:hover {
  border-color: var(--line-hi);
  color: var(--ink-hi);
}

.announce-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  color: var(--on-brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.announce-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce:hover .chev {
  transform: translateX(3px);
}

.hero-h {
  max-width: 15ch;
  font-size: clamp(2.625rem, 1.2rem + 5.6vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-h .ink-grad,
.hero-h .em {
  padding-bottom: 0.06em;
}

.hero-lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.3125rem);
  line-height: 1.55;
}

.hero .acts {
  margin-top: 6px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.hero-meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--line-hi);
}

.hero-shot,
.fhead-win {
  position: relative;
  isolation: isolate;
  width: min(100% - 2 * var(--g), 1180px);
  margin: clamp(56px, 8vw, 96px) auto 0;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  inset: -16% 5% 30%;
  background:
    radial-gradient(closest-side at 30% 55%, var(--glow-a), transparent),
    radial-gradient(closest-side at 72% 45%, var(--glow-b), transparent),
    radial-gradient(closest-side at 50% 20%, var(--glow-c), transparent);
  filter: blur(24px);
  opacity: 0.95;
}

.hero-cap {
  width: min(100% - 2 * var(--g), 1180px);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 2 * var(--g), 1100px);
  margin: clamp(40px, 5vw, 56px) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.facts > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  border-left: 0;
}

.facts dt {
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.facts dd {
  color: var(--ink-hi);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.006em;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div:nth-child(odd) {
    border-left: 0;
  }

  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts > div {
    border-left: 0;
    padding: 16px 20px;
  }

  .facts > div + div {
    border-top: 1px solid var(--line);
  }

  .announce-t {
    white-space: normal;
    text-align: left;
  }
}

/* ------------------------------------------------------------------------------------------------ app windows */

.win {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.win-frame {
  overflow: hidden;
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-hi);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}

.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-hi);
}

.win-bar i:first-child {
  background: #e7735d;
}

.win-bar i:nth-child(2) {
  background: #e8b34f;
}

.win-bar i:nth-child(3) {
  background: #62b27a;
}

.win-bar span {
  flex: 1;
  margin-right: 46px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-pic img {
  width: 100%;
}

.win figcaption {
  color: var(--muted);
  font-size: 0.8125rem;
}

.win-hero .win-frame,
.win-lead .win-frame {
  border-radius: 20px;
  box-shadow: var(--shadow-win), 0 0 0 7px color-mix(in srgb, var(--card) 45%, transparent);
}

.win-hero .win-bar,
.win-lead .win-bar {
  height: 40px;
}

.win-tall {
  max-width: 380px;
  margin-inline: auto;
}

.win-inline {
  margin-top: 24px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* ------------------------------------------------------------------------------------------------ max cost */

.decide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.decide-copy {
  display: grid;
  gap: 18px;
}

.decide-copy h2 {
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.decide-copy p:not(.kick) {
  color: var(--muted);
  font-size: 1.0625rem;
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-hi), inset 0 1px 0 var(--rim);
}

.calc-head {
  display: grid;
  gap: 6px;
}

.calc-name {
  color: var(--ink-hi);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.calc-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.calc-max {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--teal-soft);
  text-align: right;
}

.calc-max p:first-child {
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.calc-max-n {
  color: var(--teal);
  font-family: var(--sans);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.calc-max-why {
  color: var(--ink);
  font-size: 0.8125rem;
}

.calc-pick {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.calc-pick legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--ink-hi);
  font-size: 0.875rem;
  font-weight: 600;
}

.calc-r {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-pick label {
  padding: 8px 14px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.calc-pick label:hover {
  border-color: var(--muted);
  color: var(--ink-hi);
}

.calc-r:checked + label {
  border-color: transparent;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  color: var(--on-brand);
}

.calc-r:focus-visible + label {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.calc-scale {
  position: relative;
  grid-column: 1 / -1;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.calc-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 67.45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--profit-soft), color-mix(in srgb, var(--profit) 60%, transparent));
}

.calc-line {
  position: absolute;
  top: -6px;
  left: 47.5%;
  width: 22px;
  height: 22px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--ink-hi);
  box-shadow: var(--shadow);
  translate: -50% 0;
  transition: left 0.35s var(--ease);
}

.calc-tick {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem;
}

.calc-tick-max {
  left: 67.45%;
  translate: -50% 0;
  color: var(--teal);
}

.calc-tick-end {
  left: auto;
  right: 0;
}

.calc:has(#c-600:checked) .calc-line { left: 30%; }
.calc:has(#c-800:checked) .calc-line { left: 40%; }
.calc:has(#c-950:checked) .calc-line { left: 47.5%; }
.calc:has(#c-1100:checked) .calc-line { left: 55%; }
.calc:has(#c-1349:checked) .calc-line { left: 67.45%; }
.calc:has(#c-1500:checked) .calc-line { left: 75%; }
.calc:has(#c-1700:checked) .calc-line { left: 85%; }

.calc-out {
  grid-column: 1 / -1;
  min-height: 112px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calc-res {
  display: none;
  gap: 14px;
}

.calc:has(#c-600:checked) .r-600,
.calc:has(#c-800:checked) .r-800,
.calc:has(#c-950:checked) .r-950,
.calc:has(#c-1100:checked) .r-1100,
.calc:has(#c-1349:checked) .r-1349,
.calc:has(#c-1500:checked) .r-1500,
.calc:has(#c-1700:checked) .r-1700 {
  display: grid;
  animation: fade-up 0.25s var(--ease) both;
}

@supports not selector(:has(a)) {
  .r-950 {
    display: grid;
  }
}

.calc-res dl {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px clamp(24px, 4vw, 48px);
}

.calc-res dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.calc-res dd {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.calc-res dd.big {
  color: var(--profit);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.017em;
  line-height: 1.1;
}

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--ink-hi);
  font-size: 0.875rem;
  font-weight: 550;
}

.verdict svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.v-ok svg { color: var(--profit); }
.v-edge svg { color: var(--warn); }
.v-no svg { color: var(--loss); }

.calc-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8125rem;
}

@keyframes fade-up {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 900px) {
  .decide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .calc {
    grid-template-columns: 1fr;
  }

  .calc-max {
    text-align: left;
  }
}

/* ------------------------------------------------------------------------------------------------ bento */

.bgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "a a a a b b"
    "c c c d d d"
    "e e e f f f";
  gap: 18px;
}

.bcell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--card)) 0%, var(--card) 58%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
  transition: transform 0.3s var(--ease), border-color 0.2s, box-shadow 0.3s var(--ease);
}

.bcell:hover {
  border-color: color-mix(in srgb, var(--tone) 35%, var(--line));
  box-shadow: var(--shadow-hi), inset 0 1px 0 var(--rim);
  transform: translateY(-3px);
}

.bcell-a { grid-area: a; }
.bcell-b { grid-area: b; }
.bcell-c { grid-area: c; }
.bcell-d { grid-area: d; }
.bcell-e { grid-area: e; }
.bcell-f { grid-area: f; }

.bcell-t {
  display: grid;
  gap: 10px;
  padding: 28px 28px 22px;
}

.bcell-k,
.tour-k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--tone);
  font-size: 0.8125rem;
  font-weight: 600;
}

.bcell-k .ficon,
.tour-k .ficon {
  width: 18px;
  height: 18px;
}

.bcell h3 {
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.017em;
}

.bcell p:not(.bcell-k) {
  color: var(--muted);
  font-size: 0.9375rem;
}

.bcell .more {
  margin-top: 2px;
  font-size: 0.875rem;
}

.bcell-m {
  position: relative;
  flex: 1;
  min-height: 230px;
  margin: 0 14px 14px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--tone-soft), transparent 60%),
    var(--card-2);
}

.bcell-shot {
  position: absolute;
  inset: 22px 0 0 22px;
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--r-inner) 0 0 0;
  box-shadow: var(--shadow-hi);
}

.bcell-a .bcell-m,
.bcell-b .bcell-m {
  min-height: 320px;
}

.bcell-b .bcell-shot {
  inset: 22px 22px 0;
  border-right: 1px solid var(--line-hi);
  border-radius: var(--r-inner) var(--r-inner) 0 0;
}

.bcell-d .bcell-shot,
.bcell-e .bcell-shot {
  top: 50%;
  bottom: auto;
  translate: 0 -50%;
  border-bottom: 1px solid var(--line-hi);
  border-radius: var(--r-inner) 0 0 var(--r-inner);
}

.bcell-d .bcell-shot img,
.bcell-e .bcell-shot img {
  width: 200%;
  height: auto;
  max-width: none;
  object-fit: initial;
}

.bcell-d .bcell-shot img {
  width: 125%;
}

.bcell-e .bcell-shot img {
  width: 210%;
}

.bcell-c .bcell-m,
.bcell-f .bcell-m {
  display: grid;
  align-items: center;
}

.bcell .stage-bento {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 960px) {
  .bgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "d e"
      "f f";
  }
}

@media (max-width: 640px) {
  .bgrid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }

  .bcell-t {
    padding: 24px 22px 18px;
  }

  .bcell-b .bcell-m {
    min-height: 380px;
  }
}

/* ------------------------------------------------------------------------------------------------ tour (screens, alternating) */

.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.tour-row + .tour-row {
  margin-top: clamp(72px, 10vw, 136px);
}

.tour-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.tour-flip .tour-t {
  order: 2;
}

.tour-t {
  display: grid;
  gap: 16px;
}

.tour-t h3 {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.tour-t p:not(.tour-k) {
  color: var(--muted);
  font-size: 1.0625rem;
}

.tour-m {
  position: relative;
  isolation: isolate;
}

.tour-m::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0;
  background: radial-gradient(closest-side, var(--tone-soft), transparent);
  filter: blur(10px);
}

@media (max-width: 900px) {
  .tour-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-flip .tour-t {
    order: 0;
  }
}

/* ------------------------------------------------------------------------------------------------ data planes */

.planes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plane {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, var(--card)), var(--card) 60%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}

.plane-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-hi);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.017em;
}

.plane-name i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 5px var(--tone-soft);
}

.plane-say {
  color: var(--muted);
}

.plane-status {
  color: var(--ink-hi);
  font-size: 0.9375rem;
  font-weight: 500;
}

.shot-plane {
  max-height: 300px;
  margin-top: 8px;
  box-shadow: var(--shadow-hi);
}

@media (max-width: 760px) {
  .planes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------------------------------ all parts */

.items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.items a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "i n" "i l";
  gap: 4px 14px;
  height: 100%;
  padding: 20px 44px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.items a:hover {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hi);
}

.it-icon {
  grid-area: i;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--tone-soft);
  color: var(--tone);
}

.it-name {
  grid-area: n;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink-hi);
  font-weight: 600;
  letter-spacing: -0.006em;
}

.it-line {
  grid-area: l;
  color: var(--muted);
  font-size: 0.875rem;
}

.items .chev {
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .items {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------------------------------ steps */

.steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.steps-list::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi) 12%, var(--line-hi) 88%, transparent);
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}

.step-n {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  color: var(--on-brand);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--bg-2), 0 8px 20px -8px var(--glow-a);
}

.step h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.014em;
}

.step p {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-list::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------------------------------ plan */

.plan-page {
  position: relative;
  margin-top: 0;
  padding-top: calc(var(--bar-h) + clamp(64px, 9vw, 112px));
}

.plan-top {
  position: relative;
  isolation: isolate;
}

.plan-top .phead-bg {
  height: 640px;
  min-height: 0;
}

.plan-page .plan-h {
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

.plan-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(140deg, var(--brand), var(--line) 38%, var(--line) 62%, var(--teal)) border-box;
  box-shadow: var(--shadow-hi);
}

.plan-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 8% -6%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(30px);
  opacity: 0.6;
}

.plan-left {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  background: linear-gradient(180deg, var(--brand-soft), transparent 70%);
}

.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-hi);
  font-size: 1.125rem;
  font-weight: 600;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.plan-n {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(3.5rem, 2.6rem + 3vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.033em;
  line-height: 1;
}

.plan-per {
  color: var(--muted);
}

.plan-sub {
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan-left .acts {
  margin-top: 8px;
}

.plan-right {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.plan-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ticks {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-hi);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--profit-soft);
}

.ticks li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid var(--profit);
  border-left: 2px solid var(--profit);
  rotate: -45deg;
}

.plan-terms {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 820px) {
  .plan-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-left {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  .plan-right {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ------------------------------------------------------------------------------------------------ questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-top {
  position: sticky;
  top: calc(var(--bar-h) + 32px);
  display: grid;
  gap: 16px;
}

.faq-top .kick {
  justify-self: start;
}

.faq-top h2 {
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.faq-top p:not(.kick) {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.qa {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qa[open] {
  border-color: var(--line-hi);
  box-shadow: var(--shadow-hi);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 24px;
  border-radius: 18px;
  color: var(--ink-hi);
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.006em;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}

.qa summary i::before,
.qa summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
}

.qa summary i::after {
  rotate: 90deg;
  transition: rotate 0.3s var(--ease);
}

.qa[open] summary i {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand-ink);
  transform: rotate(180deg);
}

.qa[open] summary i::after {
  rotate: 0deg;
}

.qa-a {
  padding: 0 24px 22px;
  color: var(--ink);
}

.qa[open] .qa-a {
  animation: fade-up 0.3s var(--ease) both;
}

.faq-page {
  display: block;
  max-width: 860px;
  margin-top: clamp(40px, 5vw, 64px);
}

.faq-tight {
  max-width: 1040px;
}

.faq-tight .faq-top {
  position: static;
}

@media (max-width: 860px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-top {
    position: static;
  }
}

/* ------------------------------------------------------------------------------------------------ download band, closer */

.get-in,
.closer-in {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) clamp(22px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow-hi), inset 0 1px 0 var(--rim);
  text-align: center;
}

.get-in::before,
.closer-in::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(50% 70% at 15% 0%, var(--blob-a), transparent),
    radial-gradient(50% 70% at 90% 100%, var(--blob-b), transparent),
    radial-gradient(40% 50% at 60% 10%, var(--blob-c), transparent);
}

.get-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.get-copy .kick {
  justify-self: center;
}

.get-copy h2,
.closer-in h2 {
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.get-copy > p:not(.kick, .acts, .dl-meta, .ask-note),
.closer-in > p:not(.acts) {
  color: var(--muted);
  font-size: 1.0625rem;
}

.get-copy .acts {
  justify-content: center;
}

.dl-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.dl-none {
  color: var(--ink);
}

.ask {
  display: flex;
  gap: 6px;
  width: min(100%, 460px);
  margin-top: 10px;
  padding: 5px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.ask:focus-within {
  border-color: var(--ring);
}

.ask-in {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-hi);
  font: inherit;
  font-size: 0.9375rem;
}

.ask-in::placeholder {
  color: var(--muted);
}

.ask-in:focus-visible {
  outline: none;
}

.ask-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

.closer-in {
  display: grid;
  justify-items: center;
  gap: 18px;
}

@media (max-width: 420px) {
  .ask {
    flex-direction: column;
    border-radius: 20px;
  }

  .ask-in {
    min-height: 44px;
  }
}

/* ------------------------------------------------------------------------------------------------ inner page header */

.phead {
  position: relative;
  isolation: isolate;
  padding: calc(var(--bar-h) + clamp(64px, 9vw, 120px)) 0 0;
}

.phead-bg {
  height: 100%;
  min-height: 520px;
}

.phead-in {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(100% - 2 * var(--g), 900px);
  margin: 0 auto;
  text-align: center;
}

.phead-in .kick {
  justify-self: center;
}

.phead-h {
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

.phead-lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
}

.phead-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.phead-dl {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.fhead-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
  border-radius: 18px;
  background: linear-gradient(180deg, var(--tone-soft), var(--card));
  color: var(--tone);
  box-shadow: var(--shadow), 0 0 40px -6px var(--tone-soft);
}

.fhead-icon .ficon {
  width: 28px;
  height: 28px;
}

.fhead-win {
  max-width: 1080px;
}

.fhead-win .win-tall {
  max-width: 360px;
}

.fjump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.fjump a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink-hi);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.fjump a:hover {
  border-color: var(--tone);
  background: var(--card);
  color: var(--ink-hi);
}

.fjump .ficon {
  width: 16px;
  height: 16px;
  color: var(--tone);
}

/* ------------------------------------------------------------------------------------------------ text sections */

.pics {
  width: min(100% - 2 * var(--g), 1080px);
  margin: clamp(48px, 7vw, 80px) auto 0;
}

.fsecs {
  display: grid;
  gap: 16px;
  width: min(100% - 2 * var(--g), 1080px);
  margin: clamp(56px, 8vw, 96px) auto 0;
}

.fsec {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}

.fsec h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.019em;
}

.fsec-b {
  display: grid;
  gap: 14px;
  min-width: 0;
}

@media (max-width: 760px) {
  .fsec {
    grid-template-columns: minmax(0, 1fr);
  }
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 2 * var(--g), var(--w));
  margin: clamp(56px, 8vw, 96px) auto 0;
  align-items: start;
}

@media (max-width: 960px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------------------------------ feature pages */

.glance {
  margin-top: clamp(16px, 2vw, 24px);
}

.facts-glance {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.facts-glance > div {
  border-left: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}

.facts-glance dd {
  font-size: 0.9375rem;
}

.stories {
  display: grid;
  gap: clamp(72px, 9vw, 128px);
  width: min(100% - 2 * var(--g), var(--w));
  margin: clamp(80px, 10vw, 140px) auto 0;
}

.stories:empty {
  display: none;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.story-flip {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.story-flip .story-t {
  order: 2;
}

.story-t {
  display: grid;
  gap: 16px;
}

.story-t h2 {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.story-b {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-flip .story-t {
    order: 0;
  }
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 50% 0%, var(--tone-soft), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--bg-2));
  box-shadow: inset 0 1px 0 var(--rim);
}

.stage-in {
  width: min(100%, 440px);
  min-width: 0;
}

.fnotes-h,
.fgallery h2,
.related h2 {
  margin-bottom: 28px;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.fnotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.fnote {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}

.fnote h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.014em;
}

.fnote .story-b {
  color: var(--muted);
  font-size: 0.9375rem;
}

.pics-rest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 22px;
  width: auto;
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.rcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "i n c" "i l c";
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}

.rcard:hover {
  border-color: color-mix(in srgb, var(--tone) 45%, var(--line));
  color: inherit;
  transform: translateY(-2px);
}

.rcard-n {
  grid-area: n;
  color: var(--ink-hi);
  font-weight: 600;
}

.rcard-l {
  grid-area: l;
  color: var(--muted);
  font-size: 0.875rem;
}

.rcard .chev {
  grid-area: c;
  align-self: center;
  color: var(--muted);
}

/* features index groups */

.fgroup .sec-top h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.fcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
  transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fcard:hover {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hi);
}

.fcard-wide { grid-column: span 6; flex-direction: row; }
.fcard-half { grid-column: span 3; }
.fcard-third { grid-column: span 2; }

.fcard .stage-card {
  flex: 1;
  min-height: 240px;
  margin: 12px 12px 0;
  border-radius: 20px;
}

.fcard-wide .stage-card {
  flex: 1.3;
  margin: 12px 0 12px 12px;
}

.fcard-third .stage-card {
  padding: 16px;
}

.fcard-third .u-table {
  font-size: 0.75rem;
}

.fcard-third .u-table th,
.fcard-third .u-table td {
  padding: 6px 3px;
}

.fcard-t {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 24px 24px;
}

.fcard-wide .fcard-t {
  flex: 1;
  align-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.fcard-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-hi);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.011em;
}

.fcard-name .ficon {
  color: var(--tone);
}

.fcard-line {
  color: var(--muted);
}

.fcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.fcard:hover .more .chev {
  transform: translateX(3px);
}

@media (max-width: 960px) {
  .fcard-third { grid-column: span 3; }
  .fcard-wide { flex-direction: column; }

  .fcard-wide .stage-card {
    margin: 12px 12px 0;
  }
}

@media (max-width: 640px) {
  .fgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fcard .stage-card {
    padding: 16px;
  }

  .fcard-wide,
  .fcard-half,
  .fcard-third {
    grid-column: auto;
  }
}

/* ------------------------------------------------------------------------------------------------ footer */

.foot {
  margin-top: clamp(96px, 12vw, 168px);
  padding-top: clamp(56px, 7vw, 88px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.foot-in {
  width: min(100% - 2 * var(--g), var(--w));
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-about {
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 360px;
}

.foot-about p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot-mail {
  color: var(--ink-hi);
  font-weight: 500;
}

.foot-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.foot-nav p {
  margin-bottom: 4px;
  color: var(--ink-hi);
  font-size: 0.875rem;
  font-weight: 600;
}

.foot-nav a {
  justify-self: start;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--brand-ink);
}

.foot-word {
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding-bottom: 0.08em;
  color: var(--line-hi);
  font-size: min(13vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.036em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foot-word {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--ink-hi) 22%, var(--bg-2)) 15%, var(--bg-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.foot-legal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.foot-legal a {
  color: var(--ink);
}

@media (max-width: 860px) {
  .foot-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot-about {
    grid-column: 1 / -1;
  }

  .foot-legal {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------------------------------------ legal pages (approved text, verbatim) */

.legal main {
  width: min(100% - 2 * var(--g), 780px);
  margin: 0 auto;
  padding-top: calc(var(--bar-h) + clamp(48px, 7vw, 88px));
  color: var(--ink);
}

.legal main h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.023em;
}

.legal main .meta {
  margin: 14px 0 36px;
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.8125rem;
}

.legal main h2 {
  margin: 56px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.014em;
  scroll-margin-top: 88px;
}

.legal main h3 {
  margin: 28px 0 10px;
  font-size: 1.125rem;
  letter-spacing: -0.008em;
  scroll-margin-top: 88px;
}

.legal main p,
.legal main ul,
.legal main ol {
  margin: 0 0 16px;
}

.legal main ul,
.legal main ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

.legal main li::marker {
  color: var(--brand-ink);
}

.legal main a {
  color: var(--ink-hi);
}

.legal main .toc {
  padding: 22px 22px 22px 3em;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow);
  gap: 6px;
}

.legal main table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal main th,
.legal main td {
  min-width: 8.5em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal main th {
  color: var(--ink-hi);
  font-weight: 600;
}

.legal main .disclaimer {
  color: var(--ink-hi);
}

/* Narrow screens (audit A-PO-084): the approved text never widens the page. A list's single grid column may
   shrink below its longest word, long URLs and scope names break where they must, and a table scrolls inside its
   own box instead of the page. */
.legal main ul,
.legal main ol {
  grid-template-columns: minmax(0, 1fr);
}

.legal main p,
.legal main li,
.legal main a,
.legal main code {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .legal main .toc {
    padding: 18px 18px 18px 2.2em;
  }

  .legal main th,
  .legal main td {
    padding: 10px;
  }
}

/* ------------------------------------------------------------------------------------------------ account portal */

.acct {
  width: min(100% - 2 * var(--g), 1000px);
  margin: clamp(32px, 5vw, 56px) auto 0;
}

.acct [hidden] {
  display: none !important;
}

.acct-nojs,
.acct-wait {
  color: var(--muted);
  text-align: center;
}

.acct-h {
  font-size: 1.375rem;
  letter-spacing: -0.014em;
}

.acct-out {
  max-width: 620px;
  margin: 0 auto;
}

.acct-out-in {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.acct-out-in > p:first-of-type {
  color: var(--muted);
}

.acct-notice {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-inner);
  background: var(--card);
}

.acct-notice[data-tone="good"] {
  border-left-color: var(--profit);
}

.acct-notice[data-tone="warn"] {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: start;
}

.acct-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
}

.acct-dl {
  display: grid;
  gap: 0;
}

.acct-dl div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.acct-dl dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.acct-dl dd {
  color: var(--ink-hi);
  overflow-wrap: anywhere;
}

.acct-role {
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.75rem;
}

.acct-pick {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

.acct-pick select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card);
  color: var(--ink-hi);
  font: inherit;
}

.acct-plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acct-status {
  padding: 3px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.75rem;
}

.acct-status[data-tone="good"] {
  border-color: transparent;
  background: var(--profit-soft);
  color: var(--profit);
}

.acct-status[data-tone="warn"] {
  border-color: transparent;
  background: var(--warn-soft);
  color: var(--warn);
}

.acct-mode {
  padding: 12px 14px;
  border-radius: var(--r-inner);
  background: var(--warn-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}

.acct-price {
  color: var(--muted);
}

.acct-n {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.acct-line {
  color: var(--ink);
  font-size: 0.9375rem;
}

.acct-sub {
  display: grid;
  gap: 14px;
}

.acct-terms {
  color: var(--muted);
  font-size: 0.875rem;
}

.acct-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.9375rem;
  cursor: pointer;
}

.acct-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-ink);
}

.acct-confirm {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card-2);
}

@media (max-width: 760px) {
  .acct-grid {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------------------------------------------ interface fragments (u-*) */

.ficon {
  width: 20px;
  height: 20px;
  flex: none;
}

.u-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card);
  box-shadow: var(--shadow-hi);
  font-size: 0.875rem;
  color: var(--ink);
}

.u-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.u-head p {
  color: var(--ink-hi);
  font-weight: 600;
}

.u-sample {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
}


.u-rows {
  display: grid;
}

.u-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.u-rows dt {
  color: var(--muted);
}

.u-rows dd {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.u-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  color: var(--ink-hi);
  font-weight: 500;
}

/* display figure: medium weight, tabular (round 5: never light) */
.u-big {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.u-good {
  color: var(--profit);
}

.u-num {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

.u-muted {
  color: var(--muted);
}

.u-small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.u-name {
  color: var(--ink-hi);
  font-weight: 600;
  line-height: 1.3;
}

/* section label: small letter-spaced capitals, muted (round 4 font reference; never monospace) */
.u-label {
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.u-list {
  display: grid;
  gap: 0;
}

.u-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.u-line:last-child {
  border-bottom: 0;
}

.u-line > span:first-child {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.u-foot {
  color: var(--muted);
  font-size: 0.8125rem;
}

.u-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.u-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
}

.u-ok { border-color: transparent; background: var(--profit-soft); color: var(--profit); }
.u-no { border-color: transparent; background: var(--loss-soft); color: var(--loss); }
.u-warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.u-keepa { border-color: transparent; background: var(--keepa-soft); color: var(--keepa); }
.u-teal { border-color: transparent; background: var(--teal-soft); color: var(--teal); }
.u-coral { border-color: transparent; background: var(--brand-soft); color: var(--brand-ink); }
.u-cool { border-color: var(--line-hi); background: var(--card); color: var(--ink); }

.u-i {
  width: 13px;
  height: 13px;
  flex: none;
}

.u-dash {
  color: var(--muted);
}

.u-tog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.u-tog > span:first-child {
  display: grid;
  color: var(--ink-hi);
}

.u-note {
  color: var(--muted);
  font-size: 0.75rem;
}

.u-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-hi);
}

.u-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
}

.u-switch.on {
  background: var(--brand-ink);
}

.u-switch.on::after {
  left: 17px;
  background: var(--on-brand);
}

.u-seg {
  display: inline-flex;
  justify-self: start;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  background: var(--card-2);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.75rem;
}

.u-seg span {
  padding: 3px 12px;
  border-radius: 5px;
  color: var(--muted);
}

.u-seg span.on {
  background: var(--card);
  color: var(--ink-hi);
  box-shadow: 0 0 0 1px var(--line-hi);
}

.u-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.u-table th,
.u-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.u-table thead th {
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.u-table tbody th {
  color: var(--ink-hi);
  font-weight: 500;
}

.u-table td {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

.u-compare td {
  color: var(--profit);
  text-align: center;
}

.u-compare thead th:not(:first-child) {
  text-align: center;
}

.u-compare .u-i {
  margin: 0 auto;
}

.u-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.u-acts {
  justify-content: flex-start;
  font-size: 0.8125rem;
}

.u-acts-top {
  margin-bottom: 2px;
}

.u-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-btn);
  background: var(--brand-ink);
  color: var(--on-brand);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 500;
}

.u-btn-dark {
  border: 1px solid var(--line-hi);
  background: var(--card-2);
  color: var(--ink-hi);
}

.u-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.u-meter span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--keepa);
}

.u-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.u-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 3px;
  background: var(--muted);
}

p.u-dot {
  color: var(--ink-hi);
  font-weight: 600;
}

span.u-dot:empty {
  margin-top: 6px;
}

.u-dot-amz::before { background: var(--teal); }
.u-dot-keepa::before { background: var(--keepa); }
.u-dot-grey::before { background: var(--line-hi); }

.u-planes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.u-planes .u-card {
  gap: 6px;
}

.u-wall {
  display: grid;
  place-items: center;
  width: 28px;
  border-inline: 1px dashed var(--line-hi);
}

.u-wall span {
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.625rem;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.u-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card);
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.8125rem;
}

.u-input .u-muted {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-align: right;
}

.u-input-sm {
  margin-top: 12px;
  box-shadow: var(--shadow-hi);
}

.u-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.u-who .u-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.u-av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--keepa-soft);
  color: var(--keepa);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.8125rem;
  font-weight: 600;
}

.u-stack {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.u-note-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  background: var(--card);
  font-size: 0.8125rem;
}

.u-note-card p:first-child {
  color: var(--ink-hi);
}

.u-note-card .u-muted {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.6875rem;
}

.u-spark {
  width: 100%;
  height: 60px;
}

.u-spark path {
  stroke: var(--keepa);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}

.u-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.u-tile {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  background: var(--card-2);
}

.u-tile .u-muted {
  font-size: 0.75rem;
}

.u-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.u-stage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.u-stage b {
  color: var(--ink-hi);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 500;
}

.u-stage.on {
  border-color: var(--brand-ink);
  color: var(--ink-hi);
}

.u-lead b {
  font-weight: 500;
}

.u-lead > span:last-child {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

.u-ctx {
  position: relative;
  display: grid;
  gap: 8px;
}

.u-sel {
  color: var(--ink);
  font-size: 0.875rem;
}

.u-sel mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--brand-soft);
  color: var(--ink-hi);
  font-family: var(--mono);
}

.u-menu {
  justify-self: start;
  display: grid;
  min-width: min(100%, 280px);
  padding: 5px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-inner);
  background: var(--card);
  box-shadow: var(--shadow-hi);
  font-size: 0.8125rem;
}

.u-menu p {
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--ink);
}

.u-menu p.on {
  background: var(--brand-ink);
  color: var(--on-brand);
}

.u-route {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.u-pill {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  color: var(--ink-hi);
  font-size: 0.75rem;
  white-space: nowrap;
}

.u-pill-hi {
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}

.u-wire {
  height: 0;
  border-top: 1.5px solid var(--profit);
}

.u-wire.no {
  border-top: 1.5px dashed var(--loss);
}

.u-chat {
  display: grid;
  gap: 10px;
  font-size: 0.875rem;
}

.u-me {
  justify-self: end;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand-ink);
  color: var(--on-brand);
}

.u-bot {
  display: grid;
  gap: 10px;
  max-width: 90%;
  padding: 12px 14px;
  border: 1px solid var(--line-hi);
  border-radius: 14px 14px 14px 4px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-hi);
}

.u-flowrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.u-flowrow .u-wire {
  width: 22px;
}

.u-plus {
  color: var(--muted);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

.u-shot {
  box-shadow: var(--shadow-hi);
}

.u-shot img {
  height: auto;
  object-fit: initial;
}

.u-shot-tall {
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 420px) {
  .u-table {
    font-size: 0.75rem;
  }

  .u-table th,
  .u-table td {
    padding: 6px 3px;
  }

  .u-route {
    grid-template-columns: auto minmax(12px, 1fr) auto;
  }

  .u-route .u-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .u-planes {
    grid-template-columns: 1fr;
  }

  .u-wall {
    width: auto;
    height: 24px;
    border-inline: 0;
    border-block: 1px dashed var(--line-hi);
  }

  .u-wall span {
    writing-mode: horizontal-tb;
  }
}


/* ------------------------------------------------------------------------------------------------ motion */

/* The hero's parts rise in once on load; sections rise as they enter the viewport (scroll-driven, no script).
   Everything is visible by default: browsers without scroll timelines and readers who ask for reduced motion get
   the still page. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-in > .rise:nth-child(2) { animation-delay: 70ms; }
  .hero-in > .rise:nth-child(3) { animation-delay: 140ms; }
  .hero-in > .rise:nth-child(4) { animation-delay: 210ms; }
  .hero-in > .rise:nth-child(5) { animation-delay: 280ms; }

  .hero-shot.rise {
    animation-duration: 1.1s;
    animation-delay: 360ms;
  }

  /* the theme switch crossfades colours (theme.js adds the class for a moment) */
  html.theme-switching,
  html.theme-switching *,
  html.theme-switching *::before,
  html.theme-switching *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, fill 0.3s ease,
      stroke 0.3s ease, box-shadow 0.3s ease !important;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------------------------------------ round 5 (2026-10-29) */
/* No icon tiles, no status glyphs, no light figures: readiness and verdicts are the word in its tone; numbered steps
   are plain numerals; the included list is hairline-divided rows. */

.tag { gap: 0; }
.tag-ea { color: var(--profit); }
.tag-test { color: var(--warn); }
.tag-amz { color: var(--muted); }

.verdict { gap: 0; font-weight: 600; }
.v-ok { color: var(--profit); }
.v-edge { color: var(--warn); }
.v-no { color: var(--loss); }

.items a {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "n" "l";
}

.rcard {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "n c" "l c";
}

.step-n {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 4px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.steps-list::before { display: none; }

.ticks { gap: 0; }
.ticks li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before,
.ticks li::after { content: none; }

/* statuses inside interface fragments: the word in its tone, never a tinted pill (round 5) */
.u-chip.u-ok,
.u-chip.u-no,
.u-chip.u-warn {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
}
.u-yes {
  color: var(--profit);
  font-weight: 600;
}
