@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"), url(/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
: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); }
footer .foot { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* 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; } }

/* upload page */
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 20px; border: 2px dashed var(--line-2); border-radius: 22px; background: var(--soft); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--ink); background: var(--yellow-soft); }
.drop svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 2; margin-bottom: 6px; }
.drop b { font: 700 22px var(--display); }
.drop span { color: var(--muted); font-size: 15px; }
.filenote { margin: 12px 0 0; font-size: 14px; color: var(--muted); min-height: 1px; }
.filenote:empty { display: none; }
.err { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: #fdecea; color: #7a1c12; font-size: 15px; }
.linkbtn { font: inherit; font-weight: 600; font-size: 16px; background: none; border: 0; padding: 14px 0 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.result { padding-top: 24px; }
.range { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 48px; }
.kpi { border-radius: var(--r-tile); background: var(--soft); padding: 26px; display: grid; gap: 6px; }
.kpi span { font-weight: 600; color: var(--muted); font-size: 15px; }
.kpi b { font: 800 56px/1 var(--display); letter-spacing: -0.04em; }
.kpi small { color: var(--ink-2); font-size: 15px; }
.kpi.dark { background: var(--ink); color: #fff; }
.kpi.dark span { color: var(--yellow); } .kpi.dark small { color: #c9cfd4; }
.sub { margin: 0 0 24px; font-size: 18px; color: var(--ink-2); max-width: 640px; }
.bars svg { width: 100%; height: auto; }
.bars text { font-family: var(--text); fill: var(--ink-2); }
.bars .t-ax { font-size: 14px; fill: var(--muted); } .bars .t-v { font-size: 14px; font-weight: 600; fill: var(--ink); } .bars .t-strong { font-size: 14px; font-weight: 600; fill: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
.toplist { list-style: none; padding: 0; margin: 0 0 18px; }
.toplist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toplist li span { color: var(--ink-2); }
.capbox { border-radius: var(--r-tile); background: var(--yellow-soft); padding: 26px; }
.capbox p { color: var(--ink-2); }
.caprow { display: flex; align-items: center; gap: 16px; margin: 8px 0 6px; }
.caprow input { flex: 1; accent-color: var(--ink); height: 32px; }
.caprow b { font: 800 30px var(--display); white-space: nowrap; }
.capbox .amt { margin: 8px 0; font: 800 34px var(--display); color: var(--ink); }
.steps { padding-left: 22px; color: var(--ink-2); display: grid; gap: 12px; }
.steps b { color: var(--ink); }

/* newsletter */
.nlbox { border-radius: var(--r-card); background: var(--ink); color: #fff; padding: 40px; }
.nlbox h2 { color: #fff; }
.nlbox p { color: #c9cfd4; max-width: 620px; }
.nlbox a { color: #fff; }
.nlbox form { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; max-width: 560px; }
.nlbox input[type=email] { flex: 1 1 260px; font: inherit; font-size: 17px; height: 56px; padding: 0 20px; border-radius: 28px; border: 0; color: var(--ink); }
.nlbox button { font: inherit; font-weight: 700; font-size: 17px; height: 56px; padding: 0 28px; border-radius: 28px; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; }
.nlbox button:disabled { opacity: .6; }
.nlbox .small { color: #9aa3ab; }
.nlmsg { font-weight: 600; color: var(--yellow) !important; min-height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.upl { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--soft); text-decoration: none; font-size: 15px; }
.upl b { font-weight: 700; }
@media (max-width: 720px) { .nlbox { padding: 26px 22px; } .kpi b { font-size: 44px; } }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .hero .intro .checks li { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .intro .checks li:nth-child(2) { animation-delay: .08s; } .hero .intro .checks li:nth-child(3) { animation-delay: .16s; }
  .hero .card { animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .bump { display: inline-block; animation: bump .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
  .chip { transition: transform .12s ease, background .15s, color .15s, border-color .15s; }
  .chip:active { transform: scale(.95); }
  .chips.open .chip:not(.on):not(.add) { animation: pop .25s ease both; }
  @keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
  .cta, .nlbox button, .upl, .tile { transition: transform .18s ease, box-shadow .18s ease, background .15s; }
  .cta:hover, .nlbox button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(20,24,28,.45); }
  .upl:hover { transform: translateY(-2px); }
  .tile:hover { transform: translateY(-4px); }
  .tips .tile { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .tips .tile:nth-child(2) { animation-delay: .07s; } .tips .tile:nth-child(3) { animation-delay: .14s; }
  .hint:not(:empty) { animation: rise .4s ease both; }
  .curve.draw .stroke { transition: stroke-dashoffset 2.2s cubic-bezier(.45,.05,.25,1); }
  .curve.draw .area, .curve.draw .pk, .curve.draw .lab { opacity: 0; transition: opacity .8s ease; }
  .curve.draw.in .area { opacity: 1; transition-delay: .9s; }
  .curve.draw.in .pk, .curve.draw.in .lab { opacity: 1; transition-delay: 1.6s; }
  .curve .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s 2.2s ease-out infinite; opacity: 0; }
  @keyframes pulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
  .bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .bars .t-v { animation: fadein .4s ease both; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .drop { transition: border-color .15s, background .15s, transform .2s ease; }
  .drop:hover, .drop.over { transform: translateY(-2px); }
  .drop.over svg { animation: nudge .8s ease infinite; }
  @keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  .result:not([hidden]) .kpi { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .result:not([hidden]) .kpi + .kpi { animation-delay: .08s; }
  .mark svg { transition: transform .3s ease; } .brand:hover .mark svg { transform: rotate(-12deg) scale(1.1); }
}

/* articles */
.art { max-width: 780px; margin: 0 auto; padding: 24px 40px 72px; }
.art h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.02; margin-bottom: 18px; }
.art h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 48px; }
.art h3 { font-size: 21px; margin-top: 28px; }
.art p, .art li { color: var(--ink-2); }
.art .lead { font-size: 20px; max-width: none; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.tbl { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 14px; color: var(--muted); font-weight: 600; }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; }
.tblwrap { overflow-x: auto; }
.box { border-radius: var(--r-tile); background: var(--soft); padding: 22px 24px; margin: 28px 0; }
.box.y { background: var(--yellow-soft); }
.box p:last-child { margin-bottom: 0; }
.ctabox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-radius: var(--r-tile); background: var(--ink); color: #fff; padding: 24px 26px; margin: 36px 0; }
.ctabox p { color: #c9cfd4; margin: 4px 0 0; }
.ctabox b { font: 700 22px var(--display); color: #fff; }
.ctabox .cta { padding: 0 26px; flex: none; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.related a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--soft); text-decoration: none; font-weight: 600; }
.related a:hover { background: var(--yellow-soft); }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0; }
.hub a { display: block; height: 100%; padding: 22px; border-radius: var(--r-tile); background: var(--soft); text-decoration: none; }
.hub a b { display: block; font: 700 21px var(--display); margin-bottom: 6px; }
.hub a span { color: var(--ink-2); font-size: 15px; }
.hub a:hover { background: var(--yellow-soft); }
@media (max-width: 720px) { .art { padding-left: 16px; padding-right: 16px; } .tbl { font-size: 15px; } }
