/* Sophiie AI — Missed Call Calculator
   Brand tokens match sophiie.ai: indigo CTA, sky glow, Schibsted Grotesk + Inter. */

:root {
  --indigo: #140934;
  --ink: #182230;
  --slate: #323745;
  --muted: #65696f;
  --off: #f8f8f6;
  --sky: #69c7fb;
  --sky-deep: #36a5e1;
  --line: #ebebeb;
  --divider: #edeff3;
  --hair: rgba(20, 9, 52, 0.12);
  --hair-2: rgba(20, 9, 52, 0.2);
  --row-active: rgba(20, 9, 52, 0.05);
  --error: #be123c;
  --sh-btn: 0 2px 6px -1px rgba(20, 9, 52, 0.06), 0 1px 2px -1px rgba(20, 9, 52, 0.08);
  --sh-btn-hover: 0 6px 16px -4px rgba(20, 9, 52, 0.08), 0 2px 6px -2px rgba(20, 9, 52, 0.06);
  --sh-card: 0 16px 40px -8px rgba(20, 9, 52, 0.12), 0 6px 14px -6px rgba(20, 9, 52, 0.08);
  --ease: cubic-bezier(0.2, 0, 0, 1);            /* hover, colour, cross-fade */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);     /* enter, exit, press */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* on-screen movement */
  --head: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --sky-a: rgba(105, 199, 251, 0.42);
  --sky-b: rgba(105, 199, 251, 0.24);
  --lav: rgba(230, 232, 252, 0.9);
  --pink: rgba(249, 226, 240, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--indigo);
}
::selection { background: rgba(105, 199, 251, 0.35); color: var(--indigo); }
em { font-style: italic; font-weight: inherit; color: inherit; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.calc { display: flex; flex-direction: column; min-height: 100svh; }
.screen { position: relative; display: flex; flex-direction: column; flex: 1 0 auto; animation: screen-in 220ms var(--ease-out) both; }
.screen > :not(.wash) { position: relative; z-index: 1; }

/* Page wash: the sophiie.ai hero. White, four faint radial tints, two soft diagonal sky ribbons. */
.wash {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(42% 34% at 28% 20%, var(--sky-a), transparent 70%),
    radial-gradient(40% 32% at 72% 16%, var(--lav), transparent 70%),
    radial-gradient(48% 36% at 56% 44%, var(--pink), transparent 72%),
    radial-gradient(36% 30% at 40% 62%, var(--sky-b), transparent 70%),
    #fff;
}
.wash::before, .wash::after {
  content: ""; position: absolute; left: -40vmax; width: 180vmax; height: 20vmin; min-height: 120px;
  background: linear-gradient(90deg, transparent 0%, rgba(105, 199, 251, 0.22) 30%, rgba(105, 199, 251, 0.3) 50%, rgba(105, 199, 251, 0.14) 70%, transparent 100%);
  filter: blur(26px); transform: rotate(-30deg); transform-origin: center;
}
.wash::before { top: 34%; }
.wash::after { top: 66%; height: 11vmin; min-height: 70px; opacity: 0.8; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
/* Staged entrances (first view only): result rail and sheet. 60ms steps. */
.stagger > * { animation: fade-up 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.stagger > :nth-child(1) { --i: 0; } .stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; }
.stagger > :nth-child(4) { --i: 3; } .stagger > :nth-child(5) { --i: 4; } .stagger > :nth-child(6) { --i: 5; }
.stagger > :nth-child(7) { --i: 6; } .stagger > :nth-child(8) { --i: 7; } .stagger > :nth-child(9) { --i: 8; }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; padding: 26px 48px 21px; }
.logo { display: block; width: 86px; color: var(--indigo); flex: none; }
.logo svg { display: block; width: 100%; height: auto; aspect-ratio: 775 / 260; fill: currentColor; }
.logo:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 48px; min-height: 48px; padding: 0 5px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
  background: var(--indigo); color: #fff;
  font: 500 15px/18px var(--head); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: box-shadow 0.35s var(--ease), background-color 0.2s var(--ease), transform 160ms var(--ease-out);
}
.chev {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 38px; margin-left: 14px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  transition: transform 200ms var(--ease-out), background-color 0.2s var(--ease);
}
.chev svg { width: 14px; height: 14px; display: block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:not([aria-disabled="true"]):hover { box-shadow: var(--sh-btn-hover); }
  .btn:not([aria-disabled="true"]):hover .chev { transform: translateX(2px); background: rgba(255, 255, 255, 0.22); }
  .btn:not([aria-disabled="true"]):hover .chev svg { transform: translateX(1px); }
}
.btn:not([aria-disabled="true"]):active { transform: scale(0.96); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.btn[aria-disabled="true"] { background: #e9e8ee; color: #6e6a7c; border-color: transparent; box-shadow: none; cursor: not-allowed; }
.btn[aria-disabled="true"] .chev { background: rgba(20, 9, 52, 0.06); }

.btn-2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--hair); border-radius: 8px;
  background: #fff; color: var(--indigo);
  font: 500 15px/18px var(--head); letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 160ms var(--ease-out);
}
.btn-2:active { transform: scale(0.96); }
.btn-2 svg { width: 14px; height: 14px; display: block; }
@media (hover: hover) and (pointer: fine) { .btn-2:hover { background: #f9f9f9; border-color: var(--hair-2); box-shadow: var(--sh-btn); } }
.btn-2:focus { outline: none; }
.btn-2:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 13px/1.4 var(--body); color: var(--indigo);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 9, 52, 0.35);
}
.link:hover { text-decoration-color: var(--indigo); }
.link:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

