/* Company-plan quiz. Extends DS 1.2.0 keycaps, LEDs and the knurled dial. */
.qz-page {
  --q-width: min(560px, calc(100% - 32px));
  --q-ease: cubic-bezier(.16, 1, .3, 1);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--raised);
}
.qz-page ::selection { background: var(--accent-selection); }
.qz-page [hidden] { display: none !important; }

/* Header: back key, centred wordmark, step count, LED meter */
.qz-header { position: sticky; top: 0; z-index: 10; background: var(--raised); }
.qz-bar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  width: min(760px, calc(100% - 24px));
  height: 64px;
  margin-inline: auto;
}
.qz-bar .brand { grid-column: 2; justify-self: center; color: var(--ink-1); text-decoration: none; }
.qz-back.ni-key.icon { --kh: 44px; grid-column: 1; }
.qz-count { grid-column: 3; justify-self: end; white-space: nowrap; color: var(--ink-3); font: 500 13px/1 var(--font-work); font-variant-numeric: tabular-nums; }
.qz-meter {
  display: flex;
  gap: 10px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 10px;
  list-style: none;
}
.qz-meter li { flex: 1 1 0; display: grid; gap: 7px; min-width: 0; }
.meter-bar { display: flex; gap: 3px; }
.meter-bar i {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: var(--well);
  box-shadow: inset 0 1px 1px rgba(20, 22, 25, .18);
  transition: background .3s var(--q-ease), box-shadow .3s var(--q-ease);
}
.meter-bar i.is-done { background: var(--accent-led); box-shadow: 0 0 6px var(--accent-glow); }
.meter-bar i.is-current { background: var(--accent-border); }
.meter-name { overflow: hidden; color: var(--ink-3); font: 500 11.5px/1 var(--font-work); white-space: nowrap; text-overflow: ellipsis; transition: color .3s; }
.qz-meter li.is-current .meter-name { color: var(--ink-1); font-weight: 600; }
.qz-meter li.is-done .meter-name { color: var(--accent-ink); }

/* Stage */
.qz-main { flex: 1; overflow-x: clip; display: flex; justify-content: center; padding: clamp(28px, 6svh, 64px) 0 48px; }
.qz-stage { width: var(--q-width); margin-inline: auto; }
.qz-step { display: flex; flex-direction: column; }
.qz-step.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -24px)); transition: opacity .16s ease-in, transform .16s ease-in; }
.qz-step:not(.is-static):not(.is-entering) { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); }
.qz-step.is-entering { opacity: 1; transform: none; transition: opacity .42s var(--q-ease), transform .42s var(--q-ease); }
@media (prefers-reduced-motion: reduce) {
  .qz-step:not(.is-static):not(.is-entering) { opacity: 1; transform: none; }
}

.qz-title {
  margin: 0;
  font: 500 clamp(28px, 4.4vw, 38px)/1.12 var(--font-display);
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
  outline: none;
}
.kind-tiles .qz-title, .qz-step.is-static .qz-title { font-size: clamp(34px, 6vw, 52px); line-height: 1.04; }
.qz-lead { margin: 14px auto 0; max-width: 42ch; color: var(--ink-2); font-size: 16px; line-height: 1.55; text-align: center; text-wrap: pretty; }
.qz-question { margin: clamp(28px, 5svh, 44px) 0 0; font: 600 17px/1.3 var(--font-work); letter-spacing: -.01em; text-align: center; }
.qz-fineprint { margin: 22px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; text-align: center; }
.qz-step > .qz-options, .qz-step > .qz-tools, .qz-step > .qz-range, .qz-step > .qz-card { margin-top: 30px; }

