/* site.css - the public pages (home, about, contact, privacy, terms, 404). Loaded after styles.css, so colours,
   dark mode, buttons and the logo come from the app and both always match. */

/* only one language shows (see site.js) */
html:not([data-lang="id"]) [data-l="id"], html[data-lang="id"] [data-l="en"] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { font-size: 1rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.site main { flex: 1; }
.site a { color: var(--accent); }
.site a:focus-visible, .site summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink) !important; text-decoration: none; font-weight: 650; }
.skip-link:focus { top: 12px; }

/* link styled as a button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: filter .15s, background-color .15s, transform .12s; }
.site a.btn.primary { color: var(--accent-ink); }
.site a.btn.ghost { color: var(--text); }
.btn.ghost { border-color: var(--border); }
.btn:active { transform: scale(.98); }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }

/* ---------- header & nav */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.site .brand { color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 9px; border-radius: 10px; white-space: nowrap; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* Features dropdown: opens when pointed at (or focused with the keyboard), and with the ▾ arrow on phones */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap; padding: 8px 2px 8px 9px; border-radius: 10px 0 0 10px; }
.nav-drop-toggle { width: 22px; height: 37px; padding: 0; background: transparent; border: 0; border-radius: 0 10px 10px 0; display: grid; place-items: center; color: var(--muted); }
.nav-drop-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-drop:hover > a, .nav-drop:hover .nav-drop-toggle, .nav-drop.open > a, .nav-drop.open .nav-drop-toggle { color: var(--text); background: var(--surface-2); }
.nav-drop.open .nav-drop-toggle::before { transform: translateY(2px) rotate(-135deg); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--pop-shadow);
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* bridge so the pointer can reach the list */
.nav-drop.open .nav-drop-menu { display: block; }
@media (hover: hover) and (min-width: 1181px) {
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
  .nav-drop:hover .nav-drop-toggle::before, .nav-drop:focus-within .nav-drop-toggle::before { transform: translateY(2px) rotate(-135deg); }
  .nav-drop-menu { top: calc(100% + 8px); }
}
.nav-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .93rem; white-space: nowrap; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--surface-2); color: var(--accent); }
.nav-drop-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: .95rem; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