/* ---------- question card ---------- */
.screen-steps .main { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; padding: 0 24px 24px; }
.screen-steps .backdrop {
  flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start;
  width: 100%; padding: clamp(24px, 7vh, 72px) 40px 56px;
}
.card {
  position: relative; width: 100%; max-width: 760px; min-width: 0;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 9, 52, 0.04), 0 24px 48px -24px rgba(20, 9, 52, 0.18);
}
.progress { overflow: hidden; border-radius: 15px 15px 0 0; }
.track { height: 3px; background: var(--divider); }
.fill { width: 100%; height: 100%; background: var(--indigo); transform: scaleX(0); transform-origin: left center; transition: transform 250ms var(--ease-out); }
.tabbar { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; height: 48px; padding: 0 28px 0 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.tab {
  position: relative; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 7px; padding: 0 22px;
  border: 0; border-right: 1px solid var(--line); background: none; border-radius: 0;
  font: 400 15px/1 var(--head); letter-spacing: -0.01em; color: var(--muted); white-space: nowrap;
  cursor: default; transition: color 200ms var(--ease);
}
.tab-1 { padding-left: 28px; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--indigo); transform: scaleX(0); transition: transform 250ms var(--ease-out); }
.tab.is-active { color: var(--indigo); font-weight: 500; }
.tab.is-active::after { transform: scaleX(1); }
.tab.is-done { color: var(--slate); cursor: pointer; }
.tab.is-done::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sky-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.2 6 9.2 10 5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
@media (hover: hover) and (pointer: fine) { .tab.is-done:hover { color: var(--indigo); } }
.tab:focus { outline: none; }
.tab:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.count { align-self: center; font: 400 14px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.body { padding: 36px 40px 32px; }
.q { max-width: 620px; margin: 0; font: 500 32px/1.15 var(--head); letter-spacing: -0.02em; color: var(--indigo); text-wrap: balance; }
.q:focus { outline: none; }
.q-desc { max-width: 600px; margin: 12px 0 0; font: 400 16px/1.5 var(--body); color: var(--slate); text-wrap: pretty; }
.q-desc:empty { display: none; }
.input { margin-top: 28px; }
.msg { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 400 14px/1.45 var(--body); color: var(--error); animation: msg-in 150ms var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.msg:empty { display: none; }
.msg::before {
  content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 4.8v3.6M8 11h.01'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 4.8v3.6M8 11h.01'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.privacy { margin: 16px 0 0; font: 400 13px/1.4 var(--body); color: var(--muted); }

/* option cards (trade) */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  font: 500 16px/1.35 var(--body); text-align: left; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 160ms var(--ease-out);
}
.opt:active { transform: scale(0.98); }
.opt-n { flex: none; width: 14px; font: 400 14px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: var(--off); border-color: var(--hair); } }
.opt[aria-pressed="true"] { background: var(--row-active); border-color: rgba(20, 9, 52, 0.35); color: var(--indigo); }
.opt:focus { outline: none; }
.opt:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* number / percentage / currency */
.num {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; height: 56px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.num:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(105, 199, 251, 0.24); }
.num.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.12); }
.num input {
  flex: 1; min-width: 0; width: 100%; height: 54px; margin: 0; padding: 0; border: 0; outline: none; background: transparent;
  color: var(--indigo); font: 500 22px/1 var(--head); letter-spacing: -0.01em;
}
.num input::placeholder { color: rgba(20, 9, 52, 0.6); opacity: 1; font: 400 17px/1 var(--body); }
.unit { flex: none; font: 500 17px/1 var(--body); color: var(--muted); }

