/* Unloop funnel: a phone-width column (max 480px), one screen at a time; dark-first in Unloop's night
   violet, light variant for light-mode phones. Self-hosted Manrope; no third-party requests. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #181734;
  --surface: #211d46;
  --surface-2: #2a2553;
  --line: #463d78;
  --fg: #faf7ff;
  --fg-2: #e5def1;
  --muted: #c5b8dc;
  --pale: #f1e5ff;
  --ink: #2a2249;
  --pick: #3a3191;
  --pick-line: #a597ff;
  --ok: #35c493;
  --warn: #ffcf7a;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f3fc; --surface: #ffffff; --surface-2: #f0ebfa; --line: #cdc2e8;
    --fg: #1c1737; --fg-2: #352e5a; --muted: #5d5482; --pale: #2a2249; --ink: #ffffff;
    --pick: #e8e2ff; --pick-line: #5b49d8; --ok: #1d8a62; --warn: #8a5a00;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Headings get focus on each new screen for screen readers; no visible ring for that programmatic focus. */
[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0; background: var(--bg); color: var(--fg-2); font-family: var(--font); font-size: 16px; line-height: 1.55;
  padding-inline: 16px; padding-block: calc(20px + env(safe-area-inset-top, 0px)) calc(40px + env(safe-area-inset-bottom, 0px));
}
.app { max-width: 480px; margin-inline: auto; display: grid; gap: 20px; }
h1, h2 { color: var(--fg); margin: 0; text-wrap: balance; line-height: 1.15; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--pick-line); }
.small { font-size: 0.85rem; color: var(--muted); }
.mono { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
.loading { color: var(--muted); }
.steps3 { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps3 li { display: flex; gap: 10px; align-items: baseline; }
.steps3 b { font-size: 0.8rem; color: var(--pick-line); }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; font-size: 0.72rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.progress span.done { border-color: var(--pick-line); color: var(--fg-2); }
.progress span.now { border-color: var(--pick-line); color: var(--fg); }
.qhead { display: grid; gap: 8px; }
.cheer { font-size: 0.8rem; color: var(--pick-line); font-weight: 600; }
.opts { display: grid; gap: 10px; }
.opt {
  font: inherit; text-align: left; color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.opt[aria-pressed="true"] { background: var(--pick); border-color: var(--pick-line); }
.opt:focus-visible, .btn:focus-visible, .linkbtn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--pick-line); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale .opt { text-align: center; padding: 14px 4px; font-variant-numeric: tabular-nums; }
.track { height: 4px; border-radius: 2px; background: var(--line); margin-top: -2px; }
.why { font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.btn {
  display: block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 15px 18px; min-height: 52px; cursor: pointer;
  background: var(--pale); color: var(--ink); width: 100%;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--fg-2); border: 1.5px solid var(--line); font-weight: 600; }
.linkbtn { font: inherit; font-size: 0.85rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 2px; min-height: 36px; justify-self: start; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.card.accent { border-color: var(--pick-line); }
.label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.pattern { font-size: 1.6rem; font-weight: 800; color: var(--fg); letter-spacing: -0.01em; }
.analysis { display: grid; gap: 10px; }
.analysis p { opacity: 0.25; transition: opacity .3s ease; }
.analysis p.on { opacity: 1; }
.analysis p.on::after { content: " \2713"; color: var(--ok); }
.analysis p.last.on::after { content: ""; }
.told { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--fg); }
.plan { font-size: 1.1rem; font-weight: 700; color: var(--fg); line-height: 1.45; }
.goalgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goalgrid > div { background: var(--surface-2); border-radius: 12px; padding: 12px; min-width: 0; }
.goalgrid b { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.goalgrid span { color: var(--fg); font-weight: 700; }
.saved img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ticks, .crosses { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ticks li::before { content: "\2713  "; color: var(--ok); }
.crosses li::before { content: "\2013  "; color: var(--muted); }
.timeline { display: grid; gap: 10px; }
.timeline div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
.timeline b { font-size: 0.8rem; color: var(--pick-line); }
details { border-top: 1px solid var(--line); padding-block: 12px; }
summary { color: var(--fg); font-weight: 600; cursor: pointer; min-height: 32px; }
details p { margin-top: 8px; }
ol.welcome { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.notice { border: 1px dashed var(--warn); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.notice b { color: var(--warn); }
.prose { display: grid; gap: 12px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
footer.fine { max-width: 480px; margin: 28px auto 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .opt:active { transform: scale(0.98); }
  .fade { animation: fade .25s ease both; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Assessment tiles and the three bundles (all designs). */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; align-content: start; }
.tile b { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.tile span { color: var(--fg); font-weight: 700; }
.tiers { display: grid; gap: 18px; }
.tier { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; }
.tier.rec { border: 2.5px solid var(--pick-line); }
.tier .badge { position: absolute; top: -13px; left: 16px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--pick-line); color: var(--ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tier-name { font-size: 1.15rem; font-weight: 800; color: var(--fg); }
