/* =================================================================
   raimohan.dev — landing page
   Fonts : Ndot57 (display)  ·  Mona Sans (UI)
   Theme : light lime + white
   ================================================================= */

@font-face {
  font-family: 'Ndot57';
  src: url('Ndot57-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white:      #ffffff;
  --paper:      #fbfcf7;
  --paper-2:    #f5f8ec;

  --lime:       #c9f73f;
  --lime-hi:    #ddfb85;
  --lime-wash:  #f1fcd2;
  --lime-tint:  #f8fdea;
  --lime-line:  #dcf09c;
  --lime-deep:  #9ed40e;

  --ink:        #141a08;
  --ink-2:      #414a2f;
  --muted:      #7c8767;
  --line:       #e7ebdd;
  --line-2:     #d5dcc4;

  --r-sm: 9px;
  --r:    12px;
  --r-lg: 18px;

  --ease:   cubic-bezier(.22,1,.36,1);
  --ease-2: cubic-bezier(.65,0,.35,1);
  --ease-3: cubic-bezier(.34,1.56,.64,1);

  --topbar-h: 62px;
  --navbar-h: 70px;
}

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

/* the `hidden` attribute must beat our display rules */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }

/* no scroll indicator anywhere */
html, body, .step, .ticks, .chips, .review-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.step::-webkit-scrollbar,
.ticks::-webkit-scrollbar,
.chips::-webkit-scrollbar,
.review-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  font-family: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, pre { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
b { font-weight: 700; }
em { font-style: normal; color: var(--muted); font-weight: 500; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ── living background ─────────────────────────────────────────── */
.bg-wash {
  position: fixed;
  inset: -10%;
  z-index: -4;
  background:
    radial-gradient(560px 420px at 78% 6%,  rgba(201,247,63,.40), transparent 62%),
    radial-gradient(520px 400px at 12% 92%, rgba(201,247,63,.26), transparent 60%),
    radial-gradient(420px 320px at 45% 45%, rgba(201,247,63,.14), transparent 65%);
  animation: washDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}
@keyframes washDrift {
  0%   { transform: translate3d(0,0,0)        scale(1); }
  50%  { transform: translate3d(-1.5%,1.2%,0) scale(1.06); }
  100% { transform: translate3d(1.8%,-1%,0)   scale(1.02); }
}

/* base dot grid — drifts one cell forever, so it never visibly loops */
.bg-grid {
  position: fixed;
  inset: -40px;
  z-index: -3;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,26,8,.10) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 92% 78% at 50% 36%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 36%, #000 30%, transparent 76%);
  animation: gridDrift 22s linear infinite;
  pointer-events: none;
  will-change: background-position;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 26px 26px; }
}

/* second, larger lime grid that breathes against the first */
.bg-grid-2 {
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(158,212,14,.36) 1.6px, transparent 0);
  background-size: 78px 78px;
  animation: gridDrift2 34s linear infinite, gridPulse 7s ease-in-out infinite;
}
@keyframes gridDrift2 {
  from { background-position: 0 0; }
  to   { background-position: -78px 39px; }
}
@keyframes gridPulse {
  0%, 100% { opacity: .40; }
  50%      { opacity: .85; }
}

/* a slow lime bloom that sweeps behind everything */
.bg-glow {
  position: fixed;
  top: -25vh; left: 50%;
  width: 78vw; height: 78vw;
  max-width: 900px; max-height: 900px;
  z-index: -1;
  margin-left: -39vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,247,63,.30), rgba(201,247,63,0) 66%);
  filter: blur(28px);
  animation: glowFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes glowFloat {
  0%   { transform: translate3d(-8%, 0, 0)  scale(.94); opacity: .55; }
  100% { transform: translate3d(10%, 5vh, 0) scale(1.1); opacity: .95; }
}

/* ── topbar ────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, var(--paper) 40%, rgba(251,252,247,0));
}

.brand {
  font-family: 'Ndot57', monospace;
  font-size: 17px;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--ink);
  padding-top: 3px;
  transition: color .2s var(--ease);
}
.brand:hover { color: var(--lime-deep); }

.progress { display: flex; align-items: center; gap: 11px; min-width: 0; }
.progress-count {
  font-family: 'Ndot57', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-2);
  white-space: nowrap;
  padding-top: 2px;
}
.progress-track {
  position: relative;
  width: clamp(80px, 20vw, 190px);
  height: 5px;
  border-radius: 99px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--lime);
  border-right: 1.5px solid var(--ink);
  transition: width .6s var(--ease);
}

.restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease);
}
.restart:hover { border-color: var(--ink); color: var(--ink); background: var(--lime-wash); transform: translateY(-1px); }
.restart i { font-size: 14px; }

/* ── stage & steps ─────────────────────────────────────────────── */
.stage { position: relative; width: 100%; }