/* Answer keys: large keycaps with an LED that lights on selection */
.qz-option.ni-key, .qz-tile.ni-key, .qz-tool.ni-key {
  height: auto;
  white-space: normal;
  text-align: left;
  border-radius: var(--r-key-lg);
  font-size: 15px;
  line-height: 1.3;
}
.qz-option.ni-key .led, .qz-tile.ni-key .led, .qz-tool.ni-key .led { width: 8px; height: 8px; border-radius: 2px; }
.qz-options { display: grid; gap: 10px; }
.qz-option.ni-key { justify-content: space-between; min-height: 60px; padding: 12px 18px; gap: 16px; }
.qz-option strong { display: block; font-weight: 550; }
.qz-option small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 450; }
.qz-option[aria-pressed="true"] small { color: var(--accent-ink); }
.qz-option.is-check .led { border-radius: 2px; }
.qz-option.ni-key:has(.opt-icon) { justify-content: flex-start; padding-left: 12px; gap: 14px; }
.qz-option .opt-text { flex: 1; min-width: 0; }
.opt-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--chassis-top);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s;
}
.opt-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--ink-1);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
  transition: background .2s;
}
.qz-option[aria-pressed="true"] .opt-icon { background: var(--accent-led); box-shadow: 0 2px 8px -2px var(--accent-glow); }
.qz-option[aria-pressed="true"] .opt-icon::before { background: #fff; }
@media (min-width: 640px) {
  .qz-stage:has(.qz-options.is-grid) { width: min(720px, calc(100% - 32px)); }
  .qz-options.is-grid { grid-template-columns: 1fr 1fr; }
}

/* Photo keys: a portrait photo set into the keycap, label and LED underneath */
.qz-stage:has(.qz-photos) { width: min(820px, calc(100% - 32px)); }
.qz-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.qz-tiles.qz-photos { margin-top: 18px; }
@media (min-width: 720px) {
  .qz-tiles.qz-photos { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .qz-photos.is-six { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .qz-photos.is-six .photo-frame { aspect-ratio: 5 / 4; }
}
.qz-photo.ni-key {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 10px 8px;
  height: auto;
  padding: 6px 6px 12px;
  border-radius: var(--r-key-lg);
  white-space: normal;
  text-align: left;
}
.photo-frame { grid-column: 1 / -1; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: calc(var(--r-key-lg) - 5px); background: var(--well); box-shadow: inset 0 0 0 1px rgba(20, 22, 25, .08); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--q-ease), filter .3s; }
.qz-photo:hover .photo-frame img { transform: scale(1.04); }
.qz-photo[aria-pressed="true"] .photo-frame { box-shadow: inset 0 0 0 1px rgba(20, 22, 25, .08), 0 0 0 2px var(--accent-led); }
.qz-photos:has([aria-pressed="true"]) .qz-photo[aria-pressed="false"] .photo-frame img { filter: saturate(.55) brightness(1.04); }
.photo-text { padding-left: 6px; min-width: 0; }
.photo-text strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.photo-text small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.qz-photo[aria-pressed="true"] small { color: var(--accent-ink); }
.qz-photo.ni-key .led { width: 8px; height: 8px; border-radius: 2px; margin: 5px 6px 0 0; }
@media (max-width: 420px) {
  .qz-photos { gap: 10px; }
  .photo-frame { aspect-ratio: 3 / 4; }
  .photo-text strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .photo-frame img { transition: none; } .qz-photo:hover .photo-frame img { transform: none; } }


/* Range */
.qz-range { display: grid; gap: 12px; text-align: center; }
.range-value { font: 500 clamp(56px, 12vw, 84px)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.range-value small { font: 500 18px/1 var(--font-work); letter-spacing: 0; color: var(--ink-2); }
.range-input {
  --fill: 30%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
}
.range-input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-led) var(--fill), var(--well) var(--fill)); box-shadow: inset 0 1px 2px rgba(20, 22, 25, .18); }
.range-input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--well); box-shadow: inset 0 1px 2px rgba(20, 22, 25, .18); }
.range-input::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent-led); }
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px; height: 32px; margin-top: -12px; border-radius: 50%;
  border: 1px solid var(--edge);
  background: radial-gradient(120% 90% at 35% 20%, #ffffff, #e6e8eb 55%, #cfd3d7);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(20, 22, 25, .14), 0 4px 10px -4px rgba(20, 22, 25, .4);
}
.range-input::-moz-range-thumb {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--edge);
  background: radial-gradient(120% 90% at 35% 20%, #ffffff, #e6e8eb 55%, #cfd3d7);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(20, 22, 25, .14), 0 4px 10px -4px rgba(20, 22, 25, .4);
}
.range-input:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 4px; border-radius: 8px; }
.range-scale { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.qz-callout { margin: 10px 0 0; padding: 14px 16px; border-radius: var(--r-surface); background: var(--chassis-top); color: var(--ink-1); font-size: 15px; line-height: 1.5; }
.qz-callout strong { color: var(--accent-ink); font-weight: 600; }

/* Continue */
.qz-next { margin-top: 28px; display: flex; justify-content: center; }
.qz-next .ni-key { min-width: min(320px, 100%); }
@media (max-width: 560px) {
  .qz-next {
    position: sticky;
    bottom: 0;
    margin-inline: -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--raised);
  }
  .qz-next .ni-key { width: 100%; }
}

