/* KumisID landing (kumis.id). Static page; fonts are self-hosted (Plus Jakarta Sans for text, Caveat for the
   hand-written accents). Brand colours come from the logo: orange accent, dark ink. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/plus-jakarta-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+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(../fonts/caveat-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(../fonts/caveat-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+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #e85428;
  --brand-dark: #c9451e;
  --brand-soft: #fdeee8;
  --ink: #1c1f26;
  --ink-2: #262a36;
  --muted: #5d6370;
  --line: #e8e9ee;
  --ground: #f7f8fa;
  --surface: #ffffff;
  --marker: #ffd166;
  --teal: #14a38b;
  --teal-soft: #e6f6f2;
  --blue: #3d6be5;
  --amber: #f5b83d;
  --good: #067647;
  --good-soft: #ecfdf3;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
:where(a, button, summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; border-radius: 8px; padding: 8px 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }

/* Hand-written accents */
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::before { content: ''; position: absolute; z-index: -1; left: -4px; right: -6px; bottom: .08em; height: .42em; border-radius: 4px 10px 6px 12px; background: var(--marker); transform: rotate(-1.2deg); }
.ink-teal { color: var(--teal); }
.ink-brand { color: var(--brand); }
.swoosh { position: relative; white-space: nowrap; }
.swoosh svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .32em; color: var(--brand); }
.doodle { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid transparent;
  border-radius: 10px; padding: 0 22px; font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 8px 20px -10px rgba(232, 84, 40, .7); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: #d5d7de; background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: #b9bcc6; background: var(--ground); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 8px; padding: 8px 12px; background: none; color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--ground); }
.nav-trigger svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.bar-end { display: flex; align-items: center; gap: 8px; }
.bar-end .link { border-radius: 8px; padding: 8px 12px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.bar-end .link:hover { background: var(--ground); }
.menu-btn { display: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* Mega menu: business types, like an industry menu */
.mega { position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 40px -24px rgba(16, 24, 40, .25); }
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 28px; padding-bottom: 24px; }
.mega h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; color: var(--c, var(--ink)); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mega ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mega li { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.mega li.more { color: var(--ink); font-weight: 500; }
.mega-foot { border-top: 1px solid var(--line); padding: 14px 0; text-align: center; }
.mega-foot a { font-weight: 500; text-decoration: none; }
.mega-foot a:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.badge-on { background: var(--good-soft); color: var(--good); }
.badge-soon { background: var(--ground); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; background: var(--surface); }
.drawer[hidden] { display: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.drawer nav { display: grid; padding: 12px 16px; }
.drawer nav > a, .drawer summary { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 4px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; list-style: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details ul { margin: 0; padding: 8px 4px 16px; list-style: none; }
.drawer details li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--muted); }
.drawer-actions { display: grid; gap: 10px; margin-top: auto; padding: 16px; }
body.is-locked { overflow: hidden; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 640px; background: radial-gradient(60% 60% at 50% 0%, var(--brand-soft), transparent 70%); }
.hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 .hand { font-size: 1.22em; line-height: 1; }
.hero .lead { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 19px); }
.hero-actions { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { position: absolute; top: 100%; left: calc(100% + 8px); display: flex; align-items: flex-start; gap: 4px; width: 210px; margin-top: -6px; color: var(--teal); font: 700 22px/1.05 var(--hand); text-align: left; transform: rotate(-3deg); }
.hero-note svg { flex: none; width: 54px; height: 44px; margin-top: -14px; transform: scaleX(-1) rotate(-12deg); }
.hero-small { margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero-small b { color: var(--ink); font-weight: 600; }
.addr { border-radius: 6px; padding: 2px 8px; background: var(--brand-soft); color: var(--brand-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; white-space: nowrap; }

/* App grid */
.apps { padding: 40px 0 24px; }
.app-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; max-width: 920px; margin: 0 auto; padding: 0; list-style: none; }
.app { display: grid; justify-items: center; gap: 10px; text-align: center; }
.app-tile { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 24px -14px rgba(16, 24, 40, .35), inset 0 0 0 1px rgba(16, 24, 40, .05); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.app-tile svg { width: 48px; height: 48px; }
.app:hover .app-tile { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 30px -16px rgba(16, 24, 40, .4), inset 0 0 0 1px rgba(16, 24, 40, .05); }
.app b { font-size: 14.5px; font-weight: 600; }
.app small { display: block; margin-top: -8px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.apps-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; color: var(--muted); font: 700 24px/1 var(--hand); }
.apps-more svg { width: 40px; height: 16px; color: var(--brand); }

/* Sections */
section { padding: 88px 0; }
.band { background: var(--ground); }
.head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; text-wrap: balance; }
.head h2 .hand { font-size: 1.3em; line-height: 1; }
.head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }
.title-hand { font: 700 clamp(44px, 6vw, 64px)/1.05 var(--hand); letter-spacing: 0; }

/* Product showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.points .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.points .ic svg { width: 22px; height: 22px; }
.points b { display: block; font-size: 17px; font-weight: 600; }
.points p { color: var(--muted); font-size: 15.5px; }

/* App window mock (illustration, not data) */
.mock { position: relative; }
.win { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 40px 60px -30px rgba(16, 24, 40, .35); }
.win-bar { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 10px 14px; background: #fbfbfc; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e5ea; }
.win-bar span { margin-left: 10px; border-radius: 6px; padding: 3px 10px; background: var(--ground); color: var(--muted); font-size: 12px; }
.win-body { display: grid; grid-template-columns: 50px minmax(0, 1fr) 200px; min-height: 330px; font-size: 12.5px; }
.win-side { display: grid; align-content: start; gap: 10px; justify-items: center; border-right: 1px solid var(--line); padding: 14px 0; background: #fbfbfc; }
.win-side span { width: 26px; height: 26px; border-radius: 8px; background: #eceef2; }
.win-side span.on { background: var(--brand); }
.win-main { padding: 14px; }
.win-search { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: #9aa0ab; }
.win-search svg { width: 14px; height: 14px; }
.win-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.win-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.win-item b { display: block; overflow: hidden; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.win-item small { color: var(--muted); font-size: 11.5px; }
.win-item em { display: block; margin-top: 6px; color: var(--ink); font-size: 12.5px; font-style: normal; font-weight: 600; }
.win-item.sel { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.win-cart { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding: 14px; background: #fcfcfd; }
.win-cart h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.win-line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.win-line span { color: var(--muted); }
.win-total { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 0; font-size: 14px; font-weight: 700; }
.win-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.win-pay span { border-radius: 8px; padding: 8px; text-align: center; font-weight: 600; }
.win-pay .cash { background: var(--brand); color: #fff; }
.win-pay .tempo { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px 10px 10px; background: var(--surface); font-size: 13px; box-shadow: 0 16px 36px -14px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .06); }
.float b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.float small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.float .fi { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; }
.float .fi svg { width: 18px; height: 18px; }
.float-stock { left: -20px; bottom: -26px; }
.float-stock .fi { background: #fff4e0; color: #b54708; }
.float-debt { right: 20px; top: -24px; }
.float-debt .fi { background: var(--teal-soft); color: var(--teal); }

/* Business types */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.type { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.type::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.type-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.type h3 { font-size: 21px; }
.type > p { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { border-radius: 999px; padding: 4px 11px; background: var(--ground); font-size: 13.5px; }
.chips li.more { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.type.is-soon { background: #fcfcfd; }
.type.is-soon .chips li { color: var(--muted); }

/* Why KumisID */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.pillar:hover { border-color: #d5d7de; transform: translateY(-2px); }
.pillar .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: var(--c-soft, var(--brand-soft)); color: var(--c, var(--brand)); }
.pillar .ic svg { width: 23px; height: 23px; }
.pillar h3 { margin-bottom: 6px; font-size: 18px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Before / after */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; gap: 0; }
.cmp { border-radius: 18px; padding: 28px; }
.cmp h3 { margin-bottom: 16px; font-size: 18px; }
.cmp-old { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cmp-new { background: var(--ink-2); color: #fff; }
.cmp ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cmp li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; font-size: 15.5px; }
.cmp li small { display: block; color: var(--muted); font-size: 13.5px; }
.cmp-new li small { color: rgba(255, 255, 255, .62); }
.cmp .tool { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ground); color: var(--muted); }
.cmp-new .tool { background: rgba(255, 255, 255, .08); color: #ffb59f; }
.cmp .tool svg { width: 19px; height: 19px; }
.cmp-arrow { display: grid; place-items: center; color: var(--brand); }
.cmp-arrow svg { width: 70px; height: 50px; }
.cmp-note { margin-top: 26px; color: var(--muted); font-size: 15px; text-align: center; }
.cmp-note .hand { color: var(--ink); font-size: 26px; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed #e1d6d2; }
.step { position: relative; text-align: center; }
.step-num { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(16, 24, 40, .35); color: var(--brand); font: 700 38px/1 var(--hand); }
.step h3 { margin-bottom: 6px; font-size: 19px; }
.step p { max-width: 32ch; margin: 0 auto; color: var(--muted); font-size: 15.5px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px -24px rgba(16, 24, 40, .4); }
.plan::before { content: ''; height: 5px; background: var(--c); }
.plan-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.plan h3 { font-size: 21px; }
.plan-tag { min-height: 3.2em; margin-top: 2px; color: var(--muted); font-size: 15px; }
.plan-price { margin: 14px 0 20px; color: var(--c); font: 700 38px/1.05 var(--hand); }
.plan-price small { display: block; margin-top: 6px; color: var(--muted); font: 400 13.5px/1.45 var(--sans); }
.plan ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 20px; height: 20px; color: var(--c); }
.plan .btn { margin-top: auto; }
.plans-note { max-width: 720px; margin: 28px auto 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.plans-note b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { display: grid; max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { background: #fbfbfc; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq details > div p + p { margin-top: 8px; }

/* Closing call to action */
.closing { overflow: hidden; overflow: clip; padding: 110px 0 100px; text-align: center; }
.closing-title { position: relative; display: inline-block; font: 700 clamp(52px, 8vw, 92px)/1 var(--hand); letter-spacing: 0; }
.closing-title .line2 { display: block; }
.closing-title .burst { position: absolute; width: 120px; height: 110px; color: var(--amber); }
.closing-title .burst-l { top: -56px; left: -70px; }
.closing-title .burst-r { top: -30px; right: -132px; transform: scaleX(-1); }
.closing .btn { margin-top: 36px; }
.closing-arrow { width: 26px; height: 34px; margin: 10px auto 4px; color: var(--teal); }
.closing small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* Footer */
.site-footer { background: var(--ink-2); color: rgba(255, 255, 255, .72); font-size: 15px; }
.foot-top { display: grid; justify-items: center; padding: 56px 0 8px; }
.foot-logo { border-radius: 12px; padding: 8px 14px; background: #fff; }
.foot-logo img { width: auto; height: 34px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 32px; padding: 40px 0 48px; }
.foot-grid h3 { margin-bottom: 12px; color: #fff; font-size: 17px; }
.foot-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-grid a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-about { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 32px; }
.foot-about p + p { margin-top: 12px; }
.foot-about b { color: #fff; font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; background: rgba(0, 0, 0, .14); font-size: 13.5px; text-align: center; }

/* Reveal on scroll (only when JavaScript runs; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .nav { display: none; }
  .bar-end .link { display: none; }
  .menu-btn { display: grid; }
  .bar { justify-content: space-between; }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase .mock { max-width: 720px; margin: 0 auto; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding: 24px 0 0; }
  .hero-note { position: static; justify-content: center; width: auto; margin: 8px auto 0; transform: rotate(-2deg); }
  .hero-actions { flex-direction: column; }
  .hero-note svg { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .bar { height: 64px; }
  .bar-end .btn { display: none; }
  .logo img { height: 30px; }
  .hero { padding: 44px 0 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { display: flex; width: 100%; }
  section { padding: 64px 0; }
  .head { margin-bottom: 32px; }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .app-tile { width: 72px; height: 72px; border-radius: 16px; }
  .app-tile svg { width: 42px; height: 42px; }
  .win-body { grid-template-columns: 40px 1fr; min-height: 0; }
  .win-cart { display: none; }
  .win-side span { width: 20px; height: 20px; }
  .float-stock { left: 8px; bottom: -26px; }
  .float-debt { right: 8px; top: -22px; }
  .types, .pillars, .plans { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; gap: 8px; }
  .cmp-arrow svg { transform: rotate(90deg); width: 52px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .closing { padding: 80px 0 72px; }
  .closing-title .burst { width: 76px; height: 70px; }
  .closing-title { font-size: clamp(44px, 12.5vw, 60px); }
  .closing-title .burst-l { top: -58px; left: -6px; }
  .closing-title .burst-r { top: -58px; right: -6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Sub-pages: pricing and terms ---------- */
.plans-more { margin-top: 14px; text-align: center; }
.plans-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.plans-more a:hover { text-decoration: underline; }
.plans-more svg { width: 18px; height: 18px; }

.page-hero { position: relative; padding: 64px 0 40px; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 420px; background: radial-gradient(60% 70% at 50% 0%, var(--brand-soft), transparent 70%); }
.page-hero h1 { max-width: 860px; margin: 0 auto; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.page-hero h1 .hand { font-size: 1.2em; line-height: 1; }
.page-hero .lead { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 18px; }
.crumbs { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Comparison table */
.compare-table { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 20px; border-top: 1px solid var(--line); text-align: center; }
.compare-table thead th { border-top: 0; background: #fbfbfc; font-size: 15px; font-weight: 600; }
.compare-table thead th span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.compare-table tbody th { color: var(--ink); font-weight: 500; text-align: left; }
.compare-table td { color: var(--muted); }
.compare-table td svg { width: 20px; height: 20px; margin: 0 auto; color: var(--good); }
.compare-table .no { color: #b9bcc6; }
.compare-table .group th { padding-top: 22px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Leak calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 40px; }
.calc-form { display: grid; gap: 18px; border-radius: 18px; padding: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.calc-form h3 { font-size: 18px; }
.calc-group { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.calc-group:first-of-type { border-top: 0; padding-top: 0; }
.calc-group-title { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; }
.calc-group-title .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-soft, var(--brand-soft)); color: var(--c, var(--brand)); }
.calc-group-title .ic svg { width: 17px; height: 17px; }
.calc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.input { display: flex; align-items: stretch; overflow: hidden; border: 1px solid #d5d7de; border-radius: 10px; background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input span { display: grid; place-items: center; padding: 0 10px; background: var(--ground); color: var(--muted); font-size: 13.5px; }
.input input { width: 100%; min-width: 0; min-height: 44px; border: 0; padding: 0 12px; background: none; color: var(--ink); font: 500 15.5px var(--sans); font-variant-numeric: tabular-nums; }
.input input:focus { outline: none; }
.receipt { position: sticky; top: 96px; border-radius: 18px; padding: 26px 26px 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 24px 48px -28px rgba(16, 24, 40, .35), inset 0 0 0 1px var(--line); }
.receipt h3 { font-size: 17px; }
.receipt > p { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.receipt dl { margin: 16px 0 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 9px 0; font-size: 14.5px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .total { border-bottom: 0; padding-top: 14px; font-size: 15.5px; }
.receipt .total dt, .receipt .total dd { color: var(--ink); font-weight: 700; }
.leak { margin: 18px 0 4px; text-align: center; }
.leak small { display: block; color: var(--muted); font: 700 24px/1.1 var(--hand); }
.leak strong { display: inline-block; margin-top: 4px; font: 700 clamp(34px, 4.6vw, 46px)/1.05 var(--hand); letter-spacing: 0; }
.leak strong .mark::before { background: color-mix(in srgb, var(--marker) 85%, #fff); }
.leak strong span.per { color: var(--muted); font-size: .6em; }
.receipt .disclaimer { margin-top: 14px; border-radius: 10px; padding: 10px 12px; background: var(--ground); color: var(--muted); font-size: 13px; }
.receipt .btn { width: 100%; margin-top: 16px; }

/* Terms */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 56px; padding-top: 8px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; border-radius: 8px; padding: 5px 8px; color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(toc) '.'; min-width: 1.4em; color: #a0a4ae; }
.toc a:hover { background: var(--ground); color: var(--ink); }
.doc { max-width: 760px; font-size: 16px; }
.doc section { padding: 0; scroll-margin-top: 96px; }
.doc section + section { margin-top: 36px; }
.doc h2 { margin-bottom: 12px; font-size: 22px; }
.doc p, .doc li { color: #3a3f4b; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 22px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--brand-dark); }
.draft { display: flex; gap: 12px; margin-bottom: 32px; border: 1px solid color-mix(in srgb, #b54708 28%, transparent); border-radius: 12px; padding: 14px 16px; background: #fffaeb; color: #7a2e0e; font-size: 15px; }
.draft svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #b54708; }
.fill { border-radius: 5px; padding: 1px 6px; background: #fff1c2; color: #7a2e0e; font-weight: 500; box-shadow: inset 0 0 0 1px #f4d47a; }
.meta-line { margin-bottom: 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; }
  .receipt { position: static; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-hero { padding: 40px 0 24px; }
  .calc-form { padding: 20px; }
  .calc-row, .calc-row.three { grid-template-columns: 1fr; }
  .receipt { padding: 22px 18px 18px; }
  .toc ol { grid-template-columns: 1fr; }
  .doc-layout { padding-bottom: 64px; }
}
.tight-top { padding-top: 8px; }
.nav > a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