.step {
  display: none;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + 24px) clamp(16px, 4vw, 40px) calc(var(--navbar-h) + 32px);
  align-items: center;
  justify-content: center;
}
.step.is-active { display: flex; }
/* symmetric padding so the hero sits optically centred */
.step[data-step="hero"] { padding-bottom: calc(var(--topbar-h) + 24px); }

@keyframes panelIn {
  from { opacity: 0; transform: translate3d(0,18px,0); filter: blur(8px); }
  to   { opacity: 1; transform: none;                  filter: blur(0); }
}
.step.is-active > * { animation: panelIn .68s var(--ease) both; }

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0,16px,0); }
  to   { opacity: 1; transform: none; }
}
.anim { animation: riseIn .68s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ── hero ──────────────────────────────────────────────────────── */
.hero { width: 100%; max-width: 1180px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 10px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-radius: 99px;
  border: 1.5px solid var(--lime-line);
  background: var(--lime-tint);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  /* soft, continuous blink — fades rather than flicks */
  animation: dotBlink 2s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 0 0   rgba(158,212,14,.55); }
  50%      { opacity: .26; transform: scale(.8);  box-shadow: 0 0 0 5px rgba(158,212,14,0); }
}

/* one line on desktop — sized so all 37 characters fit the viewport */
.hero-title {
  font-family: 'Ndot57', monospace;
  font-weight: 400;
  font-size: min(5.1vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: .012em;
  white-space: nowrap;
  min-height: 1.16em;
}

/* typed characters */
.type .w { display: inline-block; white-space: nowrap; }
.type .ch {
  opacity: 0;
  display: inline-block;
  transform: translate3d(0,.2em,0);
  transition: opacity .18s ease, transform .34s var(--ease);
}
.type .ch.on { opacity: 1; transform: none; }
.type .ch.sp { white-space: pre; }
.type .ch.hl { color: var(--lime-deep); }

.caret {
  display: inline-block;
  width: .46em;
  height: .78em;
  margin-left: .05em;
  vertical-align: -.04em;
  background: var(--lime-deep);
  animation: blink 1.05s steps(1) infinite;
}
.caret.gone { display: none; }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }

/* the option cards sit directly under the headline */
.hero .grid { margin-top: clamp(24px, 3.4vw, 40px); }

/* ── panels ────────────────────────────────────────────────────── */
.panel { width: 100%; max-width: 860px; }
.panel-wide { max-width: 1000px; }
.panel-center { max-width: 540px; text-align: center; }

.panel-head { margin-bottom: clamp(20px, 2.8vw, 32px); }

.kicker {
  display: inline-block;
  margin-bottom: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  font-family: 'Ndot57', monospace;
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 0 var(--ink);
}

.panel-title {
  font-family: 'Ndot57', monospace;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.9vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: .012em;
  min-height: 1.18em;
}
.panel-sub {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: clamp(.9rem, 1.3vw, 1rem);
  max-width: 62ch;
}
.panel-center .panel-sub { margin-inline: auto; }

/* ── option cards ──────────────────────────────────────────────── */
.grid { display: grid; gap: 13px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 17px 16px 15px;
  text-align: left;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  box-shadow: 0 3px 0 0 var(--line-2);
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              border-color .26s var(--ease), background-color .26s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  top: -60%; left: -75%;
  width: 45%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: var(--lime-tint);
  box-shadow: 0 6px 0 0 var(--ink);
}
.card:hover::after { animation: shine .8s var(--ease-2) forwards; }
.card:active { transform: translateY(0); box-shadow: 0 2px 0 0 var(--ink); }

@keyframes shine {
  0%   { opacity: 0;  left: -75%; }
  18%  { opacity: .9; }
  100% { opacity: 0;  left: 130%; }
}

.card.is-on { border-color: var(--ink); background: var(--lime-wash); box-shadow: 0 4px 0 0 var(--ink); }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lime-tint);
  border: 1.5px solid var(--lime-line);
  font-size: 21px;
  color: var(--ink);
  flex: none;
  transition: background-color .26s, border-color .26s, transform .4s var(--ease);
}
.card-icon svg { width: 21px; height: 21px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); background: var(--white); }
.card.is-on .card-icon { background: var(--lime); border-color: var(--ink); }

