/* build.g8n.ai layout on design system 2.0.0 "Scanner". Tokens only: every color, size and space is a var(--...) from g8n-ds-2.0.0.css.
   Un-layered on purpose, so it wins over the stylesheet's @layer g8n. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }

/* Themed bands: data-theme sets the tokens, these rules paint them. */
section[data-theme], .buybar[data-theme] { background: var(--surface-0); color: var(--text-2); }
section[data-theme="light"] { border-top: var(--border-width) solid var(--line); }
main > section:first-child { border-top: 0; }
.g8n-site-footer { background: var(--surface-0); color: var(--text-2); }

.wrap { max-width: 58rem; }
section { padding-block: var(--space-8); }
section p { margin: 0 0 var(--space-4); max-width: var(--measure); line-height: var(--lh-relaxed); color: var(--text-2); }
section h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--text-1); }
section b { color: var(--text-1); }
.g8n-eyebrow { margin-bottom: var(--space-4); }
h1.g8n-display { font-size: clamp(2.15rem, 5.4vw, 3.4rem); margin: 0 0 var(--space-5); }
h2.g8n-display { font-size: clamp(1.6rem, 3.6vw, var(--fs-h1)); margin: 0 0 var(--space-4); }
.lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); max-width: 36em; }

/* Wordmark sizes: the header mark is --fs-h3 (22px), the footer mark 1.25rem (20px). */
.wm-header { font-size: var(--fs-h3); }
.wm-footer { font-size: 1.25rem; }

/* Hero */
.hero { padding-block: var(--space-9) var(--space-8); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.chips li { padding: var(--space-1) var(--space-3); border: var(--border-width) solid var(--edge); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--text-2); }
.cta-row { margin-top: var(--space-6); }
.cta-row .note { margin: var(--space-3) 0 0; font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--text-3); max-width: 36em; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards .wide { grid-column: 1 / -1; }
.cards .g8n-card p { margin: 0; font-size: var(--fs-sm); }
.price .g8n-eyebrow { margin-bottom: var(--space-3); }
.price p:last-child { margin-bottom: 0; }

/* Ruled rows: the weeks, the included list and the start steps */
.rows { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 5.4rem 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-top: var(--border-width) solid var(--line); color: var(--text-2); line-height: var(--lh-relaxed); }
.rows li:last-child { border-bottom: var(--border-width) solid var(--line); }
.wk { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--fs-sm); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-1); }

/* Plain terms list */
.plain { margin: 0; padding-left: 1.2em; max-width: var(--measure); color: var(--text-2); line-height: var(--lh-relaxed); }
.plain li { margin-bottom: var(--space-3); }

/* Accordion */
.g8n-accordion { margin-top: var(--space-5); }
.g8n-accordion__summary { font-size: var(--fs-base); padding-block: var(--space-4); }
.g8n-accordion__panel { font-size: var(--fs-base); line-height: var(--lh-relaxed); max-width: var(--measure); }

/* Closing band */
.closing { padding-block: var(--space-9); }
.closing .rows { max-width: 44rem; }

/* Header: no menu on this site, so the quiet call button stays at every width. The bar sits in the same container as the other three sites. */
.g8n-site-header__bar { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.g8n-site-header__cta { display: inline-flex; margin-left: auto; }
.g8n-site-header__home { min-height: 44px; align-items: center; }

/* Footer */
.g8n-site-footer { padding-inline: 0; }
.g8n-site-footer__grid, .g8n-site-footer__base { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.g8n-site-footer__link, .g8n-site-footer__base a { display: inline-flex; align-items: center; min-height: 24px; }
/* Footer base row: the terms link. */
.g8n-site-footer__base a { color: var(--text-1); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; border-radius: 4px; outline: 2px solid transparent; }
.g8n-site-footer__base a:focus-visible { box-shadow: 0 0 0 2px var(--focus-gap, var(--surface-0)), 0 0 0 4px var(--accent), 0 0 0 6px var(--partner); }
.g8n-site-footer__base { color: var(--text-3); }

/* Terms page */
.prose { max-width: 48.75rem; }
main > .prose { padding-block: var(--space-8); background: transparent; color: var(--text-2); }
.prose h1.g8n-display { font-size: clamp(1.9rem, 4.5vw, var(--fs-h1)); margin: 0 0 var(--space-2); }
.prose .sub { color: var(--text-3); margin: 0 0 var(--space-6); }
.prose h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--text-1); margin: var(--space-7) 0 var(--space-3); }
.prose p, .prose li { color: var(--text-2); line-height: var(--lh-relaxed); margin: 0 0 var(--space-3); }
.prose ul { margin: 0 0 var(--space-3); padding-left: 1.2em; }
.back { display: inline-block; margin-bottom: var(--space-5); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-1); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: var(--border-width-bold); text-underline-offset: 0.25em; border-radius: var(--radius-xs); outline: var(--border-width-bold) solid transparent; }
.back:focus-visible { box-shadow: 0 0 0 2px var(--focus-gap, var(--surface-0)), 0 0 0 4px var(--accent), 0 0 0 6px var(--partner); }
.prose .note { font-size: var(--fs-sm); color: var(--text-3); font-style: italic; border-top: var(--border-width) solid var(--line); margin-top: var(--space-7); padding-top: var(--space-4); }

/* 404 */
.nf { padding-block: var(--space-9); flex: 1; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.nf__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; }
.trace { display: grid; place-items: center; padding: var(--space-6); border: var(--border-width) solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); box-shadow: var(--shadow-glow); }
.trace svg { width: 100%; max-width: 22rem; height: auto; }
.trace__glow { fill: none; stroke: var(--glow); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.trace__line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.trace__node { fill: var(--surface-1); stroke: var(--partner); stroke-width: 3; }
.trace__end { fill: var(--lit); }
@media (max-width: 860px) {
  .nf__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
}

/* Sticky call bar: phones only. site.js hides it while a page button is on screen, so one primary button shows at a time. */
.buybar { display: none; }
@media (max-width: 640px) {
  section { padding-block: var(--space-7); }
  .hero, .closing { padding-block: var(--space-8); }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: var(--space-2); }
  body[data-bar] { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .buybar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sticky); justify-content: center; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: var(--border-width) solid var(--line); }
  .buybar[hidden] { display: none; }
  .buybar .g8n-btn { width: 100%; max-width: 26rem; }
  .cta-row .note { max-width: none; }
}
@media (max-width: 767px) {
  .cards.three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
