@font-face { font-family: "Bungee"; src: url("fonts/Bungee.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {

  --bg-primary: #C8462B;
  --surface-primary: #FFF4E0;
  --surface-raised: #FFFFFF;
  --surface-deep: #9E3420;
  --text-primary: #1A1A1A;
  --text-secondary: #3B3530;
  --text-tertiary: #665C52;
  --text-disabled: #8A7F73;
  --text-inverse: #FFF4E0;
  --text-on-action: #FFD21F;
  --text-link: #9E3420;
  --text-error: #B3261E;
  --accent: #FFD21F;
  --accent-subtle: #FFF2B3;
  --accent-text: #1A1A1A;
  --accent-track: #E9D3AA;
  --accent-track-ahead: #E0632F;
  --action-primary: #1A1A1A;
  --action-disabled: #F7E7C9;
  --action-tertiary-hover: #FFF2B3;
  --border-default: #1A1A1A;
  --border-subtle: #E9D3AA;
  --border-error: #B3261E;
  --font-heading: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Nunito", -apple-system, system-ui, sans-serif;
  --shadow-hard: 4px 4px 0 #1A1A1A;
  --shadow-hard-sm: 2px 2px 0 #1A1A1A;
  --shadow-card: var(--shadow-hard);
  --radius-card: 16px;
  --radius-control: 14px;
  --page: 1080px;
}

:where(html, body, div, section, header, footer, main, article, nav, ul, ol, li, dl, a, button, img) { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 128px; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 500 16px/1.4 var(--font-body);
  font-size-adjust: from-font;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; color: var(--text-primary); line-height: 1.25; }
a { color: var(--text-link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface-primary); border-bottom: 2px solid var(--border-default); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); font: 400 15px/1.25 var(--font-heading); }
.brand img { width: 36px; height: 36px; flex: none; border-radius: 8.4px; }
.site-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px 4px 4px 2px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; font: 700 13px/16px var(--font-body); color: var(--text-primary); text-decoration: none; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--border-default); background: var(--surface-raised); box-shadow: var(--shadow-hard-sm); }
.site-nav a:hover { background: var(--action-tertiary-hover); }
.site-nav a[aria-current="page"] { background: var(--accent); }

.card { position: relative; background: var(--surface-primary); border: 3px solid var(--border-default); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px; }
.rings { display: flex; justify-content: center; gap: 22px; height: 22px; margin: -11px auto 0; position: relative; z-index: 1; }
.rings span { width: 8px; height: 22px; border-radius: 4px; background: var(--border-default); }
.rings + .card { padding-top: 28px; }
.eyebrow { font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-link); margin: 0 0 8px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-secondary); margin: 12px 0 0; }

.on-screen, .on-screen h2 { color: var(--text-inverse); }
.on-screen .eyebrow { color: var(--text-inverse); }
.on-screen .lead { color: var(--text-inverse); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: var(--radius-control); border: 2px solid var(--border-default); text-decoration: none; }
.btn-primary { background: var(--action-primary); color: var(--text-on-action); font: 400 16px/1.2 var(--font-heading); letter-spacing: 0.02em; box-shadow: var(--shadow-hard); }
.btn-secondary { background: var(--surface-primary); color: var(--text-primary); font: 700 16px/1.4 var(--font-body); box-shadow: var(--shadow-hard-sm); }
.btn:hover { transform: translate(-1px, -1px); }

.hero { display: grid; gap: 32px; padding-block: 36px 24px; align-items: center; }
.hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.1; color: var(--text-inverse); text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-note { max-width: 400px; width: 100%; justify-self: center; }
.hero-note .amount { font: 400 40px/1.2 var(--font-heading); margin: 4px 0 0; }
.hero-note .mascot { position: absolute; right: 10px; top: 14px; width: 104px; height: 104px; object-fit: contain; }
.track { position: relative; display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 12px; margin-top: 44px; border: 2px solid var(--border-default); border-radius: 16px; background: var(--surface-primary); }
.print { width: 10px; height: 10px; flex: none; background: url("form/footprint-done.svg") center / contain no-repeat; }
.print.ahead { background-image: url("form/footprint-ahead.svg"); }

.track .runner { position: absolute; top: -26px; left: calc((100% - 34px) * 4 / 24); width: 34px; height: 34px; object-fit: contain; }
.range { display: flex; justify-content: space-between; font: 700 12px/1.4 var(--font-body); color: var(--text-secondary); margin-top: 8px; }
.hero-note .terms-line { margin: 16px 0 0; padding-top: 12px; border-top: 1.5px dashed var(--border-default); font: 700 13px/1.4 var(--font-body); color: var(--text-secondary); }

.section { padding-block: 28px; }
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; }
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.step h3 { font-size: 18px; line-height: 1.3; }
.step p { margin: 6px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.step-num { font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); background: var(--accent); border: 2px solid var(--border-default); border-radius: 8px; padding: 2px 8px; display: inline-block; margin-bottom: 8px; }

.terms-grid { display: grid; gap: 16px; }
.terms-grid .card h3 { font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-link); }
.terms-grid .figure { font: 400 26px/1.25 var(--font-heading); margin-top: 6px; }
.terms-grid .card p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.fine { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.example { margin-top: 16px; background: var(--accent-subtle); }

.notice { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--accent-subtle); }
.notice img { width: 112px; height: 112px; object-fit: contain; flex: none; }
.notice h2 { font-size: 22px; line-height: 1.25; }
.notice p { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface-primary); border-radius: var(--radius-control); border: 2px solid var(--border-default); box-shadow: var(--shadow-hard-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font: 700 16px/1.4 var(--font-body); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--font-heading); color: var(--text-primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] { background: var(--surface-raised); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

.company { display: grid; gap: 16px; }
.company dl { margin: 0; display: grid; gap: 12px; }
.company dt { font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-link); }
.company dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

.legal { padding: 20px 0 40px; }
.legal .wrap { max-width: 800px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 20px; padding: 0 16px; border-radius: var(--radius-control); border: 2px solid var(--border-default); background: var(--surface-primary); box-shadow: var(--shadow-hard-sm); color: var(--text-primary); font: 700 15px/1.4 var(--font-body); text-decoration: none; }
.back-link[hidden] { display: none; }
.back-link:hover { background: var(--action-tertiary-hover); }
.legal .card { padding: 28px 18px 32px; }
.legal h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.2; }
.legal h2 { font-size: 17px; line-height: 1.35; margin: 28px 0 8px; padding-top: 20px; border-top: 1.5px dashed var(--border-default); }
.legal p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.legal p.legal-meta { font-size: 13px; line-height: 1.4; color: var(--text-tertiary); margin-top: 8px; }
.legal-facts { list-style: none; margin: 0 0 12px; padding: 0; }
.legal-facts li { padding: 10px 0; border-bottom: 1.5px dashed var(--border-subtle); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.legal-facts li span { display: block; font: 800 12px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-link); margin-bottom: 2px; }
.legal :where(p, li) { overflow-wrap: anywhere; }

.site-footer { margin-top: 24px; padding: 24px 0 40px; font-size: 14px; line-height: 1.5; color: var(--text-inverse); border-top: 2px solid var(--border-default); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-inverse); font-weight: 700; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding-block: 64px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .terms-grid { grid-template-columns: repeat(3, 1fr); }
  .company { grid-template-columns: 1fr 1fr; }
  .legal .card { padding: 40px 48px 48px; }
  .notice { flex-direction: row; align-items: center; gap: 20px; }
  .notice img { width: 150px; height: 150px; }
  [id] { scroll-margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
