:root {
  /* ===== Rainbow-inspired palette ===== */
  --onyx:    #111210;
  --onyx-2:  #2b2b27;
  --lime:    #d4fc3a;
  --lime-dk: #c2ee24;
  --cream:   #f4f5f1;
  --white:   #ffffff;

  --mint:     #e5fff2;
  --sand:     #fff1d4;
  --lavender: #ded4ff;
  --sky:      #cce5ff;
  --coral:    #ffcec2;

  --line:   #e3e4df;
  --line-2: #d7d8d1;
  --ink:    #111210;
  --ink-2:  #2b2b27;
  --muted:  #6b6b66;
  --bg:     #f4f5f1;
  --surface:#ffffff;

  --pos: #3b6d11;
  --neg: #c0392b;
  --warn:#9a6a00;

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(17,18,16,.04);
  --shadow-sm: 0 4px 14px -8px rgba(17,18,16,.14);
  --shadow:    0 16px 40px -22px rgba(17,18,16,.28);
  --shadow-lg: 0 30px 60px -28px rgba(17,18,16,.34);
  --ring: 0 0 0 4px rgba(212,252,58,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { font-family: "Rubik","Heebo",sans-serif; letter-spacing: -.02em; }

/* ============================ topbar ============================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px,5vw,52px);
  background: rgba(244,245,241,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--onyx); color: var(--lime); font-size: 1.3rem; font-weight: 800; }
.logo-mark.sm { width: 30px; height: 30px; font-size: 1rem; border-radius: 9px; }
.logo-spark { color: var(--lime); display: inline-flex; }
.logo-spark svg { width: 16px; height: 16px; }
.logo-text { font-size: 1.32rem; }
.logo-text.wm { font-family: "Fredoka","Heebo",sans-serif; font-weight: 600; font-size: 1.62rem; color: var(--ink); letter-spacing: .005em; line-height: 1; }
.logo-text.wm .c1, .logo-text.wm .c2 { position: relative; }
.logo-text.wm .c1 { color: var(--ink); }
.logo-text.wm .c2 { color: var(--ink); }
.topbar nav { display: flex; align-items: center; gap: clamp(8px,2vw,26px); flex-wrap: nowrap; }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.topbar nav a:hover { color: var(--onyx); }
.nav-cta { background: var(--onyx); color: #fff !important; padding: 10px 20px; border-radius: 999px; transition: transform .15s, background .15s; }
.nav-cta:hover { transform: translateY(-1px); background: var(--onyx-2); }
.nav-toggle { display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; padding: 0; }
.nav-toggle svg { width: 22px; height: 22px; }

main { min-height: 70vh; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px 72px; }

/* ============================ hero ============================ */
.hero { position: relative; padding: clamp(38px,6vw,76px) 20px 26px; overflow: hidden; }
.hero.compact { padding: 38px 20px 6px; text-align: center; }
.hero-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,52px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
@media (max-width: 860px){ .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; background: var(--white); color: var(--onyx); border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }

.hero h1 { font-size: clamp(2.1rem,5.2vw,3.5rem); line-height: 1.12; margin: 0 0 16px; font-weight: 800; color: var(--onyx); }
.hero h1 .hl { background: var(--lime); color: var(--onyx); padding: 0 .12em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: clamp(1.05rem,2.2vw,1.3rem); color: var(--ink-2); margin: 0; max-width: 560px; }
@media (max-width:860px){ .hero .lead { margin: 0 auto; } }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width:860px){ .cta-row { justify-content: center; } }

.microtrust { margin-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
@media (max-width:860px){ .microtrust { justify-content: center; } }
.microtrust .item { display: inline-flex; align-items: center; gap: 7px; }
.microtrust svg { width: 18px; height: 18px; color: var(--onyx); }

/* ---- hero product visual: dark stat card ---- */
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.hv-card { position: relative; z-index: 1; border-radius: var(--radius); }
.hv-main { width: min(360px,86%); padding: 24px; background: var(--onyx); color: #fff; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite; }
.hv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hv-ai { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; color: var(--onyx); background: var(--lavender); padding: 5px 11px; border-radius: 999px; }
.hv-chip { font-weight: 800; font-size: .78rem; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--onyx); }
.hv-amount { margin: 20px 0 6px; }
.hv-amount span { color: #b9bab2; font-size: .9rem; font-weight: 600; }
.hv-amount b { display: block; font-family: "Rubik"; font-size: 2.6rem; font-weight: 800; color: var(--lime); letter-spacing: -.02em; }
.hv-meter { height: 9px; border-radius: 999px; background: #2f3029; overflow: hidden; margin: 10px 0 18px; }
.hv-meter i { display: block; height: 100%; width: 78%; border-radius: 999px; background: var(--lime); }
.hv-bars { display: flex; align-items: flex-end; gap: 7px; height: 56px; }
.hv-bars i { flex: 1; border-radius: 5px 5px 3px 3px; background: var(--lime); opacity: .9; }
.hv-bars i:nth-child(even){ opacity: .55; }
.hv-status { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: #d7d8d1; font-weight: 600; font-size: .9rem; }
.hv-status .pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: pulse 1.8s infinite; }

.hv-float { position: absolute; z-index: 2; padding: 13px 15px; font-weight: 700; font-size: .85rem; border-radius: 16px; box-shadow: var(--shadow); background: var(--white); color: var(--onyx); border: 1px solid var(--line); }
.hv-float small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }
.hv-doc { top: 6%; inset-inline-end: 2%; animation: floaty 5s ease-in-out infinite .4s; }
.hv-shield { bottom: 8%; inset-inline-start: 0; display: inline-flex; align-items: center; gap: 8px; animation: floaty 5.5s ease-in-out infinite .8s; }
.hv-shield svg { width: 20px; height: 20px; color: var(--onyx); }
@media (max-width:860px){ .hero-visual { min-height: 320px; margin-top: 10px; } }

@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(212,252,58,.5);} 50%{ box-shadow: 0 0 0 6px rgba(212,252,58,0);} }

/* ============================ trust band ============================ */
.trustband { max-width: 1060px; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.trustband .tb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--onyx); padding: 4px 12px; }
.trustband .tb svg { width: 18px; height: 18px; color: var(--onyx); }
.trustband .sep { width: 1px; height: 20px; background: var(--line); }
@media (max-width:680px){ .trustband .sep { display: none; } }

