/* Bloom public site — intentionally independent from the authenticated app shell. */
:root {
  color-scheme: light;
  --canvas: #fbfbfe;
  --canvas-soft: #f5f5fc;
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.82);
  --ink: #151827;
  --ink-soft: #555d70;
  --ink-faint: #687186;
  --line: rgba(42, 48, 72, 0.12);
  --line-strong: rgba(68, 64, 190, 0.22);
  --indigo: #5551dc;
  --indigo-deep: #3832ac;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --coral: #fb725d;
  --teal: #12a7a2;
  --sky: #2b9ed4;
  --emerald: #12966f;
  --focus: #3730a3;
  --shadow-sm: 0 10px 34px rgba(38, 38, 83, 0.08);
  --shadow-lg: 0 30px 90px rgba(42, 38, 113, 0.16);
  --shell: min(1180px, calc(100vw - 40px));
  --copy: 680px;
  --font: "Bloom Sans", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #090c15;
    --canvas-soft: #0e1320;
    --surface: #111725;
    --surface-raised: rgba(17, 23, 37, 0.84);
    --ink: #f4f5fb;
    --ink-soft: #b2bacb;
    --ink-faint: #8e98ac;
    --line: rgba(223, 226, 255, 0.13);
    --line-strong: rgba(153, 148, 255, 0.28);
    --indigo: #8b87ff;
    --indigo-deep: #a29fff;
    --violet: #ac82ff;
    --pink: #ff76b6;
    --amber: #fbbf4a;
    --coral: #ff8e7c;
    --teal: #45d0c7;
    --sky: #64c8f2;
    --emerald: #50d4a6;
    --focus: #b8b5ff;
    --shadow-sm: 0 12px 38px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.42);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 10%, rgba(245, 158, 11, 0.07), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.09), transparent 28rem),
    var(--canvas);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: #312e81;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--indigo-deep);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 790;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-link img {
  width: 30px;
  height: 30px;
}

.brand-link small {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0;
}

.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-primary {
  justify-content: center;
  gap: 30px;
}

.nav-actions {
  justify-content: flex-end;
  gap: 17px;
}

.nav-link,
.sign-in-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 640;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.sign-in-link:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(116deg, #4f46d9 0%, #7554e8 54%, #a044cc 100%);
  box-shadow: 0 13px 34px rgba(79, 70, 217, 0.28);
}

.button-primary:hover {
  border-color: transparent;
  box-shadow: 0 17px 42px rgba(79, 70, 217, 0.36);
}

.button-arrow {
  width: 17px;
  height: 17px;
  margin-left: 9px;
  transition: transform 180ms ease;
}

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

.button-small {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.cta-short {
  display: none;
}

.nav-menu {
  display: none;
}

.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.nav-menu[open] > summary {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.nav-menu-icon {
  position: relative;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 180ms ease;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 180ms ease, transform 180ms ease;
  content: "";
}

.nav-menu-icon::before {
  top: -6px;
}

.nav-menu-icon::after {
  top: 6px;
}

.nav-menu[open] .nav-menu-icon {
  background: transparent;
}

.nav-menu[open] .nav-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-menu[open] .nav-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: 0 28px 48px rgba(21, 24, 39, 0.14);
}

.nav-menu-panel .shell {
  display: grid;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  min-height: 50px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 640;
  text-decoration: none;
}

.nav-menu-link:hover,
.nav-menu-link[aria-current="page"] {
  color: var(--ink);
}

.nav-menu-signin {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

/* ---- auth pages (/login, /signup) — marketing shell, single centered card */

.auth-main {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 76px);
  padding-block: clamp(40px, 8vh, 96px) 72px;
}

.auth-card {
  width: min(460px, var(--shell));
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm, 0 18px 44px rgba(21, 24, 39, 0.08));
}

.auth-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 790;
  letter-spacing: -0.03em;
}

.auth-lede {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.invite-callout {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: color-mix(in srgb, var(--amber) 9%, var(--surface));
  font-size: 0.88rem;
  line-height: 1.55;
}

.invite-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 720;
}

.invite-callout p {
  margin: 0;
  color: var(--ink-soft);
}

.invite-callout b {
  color: var(--ink);
  font-weight: 700;
}

.auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--coral) 50%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 9%, var(--surface));
  color: var(--ink);
  font-size: 0.88rem;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 680;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.google-button:hover {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
  box-shadow: 0 10px 26px rgba(21, 24, 39, 0.1);
  transform: translateY(-1px);
}

.google-mark {
  width: 19px;
  height: 19px;
  flex: none;
}

.auth-form {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.auth-form label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 660;
}

.auth-form input,
.auth-form select {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--line-strong);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.auth-form .button {
  margin-top: 14px;
  width: 100%;
}

.auth-alt {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.auth-alt a {
  color: var(--indigo);
  font-weight: 660;
}

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0 clamp(78px, 10vw, 124px);
}

.hero::before {
  position: absolute;
  top: -150px;
  right: -230px;
  width: 670px;
  height: 670px;
  border: 1px solid rgba(139, 92, 246, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(139, 92, 246, 0.025),
    0 0 0 180px rgba(245, 158, 11, 0.018);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.25rem, 6.1vw, 6.65rem);
  font-weight: 750;
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.hero h1 .gradient-word,
.page-hero h1 .gradient-word {
  background: linear-gradient(110deg, var(--indigo-deep), var(--violet) 50%, var(--pink));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede,
.page-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 0.77rem;
  font-weight: 570;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  content: "";
}

.hero-visual,
.scene-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(244, 243, 255, 0.42)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  .hero-visual,
  .scene-frame {
    background:
      linear-gradient(145deg, rgba(21, 28, 46, 0.96), rgba(14, 18, 33, 0.78)),
      var(--surface);
  }
}

.hero-visual {
  aspect-ratio: 1.04 / 1;
  border-radius: 34px 34px 120px 34px;
}

.hero-visual::after,
.scene-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
  content: "";
  pointer-events: none;
}

.hero-visual svg,
.scene-frame svg {
  width: 100%;
  height: 100%;
}

.trust-row {
  display: grid;
  /* Must divide the item count evenly: the 1px-gap border trick paints the
     row's --line background through every empty cell. Six items today. */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: -1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.trust-item {
  padding: 26px clamp(20px, 4vw, 54px);
  background: var(--canvas);
  text-align: center;
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.9rem;
  font-weight: 720;
}

.trust-item span {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.section-intro {
  max-width: 820px;
  margin: 0 auto clamp(62px, 9vw, 108px);
  text-align: center;
}

.section-intro h2,
.story-copy h2,
.closing-copy h2,
.pricing-intro h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.85rem);
  font-weight: 710;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.section-intro p,
.story-copy > p,
.closing-copy > p,
.pricing-intro > p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.story {
  padding: clamp(100px, 14vw, 184px) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: clamp(52px, 8vw, 116px);
}

.story-grid.reverse {
  grid-template-columns: minmax(520px, 1.16fr) minmax(0, 0.84fr);
}

.story-grid.reverse .story-copy {
  order: 2;
}

.story-copy {
  max-width: 480px;
}

.story-copy h2 {
  font-size: clamp(2.45rem, 4.4vw, 4.45rem);
}

.story-copy > p {
  margin: 24px 0 0;
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.story-point {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-raised);
  font-size: 0.74rem;
  font-weight: 650;
}

.scene-frame {
  aspect-ratio: 1.34 / 1;
  border-radius: 30px;
}

.scene-frame.warm {
  background:
    radial-gradient(circle at 76% 18%, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 80%, #fff2dc));
}

.scene-frame.cool {
  background:
    radial-gradient(circle at 14% 20%, rgba(43, 158, 212, 0.14), transparent 34%),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 84%, #e8f8ff));
}

.story-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(85, 81, 220, 0.045), rgba(236, 72, 153, 0.025)),
    var(--canvas-soft);
}

.launch-band {
  padding: clamp(72px, 9vw, 120px) 0;
}

.launch-video-inner {
  text-align: center;
}

.launch-video-copy {
  max-width: 720px;
  margin: 0 auto 36px;
}

