@import url('/assets/tokens.css');

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--app-color-text-primary);
  background: var(--app-color-bg-app);
  font-family: var(--app-font-family-base);
  font-size: var(--app-font-size-body-strong);
  line-height: var(--app-line-height-normal);
  text-rendering: optimizeLegibility;
}

a { color: var(--app-color-accent-primary); text-underline-offset: 3px; }
a:hover { color: var(--app-color-accent-primary-strong); }
a:focus-visible, .button:focus-visible { outline: var(--app-state-focus-ring); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 16ch; margin-bottom: var(--app-space-16); font-size: clamp(2.35rem, 9vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h2 { margin-bottom: var(--app-space-16); font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.12; text-wrap: balance; }
h3 { margin-bottom: var(--app-space-8); font-size: 1.15rem; }
p { color: var(--app-color-text-secondary); }

.shell { width: min(100% - 32px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: var(--app-space-8); left: var(--app-space-8); padding: var(--app-space-10) var(--app-space-16); background: var(--app-color-bg-elevated); border-radius: var(--app-radius-control); transform: translateY(-160%); box-shadow: var(--app-shadow-medium); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; background: color-mix(in srgb, var(--app-color-bg-app) 88%, transparent); border-bottom: var(--app-border-width-default) solid var(--app-color-border-default); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: var(--app-space-16); }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 126px; }
.header-inner nav { display: none; margin-left: auto; gap: var(--app-space-4); }
.header-inner nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--app-space-12); color: var(--app-color-text-secondary); border-radius: var(--app-radius-control); text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a[aria-current='page'] { color: var(--app-color-text-primary); background: var(--app-color-bg-surface-dim); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--app-space-8); padding: 0 var(--app-space-16); border: var(--app-border-width-default) solid transparent; border-radius: var(--app-radius-control); font-weight: 700; text-decoration: none; transition: transform 160ms ease-in-out, box-shadow 160ms ease-in-out, background-color 160ms ease-in-out; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); box-shadow: none; }
.button-primary { color: var(--app-color-text-inverse); background: var(--app-color-accent-primary); box-shadow: var(--app-shadow-medium); }
.button-primary:hover { color: var(--app-color-text-inverse); background: var(--app-color-accent-primary-strong); }
.button-secondary { color: var(--app-color-text-primary); background: var(--app-color-bg-surface); border-color: var(--app-color-border-default); }
.button-small { margin-left: auto; white-space: nowrap; color: var(--app-color-text-inverse); background: var(--app-color-accent-primary); font-size: var(--app-font-size-body); }

.hero { min-height: min(760px, calc(100svh - 76px)); display: grid; align-items: center; gap: var(--app-space-32); padding-block: clamp(56px, 9vw, 112px); }
.hero-copy { max-width: 700px; }
.eyebrow { display: block; margin-bottom: var(--app-space-12); color: var(--app-color-accent-primary); font-size: var(--app-font-size-body-sm); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lead { max-width: 64ch; font-size: clamp(1.08rem, 2.8vw, 1.3rem); line-height: var(--app-line-height-loose); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--app-space-10); margin-top: var(--app-space-24); }
.helper { margin-top: var(--app-space-16); font-size: var(--app-font-size-body-sm); }
.hero-mark { display: none; }
.hero-mark-card { min-height: 310px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--app-space-32); color: var(--app-color-text-inverse); background: linear-gradient(145deg, var(--app-color-accent-primary), var(--app-color-accent-primary-strong)); border-radius: calc(var(--app-radius-lg) + var(--app-space-8)); box-shadow: var(--app-shadow-medium); transform: rotate(2deg); }
.hero-mark-card span, .hero-mark-card small { opacity: .78; }
.hero-mark-card strong { margin-block: var(--app-space-6) var(--app-space-24); font-size: 2rem; line-height: 1.05; }

.section { padding-block: clamp(48px, 8vw, 88px); }
.section-heading { max-width: 620px; }
.card-grid { display: grid; gap: var(--app-space-16); }
.info-card { padding: var(--app-space-24); background: var(--app-color-bg-surface); border: var(--app-border-width-default) solid var(--app-color-border-default); border-radius: var(--app-radius-lg); box-shadow: var(--app-shadow-soft); }
.step { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: var(--app-space-20); color: var(--app-color-accent-primary-strong); background: var(--app-color-accent-primary-soft); border-radius: var(--app-radius-full); font-variant-numeric: tabular-nums; font-weight: 800; }
.info-card p { margin-bottom: 0; }
.feature-panel { display: grid; gap: var(--app-space-24); padding: clamp(24px, 5vw, 48px); background: var(--app-color-bg-container-high); border: var(--app-border-width-default) solid var(--app-color-border-default); border-radius: var(--app-radius-lg); }
.feature-panel p { max-width: 68ch; margin-bottom: 0; }
.text-links { display: flex; flex-direction: column; gap: var(--app-space-8); }
.text-links a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--app-space-16); color: var(--app-color-text-primary); background: var(--app-color-bg-surface); border-radius: var(--app-radius-control); text-decoration: none; }