/* slider */
.slide { padding-top: 24px; }
.val { display: flex; align-items: baseline; justify-content: center; font: 500 54px/1 var(--head); letter-spacing: -0.04em; color: var(--indigo); font-variant-numeric: tabular-nums; }
.val.is-unset { color: rgba(20, 9, 52, 0.35); }
.range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 22px 0 8px; padding: 0; border: 0;
  background: transparent; cursor: pointer; --fill: 50%;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px; border: 0;
  background:
    radial-gradient(circle at 12px 50%, var(--indigo) 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 50%, #dcdfe6 0 3px, transparent 3.5px),
    linear-gradient(to right, transparent 0 12px, var(--indigo) 12px var(--fill), #dcdfe6 var(--fill) calc(100% - 12px), transparent calc(100% - 12px));
}
.range::-moz-range-track {
  height: 6px; border: 0;
  background:
    radial-gradient(circle at 12px 50%, var(--indigo) 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 50%, #dcdfe6 0 3px, transparent 3.5px),
    linear-gradient(to right, transparent 0 12px, var(--indigo) 12px var(--fill), #dcdfe6 var(--fill) calc(100% - 12px), transparent calc(100% - 12px));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border: 1px solid var(--hair); border-radius: 50%; background: #fff; box-shadow: var(--sh-btn-hover);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.range::-moz-range-thumb { width: 24px; height: 24px; border: 1px solid var(--hair); border-radius: 50%; background: #fff; box-shadow: var(--sh-btn-hover); }
@media (hover: hover) and (pointer: fine) { .range:hover::-webkit-slider-thumb { transform: scale(1.06); } }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--sh-btn-hover), 0 0 0 4px rgba(105, 199, 251, 0.35); }
.range:focus-visible::-moz-range-thumb { box-shadow: var(--sh-btn-hover), 0 0 0 4px rgba(105, 199, 251, 0.35); }
.scale { display: flex; justify-content: space-between; gap: 24px; font: 400 13px/1.4 var(--body); color: var(--muted); }
.scale span { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 14px/1 var(--body); color: var(--indigo); cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 150ms var(--ease), transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--off); border-color: var(--hair); } }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chip:focus { outline: none; }
.chip:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* lead card */
.lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.lead .field { margin: 0; min-width: 0; }
.lead .field.wide { grid-column: 1 / -1; }
.lab { display: block; margin: 0 0 8px; font: 500 14px/1.4 var(--head); color: var(--indigo); }
.lab .req { color: var(--sky-deep); }
.lab .opt-tag { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font: 400 16px/1.3 var(--body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: rgba(20, 9, 52, 0.6); opacity: 1; }
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(105, 199, 251, 0.24); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.12); }
.field .err { margin: 6px 0 0; font: 400 13px/1.4 var(--body); color: var(--error); }
.field .err:empty { display: none; }

