:root {
  --navy: #1c3f4d;
  --navy-dark: #122a34;
  --teal: #178a83;
  --rust: #c17817;
  --rust-dark: #a4650f;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #24333a;
  --muted: #5c6c73;
  --radius: 14px;
  --max: 1140px;
  color-scheme: light;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Archivo", inherit;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h2 { font-size: 2.1rem; }
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--teal-text); text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-lede {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(193, 120, 23, 0.35);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 28px;
}
.btn-disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 16px 42px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-nav {
  padding: 10px 22px;
  font-size: 0.85rem;
  background: var(--navy);
  color: var(--white);
}
.btn-nav:hover { background: var(--navy-dark); }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9e4d9;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.topbar-logo { height: 40px; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a:not(.btn) {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}
.topnav a:not(.btn):hover { color: var(--teal-text); }

/* Duplicate CTA + hamburger shown only on mobile (see media query below) */
.topbar-actions { display: none; align-items: center; gap: 12px; }
.topbar-cta { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 130px;
  text-align: center;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,42,52,0.72) 0%, rgba(18,42,52,0.55) 45%, rgba(18,42,52,0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo {
  max-width: 340px;
  width: 70%;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}
.hero-date {
  color: #7fd4cb;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: "Archivo Black", "Archivo", sans-serif;
  color: var(--white);
  font-size: 3.1rem;
  line-height: 1.08;
  max-width: 820px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-lede {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: #dfe9eb;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Fact band — countdown + key facts, one navy block under the hero */
.factband {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 0;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.stat span {
  display: block;
  color: #9fb3ba;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Klasser cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid #eee7d8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(28,63,77,0.12); }
.card-featured {
  background: var(--navy);
  border-color: var(--navy);
}
.card-featured:hover { box-shadow: 0 16px 34px rgba(28,63,77,0.3); }
.card-featured h3, .card-featured .card-tag { color: var(--white); }
.card-featured p { color: #c9d6da; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--teal-text);
  margin-bottom: 10px;
}
.card-featured .card-tag { color: #7fd4cb; }
.card-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.9rem;
}
.card-featured .card-price { border-top-color: rgba(255,255,255,0.15); }
.card-price span { color: var(--muted); }
.card-featured .card-price span { color: #9fb3ba; }
.card-price strong { color: var(--navy); font-size: 1.05rem; }
.card-featured .card-price strong { color: var(--white); }
.card-price em { font-style: normal; font-weight: 400; font-size: 0.8rem; opacity: 0.75; }
.card-note {
  margin-top: 28px;
  font-size: 0.9rem;
  padding: 16px 20px;
  background: #fbf0dd;
  border-left: 4px solid var(--rust);
  border-radius: 8px;
  color: var(--ink);
}

/* Galleri */
.galleri { background: var(--cream); }
.galleri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.galleri-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm, 0 10px 26px rgba(28,63,77,0.14));
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
}
.galleri-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,42,52,0) 60%, rgba(18,42,52,.32) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease, ease);
  pointer-events: none;
}
.galleri-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 16px 34px rgba(28,63,77,0.24));
}
.galleri-item:hover::after { opacity: 1; }
.galleri-wide { grid-column: span 2; grid-row: span 2; }
.galleri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.galleri-item:hover img { transform: scale(1.06); }

/* Bana */
.bana { background: var(--white); }
.bana-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}
/* Inline caveat — used where a figure needs a qualifier without shouting */
.note {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 16px;
}
.note::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.35em;
  width: 3px;
  border-radius: 2px;
  background: var(--rust);
  opacity: 0.55;
}
.note-inline { margin-bottom: 0; }
.bana-map img {
  width: 100%;
  /* The width/height attributes on this <img> are there to reserve layout
     space; height:auto lets the aspect ratio drive it instead of the raw
     pixel hint. */
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 12px 30px rgba(28,63,77,0.18);
}

/* Om (about the race + Singö) */
.om { background: var(--cream); }
.om-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
}
.om-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 12px 30px rgba(28,63,77,0.18);
}
.om-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.om-item h3 { color: var(--teal-text); }
.om-item p { margin: 0; }

/* Info */
.info { background: var(--white); }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  background: var(--cream);
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid #eee7d8;
}
.info-date {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--rust-text);
  font-size: 0.85rem;
  width: 140px;
}
.info-item p { margin: 0; }