.launch-video-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.85rem);
  font-weight: 710;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.launch-video-copy > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.launch-video {
  display: block;
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #090c15;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Inline-scene drawing language. */
.svg-text {
  fill: var(--ink);
  font-family: var(--font);
}

.svg-muted {
  fill: var(--ink-faint);
  font-family: var(--font);
}

.svg-line {
  stroke: var(--line-strong);
}

.svg-surface {
  fill: var(--surface);
  stroke: var(--line);
}

.svg-surface-soft {
  fill: var(--canvas-soft);
  stroke: var(--line);
}

.svg-indigo { fill: var(--indigo); }
.svg-violet { fill: var(--violet); }
.svg-pink { fill: var(--pink); }
.svg-amber { fill: var(--amber); }
.svg-coral { fill: var(--coral); }
.svg-teal { fill: var(--teal); }
.svg-sky { fill: var(--sky); }
.svg-emerald { fill: var(--emerald); }
.svg-ink { fill: var(--ink); }

.svg-draw {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: line-draw 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.svg-rise {
  opacity: 0;
  transform: translateY(12px);
  animation: scene-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.45s; }
.delay-2 { animation-delay: 0.8s; }
.delay-3 { animation-delay: 1.15s; }
.delay-4 { animation-delay: 1.5s; }
.delay-5 { animation-delay: 1.85s; }

.svg-float {
  animation: gentle-float 5s ease-in-out infinite;
}

.svg-float-late {
  animation: gentle-float 5.6s ease-in-out -2.1s infinite;
}

.svg-pulse {
  transform-origin: center;
  animation: soft-pulse 2.5s ease-in-out infinite;
}

.svg-scan {
  animation: scan-line 3.8s ease-in-out infinite;
}

.svg-message {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: center;
  animation: message-in 4.6s ease-in-out infinite;
}

.svg-message.second {
  animation-delay: 1.35s;
}

.svg-message.third {
  animation-delay: 2.7s;
}

.svg-route-dot {
  offset-path: path("M 0 0 C 70 -25 115 30 178 0");
  animation: route-dot 3.2s ease-in-out infinite;
}

.svg-bar-grow {
  transform-origin: bottom;
  transform-box: fill-box;
  animation: bar-grow 3.4s ease-in-out infinite;
}

.svg-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-wave 2.7s ease-out infinite;
}

.svg-flower-open {
  transform-box: fill-box;
  transform-origin: center;
  animation: flower-open 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes scene-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes soft-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes scan-line {
  0%, 12% { transform: translateX(-95px); opacity: 0; }
  24%, 76% { opacity: 0.9; }
  88%, 100% { transform: translateX(225px); opacity: 0; }
}

@keyframes message-in {
  0%, 12%, 100% { opacity: 0; transform: translateY(10px) scale(0.98); }
  22%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  90% { opacity: 0; transform: translateY(-4px) scale(1); }
}

@keyframes route-dot {
  0%, 10% { offset-distance: 0%; opacity: 0; }
  20%, 80% { opacity: 1; }
  90%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes bar-grow {
  0%, 15%, 100% { transform: scaleY(0.3); opacity: 0.6; }
  45%, 75% { transform: scaleY(1); opacity: 1; }
}

@keyframes ring-wave {
  0% { opacity: 0; transform: scale(0.5); }
  22% { opacity: 0.65; }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes flower-open {
  from { opacity: 0; transform: scale(0.15) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.pricing-section {
  padding: clamp(104px, 14vw, 174px) 0;
}

.pricing-intro {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 60px;
}

.pricing-intro > p {
  margin: 0 0 4px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--violet) 48%, var(--line));
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.13), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.plan-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--indigo-deep);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--indigo-deep);
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.price-card h2 {
  margin: 20px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.price {
  margin-top: 17px;
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1;
}

.price span {
  color: var(--ink-faint);
  font-size: 0.83rem;
  font-weight: 550;
  letter-spacing: 0;
}

.plan-summary {
  min-height: 55px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 34px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.feature-list li::before {
  position: absolute;
  top: 0.33em;
  left: 1px;
  width: 15px;
  height: 9px;
  border-bottom: 2px solid var(--emerald);
  border-left: 2px solid var(--emerald);
  content: "";
  transform: rotate(-45deg);
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-footnote {
  margin: 24px 0 0;
  color: var(--ink-faint);
  font-size: 0.77rem;
  text-align: center;
}

.cta-section {
  padding: clamp(90px, 12vw, 150px) 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(40px, 7vw, 90px);
  padding: clamp(36px, 6vw, 78px);
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(245, 158, 11, 0.33), transparent 28%),
    radial-gradient(circle at 18% 110%, rgba(236, 72, 153, 0.32), transparent 42%),
    linear-gradient(125deg, #2e278c 0%, #5044c6 48%, #7149c4 100%);
  box-shadow: 0 36px 100px rgba(46, 39, 140, 0.3);
}

.cta-panel::before {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.04), 0 0 0 110px rgba(255, 255, 255, 0.025);
  content: "";
}

.cta-copy,
.cta-actions {
  display: grid;
  align-self: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #17182a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 64px rgba(20, 16, 74, 0.26);
}

.cta-start {
  width: 100%;
  justify-content: center;
}

.cta-signin {
  color: var(--indigo-deep);
  font-size: 0.86rem;
  font-weight: 640;
}

.cta-fine {
  margin: 0;
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.5;
}

.page-hero {
  padding: clamp(80px, 11vw, 142px) 0 clamp(70px, 9vw, 112px);
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.page-lede {
  margin-inline: auto;
}

.page-hero .hero-actions {
  justify-content: center;
}

.stage-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 790px;
  margin: 50px auto 0;
}

.stage-step {
  position: relative;
  padding-top: 18px;
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 670;
}

.stage-step::before {
  position: absolute;
  top: 0;
  right: -5px;
  left: -5px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--indigo) 22%, var(--line));
  content: "";
}

.stage-step:nth-child(4)::before {
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.counselor-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  padding: clamp(78px, 10vw, 130px) 0;
}

.counselor-hero-grid .page-hero {
  padding: 0;
  text-align: left;
}

.counselor-hero-grid .page-hero .eyebrow {
  justify-content: flex-start;
}

.counselor-hero-grid .page-hero h1 {
  font-size: clamp(3.1rem, 5.4vw, 5.8rem);
}

.counselor-hero-grid .page-lede {
  margin-inline: 0;
}

.counselor-hero-grid .hero-actions {
  justify-content: flex-start;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 clamp(100px, 13vw, 160px);
}

.value-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.value-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--indigo-deep);
  background: color-mix(in srgb, var(--indigo) 11%, transparent);
  font-size: 0.75rem;
  font-weight: 780;
}