/* nav */
.nav { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--divider); }
.next { margin-left: auto; }
.card.is-lead .next { flex: 1; justify-content: space-between; }
.card.is-lead .count { font-weight: 400; }

/* ---------- result ---------- */
.screen-result .split {
  position: relative; flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); min-height: 100svh;
  background:
    radial-gradient(60% 40% at 85% 0, rgba(105, 199, 251, 0.18), rgba(105, 199, 251, 0) 70%) left top / 560px 100% no-repeat,
    radial-gradient(50% 35% at 10% 100%, rgba(247, 191, 225, 0.14), rgba(247, 191, 225, 0) 70%) left top / 560px 100% no-repeat,
    linear-gradient(var(--indigo), var(--indigo)) left top / 560px 100% no-repeat,
    #fff;
}
.rail { min-width: 0; color: #fff; }
.rail-in { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100svh; max-height: 100svh; padding: 40px 52px; }
.rail-in > * { flex-shrink: 0; }
.rail-bar { padding: 0; }
.rail .logo { width: 120px; color: #fff; }
.headline { max-width: 440px; margin: 48px 0 0; font: 500 34px/1.1 var(--head); letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; text-wrap: balance; }
.hero { margin-top: 32px; container-type: inline-size; }
.big { margin: 0; font: 500 80px/0.95 var(--head); font-size: min(80px, 15cqi); letter-spacing: -0.04em; color: #fff; white-space: nowrap; animation: resolve 600ms var(--ease-out) 120ms both; }
.big.is-xl { font-size: 13.4cqi; }
@keyframes resolve { from { filter: blur(6px); opacity: 0.4; } to { filter: blur(0); opacity: 1; } }
.big-label { margin: 10px 0 0; font: 400 17px/1.4 var(--body); color: rgba(255, 255, 255, 0.82); }
.big-note { margin: 6px 0 0; font: 400 13.5px/1.45 var(--body); color: rgba(255, 255, 255, 0.7); }
.explain { max-width: 440px; margin: 28px 0 0; font: 400 16.5px/1.5 var(--body); color: rgba(255, 255, 255, 0.82); text-wrap: pretty; }
.fig { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.trade { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 140px; margin: auto 0 0; padding-top: 32px; }
.trade img { display: block; flex: 0 1 auto; width: 100%; height: 260px; min-height: 108px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: #2a2150; object-fit: cover; }
.rail .logo:focus-visible { outline-color: #fff; }

.sheet { min-width: 0; width: 100%; max-width: 808px; padding: 56px 64px 64px; background: #fff; }
.sheet-title { margin: 0; font: 500 28px/1.2 var(--head); letter-spacing: -0.02em; color: var(--indigo); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.stat { min-width: 0; padding: 24px 20px 24px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--divider); }
.stat-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font: 500 44px/1 var(--head); letter-spacing: -0.04em; color: var(--indigo); }
.stat-unit { font-size: 20px; letter-spacing: -0.01em; }
.stat-label { margin: 10px 0 0; font: 500 12px/18px var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stat-note { margin: 10px 0 0; font: 400 13px/1.45 var(--body); color: var(--muted); }
.fig-sm { font-weight: 600; color: var(--indigo); font-variant-numeric: tabular-nums; }
.h3 { margin: 40px 0 0; font: 500 22px/1.2 var(--head); letter-spacing: -0.02em; color: var(--indigo); }
.steps { display: grid; gap: 6px; margin: 14px 0 0; padding: 0 0 0 24px; font: 400 15px/1.6 var(--body); color: var(--slate); }
.steps li { padding-left: 4px; }
.steps li::marker { font-weight: 600; color: var(--indigo); }
.assume { display: grid; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; font: 400 13px/1.5 var(--body); color: var(--muted); }
.assume li { position: relative; padding-left: 22px; }
.assume li::before { content: ""; position: absolute; left: 0; top: 0.74em; width: 14px; height: 1px; background: rgba(20, 9, 52, 0.3); }
.answers { margin-top: 28px; padding: 18px 22px 20px; border-radius: 12px; background: var(--off); }
.answers-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font: 500 14px/1.4 var(--head); color: var(--indigo); }
.answers-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 12px 0 0; padding: 0; }
.ans { min-width: 0; margin: 0; }
.ans.wide { grid-column: span 2; }
.ans dt { margin: 0; font: 400 12.5px/1.35 var(--body); color: var(--muted); }
.ans dd { margin: 3px 0 0; padding: 0; font: 500 15px/1.35 var(--body); color: var(--indigo); overflow-wrap: anywhere; }

.cta { position: relative; overflow: hidden; margin-top: 40px; padding: 40px 32px 44px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.cta > :not(.wash) { position: relative; z-index: 1; }
.wash-cta { border-radius: inherit; }
.wash-cta::before, .wash-cta::after { display: none; }
.wash-cta { background:
    radial-gradient(60% 70% at 20% 10%, var(--sky-b), transparent 70%),
    radial-gradient(50% 60% at 80% 20%, var(--lav), transparent 70%),
    radial-gradient(60% 60% at 60% 100%, var(--sky-a), transparent 70%),
    #fff; }
.cta-title { margin: 0; font: 500 32px/1.1 var(--head); letter-spacing: -0.02em; color: var(--indigo); text-wrap: balance; }
.cta-title em { white-space: nowrap; }
.cta-line { max-width: 460px; margin: 12px auto 0; font: 400 17px/1.5 var(--body); color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.cta-small { margin: 12px 0 0; font: 400 13px/1.4 var(--body); color: var(--slate); }
.tools { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; font: 400 13px/1.4 var(--body); color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 8px; background: var(--indigo); color: #fff;
  font: 500 14px/1.3 var(--body); box-shadow: var(--sh-card);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); transition-duration: 200ms; }

/* ---------- embed mode ---------- */
html.is-embed .bar:not(.rail-bar) { display: none; }
html.is-embed .screen-steps .main { margin: 0; padding: 0; }
html.is-embed .screen-steps .backdrop { border-radius: 0; }
html.is-embed .calc, html.is-embed .screen, html.is-embed .screen-result .split, html.is-embed .rail-in { min-height: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen, .stagger > *, .msg { animation-name: fade-only; animation-duration: 200ms; animation-delay: 0s; }
  .big { animation: none; }
  .btn:active, .btn-2:active, .opt:active, .chip:active, .btn:hover .chev, .btn:hover .chev svg { transform: none; }
  .fill, .tab::after { transition-duration: 0s; }
  .toast, .toast.is-on { transform: translate(-50%, 0); transition: opacity 150ms var(--ease); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .screen-result .split { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); background-size: 440px 100%, 440px 100%, 440px 100%, auto; }
  .rail-in { padding: 36px 40px; }
  .big { font-size: min(64px, 15cqi); }
  .sheet { padding: 48px 40px 64px; }
  .answers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-num { font-size: 36px; }
}
@media (max-height: 860px) and (min-width: 961px) {
  .headline { margin-top: 32px; }
  .hero { margin-top: 24px; }
  .big { font-size: min(68px, 15cqi); }
  .explain { margin-top: 20px; }
  .trade { padding-top: 24px; }
  .trade img { height: 180px; }
}
@media (max-width: 960px) {
  .screen-steps .backdrop { padding: 40px 24px 48px; }
  .screen-result .split { grid-template-columns: minmax(0, 1fr); min-height: 0; background: #fff; }
  .rail {
    background:
      radial-gradient(60% 40% at 85% 0, rgba(105, 199, 251, 0.18), rgba(105, 199, 251, 0) 70%),
      radial-gradient(50% 35% at 10% 100%, rgba(247, 191, 225, 0.14), rgba(247, 191, 225, 0) 70%),
      var(--indigo);
  }
  .rail-in { position: static; min-height: 0; max-height: none; padding: 20px 20px 28px; }
  .rail .logo { width: 110px; }
  .headline { margin-top: 32px; font-size: 26px; line-height: 1.15; }
  .hero { margin-top: 24px; }
  .big { font-size: min(56px, 15cqi); }
  .big-label { font-size: 16px; }
  .explain { margin-top: 20px; font-size: 16px; }
  .trade { min-height: 0; padding-top: 24px; }
  .trade img { flex: none; height: 200px; }
  .sheet { padding: 28px 16px 24px; }
  .answers { padding: 16px 16px 18px; }
  .sheet-title { font-size: 24px; }
  .strip { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .stat { padding: 20px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--divider); }
  .stat-num { font-size: 40px; }
  .cta { padding: 28px 18px 32px; }
  .cta-title { font-size: 28px; }
  .cta-line { font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn, .cta-row .btn-2 { width: 100%; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .rail-in { padding: 40px 48px 48px; }
  .headline { max-width: 560px; margin-top: 48px; font-size: 34px; }
  .big { font-size: min(88px, 15cqi); }
  .trade img { height: 340px; }
  .sheet { max-width: none; padding: 48px; }
  .answers-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 24px 20px 24px 0; }
  .stat + .stat { padding-left: 20px; border-top: 0; border-left: 1px solid var(--divider); }
  .cta-row { flex-direction: row; }
  .cta-row .btn, .cta-row .btn-2 { width: auto; }
}
@media (max-width: 900px) {
}
@media (min-width: 761px) and (max-width: 900px) {
}
@media (max-width: 760px) {
  .bar { padding: 20px 16px 15px; }
  .screen-steps .main { padding: 0 12px 12px; }
  .screen-steps .backdrop { align-items: flex-start; padding: 24px 12px 32px; }
  .back { width: 48px; padding: 0; flex: none; }
  .back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back svg { width: 16px; height: 16px; }
  .tabbar { height: 44px; padding-right: 18px; gap: 10px; }
  .tab { padding: 0 12px; font-size: 14px; gap: 5px; text-transform: capitalize; }
  .tab-1 { padding-left: 18px; }
  .tab-your { display: none; }
  .body { padding: 24px 18px 22px; }
  .q { font-size: 24px; line-height: 1.2; }
  .q-desc { font-size: 15px; margin-top: 10px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .num { max-width: none; }
  .slide { padding-top: 16px; }
  .val { font-size: 48px; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-top: 28px; padding-top: 20px; }
  .next { flex: 1; min-width: 0; }
}
@media (max-width: 400px) { .count-word { display: none; } }

/* ---------- print (Save as PDF) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .screen-result .split { display: block; background: none; min-height: 0; }
  .rail { color: var(--indigo); background: none; }
  .rail-in { position: static; min-height: 0; max-height: none; padding: 0 0 16px; border-bottom: 1px solid var(--divider); }
  .rail .logo { color: var(--indigo); }
  .headline, .big, .fig { color: var(--indigo); }
  .big { animation: none; font-size: 56px; }
  .big-label, .big-note, .explain { color: var(--slate); }
  .trade { display: none; }
  .sheet { max-width: none; padding: 20px 0 0; }
  .cta { border: 0; padding: 16px 0 0; border-top: 1px solid var(--divider); }
  .wash { display: none; }
  .cta-row, .tools, .answers-title .link { display: none; }
  .toast { display: none; }
}