/* ============================ section heading ============================ */
.sec-head { text-align: center; max-width: 640px; margin: 56px auto 22px; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--onyx); font-weight: 800; letter-spacing: .03em; font-size: .82rem; text-transform: uppercase; }
.sec-head .kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.sec-head h2 { font-size: clamp(1.6rem,3.6vw,2.2rem); margin: 8px 0 8px; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* ============================ feature grid (pastel cards) ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s; }
.feature:hover { transform: translateY(-4px); }
.feature .ficon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; background: var(--onyx); color: var(--lime); }
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--onyx); }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.feature.tint-lavender { background: var(--lavender); border-color: transparent; }
.feature.tint-mint     { background: var(--mint); border-color: transparent; }
.feature.tint-coral    { background: var(--coral); border-color: transparent; }
.feature.tint-sand     { background: var(--sand); border-color: transparent; }
.feature.tint-sky      { background: var(--sky); border-color: transparent; }
.feature.tint-lime     { background: var(--lime); border-color: transparent; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; background: var(--onyx); color: var(--lime); font-weight: 800; font-size: 1.15rem; }
.step h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--onyx); }
.step p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ============================ card / forms ============================ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px clamp(20px,4vw,36px); margin: 22px 0; }
.card h2 { margin: 4px 0 16px; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; color: var(--onyx); }
.card h2::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--lime); }
.card h3 { margin: 24px 0 10px; font-size: 1.05rem; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: 6px; color: var(--ink-2); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
input, select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #a6a7a0; }
input:focus, select:focus { outline: none; border-color: var(--onyx); box-shadow: var(--ring); }
.filebox { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 36px; text-align: center; cursor: pointer; background: var(--cream); transition: border-color .2s, background .2s; }
.filebox:hover { border-color: var(--onyx); background: #eef0ea; }
.filebox.has-files { border-color: var(--onyx); background: #eef9cf; }
.filebox .fic { font-size: 2rem; }
.filebox input { width: auto; }
.filebox-text { color: var(--ink-2); font-weight: 600; }
.hint { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-weight: 500; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.consent input { width: auto; flex: none; margin-top: 3px; }
.consent a { color: var(--onyx); font-weight: 700; text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================ buttons ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 13px 26px; border: 1.5px solid var(--onyx); border-radius: 999px; background: #fff; color: var(--onyx); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 1.02rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); color: var(--onyx); border-color: var(--lime); }
.btn.primary:hover { background: var(--lime-dk); border-color: var(--lime-dk); }
.btn.big { padding: 15px 34px; font-size: 1.1rem; }
.btn.ghost { background: transparent; border-color: var(--onyx); color: var(--onyx); }
.btn.ghost:hover { background: var(--onyx); color: #fff; }
.btn.dark { background: var(--onyx); color: #fff; border-color: var(--onyx); }
.btn.dark:hover { background: var(--onyx-2); }

/* ============================ tables ============================ */
.data-table, .breakdown { width: 100%; border-collapse: collapse; margin-top: 12px; }
.data-table th, .data-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: right; font-size: .92rem; }
.data-table th { color: var(--muted); font-weight: 700; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: var(--cream); }
.data-table input { padding: 8px 10px; }
.breakdown td { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: left; font-variant-numeric: tabular-nums; font-weight: 700; }
.breakdown tr.strong td { font-weight: 800; }
.breakdown tr.result-row td { font-size: 1.2rem; font-weight: 800; border-top: 2px solid var(--onyx); border-bottom: none; padding-top: 14px; color: var(--onyx); }

/* ============================ result head ============================ */
.result-head { position: relative; text-align: center; border-radius: var(--radius); padding: 46px 30px; margin: 22px 0; overflow: hidden; box-shadow: var(--shadow); }
.result-head.positive { background: var(--lime); color: var(--onyx); }
.result-head.negative { background: var(--coral); color: var(--onyx); }
.result-head.neutral  { background: var(--lavender); color: var(--onyx); }
.result-label { margin: 0; opacity: .8; font-size: 1.08rem; font-weight: 700; }
.result-amount { margin: 8px 0; font-size: clamp(2.6rem,8vw,3.8rem); font-weight: 800; font-family: "Rubik"; letter-spacing: -.02em; }
.result-sub { margin: 0; opacity: .82; font-size: 1.05rem; font-weight: 600; }
.notes { margin: 18px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding-inline-start: 26px; margin: 8px 0; color: var(--ink-2); font-size: .94rem; }
.notes li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--onyx); font-weight: 800; }

/* ============================ stats / badges ============================ */
.stats { display: flex; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.stat { flex: 1; min-width: 160px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; text-align: center; }
.stat:first-child { background: var(--onyx); border-color: var(--onyx); }
.stat:first-child .stat-num { color: var(--lime); }
.stat:first-child span:last-child { color: #b9bab2; }
.stat-num { display: block; font-size: 1.9rem; font-weight: 800; font-family: "Rubik"; color: var(--onyx); }
.stat span:last-child { color: var(--muted); font-size: .9rem; }
.badge { background: var(--lime); color: var(--onyx); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 14px 0; }
.kv div span { display: block; color: var(--muted); font-size: .8rem; }
.kv div { font-weight: 600; }
.big-num { font-size: 1.6rem; font-weight: 800; font-family: "Rubik"; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.back { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.back:hover { color: var(--onyx); }

/* ============================ flash ============================ */
.flash { padding: 13px 18px; border-radius: var(--radius-sm); margin: 14px 0; font-weight: 600; }
.flash.error { background: #fdeceb; color: var(--neg); }
.flash.warn  { background: var(--sand); color: var(--warn); }
.flash.ok    { background: #eef9cf; color: var(--pos); }
.flash.info  { background: var(--sky); color: #185fa5; }
.note-info { display: flex; gap: 12px; align-items: flex-start; background: var(--sky); border: 1px solid #b8d6f2; color: #1c4e7a; border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0; font-size: .92rem; }
.note-info .ic { font-size: 1.2rem; line-height: 1.3; }
.note-info code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: .85em; }
.note-info .reason { color: #3a6a96; font-size: .85rem; }

/* ============================ questionnaire ============================ */
.q-section { margin-top: 18px; }
.q-section > .sec-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--onyx); margin: 18px 0 10px; font-size: 1.02rem; }
.q-section > .sec-title::before { content: ""; width: 22px; height: 4px; border-radius: 3px; background: var(--lime); }
.qcard { display: flex; align-items: center; gap: 12px; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin: 9px 0; background: #fff; transition: border-color .15s, background .15s, transform .08s; }
.qcard:hover { border-color: var(--line-2); }
.qcard:active { transform: scale(.995); }
.qcard input { display: none; }
.qcard .toggle { flex: none; width: 46px; height: 27px; border-radius: 999px; background: #dcdcd5; position: relative; transition: background .18s; }
.qcard .toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .18s; }
.qcard .q-text { flex: 1; font-weight: 600; font-size: .96rem; color: var(--ink); }
.qcard .q-on { display: none; font-weight: 800; color: var(--onyx); font-size: .82rem; }
.qcard.on { border-color: var(--onyx); background: #f6fbe3; }
.qcard.on .toggle { background: var(--onyx); }
.qcard.on .toggle::after { inset-inline-start: 22px; background: var(--lime); }
.qcard.on .q-on { display: inline; }
.q-counter { position: sticky; bottom: 14px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--onyx); border: 1px solid var(--onyx); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.q-counter .cnt { font-weight: 700; color: #fff; }
.q-counter .cnt b { color: var(--lime); font-size: 1.3rem; font-family: "Rubik"; }
.reason-list { list-style: none; padding: 0; margin: 10px 0; }
.reason-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.reason-list .rc { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--onyx); font-weight: 800; }
.reason-list .rt { font-weight: 700; color: var(--onyx); }
.reason-list .rr { color: var(--muted); font-size: .9rem; }
.doc-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.doc-list li { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 600; }
.doc-list li::before { content: "📎"; }
.doc-list li.base { background: #fff; }

/* ============================ footer ============================ */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 44px; }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 28px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .85rem; margin: 0; flex: 1; }
.foot-brand { display: flex; flex-direction: column; gap: 3px; }
.foot-brand .slogan { color: var(--onyx); font-weight: 700; font-size: .92rem; }

/* ============================ flow stepper ============================ */
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 26px auto 4px; flex-wrap: wrap; }
.flow .node { display: inline-flex; align-items: center; gap: 8px; }
.flow .bub { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: .9rem; }
.flow .lbl { color: var(--muted); font-weight: 600; font-size: .9rem; }
.flow .bar { width: 32px; height: 2px; background: var(--line); border-radius: 2px; }
.flow .node.done .bub { background: var(--onyx); border-color: var(--onyx); color: var(--lime); }
.flow .node.active .bub { background: var(--lime); border-color: var(--lime); color: var(--onyx); }
.flow .node.done .lbl, .flow .node.active .lbl { color: var(--onyx); }
.flow .node.active .bub { box-shadow: var(--ring); }

/* ============================ reveal ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } .hv-main,.hv-doc,.hv-shield{ animation: none !important; } }
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============================ mobile polish ============================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 620px) {
  .card { padding: 24px 16px; }
  .topbar { padding: 12px 14px; }
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: .9rem; }
  .nav-cta { padding: 9px 15px; }
  .data-table th, .data-table td { padding: 9px 7px; font-size: .86rem; white-space: nowrap; }
  .data-table input { padding: 7px 8px; min-width: 90px; }
  .hero h1 { font-size: 2rem; }
  .result-amount { font-size: 2.6rem; }
  .q-counter { flex-direction: column; align-items: stretch; text-align: center; }
  .q-counter .btn { width: 100%; }
}
@media (max-width: 600px) {
  /* בטלפון: לוגו + המבורגר; הניווט נפתח כתפריט */
  .nav-toggle { display: inline-flex; }
  .topbar nav {
    position: absolute; top: 100%; inset-inline-start: 12px; inset-inline-end: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-top: none;
    border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 8px 12px 14px;
    display: none;
  }
  .topbar.nav-open nav { display: flex; }
  .topbar nav a { display: block; padding: 13px 10px; border-radius: 11px; font-size: 1rem; white-space: normal; }
  .topbar nav a:hover { background: var(--cream); color: var(--onyx); }
  .nav-cta { text-align: center; margin-top: 4px; white-space: nowrap; }
}

/* ============================ accessibility ============================ */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--onyx); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
.qcard:focus-within, .btn:focus-visible {
  outline: 3px solid var(--onyx); outline-offset: 2px; border-radius: 6px;
}
.btn.primary:focus-visible { outline-color: var(--onyx); }

/* footer legal links */
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: .85rem; font-weight: 600; }
.foot-links a:hover { color: var(--onyx); text-decoration: underline; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--ink-2); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; }
.legal .ph { background: var(--sand); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.legal .draft-banner { background: var(--sand); border: 1px solid #eccf8a; color: #8a6300; border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; margin-bottom: 16px; }

/* בלוג */
.post-body h2 { font-size: 1.25rem; margin: 24px 0 8px; color: var(--onyx); }
.post-body p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.78; }
.post-body a { color: var(--onyx); font-weight: 700; text-decoration: underline; }

/* חתימה דיגיטלית */
.sig-pad { border: 2px dashed var(--line-2); border-radius: var(--radius-sm); background: #fff; touch-action: none; width: 100%; height: 180px; display: block; cursor: crosshair; }
.sig-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sig-clear { background: none; border: none; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: .9rem; }
.poa-text { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-size: .92rem; color: var(--ink-2); line-height: 1.7; max-height: 220px; overflow-y: auto; }