.card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-label {
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.25;
}
.card-blurb { font-size: 12.8px; line-height: 1.45; color: var(--muted); }

.card-logos { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 10px; }
.card-logos svg { width: 15px; height: 15px; opacity: .82; }

.tickmark {
  position: absolute;
  top: 11px; right: 11px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .22s, transform .4s var(--ease-3);
}
.card.is-on .tickmark, .tick.is-on .tickmark { opacity: 1; transform: scale(1); }

/* scope cards */
.grid-tall .card { padding: 22px 20px 20px; gap: 11px; }
.card-perks {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  width: 100%;
}
.card-perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.card-perks i { color: var(--lime-deep); font-size: 14px; }

/* ── chips (tech stack) ────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border-radius: 99px;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  box-shadow: 0 2.5px 0 0 var(--line-2);
  font-size: 13.6px;
  font-weight: 600;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s, background-color .22s;
}
.chip::after, .tick::after, .pill::after, .btn::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 40%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.chip:hover::after { animation: shine .74s var(--ease-2) forwards; }
.chip:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--ink); }
.chip.is-on { background: var(--lime-wash); border-color: var(--ink); box-shadow: 0 3px 0 0 var(--ink); }
.chip svg { width: 17px; height: 17px; flex: none; }
.chip i { font-size: 17px; color: var(--lime-deep); }
.chip-star { background: var(--lime-tint); border-color: var(--lime-line); border-style: dashed; }
.chip-star.is-on { border-style: solid; }

/* ── ticks (features) ──────────────────────────────────────────── */
.tickwrap { display: grid; gap: 22px; }
.tickgroup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-family: 'Ndot57', monospace;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tickgroup-title i { font-size: 15px; color: var(--lime-deep); }

.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 9px; }
.tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 36px 11px 13px;
  text-align: left;
  border-radius: var(--r);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  box-shadow: 0 2.5px 0 0 var(--line-2);
  font-size: 13.6px;
  font-weight: 600;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s, background-color .22s;
}
.tick:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.tick:hover::after { animation: shine .74s var(--ease-2) forwards; }
.tick:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--ink); }
.tick.is-on { background: var(--lime-wash); border-color: var(--ink); box-shadow: 0 3px 0 0 var(--ink); }
.tick > i:first-child { font-size: 18px; color: var(--ink-2); flex: none; }
.tick > svg:first-child { width: 18px; height: 18px; flex: none; }
.tick.is-on > i:first-child { color: var(--ink); }
.tick .tickmark { top: 50%; right: 10px; margin-top: -11px; }

/* ── pills ─────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  box-shadow: 0 2.5px 0 0 var(--line-2);
  font-size: 13.4px;
  font-weight: 600;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s, background-color .22s;
}
.pill:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.pill:hover::after { animation: shine .74s var(--ease-2) forwards; }
.pill:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--ink); }
.pill.is-on { background: var(--lime); border-color: var(--ink); box-shadow: 0 3px 0 0 var(--ink); }

/* ── fields ────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: 'Ndot57', monospace;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.col-title i { font-size: 15px; color: var(--lime-deep); }

.field { display: block; margin-top: 18px; }
.field-inline { margin-top: 22px; }
.two-col .field { margin-top: 0; }

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 13.2px;
  font-weight: 600;
  color: var(--ink-2);
}
.field-label i { font-size: 15px; color: var(--lime-deep); }

.input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  box-shadow: 0 2.5px 0 0 var(--line-2);
  font-size: 14.5px;
  transition: border-color .22s, box-shadow .22s, background-color .22s;
}
.input::placeholder { color: #a9b298; }
.input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--lime-tint);
  box-shadow: 0 3px 0 0 var(--ink);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.input.bad { border-color: #d8543c; box-shadow: 0 2.5px 0 0 #d8543c; }
.err { display: none; margin-top: 6px; font-size: 12.4px; font-weight: 600; color: #c0432b; }
.err.on { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.review {
  margin-top: 20px;
  border-radius: var(--r);
  border: 1.5px solid var(--line-2);
  background: var(--lime-tint);
  overflow: hidden;
}
.review summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13.4px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color .22s;
}
.review summary::-webkit-details-marker { display: none; }
.review summary:hover { background: var(--lime-wash); }
.review summary i { font-size: 16px; color: var(--lime-deep); }
.review-hint { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.review-body {
  margin: 0;
  padding: 0 14px 14px;
  max-height: 230px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.form-status { margin-top: 14px; font-size: 13.2px; font-weight: 600; min-height: 1.4em; }
.form-status.bad { color: #c0432b; }
.form-status.ok  { color: var(--lime-deep); }

/* ── buttons (compact shadcn-style 3D + shine) ─────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  transition: transform .16s var(--ease-2), box-shadow .16s var(--ease-2),
              background-color .22s, opacity .22s;
}
.btn:hover:not(:disabled)::after { animation: shine .76s var(--ease-2) forwards; }
.btn i { font-size: 13px; }

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--lime-hi);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 0 var(--ink);
}
.btn-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 0 var(--ink); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 2px 0 0 var(--line-2);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--lime-tint);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 0 var(--ink);
}
.btn-ghost:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 0 var(--ink); }

.btn:disabled {
  opacity: .42;
  cursor: default;
  transform: none !important;
  box-shadow: 0 2px 0 0 var(--line-2) !important;
  background: var(--paper-2);
  border-color: var(--line-2);
}
.btn.loading { pointer-events: none; }

/* ── bottom nav ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 40px);
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(to top, var(--paper) 50%, rgba(251,252,247,0));
}
.nav-hint {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── done screen (Lottie-style celebration) ────────────────────── */
.done-mark { width: 132px; margin: 0 auto 18px; }
.done-svg  { width: 132px; height: 132px; overflow: visible; }

