@layer reset, tokens, base, components;

@layer tokens {
:root { color-scheme: dark; --bg: #0d0c0a; --bg-2: #141310; --bg-3: #1b1a16; --bg-4: #24221d; --line: rgba(242, 240, 236, 0.09); --line-2: rgba(242, 240, 236, 0.16); --text: #f2f0ec; --text-2: #b9b4aa; --text-3: #8e897f; --accent: #ffc72c; --accent-soft: rgba(255, 199, 44, 0.12); --pos: #8fcb9c; --neg: #e39a90; --paper: #f2f0ec; --ink: #0d0c0a; --ink-2: #57534c; --radius-sm: 10px; --radius-lg: 24px; --radius-xl: 32px; --touch: 44px; --nav-h: 68px; --gutter: clamp(20px, 4vw, 32px); --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif; --font-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --z-nav: 50; --z-skip: 100; --accent-hover: #ffd35a; --ink-hover: #26241f; --tint-4: color-mix(in oklab, var(--text) 4%, transparent); --tint-7: color-mix(in oklab, var(--text) 7%, transparent); --pos-soft: color-mix(in oklab, var(--pos) 12%, transparent); --neg-soft: color-mix(in oklab, var(--neg) 12%, transparent); }
}

@layer reset {
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
}

@layer base {
html { background: var(--bg); scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui), sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: var(--z-skip); padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-block; color: var(--text-3); font-family: var(--font-num), monospace; font-size: 13px; letter-spacing: 0.01em; }
.section-head { max-width: 680px; }
.section-title { margin-top: 16px; font-size: clamp(36px, 5.2vw, 68px); font-weight: 650; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.section-text { margin-top: 24px; max-width: 560px; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; text-wrap: pretty; }
}

@layer components {
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--touch); padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn[aria-disabled="true"] { cursor: progress; opacity: 0.7; }
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--tint-7); color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.segmented { display: inline-flex; align-self: flex-start; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.segmented button { min-height: var(--touch); min-width: 56px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-family: var(--font-num), monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h); padding-top: env(safe-area-inset-top, 0px); background: color-mix(in oklab, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg) 86%, transparent); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); color: var(--text); text-decoration: none; }
.nav__logo { width: 32px; height: 32px; }
.nav__name { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.nav .nav__name { display: none; }
.nav__menu { display: none; gap: 4px; }
.nav__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color 0.2s var(--ease); }

