/* Crypto Is Coming · production stylesheet.
 * Derived from the approved Clear Route / Verdant page (design-reference/).
 * Plain CSS, no build step. Tokens live in tokens.css. */
@import url('./tokens.css');

/* Base */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-lg); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-base)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: var(--color-clear); touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { cursor: pointer; background: var(--color-clear); border: var(--rule-hair) solid var(--color-control); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-lg); line-height: 1.25; }
button, .button, .text-link, nav a { white-space: nowrap; }
button, .button { min-height: var(--control-height); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-display); letter-spacing: -.045em; }
h2 { font-size: var(--text-title); letter-spacing: -.025em; }
h3 { font: 600 var(--text-lead)/1.3 var(--font-body); }
p { max-width: 65ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Utilities */
.wrap { width: min(100% - var(--page-gutter) * 2, var(--page-max)); margin-inline: auto; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.lead { font-size: var(--text-lead); line-height: 1.5; }
.accent { color: var(--color-accent); }
.stack { display: grid; align-content: start; gap: var(--space-lg); min-width: 0; }
.business-panel > *, .cta-panel > *, .two-col > * { min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-lg); padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-control); text-decoration: none; border-radius: var(--radius-sm); line-height: 1.25; background: var(--color-clear); color: var(--color-ink); }
.button.solid { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-lg); min-height: 44px; text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-control); width: fit-content; }
.skip { position: fixed; inset: var(--space-md) auto auto var(--space-md); transform: translateY(-200%); z-index: var(--z-sticky); padding: var(--space-sm); background: var(--color-paper); color: var(--color-ink); }
.skip:focus { transform: none; }
select { width: 100%; min-width: 0; border: var(--rule-hair) solid var(--color-control); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-ink); min-height: var(--control-height); padding: var(--space-sm) var(--space-md); line-height: 1.25; }
select:active { border-color: var(--color-ink); }

/* Header: one nav element; it sits in a second row until the 72 rem breakpoint. */
.site-header { border-bottom: var(--rule-hair) solid var(--color-rule); }
.header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'brand spacer actions' 'nav nav nav'; align-items: center; column-gap: var(--space-md); padding-block: var(--space-lg) var(--space-xs); }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; flex-shrink: 0; text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.brand img { display: block; width: var(--logo-nav-size); height: var(--logo-nav-size); object-fit: contain; }
.brand-copy { display: none; }
.brand-name { font: 600 var(--text-lead)/1.2 var(--font-body); letter-spacing: -.04em; }
.brand-descriptor { font: 400 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
.site-nav { grid-area: nav; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); padding-top: var(--space-xs); }
.site-nav a, .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--text-sm); }
.site-nav a[aria-current='page'], .footer-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--color-accent); }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: var(--space-sm); }
.dashboard-login { white-space: nowrap; }
.dashboard-login:disabled { opacity: 1; cursor: default; background: var(--color-clear); color: var(--color-ink); }
.header-quote { display: none; }

/* Home opening */
.route-hero { display: grid; gap: var(--space-2xl); padding-block: var(--space-2xl); }
.route-hero .stack { gap: var(--space-lg); }
.route-hero h1 { max-width: 13ch; letter-spacing: -.05em; }
.route-selector { display: grid; gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-md); }
.route-selector label { font-size: var(--text-lead); font-weight: 500; max-width: 22ch; line-height: 1.4; }
.route-explanation { min-height: 4.8em; color: var(--color-muted); }
.route-selector .button { width: 100%; }