.value-card h2 {
  margin: 20px 0 0;
  font-size: 1.23rem;
  letter-spacing: -0.025em;
}

.value-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.faq-layout,
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: center;
  gap: clamp(50px, 8vw, 110px);
  padding: 0 0 clamp(100px, 14vw, 170px);
}

.faq-aside,
.legal-aside {
  align-self: start;
  position: sticky;
  top: 112px;
}

.faq-aside p,
.legal-aside p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.faq-aside .button {
  margin-top: 22px;
}

.faq-aside .faq-ask-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.faq-ask-note a {
  color: var(--indigo);
  font-weight: 660;
}

/* ---- research stats (Be the 22%) and the week ledger ---- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.stat {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.stat-num {
  margin: 0 0 6px;
  color: var(--indigo);
  font-size: 2.1rem;
  font-weight: 790;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.src-note {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.src-note a {
  color: inherit;
}

.week-ledger {
  max-width: 620px;
  margin: 38px auto 0;
  padding: 22px 24px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.week-ledger-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.week-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 640;
}

.week-ledger-row small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 450;
}

.week-ledger-row .amt {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.week-ledger-row.total {
  border-bottom: 0;
  padding-top: 13px;
  font-weight: 760;
}

.week-ledger-row.total .amt {
  color: var(--indigo);
}

.week-ledger-rule {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-style: italic;
}

.week-ledger-cap {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-align: center;
}

/* ---- the Ask Bloom invitation, site-wide. It blooms; it never bounces. */

.ask-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(320px, calc(100vw - 36px));
  text-decoration: none;
}

