/* AdWright marketing site.
   Idea: the carbon-copy work order. Cool paper, navy ink, carbon-copy blue, rubber stamps.
   One family (Figtree, the same as the app): clean and geometric, heavy for display, regular for reading.
   Boldness lives in one place: the sorter. Everything else stays quiet. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e8ecf0;
  --sheet: #f6f8fa;
  --white: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #3a4759;
  --ink-3: #6b7788;
  --rule: #cbd3dc;
  --rule-2: #dde3e9;
  --carbon: #2b45e0;
  --carbon-hi: #8094ff;
  --stamp: #cf3527;
  --booked: #0f7a4b;
  --tape: #f2c230;
  --night: #0e1a2b;
  --night-2: #17263b;
  --night-rule: #2a3a52;
  --radius: 12px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --thump: cubic-bezier(0.3, 1.6, 0.5, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--carbon);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

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

.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

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

.display {
  font-size: clamp(2.75rem, 6.4vw, 5.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.display-md {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}

.display-sm {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.016em;
}

.h3,
.sect h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 58ch;
}

.lede-lg {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.kicker {
  font-weight: 640;
  font-size: 0.95rem;
  color: var(--carbon);
  margin-bottom: 18px;
}

/* The carbon copy: every key headline carries a faint, slightly offset blue impression,
   like the second sheet of a work order. */
.carbon {
  position: relative;
  isolation: isolate;
}

.carbon::before {
  content: attr(data-copy);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--carbon);
  opacity: 0.2;
  transform: translate(0.05em, 0.055em);
  filter: blur(0.5px);
  pointer-events: none;
}

.carbon-sm::before {
  transform: translate(0.035em, 0.04em);
  opacity: 0.18;
}

.dark .carbon::before,
.cta-band .carbon::before {
  color: var(--carbon-hi);
  opacity: 0.28;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn .ico {
  transition: transform 0.2s var(--ease);
}

.btn:hover .ico {
  transform: translateX(3px);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1.0625rem;
}

.btn-carbon {
  background: var(--carbon);
  color: var(--white);
}

.btn-carbon:hover {
  background: #1f37c4;
  color: var(--white);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--carbon);
  color: var(--white);
}

.btn-line {
  border-color: currentColor;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
  color: var(--carbon);
}

.link-arrow:hover .ico {
  transform: translateX(3px);
}

.link-arrow .ico {
  transition: transform 0.2s var(--ease);
}

.link-quiet {
  text-decoration: none;
  font-weight: 560;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-head.is-scrolled {
  border-bottom-color: var(--rule);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 820;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav > a,
.menu > summary {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 540;
  font-size: 0.97rem;
  color: var(--ink-2);
  cursor: pointer;
}

.nav > a:hover,
.menu > summary:hover,
.nav [aria-current="page"] {
  color: var(--ink);
  background: var(--rule-2);
}

.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.menu[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 520px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(14, 26, 43, 0.35);
  animation: drop 0.22s var(--ease);
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.menu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.menu-list a:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 10px 2px;
  border-top: 1px solid var(--rule-2);
  font-weight: 650;
  text-decoration: none;
  color: var(--carbon);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.head-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.mnav {
  display: none;
  margin-left: auto;
}

.mnav > summary {
  list-style: none;
  padding: 8px;
  cursor: pointer;
}

.mnav > summary::-webkit-details-marker {
  display: none;
}

.mnav > summary .ico {
  width: 26px;
  height: 26px;
}

.mnav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  display: grid;
  gap: 2px;
  padding: 14px var(--pad) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  animation: drop 0.22s var(--ease);
}

.mnav-panel a {
  padding: 12px 0;
  font-size: 1.15rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.mnav-panel .btn {
  justify-content: center;
  margin-top: 14px;
  border-bottom: 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .lede {
  margin-top: 26px;
}

.hero .display {
  font-size: clamp(2.6rem, 5.1vw, 4.75rem);
}

.hero-small {
  margin: 0;
}

/* A faint product screen drifting behind the headline, out of focus. */
.hero-ghost {
  position: absolute;
  top: 60px;
  left: -60px;
  width: 640px;
  opacity: 0.16;
  filter: blur(2.5px);
  transform: perspective(1200px) rotateX(18deg) rotateZ(-6deg);
  mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 70%);
  pointer-events: none;
  animation: ghost 24s ease-in-out infinite alternate;
}

@keyframes ghost {
  to {
    transform: perspective(1200px) rotateX(14deg) rotateZ(-4deg) translate(30px, 14px);
  }
}

.hero-trade {
  padding-top: clamp(28px, 4vw, 56px);
}

.crumbs {
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--ink-3);
}

/* ---------- the sorter ---------- */

.sorter {
  position: relative;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(43, 69, 224, 0.09) 31px 32px),
    var(--sheet);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 var(--white) inset,
    0 40px 80px -40px rgba(14, 26, 43, 0.4);
}

.sorter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 0.92rem;
}

