/* Tiny Trails landing page. Tokens from docs/brand-guide.md. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Fredoka"; src: url("assets/fonts/Fredoka-VF.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-VF.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #2A2140;
  --ink-soft: #4E4566;
  --paper: #FFFFFF;
  --meadow: #F6F2FD;
  --purple-700: #6A35B4;
  --purple-800: #55298F;
  --purple-500: #8F50D1;
  --purple-100: #EFE7FB;
  --teal-700: #0B6E78;
  --teal-400: #53D3E0;
  --sun: #FFC93C;
  --sun-soft: #FFF4D6;
  --present: #17704A;
  --line: #E4DCF3;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --trail-x: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* full-bleed bands use 100vw; never let them cause sideways scrolling */
}
img, svg { display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-weight: 600; font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.01em; max-width: 15ch; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.25rem); max-width: 26ch; }
h3 { font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 155px; height: auto; }

/* Buttons */
.btn {
  display: inline-block; background: var(--purple-700); color: #fff; text-decoration: none;
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.0625rem;
  padding: 14px 24px; border-radius: 999px; min-height: 48px; line-height: 1.25;
}
.btn:hover { background: var(--purple-800); color: #fff; }
.btn-small { font-size: 0.95rem; padding: 10px 18px; min-height: 44px; }
.link { font-weight: 700; }

/* Hero: the trail walks in once */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-trail { width: min(980px, 92vw); height: auto; margin: 0 auto clamp(28px, 5vw, 56px); padding: 0 var(--gutter); }
.hero-trail .step { opacity: 0; animation: step-in 420ms ease-out forwards; animation-delay: calc(var(--i) * 170ms + 150ms); }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-trail .step { opacity: 1; animation: none; } }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* The trail down the page: a dotted path in the left gutter, one footprint per section */
/* The trail column is centred with the content; bands bleed full width behind it */
.trail-path { position: relative; max-width: var(--wrap); margin: 0 auto; }
.step { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.step .wrap { max-width: none; }
/* The 2017 letterhead pattern, full width behind the band */
.band { isolation: isolate; }
.band::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1;
  background: var(--meadow) url("assets/pattern.svg") center / 560px repeat;
}
.mark { display: none; }
@media (min-width: 1000px) {
  .trail-path::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 18px);
    border-left: 3px dotted var(--purple-100);
  }
  .step .wrap { padding-left: calc(var(--gutter) + 72px); }
  .mark {
    display: block; position: absolute; left: calc(var(--gutter) - 2px); top: clamp(60px, 8vw, 108px);
    width: 42px; height: 42px; transform: rotate(90deg); background: var(--paper); padding: 4px;
  }
  .band .mark { background: var(--meadow); }
  .partners .mark { background: var(--paper); }
  #building .mark { color: var(--teal-400); }
  #rules .mark, #trust .mark, #partners .mark { color: var(--purple-500); }
  #questions .mark { color: var(--teal-400); }
}
.mark use { fill: currentColor; }

/* Features with product fragments */
.feature {
  display: grid; grid-template-columns: 1fr; gap: 20px 56px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 16px; }
@media (min-width: 760px) { .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.feature-text p { color: var(--ink-soft); max-width: 52ch; }

.fragment {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -18px rgba(42, 33, 64, 0.35);
  font-variant-numeric: tabular-nums;
}
.fragment figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.invoice dl { margin: 0; }
.invoice dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.invoice dt { margin: 0; }
.invoice dd { margin: 0; font-weight: 700; }
.invoice .total { border-bottom: 0; padding-top: 12px; font-size: 1.2rem; }
.invoice .total dd { color: var(--purple-700); }
.invoice .note { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

.room-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; margin: 0; }
.room-count { margin: 0 0 10px; color: var(--ink-soft); }
.room-count span { color: var(--ink); font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 4px 12px 4px 8px; border-radius: 999px; margin: 0 0 14px; }
.status svg { width: 16px; height: 16px; }
.status.ok { color: var(--present); background: #E3F4EB; }
.checklist { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.checklist li { position: relative; padding: 4px 0 4px 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border: 2px solid var(--ink-soft); border-radius: 4px; }
.checklist li.done::before { background: var(--purple-700); border-color: var(--purple-700); }
.checklist li.done::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist li:not(.done) { font-weight: 700; }

.day ol { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: 7px 0; color: var(--ink-soft); }
.day time { color: var(--ink); font-weight: 700; }
.day li.exception { color: var(--ink); font-weight: 700; background: var(--purple-100); border-radius: var(--radius-sm); padding: 7px 10px; margin: 2px -10px; }

/* Bands */
.band p { max-width: 62ch; }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 14px 0; border-top: 1px solid var(--line); max-width: 62ch; color: var(--ink-soft); }
.plain li:first-child { border-top: 0; }
.plain strong { color: var(--ink); }

/* Founding partner offer: the one place the sun colour appears */
.offer {
  background: var(--sun-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
  border-left: 8px solid var(--sun);
}
.offer > p { max-width: 60ch; }
.offer-cols { display: grid; grid-template-columns: 1fr; gap: 8px 48px; margin: 20px 0 28px; }
@media (min-width: 640px) { .offer-cols { grid-template-columns: 1fr 1fr; } }
.offer ul { margin: 0; padding-left: 1.2em; }
.offer li { padding: 3px 0; }
.small { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 4px 0; max-width: 62ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--purple-700); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #E9E4F4; padding: 40px 0; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.footer-row img { width: 150px; height: auto; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.site-footer .small { color: #C9C1DC; }