.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title { max-width: 11ch; font-size: clamp(48px, 9.2vw, 132px); font-weight: 650; line-height: 0.92; letter-spacing: -0.058em; text-wrap: balance; }
.hero__lead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; margin-top: 32px; }
.hero__text { flex: 1 1 320px; max-width: 470px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--text-3); font-size: 14px; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.forecast { margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.forecast__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.forecast__stats > div { min-width: 0; padding: clamp(14px, 2.4vw, 22px) clamp(12px, 3vw, 28px); border-right: 1px solid var(--line); }
.forecast__stats > div:last-child { border-right: 0; }
.forecast__stats dt { overflow: hidden; color: var(--text-3); font-size: clamp(11px, 1.6vw, 13px); white-space: nowrap; text-overflow: ellipsis; }
.forecast__stats dd { margin-top: 6px; font-family: var(--font-num), monospace; font-size: clamp(14px, 2vw, 22px); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.forecast__stat--accent { color: var(--accent); }
.forecast__body { display: flex; flex-direction: column; }
.forecast__chart-scroll { position: relative; padding: clamp(56px, 6vw, 68px) clamp(12px, 3vw, 24px) clamp(16px, 2.4vw, 20px); }
.forecast__badge { position: absolute; top: clamp(18px, 2.4vw, 24px); left: clamp(12px, 3vw, 24px); }
.forecast__plot { --x: 50%; --y: 50%; position: relative; height: clamp(190px, 30vw, 260px); border-radius: var(--radius-sm); }
.forecast__plot:has(.forecast__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; }
.forecast__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.forecast__grid { stroke: var(--tint-7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.forecast__area { fill: url(#forecast-fill); }
.forecast__line { fill: none; stroke: var(--accent); stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 2.25; }
.forecast__levels li { position: absolute; left: 0; top: var(--y); translate: 0 calc(-100% - 4px); color: var(--text-3); font-family: var(--font-num), monospace; font-size: 10px; font-variant-numeric: tabular-nums; }
.forecast__cursor { position: absolute; top: 0; bottom: 0; left: var(--x); width: calc(100% / 14); translate: -50% 0; border-radius: 8px 8px 0 0; background: var(--accent-soft); pointer-events: none; }
.forecast__cursor::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-2); }
.forecast__event { --tone: var(--neg); position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.forecast__event.is-in { --tone: var(--pos); }
.forecast__event::before { content: ""; position: absolute; top: var(--y); left: 0; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--bg-2); }
.forecast__event.is-lowest::before { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--accent); }
.forecast__event b { position: absolute; top: var(--top); left: 0; display: flex; gap: 8px; padding: 6px 10px; translate: -50% calc(-100% - 14px); border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-3); box-shadow: 0 10px 24px -10px color-mix(in oklab, black 90%, transparent); color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0; }
.forecast__event b span { color: var(--tone); font-family: var(--font-num), monospace; font-variant-numeric: tabular-nums; }
.forecast__event.is-start b { translate: -16px calc(-100% - 14px); }
.forecast__event.is-end b { translate: calc(-100% + 16px) calc(-100% - 14px); }
.forecast__event.is-active b { opacity: 1; }
.forecast__dot { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); pointer-events: none; }
.forecast__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.forecast__axis { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); margin-top: 10px; }
.forecast__axis li { display: flex; flex-direction: column; align-items: center; padding-block: 4px; border-radius: 8px; color: var(--text-3); font-family: var(--font-num), monospace; font-size: clamp(10px, 1.4vw, 11px); line-height: 1.35; transition: color 0.2s var(--ease); }
.forecast__axis li.is-active { background: var(--tint-7); color: var(--text); }
.forecast__readout { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3.5vw, 28px); border-top: 1px solid var(--line); }
.forecast__date { color: var(--text-3); font-size: 13px; }
.forecast__balance { font-family: var(--font-num), monospace; font-size: clamp(30px, 4vw, 40px); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.forecast__flag { align-self: flex-start; }
.forecast__flag[hidden] { display: none; }
.forecast__now { display: flex; flex-direction: column; gap: 14px; }
.forecast__schedule { padding-top: 16px; border-top: 1px solid var(--line); }
.forecast__schedule ol { margin-top: 8px; }
.forecast__schedule button { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: calc(100% + 20px); min-height: var(--touch); margin-inline: -10px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font-size: 14px; text-align: left; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.forecast__schedule button.is-active { background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--text); }
.forecast__schedule button span:first-child { color: var(--text-3); font-family: var(--font-num), monospace; font-size: 12px; }
.forecast__schedule button.is-active span:first-child { color: var(--accent); }
.forecast__schedule button span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.forecast__schedule button span:last-child { font-family: var(--font-num), monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast__schedule .is-out { color: var(--neg); }
.forecast__schedule .is-in { color: var(--pos); }
.forecast__hint { margin-top: auto; color: var(--text-3); font-size: 13px; line-height: 1.5; }

.ledger { padding-top: clamp(56px, 8vw, 96px); }
.ledger__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.ledger__stage { align-self: start; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-2); }
.ledger__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ledger__account { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 14px; }
.ledger__total { font-family: var(--font-num), monospace; font-size: clamp(24px, 3vw, 34px); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.2; }
.ledger__legend { margin-top: 24px; }
.ledger__legend li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.ledger__legend span { color: var(--text-2); font-size: 13px; }
.ledger__legend b { font-family: var(--font-num), monospace; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.story { padding-top: clamp(56px, 8vw, 96px); }
.story__steps { max-width: 68ch; }
.story__step { padding-block: 24px; }
.story__step h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 36px); font-weight: 650; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.story__step p { margin-top: 14px; max-width: 460px; color: var(--text-2); font-size: 16px; line-height: 1.6; }

.more { padding-top: clamp(40px, 7vw, 96px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 48px; }
.tile { display: flex; flex-direction: column; gap: 28px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.tile--wide, .tile--full { grid-column: 1 / -1; flex-flow: row wrap; align-items: center; }
.tile--wide > *, .tile--full > * { flex: 1 1 280px; min-width: 0; }
.tile__copy h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.tile__copy p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.tile__tag { margin-top: 14px; }

.csv { display: flex; flex-direction: column; gap: 12px; }
.csv__file { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-3); color: var(--text-3); font-family: var(--font-num), monospace; font-size: 12px; }
.csv__name { color: var(--text); }
.csv__map li { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.csv__map span { overflow: hidden; color: var(--text-3); font-family: var(--font-num), monospace; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.csv__map i { height: 1px; background: var(--accent); }
.csv__map b { font-weight: 500; }
.csv__result { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-3); font-size: 13px; }
.csv__result b { color: var(--text); font-family: var(--font-num), monospace; font-weight: 500; }

.fx { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.fx__total { font-family: var(--font-num), monospace; font-size: clamp(28px, 3vw, 36px); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.fx__note { color: var(--text-3); font-size: 12px; }

.ev { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; }
.ev__figure b { display: block; font-family: var(--font-num), monospace; font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ev__figure span { color: var(--text-3); font-size: 13px; }
.ev__bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; }
.ev__bars span { width: 12px; height: var(--h); border-radius: 4px; background: var(--bg-4); }
.ev__bars .is-current { background: var(--accent); }

.toasts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.toasts li { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.toasts b { font-weight: 600; }
.toasts span { color: var(--text-3); }
.toasts li:first-child b { color: var(--accent); }


.export { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.6fr); margin-top: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-num), monospace; font-size: 11px; }
.export span { overflow: hidden; padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.export span:nth-child(-n+5) { background: var(--bg-3); color: var(--text-3); }
.export span:nth-last-child(-n+5) { border-bottom: 0; }

.privacy { padding-top: clamp(40px, 7vw, 96px); }
.privacy__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.privacy__title { flex: 1 1 480px; font-size: clamp(48px, 9vw, 128px); font-weight: 650; line-height: 0.92; letter-spacing: -0.058em; text-wrap: balance; }
.privacy__title span { color: var(--text-3); }
.privacy__text { flex: 0 1 460px; color: var(--text-2); font-size: 18px; line-height: 1.55; }

.pricing { padding-top: clamp(40px, 7vw, 96px); }
.pricing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.plan__name { font-size: 18px; font-weight: 650; }
.chip.plan__badge { background: var(--ink); color: var(--accent); }
.plan__cost { display: flex; flex-direction: column; gap: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-num), monospace; font-size: 52px; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 1; }
.plan__price small { color: var(--text-3); font-family: var(--font-ui), sans-serif; font-size: 15px; letter-spacing: 0; }
.plan__note { color: var(--text-3); font-size: 14px; }
.plan__list { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.plan__list li { display: flex; gap: 12px; }
.plan__list li::before { content: ""; flex-shrink: 0; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translate(2px, -1px); }
.plan .btn { margin-top: auto; }
.plan--premium { border-color: transparent; background: var(--paper); color: var(--ink); }
.plan--premium .plan__price small, .plan--premium .plan__note { color: var(--ink-2); }
.plan--premium .plan__list { border-top-color: color-mix(in oklab, var(--ink) 12%, transparent); }
.plan--premium .plan__list li::before { border-color: var(--ink); }
.pricing__fine { margin-top: 20px; color: var(--text-3); font-size: 13px; }

.faq { padding-top: clamp(40px, 7vw, 96px); }
.faq__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.faq__title { margin-top: 0; font-size: clamp(32px, 4vw, 52px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 8px 0; list-style: none; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__question { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq__icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--text-2); }
.faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--text-2); transform: rotate(90deg); }
.faq__list details[open] .faq__icon { transform: rotate(45deg); }
.faq__list details p { max-width: 620px; padding-bottom: 24px; color: var(--text-2); font-size: 16px; line-height: 1.6; }

.cta { padding-block: clamp(56px, 8vw, 96px); }
.cta__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding: clamp(32px, 6vw, 80px); border-radius: var(--radius-xl); background: var(--accent); color: var(--ink); }
.cta__title { max-width: 12ch; font-size: clamp(40px, 6vw, 88px); font-weight: 650; line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; }

.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 40px; }
.footer__text { max-width: 320px; margin-top: 14px; color: var(--text-3); font-size: 14px; line-height: 1.55; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.footer__group { display: flex; flex-direction: column; }
.footer__group-title { margin-bottom: 4px; }
.footer__group a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

.language-hint { position: fixed; z-index: var(--z-nav); inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 8px; padding: 14px 8px 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg-3); box-shadow: 0 10px 24px -10px color-mix(in oklab, black 90%, transparent); }
.language-hint__text { color: var(--text); font-size: 15px; line-height: 1.45; }
.language-hint__close { grid-area: 1 / 2; display: inline-grid; place-items: center; width: var(--touch); height: var(--touch); padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); }
.language-hint__switch { grid-column: 1 / -1; justify-self: start; }

.legal-page { padding-top: clamp(48px, 9vw, 112px); }
.legal-hero h1 { margin-top: 16px; max-width: 14ch; font-size: clamp(44px, 7vw, 96px); font-weight: 650; line-height: 0.95; letter-spacing: -0.055em; text-wrap: balance; }
.legal-hero p { margin-top: 24px; max-width: 560px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.legal-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.legal-content { padding-block: clamp(56px, 8vw, 96px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 68ch; }
.legal-card h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.legal-card p { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.legal-card a { color: var(--accent); text-underline-offset: 3px; }

.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact-panel__copy h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.contact-panel__copy p { margin-top: 16px; max-width: 460px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.support-guide { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.support-guide div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.support-guide span { color: var(--text-3); text-align: right; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 36px) clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.contact-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.contact-field label span { color: var(--text-3); font-weight: 400; }
.contact-input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--text); font-size: 16px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.contact-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.contact-input[aria-invalid="true"] { border-color: var(--neg); }
.contact-input--select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e897f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.contact-input--textarea { min-height: 160px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.contact-validation { color: var(--neg); font-size: 13px; line-height: 1.4; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__note { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.contact-form__status { padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.contact-form__status--success { background: var(--pos-soft); color: var(--pos); }
.contact-form__status--error { background: var(--neg-soft); color: var(--neg); }

.status-page { display: grid; place-items: center; min-height: 100svh; padding: 24px; }
.status-page__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; max-width: 560px; }
.status-page__brand { display: block; width: 48px; height: 48px; margin-bottom: 16px; }
.status-page__title { font-size: clamp(44px, 9vw, 80px); font-weight: 650; line-height: 0.95; letter-spacing: -0.055em; }
.status-page__text { color: var(--text-2); font-size: 17px; line-height: 1.55; }
.status-page__request { color: var(--text-3); font-size: 13px; }
.status-page__request code { color: var(--text-2); font-family: var(--font-num), monospace; }
.status-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
    .forecast__cursor { transition: left 0.28s var(--ease); }
    .forecast__dot { transition: left 0.28s var(--ease), top 0.28s var(--ease); }
    .faq__icon { transition: transform 0.3s var(--ease); }
    .forecast__event b { transition: opacity 0.25s var(--ease); }
}

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover { background: var(--accent-hover); }
    .btn--ghost:hover { border-color: color-mix(in oklab, var(--text) 36%, transparent); background: var(--tint-4); }
    .btn--dark:hover { background: var(--ink-hover); }
    .nav__link:hover { color: var(--text); }
    .forecast__schedule button:hover { background: var(--tint-4); }
    .footer__group a:hover { color: var(--text); }
    .language-hint__close:hover { background: var(--tint-7); color: var(--text); }
}

@media (min-width: 440px) {
    .nav .nav__name { display: inline; }
}

@media (min-width: 1024px) {
    .nav__menu { display: flex; }
    .forecast__body { flex-direction: row; }
    .forecast__chart-scroll { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
    .forecast__plot { flex: 1 1 auto; height: auto; min-height: 260px; }
    .forecast__readout { flex: 0 0 340px; border-top: 0; border-left: 1px solid var(--line); }
    .forecast__schedule button { min-height: 34px; }
    .hero { padding-top: clamp(40px, 4.5vw, 72px); }
    .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; column-gap: 48px; }
    .hero__inner > * { grid-column: 1 / -1; }
    .hero__title { grid-column: 1; max-width: none; font-size: clamp(64px, 6.4vw, 92px); }
    .hero__lead { grid-column: 2; margin-top: 0; padding-bottom: 10px; }
    .ledger__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; }
    .ledger__stage { order: 1; }
    .tile--wide { grid-column: span 2; }
    .faq__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
    .footer__inner { flex-direction: row; justify-content: space-between; }
    .footer__nav { flex: 0 1 720px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
    .language-hint { inset-inline: auto var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); width: 400px; }
    .contact-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
    .cta__panel { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
}