.document-shell { padding-block: var(--app-space-24) 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--app-space-8); margin-bottom: var(--app-space-32); color: var(--app-color-text-muted); font-size: var(--app-font-size-body-sm); }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.document { max-width: 780px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); background: var(--app-color-bg-surface); border: var(--app-border-width-default) solid var(--app-color-border-default); border-radius: var(--app-radius-lg); box-shadow: var(--app-shadow-soft); }
.document h1 { max-width: 20ch; font-size: clamp(2rem, 6vw, 3.25rem); }
.document-section { padding-top: var(--app-space-24); }
.document-section + .document-section { margin-top: var(--app-space-24); border-top: var(--app-border-width-default) solid var(--app-color-border-default); }
.document-section h2 { font-size: 1.45rem; }
.document-section li { margin-bottom: var(--app-space-12); color: var(--app-color-text-secondary); line-height: var(--app-line-height-loose); }
.document-markdown h1 { max-width: 24ch; }
.document-source h2 { margin-top: var(--app-space-32); font-size: 1.45rem; }
.document-source h3 { margin-top: var(--app-space-24); font-size: 1.12rem; }
.document-source p, .document-source li { color: var(--app-color-text-secondary); line-height: var(--app-line-height-loose); }
.document-source p { margin-bottom: var(--app-space-16); }
.document-source ul, .document-source ol { padding-left: var(--app-space-24); }
.document-source li { margin-bottom: var(--app-space-10); }
.document-source blockquote { margin: var(--app-space-20) 0; padding: var(--app-space-16) var(--app-space-20); background: var(--app-color-bg-container); border-left: var(--app-border-width-strong) solid var(--app-color-accent-primary); border-radius: 0 var(--app-radius-md) var(--app-radius-md) 0; }
.document-source blockquote p { margin-bottom: 0; color: var(--app-color-text-primary); }
.document-source code { padding: 2px var(--app-space-4); overflow-wrap: anywhere; background: var(--app-color-bg-surface-dim); border-radius: var(--app-radius-sm); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.document-source hr { margin-block: var(--app-space-32); border: 0; border-top: var(--app-border-width-default) solid var(--app-color-border-default); }
.document-checkbox { display: inline-block; min-width: 1.5em; color: var(--app-color-accent-primary-strong); font-variant-numeric: tabular-nums; }
.commercial { min-height: calc(100svh - 76px); padding-block: clamp(56px, 9vw, 112px); }
.commercial h1 { max-width: 22ch; }
.price-card { max-width: 680px; padding: clamp(24px, 5vw, 48px); background: var(--app-color-bg-surface); border: var(--app-border-width-default) solid var(--app-color-border-default); border-radius: var(--app-radius-lg); box-shadow: var(--app-shadow-soft); }
.price-label { margin-bottom: var(--app-space-8); }
.price-value { display: block; margin-bottom: var(--app-space-20); color: var(--app-color-text-primary); font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.notice { margin-block: var(--app-space-24); padding: var(--app-space-20); border: var(--app-border-width-default) solid var(--app-color-border-default); border-radius: var(--app-radius-md); }
.notice-warning { background: var(--app-color-state-warning-soft); }
.notice strong { display: block; margin-bottom: var(--app-space-6); }
.notice p { margin-bottom: 0; color: var(--app-color-text-primary); }

.return-state { min-height: calc(100svh - 76px); max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 72px; }
.return-state h1 { max-width: 18ch; font-size: clamp(2rem, 7vw, 3.5rem); }
.status-icon { width: 64px; height: 64px; margin-bottom: var(--app-space-24); border-radius: var(--app-radius-full); box-shadow: inset 0 0 0 18px var(--app-color-state-success-soft); }
.status-warning { box-shadow: inset 0 0 0 18px var(--app-color-state-warning-soft); }

.site-footer { padding-top: 56px; background: var(--app-color-bg-surface); border-top: var(--app-border-width-default) solid var(--app-color-border-default); }
.footer-grid { display: grid; gap: var(--app-space-32); padding-bottom: var(--app-space-32); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--app-space-8); }
.footer-grid a { min-height: 44px; display: inline-flex; align-items: center; color: var(--app-color-text-secondary); text-decoration: none; }
.footer-grid p { max-width: 30ch; }
.footer-bottom { display: flex; flex-direction: column; gap: var(--app-space-6); padding-block: var(--app-space-20); color: var(--app-color-text-muted); border-top: var(--app-border-width-default) solid var(--app-color-border-default); font-size: var(--app-font-size-body-sm); }

@media (min-width: 720px) {
  .header-inner nav { display: flex; }
  .hero-actions { flex-direction: row; align-items: center; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-panel { grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); align-items: end; }
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
  .hero-mark { display: block; padding: var(--app-space-24); }
}

@media (max-width: 719px) {
  .button-small { padding-inline: var(--app-space-12); font-size: var(--app-font-size-body-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