.done-svg .ring {
  fill: none;
  stroke: var(--lime-deep);
  stroke-width: 2;
  transform-origin: 70px 70px;
  opacity: 0;
  animation: ringOut 3.2s var(--ease) infinite;
}
.done-svg .r2 { animation-delay: 1.06s; }
.done-svg .r3 { animation-delay: 2.12s; }
@keyframes ringOut {
  0%   { transform: scale(.72); opacity: 0; }
  18%  { opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}

.done-svg .spark {
  fill: var(--lime-deep);
  opacity: 0;
  animation: sparkBurst 1s var(--ease) both, sparkTwinkle 3.4s ease-in-out infinite;
  animation-delay: calc(600ms + var(--t)), calc(1700ms + var(--t));
}
@keyframes sparkBurst {
  0%   { transform: translate(0,0) scale(0);   opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1); opacity: .9; }
}
@keyframes sparkTwinkle {
  0%, 100% { opacity: .9; }
  50%      { opacity: .25; }
}

.done-svg .disc {
  fill: var(--lime);
  stroke: var(--ink);
  stroke-width: 2.5;
  transform-origin: 70px 70px;
  animation: discPop .72s var(--ease-3) both, discBreathe 4s ease-in-out 1.4s infinite;
}
@keyframes discPop {
  0%   { transform: scale(0);   opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes discBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

.done-svg .check {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: drawCheck .5s var(--ease) .5s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.done-title { margin-top: 2px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* below this the headline can no longer hold one line */
@media (max-width: 780px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(1.85rem, 8.2vw, 3rem);
    max-width: 13ch;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  :root { --topbar-h: 56px; --navbar-h: 66px; }

  .restart span { display: none; }
  .restart { padding: 6px 9px; }
  .brand { font-size: 15px; }

  .step { padding-top: calc(var(--topbar-h) + 18px); }

  /* one clean column — cards become compact rows so nothing crowds */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 10px; }

  .card {
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 13px 40px 13px 13px;
  }
  .card-text { flex: 1; }
  .card-blurb { font-size: 12.2px; }
  .card-logos { margin: 0; padding: 0; flex: none; }
  .card-icon { width: 38px; height: 38px; font-size: 19px; }
  .card-icon svg { width: 19px; height: 19px; }

  /* scope cards keep the stacked layout — they carry a perk list */
  .grid-tall .card { flex-direction: column; align-items: flex-start; padding: 18px 16px; }

  .ticks { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .tickwrap { gap: 18px; }

  .eyebrow { font-size: 11.8px; margin-bottom: 16px; }

  .chip, .tick, .pill { font-size: 13px; }
  .btn { padding: 4px 11px; font-size: 11.6px; }
  .nav-hint { display: none; }
  .navbar { justify-content: space-between; }
  .done-mark, .done-svg { width: 112px; height: 112px; }
}

/* short viewports — let content breathe instead of centering */
@media (max-height: 700px) {
  .step { align-items: flex-start; }
}

/* ── reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .type .ch { opacity: 1; transform: none; }
  .bg-wash, .bg-grid, .bg-grid-2, .bg-glow { animation: none !important; }
}