.sorter-note {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--booked);
  box-shadow: 0 0 0 0 rgba(15, 122, 75, 0.5);
  animation: live 2s infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 8px rgba(15, 122, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 122, 75, 0);
  }
}

.sorter-stage {
  position: relative;
  height: 172px;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
}

/* The stamp line the slips stop on. */
.sorter-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px dashed rgba(14, 26, 43, 0.14);
}

.slip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(92%, 400px);
  display: grid;
  gap: 2px;
  padding: 16px 20px 16px 30px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 14px 30px -18px rgba(14, 26, 43, 0.45);
  transform: translate(-50%, -190%) rotate(-1deg);
  opacity: 0;
  transition:
    transform 0.6s var(--ease),
    opacity 0.45s var(--ease);
}

/* Perforated edge, like a tear-off ticket. */
.slip::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: radial-gradient(circle, var(--rule) 1.6px, transparent 1.8px) 0 0 / 4px 9px repeat-y;
}

.slip.is-in {
  transform: translate(-50%, -50%) rotate(-1deg);
  opacity: 1;
}

.slip.is-stamped {
  animation: knock 0.28s var(--ease) 0.06s;
}

@keyframes knock {
  40% {
    transform: translate(-50%, -47%) rotate(-1deg) scale(0.985);
  }
}

.slip.is-out-blocked {
  transform: translate(-150%, 30%) rotate(-10deg);
  opacity: 0;
  transition-duration: 0.7s;
}

.slip.is-out-bid {
  transform: translate(50%, 30%) rotate(8deg);
  opacity: 0;
  transition-duration: 0.7s;
}

.slip-k {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.slip-term {
  font-weight: 680;
  font-size: 1.22rem;
  line-height: 1.2;
}

.slip-cost {
  font-size: 0.85rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.stamp {
  display: inline-block;
  padding: 4px 10px 3px;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  font-weight: 860;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  /* Uneven ink. */
  mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.72) 75%, #000 90%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.72) 75%, #000 90%);
}

.stamp-booked {
  color: var(--booked);
}

.stamp-quoted {
  color: var(--carbon);
}

.stamp-kicker,
.stamp-junk {
  color: var(--stamp);
}

.slip .stamp {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 1rem;
  opacity: 0;
  transform: rotate(-12deg) scale(2.3);
}

.slip.is-stamped .stamp {
  opacity: 0.92;
  transform: rotate(-9deg) scale(1);
  transition:
    transform 0.32s var(--thump),
    opacity 0.12s;
}

.stamp-sm {
  font-size: 0.72rem;
  border-width: 2px;
  padding: 2px 7px 1px;
}

.stamp-lg {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.trays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tray {
  padding: 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--rule-2);
  min-width: 0;
}

.tray-h {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.tray-blocked .tray-h {
  color: var(--stamp);
}

.tray-bid .tray-h {
  color: var(--booked);
}

.tray ul {
  display: grid;
  gap: 6px;
  min-height: 96px;
}

.mini {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
  animation: mini 0.5s var(--ease);
}

.mini span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.mini b {
  flex: none;
  font-size: 0.72rem;
  font-weight: 720;
}

.mini-junk span,
.mini-kicker span {
  text-decoration: line-through;
  text-decoration-color: rgba(207, 53, 39, 0.6);
  color: var(--ink-3);
}

.mini-junk b,
.mini-kicker b {
  color: var(--stamp);
}

.mini-booked b {
  color: var(--booked);
}

.mini-quoted b {
  color: var(--carbon);
}

@keyframes mini {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.sorter-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.sorter-foot b {
  font-weight: 820;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- trade strip ---------- */

.strip {
  padding: 8px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.strip-k {
  margin: 14px auto 6px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 0;
  padding: 10px 0 18px;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  flex: none;
}

.marquee-track a {
  display: block;
  padding: 0 28px;
  font-weight: 780;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  border-right: 1px solid var(--rule);
}

.marquee-track a:hover {
  color: var(--carbon);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

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

.sect {
  padding: clamp(72px, 10vw, 140px) 0;
}

.sect-flush {
  padding-top: 0;
}

.sect-tint {
  background: var(--sheet);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}

.sect-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 880px;
}

.sect-head-row {
  max-width: none;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
}

.center-note {
  margin-top: 22px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split-top {
  align-items: start;
}

.split .h2,
.split .h2 + .lede {
  margin-bottom: 18px;
}

.dark {
  background: var(--night);
  color: #e9eef5;
}

.dark .lede,
.dark p {
  color: #b9c3d2;
}

.dark .small {
  color: #8d9ab0;
}

.dark a {
  color: #dfe6ff;
}

.page-hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
}

.page-hero .lede {
  margin-top: 26px;
}

.page-hero-sm {
  padding-bottom: 24px;
}

/* ---------- ledger ---------- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--sheet);
  overflow: hidden;
}

.ledger-col {
  padding: clamp(24px, 4vw, 48px);
}

.ledger-real {
  background: var(--white);
  border-left: 1px solid var(--rule);
}

.ledger-k {
  font-weight: 700;
  margin-bottom: 22px;
}

.ledger-big {
  margin: 0 0 8px;
  font-weight: 820;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ledger-big span {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-3);
}

.ledger-note {
  margin-top: 20px;
  color: var(--ink-3);
}

.ledger-true {
  margin-top: 26px;
  color: var(--stamp);
}

.ledger-list {
  display: grid;
  gap: 12px;
}

.ledger-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}

.ledger-list b {
  font-weight: 800;
  font-size: 1.6rem;
}

.flow {
  width: 100%;
  height: 100%;
  align-self: center;
}

.flow path {
  fill: none;
  stroke: var(--booked);
  stroke-width: 1.6;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
  animation: flow 1.2s linear infinite;
}

.flow .flow-bad {
  stroke: var(--stamp);
}

@keyframes flow {
  to {
    stroke-dashoffset: -9;
  }
}

/* ---------- steps (sticky) ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  min-height: 58vh;
  padding-top: 8px;
  opacity: 0.38;
  transition: opacity 0.4s var(--ease);
}

.step:last-child {
  min-height: 40vh;
}

.step.is-on {
  opacity: 1;
}

.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--night-rule);
  font-weight: 800;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.step.is-on .step-n {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--white);
}

.step h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 760;
  margin: 4px 0 12px;
  color: var(--white);
}

.step p {
  max-width: 46ch;
}

.step-screen-inline {
  display: none;
}

.step-stick {
  position: sticky;
  top: 18vh;
}

.screens {
  position: relative;
  min-height: 420px;
}

.screen {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
  pointer-events: none;
}

.screen.is-on {
  opacity: 1;
  transform: none;
}

/* ---------- product screens ---------- */

.ui {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(4, 10, 20, 0.55);
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ui p {
  color: var(--ink-2);
}

.ui .small {
  color: var(--ink-3);
}

.ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule-2);
  background: var(--sheet);
}

.ui-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}

.ui-bar span {
  margin-left: 10px;
  font-weight: 650;
  font-size: 0.85rem;
}

.ui-body {
  padding: 18px;
}

.ui-h {
  margin: 0 0 12px;
  font-weight: 680;
  color: var(--ink) !important;
}

.ui-rows li,
.ui-props li,
.ui-log li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}

.ui-rows li span:first-child {
  flex: 1;
  font-weight: 600;
}

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.pill-read {
  background: #e6ebff;
  color: var(--carbon);
}

.switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--rule);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
}