/* the card a dropdown item jumped to lights up for a moment */
.feature:target, .steps li:target, .checks li:target, .faq details:target,
.feature.flash, .steps li.flash, .checks li.flash, .faq details.flash { animation: card-flash 1.6s ease-out; }
@keyframes card-flash { 0%, 40% { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .feature:target, .steps li:target, .checks li:target, .faq details:target, .feature.flash, .steps li.flash, .checks li.flash, .faq details.flash { animation: none; border-color: var(--accent); } }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.lang-switch button { padding: 4px 9px; font-size: .78rem; font-weight: 650; border-radius: 7px; background: transparent; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 0; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 12px; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s, background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--pop-shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav-drop { flex-wrap: wrap; }
  .nav-drop > a { flex: 1; padding: 12px; font-size: 1rem; }
  .nav-drop-toggle { width: 48px; height: 46px; }
  .nav-drop-menu { position: static; flex-basis: 100%; min-width: 0; margin: 2px 0 6px; padding: 4px 0 4px 12px; border: 0; box-shadow: none; background: transparent; }
  .nav-drop-menu::before { display: none; }
  .nav-actions { margin: 10px 0 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
  .nav-actions .lang-switch { order: -1; width: 100%; justify-content: center; }
  .nav-actions .lang-switch button { flex: 1; padding: 7px; }
}

/* ---------- hero */
.site-hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
/* the text sits above the live preview; only the text itself catches the pointer, so the preview can be pointed at around it */
.site-hero .wrap { position: relative; z-index: 1; display: grid; align-items: center; min-height: 560px; pointer-events: none; }
.hero-copy { max-width: min(500px, 40vw); pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.site-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 780; }
.site-hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.trust-row li::before { content: "✓"; color: var(--pos); font-weight: 700; margin-right: 6px; }

/* the live preview behind the headline: a drawn demo of the ledger (HTML and CSS, no picture to load), fading into
   the page. live-preview.js makes it move. The headline's own column stays on top, so its buttons always work. */
.lp { position: absolute; top: 14px; right: 0; width: min(900px, 60vw); z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%), linear-gradient(180deg, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%), linear-gradient(180deg, #000 74%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.lp-tilt { --rx: 0; --ry: 0; --drift: 0px; position: relative; padding: 26px 26px 60px; transform-origin: 60% 40%;
  transform: perspective(1500px) translateY(var(--drift)) rotateY(calc(-9deg + var(--ry) * 1deg)) rotateX(calc(4deg + var(--rx) * 1deg)); }
.lp-window { background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); border-radius: 22px; padding: 16px; box-shadow: var(--shadow), var(--pop-shadow); display: grid; gap: 12px; font-size: .82rem; }
.lp-bar { display: flex; align-items: center; gap: 8px; }
.lp-bar .logo { --s: 20px; }
.lp-period { margin-left: 12px; padding: 3px 12px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: .76rem; }
.lp-tag { margin-left: auto; padding: 2px 10px; border-radius: 99px; color: var(--muted); border: 1px solid var(--border); font-size: .7rem; font-weight: 600; }
.lp-summary { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 8px; align-items: center; padding: 14px; border-radius: 16px; background: var(--hero-bg); border: 1px solid var(--hero-border); }
.lp-summary small, .lp h3 { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lp-balance { color: var(--hero-ink); }
.lp-balance small { color: var(--hero-muted); }
.lp-balance b { display: block; font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-tile { padding: 9px 10px; border-radius: 11px; min-width: 0; transition: transform .15s; }
.lp-tile small { color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tile b { display: block; font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-t1 { background: linear-gradient(var(--tile-in), var(--tile-in)), var(--surface-2); }
.lp-t2 { background: linear-gradient(var(--tile-out), var(--tile-out)), var(--surface-2); }
.lp-t3 { background: linear-gradient(var(--tile-net), var(--tile-net)), var(--surface-2); }
.lp-in { color: var(--pos); }
.lp-cards { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.lp-card { position: relative; padding: 13px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); transition: border-color .15s; }
.lp-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lp h3 { margin: 0 0 10px; color: var(--muted); }
.lp-list { grid-column: 1 / -1; }
.lp-months { display: flex; align-items: stretch; gap: 3px; height: 138px; }
.lp-month { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 4px 3px 2px; border-radius: 8px; cursor: default; transition: background-color .15s; }
.lp-month:hover, .lp-month.now { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lp-month i { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.lp-month i::before, .lp-month i::after { content: ""; width: 42%; border-radius: 4px 4px 0 0; transition: height .5s cubic-bezier(.2, .8, .2, 1); transform-origin: bottom; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.lp-month i::before { height: var(--a); background: var(--bar-in); }
.lp-month i::after { height: var(--b); background: var(--bar-out); }
/* without live-preview.js the bars still have a height */
.lp-month:nth-child(1) { --a: 69%; --b: 50%; }
.lp-month:nth-child(2) { --a: 69%; --b: 49%; }
.lp-month:nth-child(3) { --a: 69%; --b: 51%; }
.lp-month:nth-child(4) { --a: 73%; --b: 52%; }
.lp-month:nth-child(5) { --a: 73%; --b: 51%; }
.lp-month:nth-child(6) { --a: 89%; --b: 62%; }
.lp-month small { font-size: .66rem; color: var(--muted); text-align: center; }
.lp-tip { position: absolute; top: 9px; right: 12px; z-index: 2; padding: 5px 9px; border-radius: 9px; background: var(--text); color: var(--bg); font-size: .68rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.lp-tip small { color: inherit; font-size: inherit; font-weight: 700; }
.lp-budget { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; font-size: .78rem; transition: background-color .15s; }
.lp-budget:hover { background: var(--surface-2); }
.lp-budget b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-budget u { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.lp-budget i { display: block; height: 100%; width: 50%; border-radius: 3px; background: var(--bar-in); transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .3s; }
.lp-budget[data-budget="groceries"] i { width: 59%; }
.lp-budget[data-budget="dining"] i { width: 52%; }
.lp-budget[data-budget="transport"] i { width: 60%; }
.lp-budget.near i { background: var(--warn); }
.lp-list ul { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; transition: background-color .15s; }
.lp-list li:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.lp-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); }
.lp-new { animation: lp-row-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-row-in { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--accent) 18%, transparent); } }
.lp-toast { position: absolute; right: 44px; bottom: 34px; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--pop-shadow); font-size: .78rem; opacity: 0; pointer-events: none; }
.lp-toast.show { animation: lp-toast-in 2.6s ease-out both; }
@keyframes lp-toast-in { 0% { opacity: 0; transform: translateY(10px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lp-toast .ok { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .lp-tilt { transform: none; } }
@media print { .lp { display: none; } }

/* ---------- sections */
.section { padding: 72px 0; }
.section.alt { background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 12px; font-weight: 740; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-size: 1.25rem; background: color-mix(in srgb, var(--accent) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: var(--accent-ink); font-weight: 750; margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 14px; font-weight: 740; }
.split > div > p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.checks li > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 1.15rem; }
.checks strong { display: block; }
.checks li p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* pointing at a card, and cards fading in as they scroll into view (site.js adds .reveal) */
.steps li, .checks li, .faq details, .contact-tip { transition: transform .2s, border-color .2s, box-shadow .2s; }
@media (hover: hover) {
  .feature:hover, .steps li:hover, .checks li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
  .faq details:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
  .btn:hover { transform: translateY(-1px); }
  .site a.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--surface-2); }
}
/* written twice on purpose: it must beat the hover timing above on every kind of card */
.reveal.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.reveal.shown { opacity: 1; transform: none; }
@media print { .reveal.reveal { opacity: 1; transform: none; } }


/* ---------- text pages (about, privacy, terms) */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 12px; font-weight: 770; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 40em; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.3rem; letter-spacing: -.015em; margin: 40px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose .note { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.toc { padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.values div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.values strong { display: block; margin: 6px 0 4px; }
.values p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 72px; }
.contact-card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.3rem; letter-spacing: -.015em; margin: 0 0 8px; }
.contact-card .hero-cta { margin-top: 20px; }
.contact-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.5rem; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.contact-icon.ok { color: var(--pos); font-weight: 800; background: color-mix(in srgb, var(--pos) 16%, var(--surface)); }
.contact-small { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.contact-who { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
.contact-who strong { color: var(--text); }
#contact-form > label { margin-bottom: 6px; }
#contact-form > input { margin-bottom: 16px; color: var(--text); }
.site textarea {
  display: block; width: 100%; min-height: 150px; resize: vertical; padding: 10px 12px; font: inherit; line-height: 1.5; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--radius-sm); background: var(--surface-2); outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.site textarea:hover { border-color: var(--border); }
.site textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.site textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.topic-chips { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.topic-chips label { position: relative; margin: 0; }
.topic-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.topic-chips label > span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: .9rem; font-weight: 550; cursor: pointer; transition: background-color .15s, border-color .15s; }
.topic-chips input:checked + span { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.topic-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-meta { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 12px; font-size: .8rem; color: var(--muted); }
#contact-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact-aside { display: grid; gap: 12px; }
.contact-tip { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.contact-tip > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 1.15rem; }
.contact-tip p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- swipe rows: on phones, card lists (data-swipe) become one row you swipe sideways, with dots
   under them (made by site.js), so each section is about one screen tall */
.swipe-dots { display: none; }

/* ---------- 404 */
.notfound { display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .big { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--bar-in)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 1.6rem; margin: 12px 0 8px; letter-spacing: -.02em; }
.notfound p { color: var(--muted); margin: 0 0 24px; }
.notfound .hero-cta { justify-content: center; }

/* ---------- footer */
.site-footer { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); padding: 48px 0 28px; margin-top: 24px; background: color-mix(in srgb, var(--surface) 45%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--muted); font-size: .92rem; margin: 10px 0 0; max-width: 26em; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); color: var(--muted); font-size: .88rem; }

/* ---------- smaller screens */
@media (max-width: 960px) {
  .site-hero .wrap, .split { grid-template-columns: 1fr; gap: 44px; }
  .site-hero { padding-top: 48px; padding-bottom: 0; }
  .site-hero .wrap { min-height: 0; }
  .hero-copy { max-width: none; }
  /* narrow screens have no room beside the headline: the preview rises from under the buttons and fades out at both ends */
  .lp { position: relative; top: auto; right: auto; width: min(720px, 100%); margin: 8px auto 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 76%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 76%, transparent);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .lp-tilt { padding: 20px 16px 40px; transform: translateY(var(--drift)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-hero { padding: 36px 0 40px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head p { font-size: 1rem; }
  .split { gap: 24px; }
  .features, .steps, .values { grid-template-columns: 1fr; }
  [data-swipe] {
    display: flex; gap: 12px; margin-inline: -16px; padding: 4px 16px 6px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
  [data-swipe] > :last-child { margin-right: 4px; }
  .feature:hover { transform: none; }
  .swipe-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
  .swipe-dots button { padding: 8px 4px; background: transparent; border: 0; }
  .swipe-dots button::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--border); transition: width .2s, background-color .2s; }
  .swipe-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
  .values { margin-block: 20px; }
  .contact-grid { padding-bottom: 48px; }
  .contact-card { padding: 20px 18px; }
  .site-hero { padding-bottom: 0; }
  .lp-summary { grid-template-columns: 1fr 1fr; }
  .lp-balance { grid-column: 1 / -1; }
  .lp-t3 { grid-column: 1 / -1; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-budgets { display: none; } /* keeps the page short: the headline's next section stays close */
  .lp-months { height: 110px; }
  .lp-toast { right: 26px; bottom: 26px; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