.ask-fab-bubble {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 5px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.ask-fab-bubble b {
  color: var(--indigo);
  font-weight: 700;
}

.ask-fab:hover .ask-fab-bubble {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ask-fab-flower {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* The macro's one-shot page-load opening is replaced by a slow breathe (the
   petals swelling and settling, a bloom that never quite finishes) while the
   whole flower turns once a minute — motion you notice only if you watch. */
.ask-fab svg {
  overflow: visible;
  animation: ask-fab-turn 60s linear infinite;
}

.ask-fab .svg-flower-open {
  animation: ask-fab-breathe 7s ease-in-out infinite;
}

@keyframes ask-fab-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ask-fab-breathe {
  0%,
  100% {
    transform: scale(0.86);
  }
  55% {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .ask-fab {
    max-width: min(240px, calc(100vw - 30px));
    right: 14px;
    bottom: 14px;
  }

  .ask-fab-bubble {
    font-size: 0.78rem;
  }

  .ask-fab-long {
    display: none;
  }
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  padding: 18px 2px;
  cursor: pointer;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 680;
  letter-spacing: -0.02em;
  list-style: none;
}

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

.faq-item summary::after {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  content: "+";
  font-size: 1.2rem;
  font-weight: 420;
  line-height: 26px;
  text-align: center;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 680px;
  padding: 0 52px 28px 2px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 12px;
}

.legal-hero {
  padding-bottom: 64px;
  text-align: left;
}

.legal-hero .eyebrow {
  justify-content: flex-start;
}

.legal-hero h1 {
  margin-inline: 0;
  font-size: clamp(3rem, 6vw, 6rem);
}

.legal-hero .page-lede {
  margin-inline: 0;
}

.legal-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.legal-nav a {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 620;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
}

.legal-updated {
  margin: 13px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.legal-promise {
  margin: 0 0 38px;
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--indigo-deep);
  background: color-mix(in srgb, var(--indigo) 7%, var(--surface));
  font-size: 1.03rem;
  font-weight: 620;
}

.legal-section {
  padding: 0 0 38px;
}

.legal-section + .legal-section {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 15px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal-section p {
  margin: 10px 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 21px;
}

.legal-section a {
  color: var(--indigo-deep);
  font-weight: 620;
}

.site-footer {
  padding: 54px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: start;
}

.footer-brand p {
  max-width: 360px;
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 0.79rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 34px;
}

.footer-links a {
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 610;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.footer-company {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-company img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 980px) {
  .nav-primary {
    gap: 18px;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .story-grid,
  .story-grid.reverse,
  .counselor-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 62px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .story-copy,
  .story-grid.reverse .story-copy {
    order: 0;
    max-width: 650px;
  }

  .scene-frame {
    width: min(760px, 100%);
  }

  .story-grid.reverse .scene-frame {
    order: 2;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .counselor-hero-grid .scene-frame {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  .site-nav {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    gap: 10px;
  }

  .nav-primary,
  .sign-in-link,
  .brand-link small {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    letter-spacing: -0.068em;
  }

  .hero-visual {
    border-radius: 24px 24px 72px 24px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding-block: 20px;
  }

  .section-intro {
    text-align: left;
  }

  .story {
    padding-block: 92px;
  }

  .story-grid,
  .story-grid.reverse {
    gap: 42px;
  }

  .story-copy h2,
  .section-intro h2,
  .pricing-intro h2 {
    font-size: clamp(2.35rem, 11vw, 3.55rem);
  }

  .scene-frame {
    border-radius: 20px;
  }

  .launch-video {
    border-radius: 20px;
  }

  .pricing-intro,
  .price-grid,
  .value-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .pricing-intro {
    gap: 20px;
  }

  .price-card {
    border-radius: 21px;
  }

  .cta-panel {
    margin-inline: -4px;
    padding: 34px 20px 20px;
    border-radius: 25px;
  }

  .counselor-hero-grid {
    padding-top: 70px;
  }

  .faq-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .faq-aside,
  .legal-aside {
    position: static;
  }

  .legal-nav {
    display: none;
  }

  .stage-ribbon {
    gap: 4px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-link {
    font-size: 1rem;
  }

  .button-small {
    padding-inline: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    display: grid;
  }

  .story-point {
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .svg-draw {
    stroke-dashoffset: 0;
  }

  .svg-rise,
  .svg-message {
    opacity: 1;
    transform: none;
  }

  .svg-route-dot {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header,
  .hero-visual,
  .scene-frame,
  .surface-raised {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header,
  .hero-visual,
  .scene-frame,
  .price-card,
  .value-card {
    border-color: color-mix(in srgb, var(--ink) 30%, transparent);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--canvas);
  }
}

@media print {
  .site-header,
  .hero-actions,
  .cta-section,
  .site-footer,
  .legal-aside {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .legal-layout {
    display: block;
  }
}

@media (max-width: 1040px) {
  .sign-in-link {
    display: none;
  }

  .nav-primary {
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .nav-primary {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

/* ---- the free guide calculators (/guides/*) ----
   Nothing here invents a colour or a face: every rule below is the site's own
   tokens applied to two shapes the marketing pages did not have yet — a form
   that answers, and a verdict that can honestly say "not determined". */

.guide-column {
  max-width: 760px;
}

.guide-hero .page-lede {
  max-width: 680px;
}

.guide-tool {
  padding: clamp(56px, 8vw, 92px) 0 clamp(64px, 9vw, 104px);
}

.guide-form {
  padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 34px) clamp(26px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-form h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.62rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.guide-form-lede {
  margin: 4px 0 6px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.55;
}

.guide-form select,
.guide-form input {
  width: 100%;
}

.guide-form .button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* The optional half of the FAFSA form, folded away with the same CSS-only
   disclosure the FAQ accordion uses — a public page ships no script. */
.guide-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.guide-more > summary {
  cursor: pointer;
  color: var(--indigo-deep);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

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

.guide-more > summary::before {
  display: inline-block;
  width: 0.85em;
  content: "+";
  font-weight: 500;
}

.guide-more[open] > summary::before {
  content: "–";
}

.guide-more-body {
  display: grid;
  gap: 7px;
}

.guide-placeholder {
  margin: 22px 0 0;
  padding: 20px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

/* ---- the verdict card ----
   Three states, and the undetermined one is deliberately not a muted failure:
   it keeps the amber rail and takes a dashed edge, because a dashed edge reads
   as "this is not finished" rather than "this went wrong". */

.verdict {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.verdict-rail {
  background: var(--ink-faint);
}

.verdict-body {
  padding: clamp(22px, 3.6vw, 30px) clamp(20px, 3.6vw, 32px);
}

.verdict-eligible .verdict-rail {
  background: var(--emerald);
}

.verdict-not_eligible .verdict-rail {
  background: var(--coral);
}

.verdict-undetermined {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--amber) 46%, var(--line));
  background: color-mix(in srgb, var(--amber) 5%, var(--surface));
}

.verdict-undetermined .verdict-rail {
  background: var(--amber);
}

.verdict-kicker {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verdict-eligible .verdict-kicker {
  color: var(--emerald);
}

.verdict-not_eligible .verdict-kicker {
  color: var(--coral);
}

.verdict-undetermined .verdict-kicker {
  color: var(--amber);
}

.verdict-headline {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.verdict-note {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.62;
}

.verdict-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.verdict-figures > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas-soft);
}

.verdict-figures dt {
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verdict-figures dd {
  margin: 6px 0 0;
  color: var(--indigo);
  font-size: 1.6rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.verdict-fine,
.verdict-next {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.verdict-next {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* The inputs echoed back. A calculator that will not show its working is
   asking to be trusted rather than read. */
.verdict-basis {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.verdict-basis-title {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verdict-basis dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.verdict-basis dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
}

.verdict-basis dt {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.verdict-basis dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 680;
  text-align: right;
}

.guide-stats {
  margin-top: 22px;
}

.guide-stats .stat {
  background: var(--canvas-soft);
}

/* ---- the status table ---- */

.status-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

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

.status-table th,
.status-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.status-table thead th {
  color: var(--ink-faint);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-table tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.status-table td {
  color: var(--ink-soft);
}

.verdict-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 720;
  white-space: nowrap;
}

.verdict-pill-eligible {
  background: color-mix(in srgb, var(--emerald) 14%, var(--surface));
  color: var(--emerald);
}

.verdict-pill-not_eligible {
  background: color-mix(in srgb, var(--coral) 15%, var(--surface));
  color: var(--coral);
}

.verdict-pill-undetermined {
  background: color-mix(in srgb, var(--amber) 16%, var(--surface));
  color: var(--amber);
}

.guide-links {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.guide-links li + li {
  margin-top: 10px;
}

.guide-links a {
  color: var(--indigo-deep);
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .verdict-basis dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .verdict-basis dd {
    text-align: left;
  }
}