.switch.on {
  background: var(--booked);
}

.switch.on::after {
  left: 17px;
}

.ui-audit {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: var(--sheet);
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--rule-2);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--carbon);
  transition: width 1.4s var(--ease);
}

.ui-code {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--night);
  color: #cfe0ff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: nowrap;
}

.ui-feed {
  margin-top: 14px;
}

.ui-feed li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-2);
}

.ui-feed b {
  grid-row: span 2;
  font-size: 0.78rem;
  color: var(--carbon);
}

.ui-feed em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.lead-card {
  position: relative;
  display: grid;
  gap: 4px;
}

.lead-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-card p {
  margin: 4px 0;
}

.grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.g {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 600;
}

.g-on {
  background: var(--booked);
  border-color: var(--booked);
  color: var(--white);
}

.g-quote {
  background: #e6ebff;
  border-color: #c3cdff;
  color: var(--carbon);
}

.stamp-card {
  position: absolute;
  right: 4px;
  top: 30px;
  font-size: 1.15rem;
  opacity: 0.85;
}

.ui-props li > div,
.ui-log li > div {
  flex: 1;
  display: grid;
  gap: 3px;
}

.btn-mini {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 650;
}

.btn-mini-wait {
  background: var(--paper);
  color: var(--ink-2);
}

.log-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: start;
  margin-top: 6px;
}

.log-dot.ok {
  background: var(--booked);
}

.log-dot.wait {
  background: var(--tape);
}

.undo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-2);
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.ui-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 8px 8px 0;
  border-bottom: 1px solid var(--rule);
}

.ui-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--rule-2);
}

.ui-table th:not(:first-child),
.ui-table td:not(:first-child) {
  text-align: right;
}

.row-bad td {
  color: var(--stamp);
}

.ui-why {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef1ff;
  border-left: 3px solid var(--carbon);
  font-size: 0.86rem;
}

.ui-why-list {
  display: grid;
  gap: 10px;
}

.ui-why-list li {
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  background: var(--sheet);
  position: relative;
}

.ui-why-list li::before {
  position: absolute;
  left: 12px;
  top: 10px;
  font-weight: 800;
}

.ui-why-list .up::before {
  content: "+";
  color: var(--booked);
}

.ui-why-list .down::before {
  content: "\2212";
  color: var(--stamp);
}

.ui-why-list b {
  display: block;
}

.ad-prev {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.ad-prev b {
  color: #1a3fd1;
  font-size: 1rem;
}

.ui-kw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ui-kw li {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--sheet);
  border: 1px solid var(--rule-2);
  font-size: 0.8rem;
}

