:root {
  --ink: #14181c; --ink-2: #3f4750; --muted: #5d6670; --line: #e6e9ec; --line-2: #d5dade;
  --paper: #ffffff; --soft: #f6f7f8; --chip: #f2f4f6; --yellow: #ffd21f; --yellow-soft: #fff6cc; --yellow-2: #ffe98a;
  --focus: #1f5fd1; --r-card: 28px; --r-tile: 24px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); font-variant-numeric: tabular-nums; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { display: block; }

header.top { max-width: 1160px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.mark svg { width: 16px; height: 16px; fill: var(--yellow); }
.stand { font-size: 15px; color: var(--muted); }

h1 { margin: 0 0 20px; font: 800 clamp(44px, 6.4vw, 76px)/0.98 var(--display); letter-spacing: -0.035em; }
h2 { margin: 0 0 12px; font: 800 clamp(32px, 4vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; }
h3 { margin: 0 0 10px; font: 700 26px/1.15 var(--display); letter-spacing: -0.01em; }

.hero { max-width: 1160px; margin: 0 auto; padding: 40px 40px 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.intro { flex: 1 1 420px; min-width: 0; padding-top: 24px; }
.lead { margin: 0 0 28px; font-size: 20px; color: var(--ink-2); max-width: 480px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181c' stroke-width='2.2'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }

.card { flex: 1 1 480px; min-width: 0; background: var(--paper); border-radius: var(--r-card); padding: 32px; box-shadow: 0 2px 4px rgba(20,24,28,.06), 0 24px 60px -20px rgba(20,24,28,.28); }
.q { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: inherit; font-size: 16px; font-weight: 600; display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.chips.open .chip, .chip.on, .chip.add { display: inline-flex; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on::after { content: ""; width: 14px; height: 14px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.chip.add { border-style: dashed; border-color: #b9c0c7; color: var(--ink-2); }
.chip.add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.chips.open .chip.add svg { transform: rotate(45deg); }

.wbrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sel select { font: inherit; font-size: 16px; font-weight: 600; height: 44px; padding: 0 38px 0 14px; border: 0; border-radius: 22px; background: var(--chip) no-repeat right 14px center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181c' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); color: var(--ink); appearance: none; cursor: pointer; }
.bignum { font: 800 64px/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.bignum small { font-size: 32px; letter-spacing: 0; margin-left: 6px; }

.switch { font: inherit; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; min-height: 60px; }
.knob { flex: none; width: 52px; height: 30px; border-radius: 15px; background: #c9cfd4; position: relative; transition: background .15s; }
.knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s, background .15s; }
.switch[aria-pressed="true"] .knob { background: var(--ink); }
.switch[aria-pressed="true"] .knob::after { left: 26px; background: var(--yellow); }

.lines { display: grid; gap: 16px; padding: 22px 0 6px; }
.line { display: flex; align-items: center; gap: 14px; }
.line > span:nth-child(2) { flex: 1; color: var(--ink-2); }
.line b { font-weight: 700; white-space: nowrap; }
.ic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; }
.total span { font-size: 18px; font-weight: 600; }
.total b { font: 800 64px/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.hint { margin: 0 0 18px; background: var(--yellow-soft); border-radius: 16px; padding: 14px 16px; font-size: 16px; }
.hint:empty { display: none; }
.cta { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 28px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.cta:hover { background: #ffc800; }

.more { margin-top: 18px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.fields { display: grid; gap: 14px; margin-top: 14px; }
.fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fields input, .fields select { font: inherit; font-size: 16px; font-weight: 500; height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); }

.band { background: var(--soft); }
.inner { max-width: 1160px; margin: 0 auto; padding: 72px 40px; }
.band .sub { margin: 0 0 36px; font-size: 19px; color: var(--ink-2); max-width: 640px; }
.curve { width: 100%; height: auto; }
.curve text { font-family: var(--text); fill: var(--ink-2); }
.curve .t { font-size: 15px; } .curve .t-ax { font-size: 14px; fill: var(--muted); }
.curve .t-strong { font-size: 15px; font-weight: 600; fill: var(--ink); }
.curve .t-big { font: 800 22px var(--display); fill: var(--ink); }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; font-size: 16px; color: var(--ink-2); }
.facts b { display: block; font: 700 20px var(--display); color: var(--ink); margin-bottom: 4px; }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.tile { border-radius: var(--r-tile); background: var(--soft); padding: 26px; display: flex; flex-direction: column; }
.tile .k { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tile p { margin: 0 0 18px; color: var(--ink-2); }
.tile .amt { margin: auto 0 0; font: 800 34px var(--display); color: var(--ink); }
.tile.best { background: var(--ink); color: #fff; }
.tile.best .k, .tile.best .amt { color: var(--yellow); }
.tile.best p { color: #c9cfd4; }
.none, .extra { max-width: 760px; color: var(--ink-2); }
.extra { margin: 28px 0 0; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; padding-top: 24px; }
.two p { color: var(--ink-2); }
.draft { background: var(--yellow-soft); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; }
.src { font-size: 14px; color: var(--muted); margin-top: 20px; }
.src a { color: var(--muted); }

footer { max-width: 1160px; margin: 24px auto 0; padding: 24px 40px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-left: 16px; }

/* simple pages */
.page { max-width: 720px; margin: 0 auto; padding: 24px 40px 64px; }
.page p { color: var(--ink-2); }

@media (max-width: 720px) {
  header.top, .hero, .inner, footer, .page { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 8px; gap: 28px; }
  .intro { padding-top: 0; }
  .card { padding: 22px; border-radius: 22px; }
  .bignum, .total b { font-size: 48px; }
  .bignum small { font-size: 24px; }
  .stand { width: 100%; }
  .inner { padding-top: 52px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { .knob, .knob::after { transition: none; } }