/* Sponsorer */
.sponsorer { background: var(--cream); }
.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sponsor-tier {
  position: relative;
  border-radius: var(--radius);
  padding: 32px 26px;
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 12px 28px rgba(28,63,77,0.22));
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
}
.sponsor-tier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(165deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.sponsor-tier:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg, 0 20px 40px rgba(28,63,77,0.32));
}
.tier-guld { background: linear-gradient(150deg, #dba63a 0%, #c9962b 40%, #a4650f 100%); }
.tier-silver { background: linear-gradient(150deg, #94a3a9 0%, #7c8b91 40%, #59666b 100%); }
.tier-brons { background: linear-gradient(150deg, #ae7f5c 0%, #9a6a44 40%, #6f4c30 100%); }
.tier-stars {
  position: relative;
  display: block;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
}
.sponsor-tier h3 { position: relative; color: var(--white); }
.sponsor-tier p { position: relative; color: rgba(255,255,255,0.85); margin: 0; }

/* PM */
.pm-inner { text-align: center; max-width: 560px; }
.pm-schedule {
  list-style: none;
  margin: 28px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #eee7d8;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.pm-schedule li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  background: var(--cream);
}
.pm-schedule li:nth-child(even) { background: #fbf9f4; }
.pm-schedule strong {
  flex-shrink: 0;
  width: 100px;
  color: var(--rust-text);
  font-weight: 800;
  font-size: 0.92rem;
}
.pm-schedule span { color: var(--ink); }
.pm-schedule em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.pm-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }

/* Anmalan CTA */
.anmalan {
  position: relative;
  text-align: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.anmalan-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,42,52,0.86), rgba(18,42,52,0.9));
}
.anmalan-inner { position: relative; z-index: 1; }
.anmalan-inner h2 { color: var(--white); }
.anmalan-inner p { color: #c9d6da; margin-bottom: 28px; }

/* Footer */
footer {
  background: var(--navy-dark);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand { grid-column: 1; }
.footer-logo { height: 44px; filter: brightness(0) invert(1); }
.footer-tagline { color: #9fb3ba; font-size: 0.88rem; margin: 14px 0 0; max-width: 22em; }
.footer-col h3 { color: var(--white); font-size: 1rem; }
.footer-col p { color: #9fb3ba; margin: 0 0 4px; }
.footer-col a { color: #7fd4cb; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #9fb3ba; font-size: 0.92rem; transition: color .18s var(--ease, ease); }
.footer-links a:hover { color: #7fd4cb; }
.footer-copy {
  grid-column: 1 / -1;
  color: #6f8790;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin: 12px 0 0;
}

/* Regler (rules) accordion */
.regler-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.regler-group {
  background: var(--cream);
  border: 1px solid #eee7d8;
  border-radius: var(--radius);
  overflow: hidden;
}
.regler-group summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.regler-group summary::-webkit-details-marker { display: none; }
.regler-group summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rust-text);
  line-height: 1;
}
.regler-group[open] summary::after { content: "\2212"; }
.regler-group[open] summary { border-bottom: 1px solid #eee7d8; }
.regler-group summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 6px; }
.regler-body { padding: 4px 24px 20px; }
.regler-list { list-style: none; margin: 0; padding: 0; counter-reset: clause; }
.regler-list li {
  position: relative;
  counter-increment: clause;
  padding: 10px 0 10px 48px;
  color: var(--ink);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.regler-list li:first-child { border-top: none; }
.regler-list li::before {
  content: counter(clause) " §";
  position: absolute;
  left: 0; top: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rust-text);
  font-size: 0.9rem;
}
.tbd {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--rust-text);
  background: #fbf0dd;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 1px;
}

@media (max-width: 860px) {
  .topbar-actions { display: flex; }
  .topbar-cta { display: inline-block; padding: 10px 18px; font-size: 0.82rem; }
  .nav-toggle { display: flex; }

  .topnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e9e4d9;
    box-shadow: 0 16px 30px rgba(28,63,77,0.14);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .topnav.is-open {
    max-height: 480px;
    visibility: visible;
    opacity: 1;
  }
  .topnav a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid #f0ece1;
  }
  .topnav-cta { display: none; }

  .hero { padding: 110px 0 90px; }
  .hero h1 { font-size: 2.1rem; }
  .card-grid, .om-grid, .sponsor-tiers { grid-template-columns: 1fr; }
  .bana-inner, .om-inner { grid-template-columns: 1fr; }
  .om-photo img { min-height: 220px; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  /* Polish layer's divider is built for a single row of 4; in the 2x2
     mobile wrap it left an orphaned line before item 3 (row 2, col 1),
     which has nothing to its left to divide. Only the 2nd column of
     each row (items 2 and 4) should keep it. */
  .stat:nth-child(3)::before { content: none; }
  .galleri-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .galleri-wide { grid-column: span 2; grid-row: span 1; }
  section { padding: 60px 0; }
}

/* ============================================================
   VISUAL POLISH LAYER — v1 (direction sample: hero, stats, klasser)
   Same palette, same copy, same structure. Depth + rhythm + motion.
   Source: Lovable design pass, reapplied on top of the real photos
   and the favicon/mobile-nav fixes (the AI-generated photo swap and
   the reverted favicon from that pass were NOT carried over).
   ============================================================ */

:root {
  --sand: #efe9dc;
  --line: #e4dcca;
  --teal-soft: #7fd4cb;
  /* Darkened variants of --rust/--rust-dark/--teal for text use only —
     the originals fall short of WCAG AA (4.5:1) at the small sizes they're
     used at for labels/links/numbering. Decorative uses (borders, accent
     lines, gradients, backgrounds) keep the original brand colors. */
  --rust-text: #8a570d;
  --teal-text: #0f6963;
  --shadow-sm: 0 1px 2px rgba(18,42,52,.06), 0 2px 6px rgba(18,42,52,.05);
  --shadow-md: 0 2px 6px rgba(18,42,52,.06), 0 14px 30px -12px rgba(18,42,52,.22);
  --shadow-lg: 0 4px 10px rgba(18,42,52,.07), 0 30px 60px -22px rgba(18,42,52,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Fluid type + tighter optical rhythm */
h1, h2, h3, .btn, .stat strong { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.1; }
.section-lede { color: var(--muted); line-height: 1.6; }
section { padding: clamp(64px, 5.5vw, 104px) 0; }

/* Section headings get a small rust rule instead of floating alone */
.om h2, .klasser h2, .galleri h2, .bana h2, .regler h2, .faq h2, .info h2, .sponsorer h2, .pm h2 {
  position: relative;
  padding-top: 18px;
}
.om h2::before, .klasser h2::before, .galleri h2::before, .bana h2::before,
.regler h2::before, .faq h2::before, .info h2::before, .sponsorer h2::before, .pm h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  border-radius: 2px;
  background: var(--rust);
}
.pm h2::before { left: 50%; transform: translateX(-50%); }

/* Focus states — always visible, never removed */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero a:focus-visible, .anmalan a:focus-visible { outline-color: var(--teal-soft); }

/* Buttons: firmer press feedback, no bounce */
.btn { transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease); }
.btn-primary { box-shadow: 0 1px 2px rgba(122,74,10,.3), 0 10px 24px -8px rgba(193,120,23,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(122,74,10,.3), 0 16px 32px -10px rgba(193,120,23,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { backdrop-filter: blur(4px); background: rgba(255,255,255,.06); }

/* Topbar: only gains weight once you scroll */
.topbar { background: rgba(255,255,255,.72); border-bottom-color: transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.topbar.is-stuck { background: rgba(255,255,255,.94); border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(18,42,52,.6); }
.topnav a:not(.btn) { position: relative; }
.topnav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.topnav a:not(.btn):hover::after { transform: scaleX(1); }

/* Hero: deeper scrim with a teal cast, soft vignette, staged entrance */
.hero { padding: clamp(120px, 13vw, 190px) 0 clamp(110px, 12vw, 170px); }
.hero-scrim {
  background:
    radial-gradient(120% 80% at 50% 35%, rgba(18,42,52,.28) 0%, rgba(18,42,52,.72) 70%, rgba(18,42,52,.92) 100%),
    linear-gradient(180deg, rgba(18,42,52,.65) 0%, rgba(23,138,131,.20) 45%, rgba(18,42,52,.92) 100%);
}
.hero-date {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(127,212,203,.35);
  background: rgba(18,42,52,.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-date::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-soft); flex: none;
}
.hero h1 { letter-spacing: -0.03em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-lede { color: #e6eff0; }

.hero-logo, .hero-date, .hero h1, .hero-lede, .hero-actions { animation: heroIn .8s var(--ease) both; }
.hero-date { animation-delay: .06s; }
.hero h1 { animation-delay: .12s; }
.hero-lede { animation-delay: .18s; }
.hero-actions { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Fact band: hairline dividers instead of floating columns */
.factband { background: linear-gradient(180deg, var(--navy) 0%, #163646 100%); }
.stat { position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 8%; bottom: 8%;
  width: 1px; background: rgba(255,255,255,.14);
}
.stat strong { letter-spacing: -0.02em; }

/* Klasser cards: layered surface, accent hairline, clearer price row */
.card {
  position: relative;
  background: linear-gradient(180deg, #fbf9f4 0%, var(--cream) 100%);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--teal); opacity: .55;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); opacity: 1; }
.card-featured { background: linear-gradient(165deg, #21495a 0%, var(--navy) 55%, var(--navy-dark) 100%); box-shadow: var(--shadow-md); }
.card-featured::before { background: var(--rust); opacity: 1; transform: scaleX(1); }
.card-tag { text-transform: uppercase; }
.card h3 { margin-bottom: .55em; }
.card-price { align-items: center; }
.card-price strong { letter-spacing: -0.01em; }
.card-note { box-shadow: var(--shadow-sm); border-left-width: 5px; }

/* Scroll reveal (JS adds .reveal / .is-in) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-logo, .hero-date, .hero h1, .hero-lede, .hero-actions {
    animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

/* Hero logo must own its line (the date pill is inline-level) */
.hero-logo { display: block; margin-left: auto; margin-right: auto; }
.hero-date { margin-bottom: 18px; }

/* Regler + footer: mobile layout */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .regler-group summary { padding: 16px 18px; font-size: 0.98rem; }
  .regler-body { padding: 4px 18px 18px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPONENTS — v2
   Countdown band, FAQ, timeline, registration status, skip link.
   Same palette and rhythm as the polish layer above.
   ============================================================ */

/* Skip link — first tab stop, hidden until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.topbar-brand { display: inline-flex; align-items: center; }
.topbar-brand:focus-visible { outline-offset: 6px; }

/* Anchor targets sit under the sticky header without this */
section[id], footer[id] { scroll-margin-top: 84px; }

/* Nav: mark the section you're currently reading */
.topnav a:not(.btn)[aria-current] { color: var(--teal-text); }
.topnav a:not(.btn)[aria-current]::after { transform: scaleX(1); }

/* ---- Fact band: countdown over key facts ---- */
.factband { padding: 0; }
.factband-inner { padding-top: 38px; }

.countdown-block { text-align: center; }
.countdown-eyebrow {
  margin: 0 0 16px;
  color: var(--teal-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.countdown {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 540px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.countdown li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 15px 6px 13px;
}
.countdown-num {
  display: block;
  color: var(--white);
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  margin-top: 7px;
  color: #9fb3ba;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.countdown-fallback { margin: 16px 0 0; color: #9fb3ba; font-size: 0.84rem; }

.countdown-block + .stat-strip-inner {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0 34px;
}

/* ---- FAQ (reuses the .regler-group accordion, on a cream section) ---- */
.faq { background: var(--cream); }
.faq .regler-group { background: var(--white); border-color: var(--line); }
.faq .regler-group[open] summary { border-bottom-color: var(--line); }
.faq .regler-body { padding: 16px 24px 20px; }
.faq .regler-body p { margin: 0; }
.faq .section-lede a { font-weight: 700; }

/* ---- Timeline: the road to race day ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: start;
}
.timeline-date {
  padding-top: 1px;
  color: var(--rust-text);
  font-size: 0.88rem;
  font-weight: 800;
}
.timeline-body {
  position: relative;
  padding: 0 0 34px 30px;
  border-left: 2px solid var(--line);
}
.timeline-item:last-child .timeline-body { border-left-color: transparent; padding-bottom: 0; }
.timeline-body::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--line);
}
.timeline-item.is-done .timeline-body::before { background: var(--teal); border-color: var(--teal); }
.timeline-item.is-race .timeline-body::before {
  background: var(--rust);
  border-color: var(--rust);
  box-shadow: 0 0 0 5px rgba(193,120,23,0.16);
}
.timeline-body h3 { margin: 0 0 0.35em; font-size: 1.05rem; }
.timeline-body p { margin: 0; }

/* ---- Registration CTA: honest status, then the ask ---- */
.anmalan-inner .anmalan-status {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(127,212,203,0.35);
  border-radius: 999px;
  background: rgba(18,42,52,0.35);
  backdrop-filter: blur(6px);
  color: var(--teal-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.anmalan-inner p:not(.anmalan-status):not(.anmalan-fine) { max-width: 620px; margin-inline: auto; }
.anmalan-inner .anmalan-fine {
  margin: 20px 0 0;
  color: #9fb3ba;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .factband-inner { padding-top: 32px; }
  .countdown { gap: 8px; }
  .countdown li { padding: 13px 4px 11px; }
  .countdown-label { font-size: 0.6rem; letter-spacing: 0.06em; }
  .countdown-block + .stat-strip-inner { margin-top: 26px; padding: 24px 0 30px; }

  /* The 4-up divider orphans a line before item 3 once the band wraps to 2x2.
     There is an override for this earlier in the file, but it sits above the
     polish layer's `.stat + .stat::before` and loses on source order — so it
     has to be restated down here, where it actually wins. */
  .stat:nth-child(3)::before { content: none; }

  .timeline-item { grid-template-columns: 1fr; gap: 0; }
  .timeline-date { padding: 0 0 6px 30px; }
  .timeline-body { padding-bottom: 28px; }
  .timeline-body::before { top: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