.ui-alerts {
  display: grid;
  gap: 10px;
}

.ui-alerts li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid;
  background: var(--sheet);
}

.al-bad {
  border-color: var(--stamp) !important;
}

.al-warn {
  border-color: var(--tape) !important;
}

.al-ok {
  border-color: var(--booked) !important;
}

/* ---------- reveal (one effect, product screens only) ---------- */

.js [data-reveal] {
  mask-image: linear-gradient(135deg, #000 40%, transparent 60%);
  mask-size: 300% 300%;
  mask-position: 100% 100%;
  -webkit-mask-image: linear-gradient(135deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 300%;
  -webkit-mask-position: 100% 100%;
  transition:
    mask-position 1.3s var(--ease),
    -webkit-mask-position 1.3s var(--ease);
}

.js [data-reveal].is-revealed {
  mask-position: 0 0;
  -webkit-mask-position: 0 0;
}

/* ---------- feature tabs ---------- */

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--rule);
}

.tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-weight: 620;
  font-size: 0.95rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:not([hidden]) .tab-copy {
  animation: mini 0.5s var(--ease);
}

.tab-copy p {
  margin-top: 14px;
  color: var(--ink-2);
}

.tab-screen .ui,
.frow-screen .ui {
  box-shadow: 0 40px 80px -44px rgba(14, 26, 43, 0.45);
}

/* ---------- guardrails ---------- */

.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.rules-intro {
  position: sticky;
  top: 110px;
}

.rules-intro .lede {
  margin: 20px 0 22px;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.rules li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 24px 20px 24px 0;
  border-bottom: 1px solid var(--rule);
}

.rules li:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--rule);
}

.rules li:nth-child(even) {
  padding-left: 24px;
}

.rules p {
  margin: 8px 0 0;
  font-size: 0.97rem;
  color: var(--ink-2);
}

.tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6ebff;
  color: var(--carbon);
}

.modes {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.modes li {
  padding-left: 18px;
  border-left: 3px solid var(--rule);
}

.modes li:last-child {
  border-left-color: var(--carbon);
}

.modes p {
  margin: 6px 0 0;
  color: var(--ink-2);
}

/* ---------- shared learning ---------- */

.shared-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.shared-grid .lede {
  margin: 20px 0 30px;
}

.shared-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  margin-bottom: 28px;
}

.shared-list li {
  padding-top: 16px;
  border-top: 1px solid var(--night-rule);
}

.shared-list h3 {
  color: var(--white);
}

.shared-list p {
  margin: 8px 0 0;
  font-size: 0.97rem;
}

.pool {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.pool {
  container-type: inline-size;
}

.pool-dots {
  position: absolute;
  inset: 0;
  animation: orbit 140s linear infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.pd {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #33465f;
}

.pd:nth-child(3n) {
  background: #4a5f80;
}

.pd-you {
  background: var(--carbon-hi) !important;
  box-shadow: 0 0 0 6px rgba(128, 148, 255, 0.18);
}

.pd:nth-child(1) { transform: rotate(0.0deg) translateY(-46cqw); }
.pd:nth-child(2) { transform: rotate(25.7deg) translateY(-46cqw); }
.pd:nth-child(3) { transform: rotate(51.4deg) translateY(-46cqw); }
.pd:nth-child(4) { transform: rotate(77.1deg) translateY(-46cqw); }
.pd:nth-child(5) { transform: rotate(102.9deg) translateY(-46cqw); }
.pd:nth-child(6) { transform: rotate(128.6deg) translateY(-46cqw); }
.pd:nth-child(7) { transform: rotate(154.3deg) translateY(-46cqw); }
.pd:nth-child(8) { transform: rotate(180.0deg) translateY(-46cqw); }
.pd:nth-child(9) { transform: rotate(205.7deg) translateY(-46cqw); }
.pd:nth-child(10) { transform: rotate(231.4deg) translateY(-46cqw); }
.pd:nth-child(11) { transform: rotate(257.1deg) translateY(-46cqw); }
.pd:nth-child(12) { transform: rotate(282.9deg) translateY(-46cqw); }
.pd:nth-child(13) { transform: rotate(308.6deg) translateY(-46cqw); }
.pd:nth-child(14) { transform: rotate(334.3deg) translateY(-46cqw); }
.pd:nth-child(15) { transform: rotate(18.0deg) translateY(-36cqw); }
.pd:nth-child(16) { transform: rotate(54.0deg) translateY(-36cqw); }
.pd:nth-child(17) { transform: rotate(90.0deg) translateY(-36cqw); }
.pd:nth-child(18) { transform: rotate(126.0deg) translateY(-36cqw); }
.pd:nth-child(19) { transform: rotate(162.0deg) translateY(-36cqw); }
.pd:nth-child(20) { transform: rotate(198.0deg) translateY(-36cqw); }
.pd:nth-child(21) { transform: rotate(234.0deg) translateY(-36cqw); }
.pd:nth-child(22) { transform: rotate(270.0deg) translateY(-36cqw); }
.pd:nth-child(23) { transform: rotate(306.0deg) translateY(-36cqw); }
.pd:nth-child(24) { transform: rotate(342.0deg) translateY(-36cqw); }

.pool-core {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 69, 224, 0.5), rgba(43, 69, 224, 0.08) 70%);
  border: 1px solid rgba(128, 148, 255, 0.4);
  text-align: center;
  font-weight: 700;
  color: var(--white);
}

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