/* Sections */
.section { padding-block: var(--space-2xl); }
.section > h2 { margin-bottom: var(--space-xl); }
.section-intro { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.section-intro h2 { max-width: 18ch; }
.route-stages { counter-reset: stage; display: grid; gap: var(--space-xl); }
.route-stages li { display: grid; gap: var(--space-sm); counter-increment: stage; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.route-stages p { color: var(--color-muted); max-width: 50ch; }
.route-stages--numbered h2::before { content: counter(stage, decimal-leading-zero) ' / '; font: 400 var(--text-sm)/1 var(--font-body); letter-spacing: 0; color: var(--color-accent); }
.notice { display: flex; gap: var(--space-md); align-items: start; padding: var(--space-md) var(--space-lg); margin-top: var(--space-xl); border-inline-start: var(--rule-strong) solid var(--color-accent); background: var(--color-paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 60ch; }
.checklist { display: grid; }
.checklist li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.checklist li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.checklist b { font-weight: 500; }
.checklist span { color: var(--color-muted); }

/* Business / watermark: a faint, static copy of the symbol behind one section. */
.watermarked { position: relative; overflow: clip; }
.watermarked > :not(.symbol-watermark) { position: relative; }
.symbol-watermark { position: absolute; inset: auto -8% -14% auto; width: clamp(220px, 38vw, 520px); opacity: var(--watermark-opacity); pointer-events: none; user-select: none; }
.symbol-watermark--left { inset: auto auto -14% -6%; }
.symbol-watermark img { display: block; width: 100%; height: auto; }
.business-panel { display: grid; gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-md); }
.business-panel h2 { max-width: 16ch; }
.business-panel .button { width: fit-content; }

/* Sub-pages */
.page-hero { display: grid; gap: var(--space-lg); padding-block: var(--space-2xl); }
.page-hero h1 { font-size: var(--text-display-s); max-width: 14ch; }
.page-hero .lead { max-width: 42ch; }
.cta-panel { display: grid; gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-md); }
.cta-panel h2 { max-width: 18ch; }
.cta-panel .button { width: 100%; }
.contact-handle { font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.error-page { display: grid; gap: var(--space-lg); padding-block: var(--space-3xl); }
.error-page h1 { font-size: var(--text-display-s); max-width: 14ch; }

/* Footer */
.site-footer { padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; padding-bottom: var(--space-lg); }
.brand--footer img { width: var(--logo-footer-size); height: var(--logo-footer-size); }
.brand--footer .brand-copy { display: grid; gap: var(--space-2xs); }
.brand--footer .brand-name { font-size: var(--text-base); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.footer-meta a { text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-control); }

/* Interaction */
@media (hover: hover) {
  button:not(:disabled):hover, .button:hover, select:hover { background: var(--color-paper-2); color: var(--color-ink); }
  .button.solid:hover { opacity: .85; background: var(--color-ink); color: var(--color-paper); }
  .text-link:hover, .footer-meta a:hover { color: var(--color-accent); border-color: var(--color-accent); }
  .site-nav a:hover, .footer-nav a:hover { text-decoration: underline; }
  .brand:hover .brand-name { text-decoration: underline; text-underline-offset: 4px; }
}

/* Responsive */
@media (max-width: 39.999rem) {
  .route-selector .button, .cta-panel .button { padding-inline: var(--space-sm); gap: var(--space-sm); font-size: var(--text-sm); }
  .header-actions .dashboard-login { padding-inline: var(--space-md); }
}
@media (min-width: 40rem) {
  .brand-copy { display: grid; gap: var(--space-2xs); }
  .header-quote { display: inline-flex; }
  .route-selector, .cta-panel, .business-panel { padding: var(--space-xl); }
  .cta-panel .button { width: fit-content; }
}
@media (min-width: 60rem) {
  .route-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: var(--space-2xl) var(--space-3xl); gap: var(--space-3xl); align-items: center; }
  .route-stages li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); padding-top: var(--space-xl); }
  .page-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-3xl); align-items: end; padding-block: var(--space-2xl) var(--space-3xl); }
  .two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-3xl); align-items: start; }
  .business-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
  .symbol-watermark { inset: 50% -4% auto auto; translate: 0 -50%; }
  .symbol-watermark--left { inset: auto auto -20% -4%; translate: none; }
}
@media (min-width: 72rem) {
  .header-grid { grid-template-areas: 'brand nav actions'; padding-block: var(--space-lg); }
  .site-nav { justify-content: center; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  button:active, .button:active { transform: none; }
}
