/* Landing page: site chrome, hero carousel, FIRE text, tiles. Shares tokens and buttons with styles.css. */

body.landing { background: var(--paper); }
.landing main { max-width: 1180px; margin: 0 auto; padding: 0 40px 40px; width: 100%; }
.landing h1 { max-width: 15ch; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.landing h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
.landing h3 { font-size: 19px; line-height: 1.25; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 22px 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin: 0; text-decoration: none; color: var(--ink); }
.brand strong { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { position: relative; width: 24px; height: 30px; border: 2px solid var(--ink); }
.brand-mark::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 9px; background: var(--gold); }
.site-actions { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-actions { flex-shrink: 0; display: flex; align-items: center; }
.site-actions .button { white-space: nowrap; }
.brand { min-width: 0; }
.site-nav-link:hover { color: var(--blue); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; padding: 56px 0 96px; }
.lead { margin-top: 26px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.lead.narrow { max-width: 62ch; margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 18px; max-width: 52ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.button.large { min-height: 50px; padding: 13px 24px; font-size: 16px; }

.hero-carousel-wrap { min-width: 0; }
.hero-carousel { display: grid; min-width: 0; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; margin: 0; padding: 28px 32px 26px; background: var(--surface); border-top: 2px solid var(--ink); min-width: 0; }
.slide:not(.is-active) { visibility: hidden; opacity: 0; pointer-events: none; }
.slide-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 28px; }
.slide-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.slide-foot { margin-top: auto; padding-top: 22px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.example-note { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.scale-track { position: relative; height: 16px; background: var(--line-soft); margin: 0 0 22px; }
.scale-track::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(16, 38, 61, .3) calc(10% - 1px) 10%); }
.scale-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.scale-mark { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px solid var(--ink); }
.scale-base { border-left-color: var(--gold); }
.scale-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.scale-legend > div { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.scale-legend dt { font-size: 12.5px; color: var(--muted); }
.scale-legend dd { margin: 4px 0 0; font-family: var(--display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

.example-chart { display: block; width: 100%; height: auto; overflow: visible; }
.example-chart text { font-family: var(--text); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.example-chart .t-base { fill: #9a6a17; }
.example-chart .t-full { fill: var(--ink); }
.example-chart .c-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.example-chart .c-base { stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 6 5; }
.example-chart .c-full { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 6 5; }
.example-chart .c-curve { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.example-chart .c-dot-base { fill: var(--gold); }
.example-chart .c-dot-full { fill: var(--ink); }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.carousel-dots button { width: 12px; height: 12px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--ink); }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 30px; }
.fire-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.fire-section h2 { margin-bottom: 0; }
.fire-text p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.fire-text p + p { margin-top: 18px; }
.fire-text .lead { font-size: 17px; margin-top: 0; }
.fire-details { margin-top: 22px; max-width: 62ch; }
.fire-details summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--blue); }
.fire-details summary:hover { color: var(--blue-dark); }
.fire-details > div { margin-top: 16px; }
.fire-details p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.fire-details p + p { margin-top: 18px; }

.ruled-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.ruled-list > div { padding-top: 22px; border-top: 2px solid var(--ink); }
.ruled-list p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* Precision widgets */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 24px 24px 22px; background: var(--surface); border-top: 2px solid var(--ink); min-width: 0; }
.tile-step { grid-column: 1; grid-row: 1; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--blue); }
.tile h3 { grid-column: 2; grid-row: 1; margin: 0; }
.tile p { grid-column: 2; grid-row: 2; margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.tile-level { grid-column: 2; grid-row: 3; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tile-bar { grid-column: 2; grid-row: 4; position: relative; height: 8px; margin-top: 10px; background: var(--line-soft); }
.tile-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.tile:last-child .tile-bar span { background: var(--gold); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.split h2 { font-size: 24px; margin-bottom: 14px; }
.split p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 54ch; }

/* Bottom call to action: bright yellow button on the dark band */
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin: 24px 0 72px; padding: 44px 48px; background: var(--ink); color: #eef2f4; }
.final-cta h2 { color: #eef2f4; font-size: 30px; margin: 0; }
.final-cta .button.primary { background: #ffc629; color: var(--ink); }
.final-cta .button.primary:hover:not(:disabled) { background: #ffd54d; }

.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: 1180px; margin: 0 auto; padding: 22px 40px 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-weight: 500; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-link svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

/* Responsive */
@media (max-width: 1000px) {
  .landing main, .site-header, .site-footer { padding-left: 28px; padding-right: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 36px 0 72px; }
  .fire-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ruled-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .landing main, .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-actions { gap: 16px; }
  .site-nav-link { font-size: 14px; }
  .site-actions .button { padding: 8px 14px; min-height: 36px; font-size: 14px; }
  .site-header { gap: 12px; }
  .brand strong { font-size: 18px; }
  .site-actions .button { padding: 8px 12px; font-size: 13px; }
  .landing h1 { font-size: 40px; }
  .landing h2 { font-size: 26px; }
  .lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .slide { padding: 22px 18px 20px; }
  .scale-legend { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .scale-legend > div { border-top: 0; padding-top: 0; }
  .final-cta { padding: 32px 24px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* One-line lead on wide screens: the sentence is not wrapped unless the window is narrow. */
.lead.one-line { max-width: none; margin-top: 0; white-space: nowrap; }
@media (max-width: 900px) { .lead.one-line { white-space: normal; } }

/* Gap between the one-line lead and the tiles. */
.lead.one-line + .tiles { margin-top: 40px; }