.calc {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 40px);
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--rule);
}

.calc-label {
  font-weight: 650;
}

.calc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
}

.calc-spend {
  min-width: 5.2ch;
  font-weight: 830;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc-out {
  margin: 4px 0 6px;
  font-size: 1.15rem;
}

.calc .btn {
  justify-self: start;
}

/* The slider is a tape measure. */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 34px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, 0.75) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, 0.5) 0 1px, transparent 1px 10px) 0 0 / 100% 8px no-repeat,
    var(--tape);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

input[type="range"]::-moz-range-track {
  height: 34px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, 0.75) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, 0.5) 0 1px, transparent 1px 10px) 0 0 / 100% 8px no-repeat,
    var(--tape);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 6px;
  height: 46px;
  margin-top: -6px;
  border-radius: 3px;
  background: var(--stamp);
  box-shadow: 0 0 0 3px var(--white);
}

input[type="range"]::-moz-range-thumb {
  width: 6px;
  height: 46px;
  border: 0;
  border-radius: 3px;
  background: var(--stamp);
  box-shadow: 0 0 0 3px var(--white);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--sheet);
  overflow: hidden;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-top: 4px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.plan:last-child {
  border-right: 0;
}

.plan.is-pick {
  background: var(--white);
  border-top-color: var(--carbon);
}

.plan-name {
  margin: 0;
  font-weight: 760;
  font-size: 1.2rem;
}

.plan-price {
  display: grid;
  margin: 0;
}

