/* Kaspchem design system. Hebrew/RTL first, mobile first. */
:root {
  --ink: #0a2a2f;
  --deep: #0e3b41;
  --deep-2: #08262b;
  --teal: #2aa79b;
  --teal-d: #17756c;
  --gold: #e3b04b;
  --gold-l: #f4d27f;
  --gold-d: #8a5d0c;
  --mist: #eef4f3;
  --line: #d3e2e0;
  --white: #fff;
  --coral: #b3392a;
  --ok: #17756c;
  --focus: #17756c;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --font-display: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --font-body: 'Heebo', 'Assistant', system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--teal-d); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--gold-l); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; z-index: 100; transition: top .2s; }
.skip:focus { top: .75rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* ---- header ---- */
.top { background: var(--deep-2); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: .01em; }
.brand svg { flex: none; }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.top nav a { color: #cfe3e0; text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; }
.top nav a:hover { color: #fff; border-color: var(--gold); }
.top .parent { font-size: .85rem; }

/* ---- hero ---- */
.hero { background: radial-gradient(900px 420px at 80% -10%, #14575a 0%, transparent 70%), var(--deep); color: #fff; padding: 2.25rem 0 3.25rem; }
.hero h1 { font-size: clamp(2.35rem, 8.5vw, 4.4rem); font-weight: 900; max-width: 20ch; letter-spacing: -.01em; }
.hero .lede { font-size: clamp(1.05rem, 3.4vw, 1.3rem); color: #cfe3e0; max-width: 34em; margin: 1rem 0 0; }
.hero .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.75rem; padding: 0; list-style: none; }
.hero .chips li { font-size: .9rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .2rem .85rem; color: #e6f1ef; }
.tiles-title { font-size: 1.05rem; color: var(--gold-l); font-weight: 500; margin-bottom: .75rem; }

/* ---- the ten cubes ---- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; list-style: none; margin: 0; padding: 0 0 .5rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: .55rem; height: 100%; min-height: 9.25rem; padding: 1rem; color: #fff; text-decoration: none; border-radius: var(--r-lg);
  background: linear-gradient(155deg, #17535a 0%, #0f3b41 70%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 0 #061d21, 0 16px 22px rgba(0,0,0,.28);
  transition: transform .22s ease, box-shadow .22s ease, border-color .7s ease; }
.tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(120% 90% at 50% -20%, rgba(244,210,127,.38), transparent 62%); }
.tile .face { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #d9ece9; transition: color .7s ease, background .7s ease; }
.tile .ico { width: 2rem; height: 2rem; overflow: visible; }
.tile .ico .a { stroke: var(--gold); transition: stroke .7s ease, filter .7s ease; }
.tile h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.tile p { font-size: .85rem; color: #a9c7c3; margin: 0; line-height: 1.45; display: none; }
.tile.lit { border-color: var(--gold); box-shadow: 0 6px 0 #061d21, 0 0 0 1px rgba(227,176,75,.7), 0 0 30px rgba(227,176,75,.4), 0 16px 22px rgba(0,0,0,.28); }
.tile.lit::before { opacity: 1; }
.tile.lit .face { color: #fff; background: rgba(227,176,75,.16); }
.tile.lit .ico .a { stroke: var(--gold-l); filter: drop-shadow(0 0 4px rgba(244,210,127,.9)); }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); }
.tile:active { transform: translateY(4px); box-shadow: 0 2px 0 #061d21, 0 8px 14px rgba(0,0,0,.28); }
@media (min-width: 640px) { .tile p { display: block; } .tiles { gap: 1rem; } .tile { min-height: 11.5rem; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(5, 1fr); } }

/* ---- sections ---- */
.section { padding: 3.25rem 0; }
.section h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 1.5rem; }
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.25rem 1.25rem; position: relative; padding-inline-start: 4.25rem; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: var(--gold-l); font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; }
.steps b { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.steps span { color: #3e5f63; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.disclosure { background: #fff; border: 1px solid var(--line); border-inline-start: 6px solid var(--gold); border-radius: var(--r-md); padding: 1.5rem; max-width: 52rem; }
.disclosure p:last-child { margin-bottom: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--teal-d); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 1.15rem 1rem; margin: 0; color: #3e5f63; }
.foot { background: var(--deep-2); color: #a9c7c3; padding: 2rem 0; font-size: .92rem; }
.foot a { color: #e6f1ef; }
.foot .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .7rem 1.6rem; border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; text-decoration: none;
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #a97a1d; transition: transform .15s, box-shadow .15s, background .2s; }
.btn:hover { background: var(--gold-l); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a97a1d; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border: 2px solid currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.12); }
.btn.link { background: none; box-shadow: none; color: var(--teal-d); min-height: 2.75rem; padding-inline: .5rem; text-decoration: underline; font-weight: 500; font-size: 1rem; }

/* ---- wizard ---- */
.wz { min-height: 100vh; display: flex; flex-direction: column; }
.wz-bar { background: var(--deep-2); color: #fff; }
.wz-bar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .7rem; gap: 1rem; }
.wz-bar a { color: #cfe3e0; text-decoration: none; font-size: .95rem; }
.wz-bar .brand { font-size: 1.35rem; }
.wz-main { flex: 1; padding: 1.25rem 0 3rem; }
.card { width: min(680px, 100% - 2rem); margin-inline: auto; }
.crumb { color: var(--teal-d); font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.crumb .ico { width: 1.7rem; height: 1.7rem; color: var(--ink); }
.crumb .ico .a { stroke: var(--gold-d); }
.progress { height: 10px; background: #d9e8e6; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: inherit; transition: width .45s cubic-bezier(.3,.8,.3,1); }
.pmeta { display: flex; justify-content: space-between; font-size: .9rem; color: #3e5f63; margin: .45rem 0 1.4rem; min-height: 1.5rem; }
.pmeta .enc { color: var(--teal-d); font-weight: 500; }
.q h1 { font-size: clamp(1.6rem, 5.6vw, 2.15rem); line-height: 1.3; margin-bottom: .5rem; }
.q .help { color: #3e5f63; font-size: .98rem; }
.opts { display: grid; gap: .75rem; margin: 1.4rem 0 1.1rem; }
.opt { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 3.75rem; padding: .85rem 1.1rem; text-align: start; font: inherit; font-size: 1.1rem; font-weight: 500; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .12s, border-color .15s, box-shadow .15s, background .15s; }
.opt:hover { border-color: var(--teal); background: #f7fbfa; }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.opt .dot { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid #9db9b6; }
.opt[aria-checked="true"] { border-color: var(--teal-d); background: #e7f4f2; }
.opt[aria-checked="true"] .dot { border-color: var(--teal-d); background: radial-gradient(circle, var(--teal-d) 0 45%, transparent 50%); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; }
.slide-in { animation: slideIn .32s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ---- result ---- */
.result { background: radial-gradient(700px 360px at 50% -5%, #17676a, transparent 70%), var(--deep); color: #fff; border-radius: 28px; padding: 2rem 1.35rem 1.75rem; box-shadow: 0 10px 0 #061d21, 0 26px 40px rgba(6,29,33,.35); overflow: hidden; }
.result .scan { display: grid; place-items: center; gap: 1rem; min-height: 14rem; text-align: center; color: #cfe3e0; }
.coin { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold) 55%, #b98417); box-shadow: 0 0 0 0 rgba(227,176,75,.6); display: grid; place-items: center; color: var(--deep-2); font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; animation: spinCoin 1.2s ease-in-out infinite, ping 1.2s ease-out infinite; }
@keyframes spinCoin { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes ping { to { box-shadow: 0 0 0 28px rgba(227,176,75,0); } }
.result .head { text-align: center; }
.big { font-family: var(--font-display); font-weight: 900; font-size: clamp(4.5rem, 22vw, 7rem); line-height: 1; color: var(--gold-l); text-shadow: 0 0 40px rgba(227,176,75,.5); }
.result h1 { font-size: clamp(1.55rem, 5.4vw, 2.1rem); margin-top: .4rem; }
.result .sub { color: #cfe3e0; max-width: 32em; margin: .7rem auto 0; }
.finds { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; display: grid; gap: .7rem; }
.find { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-inline-start: 5px solid var(--gold); border-radius: 14px; padding: .95rem 1.1rem; animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.find b { display: block; font-size: 1.1rem; margin-bottom: .15rem; }
.find span { color: #bcd6d2; font-size: .98rem; line-height: 1.55; display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.note { font-size: .88rem; color: #9fc0bc; text-align: center; margin: 1rem 0 0; }
.cta-row { display: grid; gap: .6rem; justify-items: center; }
.cta-row .btn { width: 100%; max-width: 26rem; }
.result .btn.link { color: var(--gold-l); }

/* ---- lead form ---- */
.lead { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.4rem 1.2rem; margin-top: 1.5rem; animation: slideDown .4s ease both; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.lead h2 { font-size: 1.45rem; margin-bottom: .35rem; }
.field { margin-top: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field label small { font-weight: 400; color: #5a7a7e; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password] { width: 100%; min-height: 3.25rem; padding: .6rem .9rem; font: inherit; font-size: 1.1rem; color: var(--ink); border: 2px solid #b6cecb; border-radius: 12px; background: #fff; }
.field input:focus { border-color: var(--teal-d); outline: 3px solid rgba(23,117,108,.25); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.err { color: var(--coral); font-size: .92rem; min-height: 1.3rem; margin: .25rem 0 0; font-weight: 500; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin-top: .9rem; font-size: .98rem; line-height: 1.5; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem; accent-color: var(--teal-d); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn { width: 100%; margin-top: 1.2rem; }
.formerr { background: #fdecea; color: var(--coral); border-radius: 10px; padding: .7rem .9rem; margin-top: 1rem; font-weight: 500; }
.done { text-align: center; padding: 1rem .5rem .5rem; }
.done .tick { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; animation: pop .5s ease both; }
.more { display: grid; gap: .6rem; margin-top: 1.25rem; grid-template-columns: 1fr 1fr; }
.more a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; line-height: 1.3; min-height: 3.25rem; text-align: start; }
.more a:hover { border-color: var(--teal); }
.more .ico { width: 1.6rem; height: 1.6rem; flex: none; color: var(--ink); }
.more .ico .a { stroke: var(--gold-d); }

/* ---- legal pages ---- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; margin: 1.5rem auto 3rem; width: min(760px, 100% - 2rem); }
.legal h1 { font-size: 2rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.draft { background: #fff6dc; border: 1px solid var(--gold); border-radius: 10px; padding: .8rem 1rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .coin { animation: none; }
}
@media (min-width: 640px) { .result { padding: 2.5rem 2.25rem 2rem; } .lead { padding: 1.75rem; } .more { grid-template-columns: repeat(3, 1fr); } }
@media (forced-colors: active) { .tile.lit, .opt[aria-checked="true"] { outline: 3px solid Highlight; } }

.faq .narrow > * { max-width: 52rem; }
@media (max-width: 559px) { .top nav a:not(.parent) { display: none; } }

[hidden] { display: none !important; }

/* question card: same "cube" depth language as the tiles */
.q { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem 1.15rem 1rem; box-shadow: 0 6px 0 #cfe0de, 0 20px 32px rgba(10, 42, 47, .08); }
@media (min-width: 640px) { .q { padding: 2rem 2rem 1.25rem; } }
.err:empty { min-height: 0; margin: 0; }

/* about + FAQ sit side by side on wide screens instead of leaving one half of the page empty */
.duo { display: grid; gap: 2.5rem; padding-bottom: 3.25rem; }
.duo .section { padding: 0; }
.duo .disclosure, .faq .narrow > * { max-width: none; }
@media (min-width: 1000px) { .duo { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

/* ---- polish: coin-segment progress ---- */
.progress.segs { display: flex; gap: 6px; height: 12px; background: none; overflow: visible; }
.progress.segs span { flex: 1; border-radius: 999px; background: #d3e4e2; position: relative; transition: background .45s ease, transform .3s ease; }
.progress.segs span.done { background: linear-gradient(90deg, var(--teal), var(--gold)); }
.progress.segs span.cur { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.progress.segs span.cur::after { content: ''; position: absolute; inset-inline-end: -1px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(227,176,75,.6); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(227,176,75,0); } }

/* answer feedback: the picked option fills in before the next question slides in */
.opt[aria-checked="true"] { border-color: var(--gold); background: #fff7e3; box-shadow: 0 3px 0 #e7c57a; }
.opt[aria-checked="true"] .dot { border-color: var(--gold-d); background: radial-gradient(circle, var(--gold-d) 0 45%, transparent 50%); }

/* ---- polish: discovery burst + finding markers ---- */
.burst { position: relative; display: inline-block; padding: 0 1rem; }
.burst > i { position: absolute; inset-inline-start: 50%; top: 50%; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: var(--gold-l); opacity: 0;
  animation: spark 1.1s cubic-bezier(.15,.7,.3,1) .35s both; }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); } }
.find { display: flex; gap: .85rem; align-items: flex-start; }
.find > div { min-width: 0; }
.find .mk { flex: none; width: 1.55rem; height: 1.55rem; margin-top: .1rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold) 60%, #b98417); box-shadow: 0 0 0 4px rgba(227,176,75,.18); }
@media (prefers-reduced-motion: reduce) { .burst > i, .progress.segs span.cur::after { animation: none; opacity: 0; } }

/* ---- restraint pass: calm, credible, no "treasure" cues ---- */
.big { font-size: clamp(3.2rem, 14vw, 4.6rem); text-shadow: none; color: #f2dca0; }
.bigcap { font-size: .95rem; color: #a9c7c3; margin-top: .2rem; }
.ring { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--gold-l); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.find .mk { width: 1.15rem; height: 1.15rem; margin-top: .25rem; border-radius: 50%; background: transparent; border: 2px solid var(--gold-l); box-shadow: none; position: relative; }
.find .mk::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-l); opacity: .75; }
.progress.segs span.cur::after { animation: none; box-shadow: none; }
.result .scan { min-height: 12rem; }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* ---- v3: one brief gold moment, only when a topic worth checking was identified ---- */
.goldline { height: 2px; width: 0; margin: .9rem auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }
.result.found .goldline { animation: drawline .9s cubic-bezier(.3,.7,.2,1) .15s forwards; }
@keyframes drawline { to { width: min(14rem, 60%); } }
.result.found { animation: goldedge 1.8s ease-out .1s 1; }
@keyframes goldedge { 0% { box-shadow: 0 10px 0 #061d21, 0 26px 40px rgba(6,29,33,.35), 0 0 0 0 rgba(244,210,127,0); } 35% { box-shadow: 0 10px 0 #061d21, 0 26px 40px rgba(6,29,33,.35), 0 0 34px 2px rgba(244,210,127,.28); } 100% { box-shadow: 0 10px 0 #061d21, 0 26px 40px rgba(6,29,33,.35), 0 0 0 0 rgba(244,210,127,0); } }
.reassure { margin: .1rem 0 0; font-size: .92rem; color: #b8d3cf; text-align: center; }
@media (prefers-reduced-motion: reduce) { .result.found, .result.found .goldline { animation: none; } .goldline { width: min(14rem, 60%); } }

/* ---- multi-select questions and result extras ---- */
.multihint { color: #3e5f63; font-size: .95rem; margin: .2rem 0 0; }
.opt.chk .dot { border-radius: 6px; }
.opt.chk[aria-checked="true"] .dot { border-color: var(--gold-d); background: var(--gold-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.multi-go { margin: .2rem 0 1rem; }
.multi-go .btn { width: 100%; }
.find .fx { display: block; margin-top: .55rem; font-size: .95rem; color: #d6e6e3; }
.find .fx b { color: #fff; }
.find .fx a { color: var(--gold-l); font-weight: 700; }
.find .fx small { color: #9fc0bc; }
.find .fx b { display: inline; font-size: inherit; margin: 0; }
.find .fx { display: block; }
.find .fx small { font-size: .8rem; }
.find .fx-line { display: block; margin-top: .5rem; }
.find .fx-line b { color: #fff; }

.find .fxd summary { cursor: pointer; font-weight: 700; color: #fff; min-height: 2rem; display: list-item; }
.find .fxd[open] summary { margin-bottom: .3rem; }

/* ---- grouped result card: one card, a section per item (e.g. per tax year) ---- */
.find .fx.part { padding-top: .6rem; margin-top: .6rem; border-top: 1px solid rgba(255,255,255,.14); }

/* ---- stage 2a: typed headline ---- */
.tw { position: relative; }
.tw .tw-meas { position: absolute; inset-inline: 0; top: 0; visibility: hidden; pointer-events: none; }
.tw .tw-vis { position: absolute; inset: 0; display: block; }
.tw .tw-cur { display: inline-block; width: 0; overflow: visible; white-space: nowrap; color: var(--gold); font-weight: 700; animation: twblink .8s steps(1, end) infinite; }
.tw.tw-done .tw-cur { animation-iteration-count: 4; }
@keyframes twblink { 50% { opacity: 0; } }
.tw-static { font-size: clamp(1.9rem, 6.2vw, 3.1rem); }
.tw-static .tw-line { display: block; }
.tw-static .tw-line + .tw-line { margin-top: .35em; }

/* ---- stage 2a: progress ring and coin jar around the question card ---- */
.wz-stage .side { display: none; }
.kp-mini { display: inline-flex; align-items: center; gap: .55rem; margin-inline-start: auto; }
.mini-ring { width: 2.1rem; height: 2.1rem; }
.mini-jar { width: 1.7rem; height: 2.25rem; }
.kp-fg { transition: stroke-dashoffset .6s cubic-bezier(.3, .8, .3, 1); }
.kp-pct { font-family: var(--font-display); font-weight: 900; font-size: 30px; fill: var(--ink); }
.kp-c { opacity: 0; transform: translateY(-46px); transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), opacity .2s ease; }
.kp-c.on { opacity: 1; transform: none; }
@media (min-width: 1180px) {
  .wz-stage { display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; gap: 1.5rem; width: min(1280px, 100% - 2rem); margin-inline: auto; align-items: start; }
  .wz-stage .card { width: auto; margin: 0; }
  .wz-stage .side { display: flex; flex-direction: column; align-items: center; gap: .7rem; position: sticky; top: 1.5rem; padding-top: 2.6rem; }
  .side .kp-ring { width: 190px; height: 190px; }
  .side .kp-jar { width: 150px; height: 200px; }
  .side .cap { margin: 0; max-width: 11rem; font-size: .9rem; line-height: 1.4; color: #3e5f63; text-align: center; }
  .kp-mini { display: none; }
}

/* ---- stage 2a: the single short caveat on the result screen ---- */
.result .prelim { display: inline-block; margin: .9rem 0 0; padding: .15rem .85rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .9rem; color: #d6e6e3; }

/* ---- stage 3: impact counter (every class here starts with imp-) ---- */
.imp { background: var(--deep-2); color: #fff; padding: 2.5rem 0 2.75rem; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(0,0,0,.35); background-image: radial-gradient(800px 260px at 15% 0%, rgba(42,167,155,.16), transparent 70%); }
.imp h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: .5rem; }
.imp-sub { color: #bcd6d2; max-width: 40em; margin: 0 0 1.5rem; font-size: 1rem; }
.imp-grid { display: grid; gap: 1.25rem; align-items: stretch; }
.imp-stack { display: grid; }
.imp-stack > * { grid-area: 1 / 1; min-width: 0; }
.imp-stack .imp-fin { opacity: 0; user-select: none; } /* the real text: sets the width, read once by screen readers */
.imp-stack .imp-v { pointer-events: none; }
.imp-fam { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin: 0; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.12); border-inline-start: 6px solid var(--gold); background: rgba(255,255,255,.05); }
.imp-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.4rem, 15vw, 5rem); line-height: 1; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.imp-cap { font-size: 1.15rem; color: #e6f1ef; font-weight: 500; margin-top: .25rem; }
.imp-money .imp-num { font-size: clamp(2.3rem, 10.5vw, 3.6rem); overflow-wrap: anywhere; }
.imp-upd { margin: 1.25rem 0 0; font-size: .95rem; color: #cfe3e0; }
.imp-fine { margin: .15rem 0 0; font-size: .85rem; color: #9fc0bc; }
@media (min-width: 640px) { .imp { padding: 3rem 0 3.25rem; } .imp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .imp-money .imp-num { font-size: clamp(2.2rem, 5.2vw, 3.6rem); } }
@media (min-width: 1000px) { .imp-grid { gap: 1.5rem; } .imp-fam { padding: 1.5rem; } }
@media (forced-colors: active) { .imp-fam { border: 1px solid CanvasText; } }

/* ---- stage 3: no layout jump when the counter data arrives ---- */
.imp.imp-off { display: none; }
/* a returning visitor who last saw the counter at this width: reserve the exact height until the answer is in (impact-hint.js sets --imp-h) */
.imp-expect .imp.imp-off { display: block; visibility: hidden; min-height: var(--imp-h, 0); padding: 0; overflow: hidden; }

/* ---- stage 4: the quick check (every class here starts with qk-; admin pages load this file too, so nothing here may use a generic name) ---- */
.qk-tile { position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 5rem; padding: .95rem 1.05rem; margin: 0 0 1.35rem; color: #fff; text-decoration: none; border-radius: var(--r-lg);
  background: linear-gradient(155deg, #1b6068 0%, #0f3b41 72%); border: 1px solid rgba(227,176,75,.55);
  box-shadow: 0 6px 0 #061d21, 0 0 0 1px rgba(227,176,75,.18), 0 16px 22px rgba(0,0,0,.28); transition: transform .22s ease, box-shadow .22s ease, border-color .3s ease; }
.qk-tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(110% 120% at 100% -30%, rgba(244,210,127,.26), transparent 62%); }
.qk-face { position: relative; flex: none; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 14px; background: rgba(227,176,75,.14); border: 1px solid rgba(227,176,75,.35); color: #fff; }
.qk-face .ico { width: 2.2rem; height: 2.2rem; overflow: visible; }
.qk-face .ico .a { stroke: var(--gold-l); }
.qk-txt { position: relative; flex: 1; min-width: 0; display: grid; gap: .1rem; }
.qk-h { font-family: var(--font-display); font-weight: 900; font-size: 1.22rem; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.qk-sub { font-size: .92rem; color: #b8d3cf; line-height: 1.4; }
.qk-arrow { position: relative; flex: none; color: var(--gold-l); transition: transform .22s ease; }
.qk-tile:hover, .qk-tile:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.qk-tile:hover .qk-arrow, .qk-tile:focus-visible .qk-arrow { transform: translateX(-5px); }
.qk-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 #061d21, 0 8px 14px rgba(0,0,0,.28); }
@media (min-width: 640px) { .qk-tile { gap: 1.4rem; min-height: 6.25rem; padding: 1.15rem 1.6rem; margin-bottom: 1.6rem; } .qk-face { width: 4rem; height: 4rem; } .qk-face .ico { width: 2.6rem; height: 2.6rem; } .qk-h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); } .qk-sub { font-size: 1.02rem; } }
@media (forced-colors: active) { .qk-tile { border: 2px solid CanvasText; } }

/* result of the quick check: a sentence, then one card per recommended topic */
.result .qk-sentence { color: #e6f1ef; font-size: 1.12rem; line-height: 1.6; max-width: 34em; margin: .85rem auto 0; }
.qk-reasons { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .35rem; }
.find .qk-reasons li { display: block; position: relative; padding-inline-start: 1.05rem; color: #cfe3e0; font-size: .98rem; line-height: 1.55; }
.find .qk-reasons li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-l); }
.find .btn.qk-go { display: flex; width: 100%; min-height: 2.9rem; margin-top: .8rem; padding: .45rem 1.1rem; font-size: 1rem; background: transparent; color: var(--gold-l); border: 2px solid var(--gold); box-shadow: none; }
.find .btn.qk-go:hover, .find .btn.qk-go:focus-visible { background: rgba(227,176,75,.18); color: #fff; }
.find .btn.qk-go:active { transform: translateY(2px); }
@media (min-width: 560px) { .find .btn.qk-go { display: inline-flex; width: auto; } }

/* quick check, second tier ("needs information") and the expander for long results */
.finds.qk-top { margin-bottom: .7rem; }
.finds.qk-rest { margin: 0 0 .7rem; }
.qk-tog-row { display: flex; justify-content: center; margin: .5rem 0 1.4rem; }
.btn.qk-tog { width: 100%; max-width: 26rem; min-height: 3rem; font-size: 1rem; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); box-shadow: none; }
.btn.qk-tog:hover, .btn.qk-tog:focus-visible { background: rgba(255,255,255,.1); }
.qk-info { margin: 1.3rem 0 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); }
.qk-info h2 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin: 0 0 .3rem; color: #fff; }
.qk-info-sub { color: #bcd6d2; font-size: .95rem; line-height: 1.55; margin: 0 0 .9rem; }
.qk-info .finds { margin: 0; }
.find.qk-infocard { border-inline-start-color: #6fb3ab; }
.qk-infocard .mk { border-style: dashed; }
.qk-infocard .mk::after { opacity: .3; }

/* ---- stage 5: the deep check (every class here starts with dp-; admin pages load this file too, so nothing here may use a generic name) ---- */
/* home: the quick tile and the deep tile. Off (the default): the wrapper is a plain block holding the quick tile, exactly the layout it had before. */
.dp-feat { display: block; }
.dp-feat.dp-on, .dp-expect .dp-feat { display: grid; grid-template-columns: minmax(0, 1fr); }
.dp-expect .dp-tile[hidden] { display: flex !important; visibility: hidden; } /* a returning visitor: the place is kept, the tile is not yet shown */
@media (min-width: 900px) { .dp-feat.dp-on, .dp-expect .dp-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.1rem; } }
/* the deep tile is the same family as the quick tile but is NOT a .qk-tile (existing pages and tests address .qk-tile as "the" quick tile) */
.dp-tile { position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 5rem; padding: .95rem 1.05rem; margin: 0 0 1.35rem; color: #fff; text-decoration: none; border-radius: var(--r-lg);
  background: linear-gradient(155deg, #1b6068 0%, #0f3b41 72%); border: 1px solid rgba(227,176,75,.55);
  box-shadow: 0 6px 0 #061d21, 0 0 0 1px rgba(227,176,75,.18), 0 16px 22px rgba(0,0,0,.28); transition: transform .22s ease, box-shadow .22s ease, border-color .3s ease; }
.dp-tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(110% 120% at 100% -30%, rgba(244,210,127,.26), transparent 62%); }
.dp-tile .qk-face .ico .a { stroke: var(--gold-l); }
.dp-tile:hover, .dp-tile:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.dp-tile:hover .qk-arrow, .dp-tile:focus-visible .qk-arrow { transform: translateX(-5px); }
.dp-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 #061d21, 0 8px 14px rgba(0,0,0,.28); }
@media (min-width: 640px) { .dp-tile { gap: 1.4rem; min-height: 6.25rem; padding: 1.15rem 1.6rem; margin-bottom: 1.6rem; } }
/* the page for a check that is not open yet */
.dp-soon { text-align: center; padding: 1.5rem .5rem; }
.dp-soon h1 { font-size: clamp(1.6rem, 5.6vw, 2.15rem); line-height: 1.3; margin-bottom: .6rem; }
.dp-soon p { color: #3e5f63; max-width: 32em; margin-inline: auto; }
.dp-soon-row { margin-top: 1.2rem; }
.dp-soon-row .btn.link { color: var(--teal-d); }
/* phases and progress */
.dp-phases { list-style: none; display: flex; gap: .35rem; margin: 0 0 .7rem; padding: 0; font-size: .92rem; color: #3e5f63; }
.dp-ph { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; padding: .3rem .55rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ph-n { flex: none; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; background: #d3e4e2; color: var(--ink); font-size: .8rem; font-weight: 700; }
.dp-ph-cur { background: #e7f4f2; color: var(--ink); font-weight: 700; }
.dp-ph-cur .dp-ph-n { background: var(--gold); }
.dp-ph-done .dp-ph-n { background: var(--teal-d); color: #fff; }
.progress.segs.dp-segs { gap: 6px; }
.dp-seg { overflow: hidden; }
.dp-seg > i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: inline-size .45s cubic-bezier(.3, .8, .3, 1); }
.pmeta .dp-where { font-weight: 500; color: var(--teal-d); }
.dp-count { display: flex; align-items: center; gap: .5rem; min-height: 1.9rem; margin: -.5rem 0 1rem; padding: .15rem .55rem; border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--teal-d); }
.dp-count::before { content: ''; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
.dp-count.dp-bump { animation: dpBump 1.4s ease-out both; }
@keyframes dpBump { 0% { background: #fff1c2; } 100% { background: transparent; } }
/* a question: groups, hints, the reason behind a personal question, skip */
.dp-why { margin: .8rem 0 0; padding: .65rem .85rem; background: #eef6f5; border-inline-start: 4px solid var(--teal); border-radius: 10px; font-size: .95rem; line-height: 1.55; color: #27484c; }
.dp-group { display: grid; gap: .6rem; }
.dp-gl { margin: .5rem 0 0; font-weight: 700; font-size: .95rem; color: var(--teal-d); }
.dp-group:first-child .dp-gl { margin-top: 0; }
.dp-lbl { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.dp-hint { font-size: .88rem; font-weight: 400; line-height: 1.45; color: #4a6a6d; }
.opt.dp-pna { border-style: dashed; background: #fafcfc; color: #3e5f63; }
.dp-nav { gap: .5rem 1rem; flex-wrap: wrap; }
.btn.link.dp-skip { margin-inline-start: auto; }
/* the result: three tiers */
.dp-tier { margin: 1.7rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); }
.dp-tier.dp-high { margin-top: 1.2rem; padding-top: 0; border-top: 0; }
.dp-tier-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 .25rem; font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; line-height: 1.35; color: #fff; }
.dp-n { color: #bcd6d2; font-weight: 500; font-size: 1rem; }
.dp-tier-sub { margin: 0 0 .9rem; color: #bcd6d2; font-size: .95rem; line-height: 1.55; }
details.dp-low > summary.dp-tier-h { cursor: pointer; list-style: none; min-height: 2.75rem; align-items: center; justify-content: space-between; }
details.dp-low > summary.dp-tier-h::after { content: '+'; margin-inline-start: auto; font-size: 1.5rem; line-height: 1; color: var(--gold-l); }
details.dp-low[open] > summary.dp-tier-h::after { content: '−'; }
.dp-result .finds { margin: .6rem 0 .8rem; }
.find.dp-card-missing { border-inline-start-color: #6fb3ab; }
.find.dp-card-low { border-inline-start-color: #8a9ea0; }
.dp-card-missing .mk, .dp-card-low .mk { border-style: dashed; }
.find .dp-miss { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .1rem; }
.find .dp-miss li { color: #e6f1ef; font-size: .97rem; line-height: 1.5; }
.find .dp-mq { display: inline; color: #e6f1ef; font-size: .97rem; }
.btn.link.dp-fill { color: var(--gold-l); min-height: 2.25rem; padding-inline: .3rem; font-size: .95rem; }
.find .dp-weak { margin: .45rem 0 0; color: #e6f1ef; font-size: .95rem; line-height: 1.5; }
.find .dp-part { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.14); }
.find .dp-pt { margin: 0 0 .1rem; font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: #fff; }
.find .dp-part p { margin: .2rem 0; color: #cfe3e0; font-size: .96rem; line-height: 1.6; }
.find .dp-part b { display: inline; margin: 0; font-size: inherit; color: #fff; }
.find .dp-det > summary { cursor: pointer; min-height: 2rem; display: list-item; font-weight: 700; color: #fff; }
.find .dp-det[open] > summary { margin-bottom: .2rem; }
.find .dp-help a { color: var(--gold-l); font-weight: 700; }
.find .dp-help small { color: #9fc0bc; font-size: .8rem; }
.dp-tog-row { display: flex; justify-content: center; margin: .3rem 0 .6rem; }
.btn.dp-tog { width: 100%; max-width: 26rem; min-height: 3rem; font-size: 1rem; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); box-shadow: none; }
.btn.dp-tog:hover, .btn.dp-tog:focus-visible { background: rgba(255,255,255,.1); }
.dp-cta { margin-top: 1.5rem; }
.dp-tier-h .dp-tt { font: inherit; margin: 0; display: inline; }
.dp-subj { margin: .3rem 0 .4rem; }
.dp-chip { display: inline-block; padding: .12rem .75rem; border: 1px solid rgba(227,176,75,.7); border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--gold-l); background: rgba(227,176,75,.1); }
.dp-q .dp-chip { color: var(--teal-d); border-color: var(--teal); background: #e7f4f2; }
.find .dp-subjnote { margin: .1rem 0 .3rem; color: #bcd6d2; font-size: .93rem; line-height: 1.5; }
.find .dp-note { margin: .25rem 0 0; color: #bcd6d2; font-size: .93rem; line-height: 1.5; }
.find .dp-mq-one { display: block; margin: .45rem 0 0; }
.btn.dp-fill-main { margin-top: .7rem; width: 100%; min-height: 3rem; font-size: 1rem; background: transparent; color: #fff; border: 2px solid var(--gold); box-shadow: none; }
.btn.dp-fill-main:hover, .btn.dp-fill-main:focus-visible { background: rgba(227,176,75,.18); }
@media (min-width: 560px) { .btn.dp-fill-main { width: auto; padding-inline: 1.6rem; } }
.dp-fail { text-align: center; padding: 1.5rem .5rem; }
.dp-fail h1 { font-size: clamp(1.6rem, 5.6vw, 2.15rem); line-height: 1.3; margin-bottom: .6rem; }
.dp-fail p { color: #3e5f63; max-width: 32em; margin-inline: auto; }
.dp-fail .cta-row { margin-top: 1.2rem; }
.dp-fail .btn.link { color: var(--teal-d); }
@media (forced-colors: active) { .dp-tile { border: 2px solid CanvasText; } .dp-ph-cur { outline: 2px solid Highlight; } }

/* the way on from a result (only while the lead gate is open): act yourself, or ask for a professional */
.paths { margin-top: 1.6rem; }
.paths h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.paths-grid { display: grid; gap: .8rem; }
.path { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 1rem 1.1rem; }
.path b { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.path p { margin: 0; line-height: 1.55; }
.path-pro { border-color: rgba(212,175,95,.55); }
.path-pro .btn { width: 100%; margin-top: .9rem; }
.lead-sub { margin: 0; color: #3e5f63; }
.hint { margin: .3rem 0 0; font-size: .9rem; line-height: 1.5; color: #4d6b6f; }
@media (min-width: 640px) { .paths-grid { grid-template-columns: 1fr 1fr; } }
.pro-prices { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; }
.pro-prices li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem .7rem; border-radius: 10px; background: rgba(255,255,255,.08); }
.pro-prices b { white-space: nowrap; color: var(--gold, #d4af5f); }