/* Fact screens */
.qz-art { display: flex; justify-content: center; margin-bottom: 30px; }
.art-memory {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: #f0f1ef;
  border: 1px solid #dddfdc;
}
.art-you { justify-self: end; text-align: right; }
.art-you .message-sender { display: block; margin: 0 4px 5px; color: var(--ink-2); font-size: 11px; font-weight: 550; }
.message-bubble.outgoing { margin: 0; padding: 9px 13px; border-radius: 16px 16px 5px 16px; background: var(--ink-1); color: var(--ink-inverse); font-size: 14px; line-height: 1.4; text-align: left; }
.art-rail { position: relative; height: 4px; border-radius: 4px; background: #d3d6d0; overflow: hidden; }
.art-rail i { position: absolute; inset: 0; background: var(--accent-led); transform-origin: left; animation: art-fill 1.1s .25s var(--q-ease) both; }
.art-saved { color: var(--ink-2); font-size: 13px; text-align: center; }
.art-doc { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-surface); animation: art-rise .6s .9s var(--q-ease) both; }
.art-doc strong { font: 500 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.art-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--status-verified-fg); font-size: 14px; }
/* First agent: a real-looking piece of work, then the locked rest of the plan */
.art-agent { display: grid; gap: 10px; width: min(420px, 100%); }
.agent-card {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sheet);
  animation: art-drop .7s .15s var(--q-ease) both;
}
.agent-card header { display: flex; align-items: center; gap: 10px; }
.agent-card header img { flex: none; }
.agent-card header strong { display: block; font-size: 14px; font-weight: 600; }
.agent-card header span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }
.agent-title { margin: 14px 0 0; font: 500 19px/1.25 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.agent-body { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.agent-actions { display: flex; gap: 8px; margin-top: 14px; }
.agent-key { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--chassis-top); color: var(--ink-1); font-size: 13.5px; font-weight: 550; box-shadow: inset 0 0 0 1px var(--line); }
.agent-key.is-primary { background: var(--ink-1); color: var(--ink-inverse); box-shadow: none; }
.agent-locked { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; animation: art-rise .6s .7s var(--q-ease) both; }
.agent-locked li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #f0f1ef; color: var(--ink-3); font-size: 14px; }
.agent-locked li span { filter: blur(.4px); }
.agent-locked svg { flex: none; color: var(--ink-3); }
@keyframes art-fill { from { transform: scaleX(0); } }
@keyframes art-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes art-drop { from { opacity: 0; transform: translateY(-18px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .art-rail i, .art-doc, .agent-card, .agent-locked { animation: none; } }

/* Company profile */
.qz-profile { display: grid; margin: 28px 0 0; padding: 4px 20px; border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-surface); }
.qz-profile div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 12px 0; }
.qz-profile div + div { box-shadow: 0 -1px 0 var(--line); }
.qz-profile dt { color: var(--ink-3); font-size: 14px; }
.qz-profile dd { margin: 0; font-size: 14.5px; font-weight: 550; line-height: 1.4; }
.kind-profile .qz-callout { margin-top: 14px; }
@media (max-width: 420px) { .qz-profile div { grid-template-columns: 1fr; gap: 2px; } }

/* Permission cards */
.qz-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 24px 32px;
  border-radius: 22px;
  background: #f0f1ef;
  border: 1px solid #dddfdc;
  text-align: center;
}
.kind-cards .qz-card { animation: card-in .45s var(--q-ease) both; }
.card-count { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.card-action { margin: 0; max-width: 22ch; font: 500 clamp(22px, 3.6vw, 27px)/1.22 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.card-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.card-choices .ni-key { height: auto; min-height: 56px; padding: 8px 10px; white-space: normal; border-radius: var(--r-key-lg); font-size: 14.5px; line-height: 1.2; text-align: center; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .kind-cards .qz-card { animation: none; } }

/* Building */
.qz-build { display: grid; gap: 8px; padding-top: 3svh; }
.build-bars { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.build-bars li { --p: 0; color: var(--ink-3); transition: color .3s; }
.build-bars li.is-active { color: var(--ink-1); }
.bar-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; font-weight: 550; }
.bar-head b { font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.build-bars li.is-done .bar-head b { color: var(--status-verified-fg); }
.bar { height: 8px; border-radius: 4px; background: var(--well); box-shadow: inset 0 1px 2px rgba(20, 22, 25, .18); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-led); box-shadow: 0 0 8px var(--accent-glow); transform: scaleX(var(--p)); transform-origin: left; }
.build-bars li.is-done .bar i { background: var(--status-verified); box-shadow: none; }
.build-ask {
  margin-top: 26px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sheet);
  animation: art-drop .5s var(--q-ease) both;
  transition: opacity .25s, transform .25s;
}
.build-ask.is-answered { opacity: 0; transform: translateY(-8px); }
.build-ask-title { margin: 0; font: 500 19px/1.3 var(--font-display); letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.build-ask-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.build-ask-keys .ni-key { height: auto; min-height: 56px; padding: 8px 10px; gap: 10px; border-radius: var(--r-key-lg); font-size: 15px; }
.build-ask-keys .opt-icon { width: 32px; height: 32px; border-radius: 9px; }
.build-ask-keys .opt-icon::before { width: 17px; height: 17px; }
@media (max-width: 420px) { .build-ask-keys { grid-template-columns: 1fr; } .build-ask-keys .ni-key { justify-content: flex-start; } }

/* Plan: a long, personal sales page built from the answers */
.qz-stage:has(.qz-plan) { width: min(760px, calc(100% - 32px)); }
.qz-plan { display: grid; gap: clamp(40px, 7vw, 72px); padding-bottom: 120px; }
.plan-h2 { margin: 0 0 16px; font: 500 clamp(24px, 3.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.03em; }
.plan-hero { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 26px; background: #0d0f12; }
.plan-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; animation: hero-in 1.4s var(--q-ease) both; }
.plan-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 35%, rgba(10, 11, 13, .82) 100%); }
.plan-hero figcaption { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(20px, 4vw, 36px); color: #fff; }
.plan-hero .qz-title { color: #fff; text-align: left; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.02; }
.plan-hero p { margin: 10px 0 0; max-width: 46ch; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.5; }
@keyframes hero-in { from { transform: scale(1.08); filter: blur(8px); } }
@media (max-width: 560px) { .plan-hero { aspect-ratio: 4 / 5; } }

.plan-deal { padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: var(--ink-1); color: #fff; }
.plan-deal h2 { margin: 0; font: 500 clamp(26px, 4.2vw, 38px)/1.1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.plan-deal em { font-style: normal; color: var(--accent-led); }
.deal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.deal-cols > div { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.deal-cols h3 { margin: 0 0 12px; color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 600; }
.deal-cols ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.deal-cols li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; }
.deal-honest { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); font-size: 14.5px; line-height: 1.5; }
.deal-honest strong { color: #fff; font-weight: 600; }
.plan-deal .opt-icon { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-led); box-shadow: none; }
.plan-deal .opt-icon::before { width: 13px; height: 13px; background: #fff; }

.plan-week, .plan-match, .plan-niche, .plan-track { padding: clamp(22px, 4vw, 30px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-surface); }
.plan-sub { margin: -6px 0 20px; max-width: 60ch; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.plan-sub strong { color: var(--ink-1); font-weight: 600; }
.match-why .opt-icon, .niche-next .opt-icon, .cm-with .opt-icon, .wd-get .opt-icon { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; }
.match-why .opt-icon::before, .niche-next .opt-icon::before, .cm-with .opt-icon::before, .wd-get .opt-icon::before { width: 13px; height: 13px; }

/* Where you'd win: the best match large, two alternatives you can switch to */
.match-best { padding: 20px; border-radius: 18px; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-border); }
.match-best header { display: flex; gap: 14px; align-items: flex-start; }
.match-best header .opt-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-led); box-shadow: 0 4px 12px -4px var(--accent-glow); }
.match-best header .opt-icon::before { width: 24px; height: 24px; background: #fff; }
.match-best h3 { margin: 0; font: 500 clamp(22px, 3.4vw, 28px)/1.1 var(--font-display); letter-spacing: -.025em; }
.match-best header p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.match-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.match-facts div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.match-facts dt { color: var(--ink-3); font-size: 12.5px; font-weight: 550; }
.match-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 550; line-height: 1.4; }
.match-why { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.match-why li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.match-why .opt-icon { background: var(--accent-led); }
.match-why .opt-icon::before { background: #fff; }
.match-why .is-warn { color: var(--ink-2); font-weight: 450; }
.match-why .is-warn .opt-icon { background: var(--status-attention-soft); }
.match-why .is-warn .opt-icon::before { background: var(--status-attention-fg); }
.match-rest { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.match-rest li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 14px; background: #f3f3f1; }
.match-rest strong { font-size: 15px; font-weight: 600; }
.match-rest .ni-key { white-space: nowrap; }

/* Already in a niche: insights, then how Nonidem pushes it */
.niche-insights { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.niche-insights li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: #f3f3f1; font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.niche-insights .opt-icon { width: 36px; height: 36px; background: var(--surface); }
.niche-push { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; padding: 18px 20px; border-radius: 18px; background: var(--ink-1); color: #fff; }
.niche-push h3 { margin: 0; font: 500 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.niche-push ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.niche-push li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 500; }
.niche-push .opt-icon { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-led); box-shadow: none; }
.niche-push .opt-icon::before { width: 13px; height: 13px; background: #fff; }

/* The cost of doing it alone: an orange field, the founder's own numbers, a live wait slider */
.plan-cost { padding: clamp(24px, 4.4vw, 40px); border-radius: 26px; background: var(--accent-base); color: #fff; }
.plan-cost h2 { margin: 0; max-width: 18ch; font: 500 clamp(30px, 5.4vw, 50px)/1.02 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.cost-monday { margin-top: 24px; padding: 6px 18px; border-radius: 18px; background: var(--surface); color: var(--ink-1); box-shadow: 0 18px 40px -24px rgba(90, 22, 0, .6); }
.cm-head, .cost-monday li { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 16px; align-items: start; }
.cm-head { padding: 12px 0 8px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.cm-head span:last-child { color: var(--accent-ink); }
.cost-monday ol { margin: 0; padding: 0; list-style: none; }
.cost-monday li { padding: 12px 0; box-shadow: 0 -1px 0 var(--line); font-size: 14.5px; line-height: 1.4; }
.cost-monday time { color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; }
.cm-alone { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(20, 22, 25, .35); }
.cm-with { display: flex; gap: 8px; align-items: flex-start; font-weight: 550; }
.cm-with .opt-icon { background: var(--accent-led); }
.cm-with .opt-icon::before { background: #fff; }
.cost-leak { margin: 18px 0 0; color: #fff; font: 500 clamp(19px, 2.8vw, 23px)/1.3 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.cost-wait { margin-top: 20px; padding: 18px; border-radius: 18px; background: rgba(60, 14, 0, .26); }
.cost-wait label { display: block; font-size: 15px; font-weight: 600; }
.cost-wait output { font-variant-numeric: tabular-nums; }
.cost-wait .range-input { height: 36px; margin: 6px 0 0; }
.cost-wait .range-input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #fff var(--fill), rgba(255, 255, 255, .3) var(--fill)); box-shadow: none; }
.cost-wait .range-input::-moz-range-track { background: rgba(255, 255, 255, .3); box-shadow: none; }
.cost-wait .range-input::-moz-range-progress { background: #fff; }
.cost-wait .range-input:focus-visible { outline-color: #fff; }
.cost-wait p { margin: 6px 0 0; color: #fff; font-size: 15px; line-height: 1.5; }
.cost-wait strong { color: #fff; font-weight: 650; }

/* First week: seven keycaps on one rail, today lit */
.week-strip { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.week-strip::before { content: ''; position: absolute; top: 50px; left: 7%; right: 7%; height: 3px; border-radius: 2px; background: var(--well); }
.week-strip li { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.ws-day { color: var(--ink-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.week-strip .opt-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 0 rgba(20, 22, 25, .06); }
.week-strip .opt-icon::before { width: 21px; height: 21px; }
.week-strip strong { font-size: 13px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.week-strip .is-today .ws-day { color: var(--accent-ink); }
.week-strip .is-today .opt-icon { background: var(--accent-led); box-shadow: 0 6px 16px -6px var(--accent-glow); }
.week-strip .is-today .opt-icon::before { background: #fff; }

/* Goal track: a daily streak and 90 days you light one by one */
.plan-track .plan-h2 { max-width: 20ch; }
.track-intro p { margin: -4px 0 0; max-width: 54ch; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
/* Why it sticks: four small product pictures, one line each */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 8px; }
.why-card { margin: 0; }
.why-art { display: grid; place-items: center; height: 168px; padding: 16px; border-radius: 18px; background: #f3f3f1; overflow: hidden; }
.why-card figcaption { margin-top: 12px; font-size: 15.5px; font-weight: 550; line-height: 1.4; text-wrap: balance; }
.art-streak { align-content: center; gap: 14px; }
.ws-flame { display: inline-flex; align-items: center; gap: 8px; }
.ws-flame .opt-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-led); box-shadow: 0 6px 16px -6px var(--accent-glow); }
.ws-flame .opt-icon::before { width: 26px; height: 26px; background: #fff; }
.ws-flame b { font: 500 40px/1 var(--font-display); color: var(--accent-ink); }
.art-streak ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.art-streak li { display: grid; justify-items: center; gap: 5px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.art-streak li i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.art-streak li.is-lit { color: var(--ink-1); }
.art-streak li.is-lit i { background: var(--accent-led); box-shadow: 0 0 8px var(--accent-glow); }
.mini-card { display: grid; gap: 4px; width: min(240px, 100%); padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sheet); }
.mini-card strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.mini-card > span:not(.mini-keys) { color: var(--ink-3); font-size: 12px; }
.mini-keys { display: flex; gap: 6px; margin-top: 8px; }
.mini-keys span { padding: 6px 12px; border-radius: 8px; background: var(--chassis-top); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; }
.mini-keys .is-primary { background: var(--ink-1); color: #fff; box-shadow: none; }
.art-flow { align-content: center; gap: 0; }
.art-flow .node { display: grid; gap: 1px; min-width: 150px; padding: 7px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-surface); font-size: 13px; font-weight: 600; text-align: left; }
.art-flow .node small { color: var(--ink-3); font-size: 10.5px; font-weight: 550; }
.art-flow .node.is-agent { box-shadow: 0 0 0 2px var(--accent-led); }
.art-flow i { width: 2px; height: 12px; background: var(--accent-border); }
.mini-doc { display: grid; gap: 8px; width: min(220px, 100%); padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sheet); }
.mini-doc strong { font: 500 15px/1.2 var(--font-display); }
.mini-doc span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini-doc .opt-icon { width: 18px; height: 18px; border-radius: 5px; background: var(--status-verified-soft); box-shadow: none; }
.mini-doc .opt-icon::before { width: 11px; height: 11px; background: var(--status-verified-fg); }
.plan-track .track-road { margin-top: 28px; }

/* At a glance: goal, time, what held you back */
.plan-summary { margin-top: calc(-1 * clamp(20px, 4vw, 48px)); }
.plan-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.plan-summary dl > div { display: grid; justify-items: center; gap: 6px; padding: 18px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-surface); text-align: center; }
.plan-summary dt { color: var(--ink-3); font-size: 13px; font-weight: 550; }
.plan-summary dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.plan-summary .opt-icon { width: 34px; height: 34px; border-radius: 10px; }
.plan-summary .opt-icon::before { width: 17px; height: 17px; }
.summary-ready { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--status-verified-soft); color: var(--status-verified-fg); font-size: 15px; font-weight: 600; }
.summary-ready .opt-icon { width: 24px; height: 24px; border-radius: 7px; background: var(--status-verified-fg); box-shadow: none; }
.summary-ready .opt-icon::before { width: 14px; height: 14px; background: #fff; }
.track-road { margin-top: 12px; padding: 18px; border-radius: 18px; background: #f3f3f1; }
.road-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.road-head span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); text-align: right; }
.road-head .opt-icon { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-led); box-shadow: none; }
.road-head .opt-icon::before { width: 12px; height: 12px; background: #fff; }
.road-cells { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.road-cells li { aspect-ratio: 1; border-radius: 4px; background: var(--well); box-shadow: inset 0 1px 1px rgba(20, 22, 25, .14); }
.road-cells li.is-mark { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent-border); }
.road-cells li.is-lit { background: var(--accent-led); box-shadow: 0 0 8px var(--accent-glow); animation: cell-pulse 2.4s ease-in-out infinite; }
.road-cells li:last-child { background: var(--ink-1); box-shadow: none; }
@keyframes cell-pulse { 50% { box-shadow: 0 0 0 4px var(--accent-glass); } }
.road-marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.road-marks li { display: grid; gap: 3px; align-content: start; }
.road-marks b { color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.road-marks strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.road-marks span { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.track-rule { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.track-rule .opt-icon { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; background: var(--status-verified-soft); }
.track-rule .opt-icon::before { width: 14px; height: 14px; background: var(--status-verified-fg); }
@media (prefers-reduced-motion: reduce) { .road-cells li.is-lit { animation: none; } }

/* Commitment and checkout: one dark block, the plan, two billing keys, one action */
.plan-commit { display: grid; justify-items: center; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px); border-radius: 28px; background: var(--ink-1); color: #fff; text-align: center; }
.plan-commit h2 { margin: 0; font: 500 clamp(30px, 5vw, 46px)/1.04 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.plan-commit > p { margin: 14px 0 0; max-width: 40ch; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.commit-plan { display: grid; gap: 4px; margin-top: 32px; }
.commit-plan strong { font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.commit-plan span { color: var(--accent-led); font-size: 14px; font-weight: 600; }
/* Plan switcher: the quiz recommends a plan, the buyer can take another. */
.commit-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(520px, 100%); margin-top: 20px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.commit-tier { display: grid; gap: 2px; padding: 10px 6px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.commit-tier strong { font: 500 16px/1.2 var(--font-display); letter-spacing: -.01em; }
.commit-tier small { font-size: 12px; line-height: 1.3; color: inherit; opacity: .8; }
.commit-tier:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.commit-tier[aria-checked="true"] { background: #fff; color: var(--ink-1); }
.commit-tier:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.commit-terms { display: grid; gap: 14px; width: min(520px, 100%); margin-top: 18px; }
.commit-term.ni-key { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; height: auto; min-height: 96px; padding: 14px 14px 14px 18px; border-radius: 18px; white-space: normal; text-align: left; }
.term-body { display: grid; gap: 3px; min-width: 0; }
.term-body strong { font: 500 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.term-body small { color: var(--ink-3); font-size: 13px; font-weight: 450; line-height: 1.35; }
.term-tag { display: flex; align-items: baseline; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--chassis-top); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.term-tag b { font: 500 26px/1 var(--font-display); letter-spacing: -.03em; }
.term-tag small { color: var(--ink-3); font-size: 13px; font-weight: 550; }
.commit-term[aria-checked="true"] .term-tag { background: var(--accent-base); color: #fff; box-shadow: none; }
.commit-term[aria-checked="true"] .term-tag small { color: rgba(255, 255, 255, .85); }
.commit-term em { position: absolute; top: -11px; left: 18px; padding: 4px 10px; border-radius: 999px; background: var(--accent-base); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; }
.commit-term.ni-key .led { width: 18px; height: 18px; border-radius: 50%; margin: 0; }
.commit-term[aria-checked="true"] .led { background: var(--accent-led); box-shadow: 0 0 0 4px var(--accent-glass), 0 0 8px var(--accent-glow); }
.commit-term[aria-checked="true"] { outline: 2px solid var(--accent-led); outline-offset: 0; }
.commit-cta { width: min(520px, 100%); margin-top: 20px; }
.commit-cta .ni-key { width: 100%; }
.commit-fine { margin: 14px 0 0; max-width: 44ch; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.5; }
.commit-fine a { color: #fff; }
.qz-plan > .plan-secondary { display: flex; justify-content: center; gap: 8px; margin-top: -24px; }
.qz-plan > .qz-fineprint { margin-top: -40px; }

.plan-sticky {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(720px, calc(100% - 24px));
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(22, 24, 27, .94);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: opacity .22s ease, transform .22s var(--q-ease);
  animation: sticky-in .5s .8s var(--q-ease) both;
}
.plan-sticky.is-docked {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}
.plan-sticky > span { flex: 1; min-width: 0; }
.plan-sticky strong { display: block; font-size: 14.5px; font-weight: 600; }
.plan-sticky small { display: block; color: rgba(255, 255, 255, .64); font-size: 12.5px; }
.plan-sticky .ni-key { flex: none; }
@keyframes sticky-in { from { opacity: 0; transform: translate(-50%, 20px); } }

@media (max-width: 600px) {
  .deal-cols, .match-facts, .plan-summary dl { grid-template-columns: 1fr; }
  .plan-summary dl > div { grid-template-columns: auto 1fr; justify-items: start; column-gap: 12px; text-align: left; padding: 14px 16px; }
  .plan-summary .opt-icon { grid-row: span 2; }
  .why-grid { grid-template-columns: 1fr; }
  .road-marks { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .road-cells { grid-template-columns: repeat(15, 1fr); gap: 3px; }
  .match-rest li { grid-template-columns: auto 1fr; }
  .match-rest .ni-key { grid-column: 1 / -1; }
  .cm-head { display: none; }
  .cost-monday li { grid-template-columns: 44px 1fr; gap: 4px 10px; }
  .cm-alone, .cm-with { grid-column: 2; }
  .plan-sticky small { display: none; }
  .qz-plan > .plan-secondary { margin-top: -12px; }
  .qz-plan > .qz-fineprint { margin-top: -20px; }
  /* The week becomes a vertical rail: day, keycap, title on one line each. */
  .week-strip { grid-template-columns: 1fr; gap: 10px; }
  .week-strip::before { top: 23px; bottom: 23px; left: 98px; right: auto; width: 3px; height: auto; }
  .week-strip li { grid-template-columns: 72px 46px 1fr; align-items: center; justify-items: start; gap: 14px; text-align: left; }
  .week-strip strong { font-size: 15px; }
}
@media (max-width: 420px) {
  .commit-term.ni-key { grid-template-columns: auto 1fr; }
  .term-tag { grid-column: 1 / -1; justify-self: stretch; justify-content: center; padding: 10px; }
  .plan-sticky { gap: 10px; padding: 8px 8px 8px 14px; }
  .plan-sticky strong { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .card-choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .plan-hero img, .plan-sticky, .build-ask { animation: none; } }

/* Knurled dial (shared with home.css) */
.ni-knob { position: relative; display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #b9bec3 0 3deg, #eef0f2 3deg 6deg); box-shadow: 0 0 0 1px rgba(20, 22, 25, .18), 0 2px 0 rgba(20, 22, 25, .12), 0 8px 16px -8px rgba(20, 22, 25, .45); }
.ni-knob .kn-cap { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(120% 90% at 35% 20%, #ffffff, #e6e8eb 55%, #cfd3d7); box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 2px rgba(20, 22, 25, .15), 0 1px 2px rgba(20, 22, 25, .3); }
.ni-knob .kn-dot { position: absolute; inset: 14%; transform: rotate(var(--r)); }
.ni-knob .kn-dot::after { content: ''; position: absolute; left: 50%; top: 9%; width: 16%; height: 16%; margin-left: -8%; border-radius: 50%; background: var(--accent-led); box-shadow: 0 0 5px var(--accent-glow); }
.build-dial .ni-knob .kn-dot { transition: transform .12s linear; }