.plan-price b {
  font-weight: 830;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.plan-for {
  flex: 1;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.plan .btn {
  justify-content: center;
}

.every {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px dashed var(--rule);
}

.every-h {
  font-weight: 700;
  margin-bottom: 14px;
}

.every ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}

.every li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.every .ico {
  color: var(--booked);
  margin-top: 3px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.12rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq summary::before {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(0);
}

.faq details p {
  margin: -4px 0 24px;
  max-width: 64ch;
  color: var(--ink-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--carbon);
  color: var(--white);
  padding: clamp(64px, 9vw, 120px) 0;
}

.cta-inner {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.cta-inner .h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.cta-inner p {
  font-size: 1.15rem;
  color: #dfe5ff;
  max-width: 52ch;
}

.cta-band .btn-carbon {
  background: var(--white);
  color: var(--carbon);
}

.cta-band .btn-carbon:hover {
  background: var(--ink);
  color: var(--white);
}

.cta-band .btn-line {
  color: var(--white);
}

.cta-band .btn-line:hover {
  background: var(--white);
  color: var(--carbon);
  border-color: var(--white);
}

.cta-band .carbon::before {
  color: var(--ink);
  opacity: 0.25;
}

/* ---------- other page parts ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}

.timeline li {
  position: relative;
  padding: 26px 24px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--carbon);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline p,
.needs p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.needs-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.needs li {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.feature-rows {
  display: grid;
  gap: clamp(72px, 10vw, 130px);
}

.frow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.frow-flip .frow-copy {
  order: 2;
}

.frow-copy p {
  margin-top: 14px;
  color: var(--ink-2);
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}

.trade-card {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 26px 24px 28px;
  background: var(--sheet);
  text-decoration: none;
  transition: background 0.25s;
}

.trade-card:hover {
  background: var(--white);
  color: var(--ink);
}

.trade-name {
  font-weight: 780;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.trade-junk {
  font-size: 0.92rem;
  color: var(--ink-3);
}

.trade-junk s,
.junk-list s {
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 2px;
}

.trade-good {
  font-size: 0.92rem;
  color: var(--booked);
  font-weight: 600;
}

.trade-good::before {
  content: "+ ";
}

.junk-list {
  display: grid;
  border-top: 1px solid var(--rule);
}

.junk-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.junk-list s {
  font-weight: 680;
  font-size: 1.1rem;
}

.junk-list span {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.good-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.good-list li {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2f1e9;
  color: var(--booked);
  font-weight: 600;
  font-size: 0.9rem;
}

.first-list {
  counter-reset: first;
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.first-list li {
  counter-increment: first;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  color: var(--ink-2);
}

.first-list li::before {
  content: counter(first);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  font-size: 0.9rem;
}

.legal {
  max-width: 72ch;
}

.legal h2 {
  margin: 42px 0 12px;
  font-weight: 760;
  font-size: 1.35rem;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}

.legal li {
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

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

.site-foot {
  background: var(--night);
  color: #c4cddb;
  padding-top: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--white);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}

.foot-say {
  font-weight: 780;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--white);
  max-width: 14ch;
}

.foot-lede .small {
  margin-top: 22px;
  color: #8d9ab0;
}

.foot-h {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--white);
}

.foot-h-blank {
  visibility: hidden;
}

.site-foot ul {
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
}

.footmark {
  margin-top: clamp(24px, 4vw, 48px);
  overflow: hidden;
  line-height: 0.74;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footmark span {
  display: inline-block;
  font-weight: 900;
  font-size: 13.6vw;
  letter-spacing: -0.028em;
  color: transparent;
  -webkit-text-stroke: 1px var(--night-rule);
  background: linear-gradient(180deg, var(--night-2), var(--night) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(16%);
}

.foot-base {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--night-rule);
  color: #7c8aa1;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav > a:nth-child(5) {
    display: none;
  }
  .every ul {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .foot-lede {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav,
  .head-cta {
    display: none;
  }
  .mnav {
    display: block;
  }
  .hero-grid,
  .split,
  .tab-panel,
  .rules-grid,
  .shared-grid,
  .faq-grid,
  .frow,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .frow-flip .frow-copy {
    order: 0;
  }
  .rules-intro {
    position: static;
  }
  .step-stage {
    display: none;
  }
  .step {
    min-height: 0;
    opacity: 1;
    padding-bottom: 48px;
  }
  .step-screen-inline {
    display: block;
    grid-column: 1 / -1;
  }
  .step .step-n {
    background: var(--carbon);
    border-color: var(--carbon);
    color: var(--white);
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .plan:nth-child(2) {
    border-right: 0;
  }
  .plan:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
  .timeline,
  .needs,
  .needs-4,
  .trade-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    border-top: 0;
    gap: 28px;
  }
  .timeline li {
    border-top: 2px solid var(--ink);
  }
  .pool {
    max-width: 360px;
    margin: 0 auto;
  }
  .sect-head-row {
    grid-template-columns: 1fr;
  }
  .hero-ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .ledger {
    grid-template-columns: 1fr;
  }
  .flow {
    display: none;
  }
  .ledger-real {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .rules,
  .shared-list,
  .every ul,
  .plans,
  .timeline,
  .needs,
  .needs-4,
  .trade-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .rules li,
  .rules li:nth-child(odd),
  .rules li:nth-child(even) {
    padding: 20px 0;
    border-right: 0;
  }
  .plan {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .calc-row {
    grid-template-columns: 1fr;
  }
  .trays {
    grid-template-columns: 1fr;
  }
  .tray ul {
    min-height: 0;
  }
  .slip-term {
    font-size: 1.05rem;
  }
  .slip .stamp {
    font-size: 0.8rem;
  }
  .tab-list {
    border-radius: 16px;
  }
  .menu-panel {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    flex: 1;
    animation: none !important;
  }
  .marquee-track[aria-hidden="true"] {
    display: none;
  }
  .js [data-reveal] {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media print {
  .site-head,
  .site-foot,
  .sorter,
  .cta-band {
    display: none;
  }
}

/* ---------- 0.5.1: billing interval, agency bands, limits, ROI ---------- */

.interval {
  display: inline-flex;
  gap: 4px;
  margin: 8px 0 18px;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--rule);
}

.interval button {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-weight: 640;
  font-size: 0.95rem;
  color: var(--ink-2);
  cursor: pointer;
}

.interval button[aria-checked="true"] {
  background: var(--ink);
  color: var(--white);
}

.interval .save {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2f1e9;
  color: var(--booked);
  font-size: 0.78rem;
}

.interval button[aria-checked="true"] .save {
  background: rgba(255, 255, 255, 0.16);
  color: #c9f0da;
}

.bands {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bands td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
}

.bands td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.limits {
  margin-top: 28px;
}

.limits .small {
  margin: 10px 0 16px;
  max-width: 80ch;
}

.table-scroll {
  overflow-x: auto;
}

.limits-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.limits-table th,
.limits-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.limits-table th[scope="row"],
.limits-table thead th:first-child {
  text-align: left;
  font-weight: 560;
  color: var(--ink-2);
}

.limits-table thead th {
  font-weight: 700;
}

.roi-sect {
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.roi-intro .lede {
  margin: 18px 0 14px;
}

.roi-form {
  display: grid;
  gap: 14px;
}

.roi-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.roi-form em {
  display: block;
  font-style: normal;
  font-weight: 400;
}

.roi-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  transition: border-color 0.2s;
}

.roi-field:focus-within {
  border-color: var(--carbon);
}

.roi-field input {
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.roi-field input:focus {
  outline: none;
}

.roi-field .pre {
  padding-left: 12px;
  color: var(--ink-3);
}

.roi-field .post {
  padding-right: 12px;
  color: var(--ink-3);
}

.roi-out {
  padding: 26px;
  border-radius: 18px;
  background: var(--night);
  color: #e9eef5;
}

.roi-big span {
  display: block;
  font-weight: 830;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ff8a7d;
  font-variant-numeric: tabular-nums;
}

.roi-big small {
  display: block;
  margin-top: 8px;
  color: #b9c3d2;
  font-size: 0.95rem;
}

.roi-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--night-rule);
}

.roi-list li {
  color: #b9c3d2;
}

.roi-list b {
  display: inline-block;
  min-width: 3.2ch;
  margin-right: 6px;
  font-weight: 780;
  font-size: 1.3rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.roi-plan {
  margin: 0;
  font-size: 0.9rem;
  color: #8d9ab0;
}

@media (max-width: 1080px) {
  .roi-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .roi-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .roi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

[hidden] {
  display: none !important;
}

.plan-price b span {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* ---------- 0.6.0: cookie choices ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -24px rgba(14, 26, 43, 0.45);
}
.consent p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.consent-row {
  display: flex;
  gap: 8px;
}
.consent .btn {
  padding: 9px 16px;
  font-size: 0.92rem;
}

/* Year-End Founders offer. Hidden in the build; the Worker reveals it while it's live. */
.promo-strip {
  background: var(--carbon);
  color: #fff;
  font-size: 0.9rem;
}
.promo-strip[hidden],
.plan-promo[hidden],
.plan-promo.is-year {
  display: none !important;
}
.promo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding-block: 9px;
  text-align: center;
}
.promo-row p {
  margin: 0;
}
.promo-left {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.promo-go {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.promo-go:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.plan-promo {
  display: grid;
  gap: 2px;
  margin: -2px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
.plan-promo-tag {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--carbon);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}
.plan-promo b {
  color: var(--carbon);
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* While the offer shows on monthly prices, the regular price above it is struck through. */
.plan:has(.plan-promo:not([hidden]):not(.is-year)) .plan-price b,
.plan:has(.plan-promo:not([hidden]):not(.is-year)) .plan-price b [data-m] {
  font-size: 1.25rem;
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.plan:has(.plan-promo:not([hidden]):not(.is-year)) .plan-price > span {
  display: none;
}

/* ---------- help centre (0.7.0) ---------- */

.help-find {
  margin-top: 22px;
  max-width: 560px;
}
.help-find input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1.05rem;
}
.help-find input:focus-visible {
  outline: 3px solid var(--carbon);
  outline-offset: 2px;
}
.help-none {
  margin-top: 10px;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px 48px;
}
.help-cat h2 {
  margin: 0 0 12px;
  font-weight: 760;
  font-size: 1.15rem;
}
.help-cat[hidden],
[data-help-item][hidden] {
  display: none;
}
.help-links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-links a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.help-links a:hover,
.help-links a:focus-visible {
  background: var(--white);
}
.help-links span {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.help-article {
  display: grid;
  grid-template-columns: minmax(0, 72ch) minmax(200px, 280px);
  gap: 48px;
  align-items: start;
}
.help-related ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.prose-site h2 {
  margin-top: 32px;
}
.prose-site h2:first-child {
  margin-top: 0;
}
.prose-site ol {
  list-style: decimal;
  padding-left: 22px;
  margin-bottom: 1em;
}
.prose-site ol li {
  margin-bottom: 8px;
  color: var(--ink-2);
}
.prose-site code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--white);
  font-size: 0.92em;
}
@media (max-width: 820px) {
  .help-article {
    grid-template-columns: 1fr;
  }
}

/* ---------- presales chat (0.7.0) ---------- */

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(14, 26, 43, 0.28);
  cursor: pointer;
}
.chat-fab:hover {
  background: var(--carbon);
}
.chat-fab:focus-visible {
  outline: 3px solid var(--carbon-hi);
  outline-offset: 3px;
}
.chat-fab[hidden] {
  display: none;
}
.chat-fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
}
.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 61;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 40px));
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--sheet);
  box-shadow: 0 24px 60px rgba(14, 26, 43, 0.3);
  overflow: hidden;
}
.chat[hidden] {
  display: none;
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
}
.chat-head div {
  display: grid;
  gap: 2px;
}
.chat-head b {
  font-size: 1.05rem;
}
.chat-head span {
  font-size: 0.82rem;
  opacity: 0.75;
}
.chat-close {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.chat-close:focus-visible,
.chat-link:focus-visible,
.chat-chip:focus-visible,
.chat-send:focus-visible {
  outline: 3px solid var(--carbon);
  outline-offset: 2px;
}
.chat-log-site {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}
.chat-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.5;
}
.chat-msg p {
  margin: 0;
  white-space: pre-wrap;
}
.chat-msg.visitor {
  align-self: flex-end;
  background: var(--carbon);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
  border-bottom-left-radius: 4px;
}
.chat-article {
  display: inline-block;
  margin-top: 8px;
  color: var(--carbon);
  font-size: 0.86rem;
  font-weight: 600;
}
.chat-msg.typing {
  display: inline-flex;
  gap: 4px;
  width: auto;
}
.chat-msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-msg.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg.typing span {
    animation: none;
  }
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.chat-chips:empty,
.chat-chips[hidden] {
  display: none;
}
.chat-chip {
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.chat-chip:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--rule-2);
  background: var(--white);
}
.chat-form[hidden],
.chat-lead[hidden] {
  display: none;
}
.chat-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font: inherit;
  font-size: 0.94rem;
  resize: none;
}
.chat-form textarea:focus-visible,
.chat-lead input:focus-visible,
.chat-lead textarea:focus-visible {
  outline: 2px solid var(--carbon);
  outline-offset: 1px;
}
.chat-send {
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--carbon);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}
.chat-lead {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--rule-2);
  background: var(--white);
  overflow-y: auto;
  align-content: start;
}
.chat.is-intro {
  grid-template-rows: auto 1fr auto auto;
}
.chat.is-intro .chat-chips {
  display: none;
}
.chat-lead .chat-send {
  justify-self: start;
  padding: 11px 20px;
}
.chat-fine {
  color: var(--ink-3);
  font-size: 0.78rem;
}
.chat-lead label {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.chat-lead input,
.chat-lead textarea {
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font: inherit;
  font-size: 0.94rem;
}
.chat-lead textarea {
  min-height: 70px;
  resize: vertical;
}
.chat-lead-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-lead-row .chat-send {
  padding: 10px 18px;
}
.chat-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.chat-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 12px;
  background: var(--white);
}
.chat-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.chat-link[hidden] {
  display: none;
}
.chat-link.is-on {
  color: var(--carbon);
  font-weight: 650;
}
@media (max-width: 520px) {
  .chat {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .chat-fab {
    right: 14px;
    bottom: 14px;
  }
}
@media print {
  .chat,
  .chat-fab {
    display: none !important;
  }
}
.help-related-h {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 650;
}
.help-related a {
  color: var(--ink);
}


/* ---------- Start page (0.7.3): the plan picker, ported from the app ---------- */

.start-wrap {
  --action: var(--carbon);
  --action-soft: rgba(43, 69, 224, 0.08);
  --surface: var(--white);
  --sunken: var(--sheet);
  --line: var(--rule);
  --line-strong: var(--ink-3);
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.06), 0 8px 24px rgba(14, 26, 43, 0.06);
  --money: var(--booked);
  --money-soft: #e3f3ea;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
}
.start-wrap .lede {
  margin: 12px 0 24px;
  max-width: 60ch;
}
.start-note {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4d6;
  color: var(--ink);
}
.start-note[hidden] {
  display: none;
}
.pick-promo {
  margin: 2px 0 4px;
}
.start:has(#iv-year:checked) .pick-promo {
  display: none !important;
}
.start:has(.pick-promo:not([hidden])) .pick-price b.m {
  font-size: 1.05rem;
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.start:has(.pick-promo:not([hidden])) .pick-price span.m {
  display: none;
}
.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.start-h {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.start-lede {
  margin: 0 0 24px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* Monthly / yearly switch */
.seg {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.seg input:checked + label {
  background: var(--ink);
  color: var(--surface);
}
.seg input:focus-visible + label {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}
.seg-save {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--money-soft);
  color: var(--money);
  font-size: 0.78rem;
}

/* Plan cards */
.plans-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.pick {
  position: relative;
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pick-card {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pick-card:hover {
  border-color: var(--line-strong);
}
.pick input:checked + .pick-card {
  border-color: var(--action);
  box-shadow: 0 0 0 3px var(--action-soft);
}
.pick input:focus-visible + .pick-card {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}
.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pick-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.pick-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--action-soft);
  color: var(--action);
  font-size: 0.75rem;
  font-weight: 700;
}
.pick-price {
  display: grid;
}
.pick-price b {
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pick-price span {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.pick-for {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.pick-meta {
  color: var(--ink-3);
  font-size: 0.8rem;
}
.start .y {
  display: none;
}
.start:has(#iv-year:checked) .y {
  display: inline;
}
.start:has(#iv-year:checked) b.y {
  display: block;
}
.start:has(#iv-year:checked) .m {
  display: none;
}

/* Agency accounts: only when Agency is picked */
.agency-only {
  display: none;
  margin-top: 12px;
}
.start:has(#plan-agency:checked) .agency-only {
  display: block;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.stepper > span {
  display: grid;
  gap: 2px;
}
.stepper input {
  width: 96px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}
.stepper input:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px var(--action-soft);
}

.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
  cursor: pointer;
}
.agree input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--action);
}
.start-go {
  width: 100%;
  justify-content: center;
}
.start-fine {
  margin-top: 12px;
}

/* Side: what happens next */
.start-side {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.start-side-h {
  margin: 0 0 14px;
  font-weight: 700;
}
.start-steps {
  counter-reset: s;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.start-steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
}
.start-steps li::before {
  content: counter(s);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.85rem;
}
.start-steps span {
  color: var(--ink-3);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .start {
    grid-template-columns: minmax(0, 1fr);
  }
  .start-side {
    position: static;
  }
}
@media (max-width: 560px) {
  .plans-pick {
    grid-template-columns: minmax(0, 1fr);
  }
}
