/* TrailVector website, in the app's look (its dark mode): the brand green darkened, cards a step lighter than the
   page, and bands like the top of the app (.hero in the app's src/styles.css): a green gradient with a glow of light
   green and the association's contour lines. Headings in Barlow Semi Condensed and text in Inter, as in the app. */

/* Barlow Semi Condensed and Inter, as in the app: Latin letters only, served from here.
   Licences: assets/fonts/BarlowSemiCondensed-OFL.txt and assets/fonts/Inter-OFL.txt. */
@font-face {
  font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
  /* The app's brand colours (associations/demo/association.json) and its dark mode. */
  --primary: #2b4519;
  --green: #69a03b;          /* buttons (dark text on it), ticks */
  --green-hover: #7db24b;
  --accent: #b4d09d;         /* the app's --hero-accent: light green text on the bands */
  --bg: #0d130f;
  --surface: #1c2620;
  --surface-2: #232e26;
  --border: #2d3a31;
  --text: #e7ede8;
  --muted: #9fab9f;
  --on-green: #0d130f;
  --brand-deep: color-mix(in srgb, var(--primary) 55%, #000);   /* the app's top bar */
  --radius: 14px;
  --radius-card: 12px;
  --heading: #fff;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv05";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; line-height: 1.04; letter-spacing: -.02em; margin: 0; font-family: "Barlow Semi Condensed", "Inter", ui-sans-serif, system-ui, sans-serif; font-weight: 700; color: var(--heading); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Buttons, square-cornered like the app's */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  background: var(--surface-2); color: #fff; border: 1.5px solid transparent; transition: background-color .12s, border-color .12s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 40%); }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 6%); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-large { min-height: 56px; padding: 0 32px; font-size: 18px; }

/* The header and footer: the logo without its tagline (assets/img/wordmark.png, transparent), as in the app's header. */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.site-footer .logo img { height: 28px; }
/* The full logo, with its tagline. It's drawn on black, so screen drops the black on any dark background. */
.logo-big, .mark-big { mix-blend-mode: screen; }

/* Header: the app's top bar */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(24 38 14 / 96%); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(255 255 255 / 8%); isolation: isolate; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: rgb(255 255 255 / 78%); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid rgb(255 255 255 / 35%); border-radius: 4px; color: #fff; font: inherit; font-weight: 600; font-size: 15px; min-height: 40px; padding: 0 14px; cursor: pointer; }

/* Bands like the top of the app: the brand green darkened, a glow of light green top right, deeper green bottom
   left, and the contour lines (assets/img/contours.svg: the demo's hills above Ballater, every 20 m) at the app's
   strength. */
.band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(900px 640px at 100% 0%, color-mix(in srgb, var(--green) 22%, transparent), transparent 60%),
    radial-gradient(900px 720px at 0% 100%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 70%, #000), var(--brand-deep));
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .11; background: #fff;
  mask: url("../img/contours.svg") 70% 30% / cover no-repeat; -webkit-mask: url("../img/contours.svg") 70% 30% / cover no-repeat;
}

/* Eyebrows: wide-spaced capitals, like the logo's tagline */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.band .eyebrow { color: var(--accent); }

/* Hero */
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: .98; }
.hero h1 .accent { color: var(--accent); }
.lede { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: rgb(255 255 255 / 86%); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 36px; font-size: 15px; font-weight: 600; color: rgb(255 255 255 / 90%); }
.hero-points li { position: relative; padding-left: 26px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%230d130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, rgb(13 19 15 / 55%)); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 40%)); }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: linear-gradient(180deg, #111b14, #0f1711); }

/* Light sections: a pale, misty green that breaks up the dark page */
.section.light {
  --bg: #eef3ea; --surface: #fff; --surface-2: #f6f9f3; --border: #d7e0d1; --text: #1a231d; --muted: #56635a; --heading: #0f1a12;
  background: var(--bg); color: var(--text); color-scheme: light;
}
.section.light .eyebrow { color: #3d6a1f; }
.section.light a:not(.btn) { color: #3d6a1f; }
.section.light .icon { background: color-mix(in srgb, var(--green) 14%, #fff); }
.section.light .icon svg { stroke: #4b8526; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h1, .section-head h2 { font-size: clamp(36px, 5vw, 58px); }
.section-head p:not(.eyebrow) { margin-top: 20px; font-size: 19px; color: var(--muted); }
h2 { font-size: clamp(34px, 4.4vw, 52px); }
.lede-sm { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 560px; }
.band .lede-sm { color: rgb(255 255 255 / 82%); }

/* Key features at a glance */
#features { padding-bottom: 24px; }
.jump { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.jump a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-card); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
  color: #fff; font-family: "Barlow Semi Condensed", "Inter", sans-serif; font-weight: 700; font-size: 21px; transition: border-color .15s, background-color .15s, transform .15s;
}
.jump a:hover { border-color: var(--green); background: var(--surface-2); transform: translateY(-2px); }

/* Icons: line drawings in green on a dark tile, like the app's */
.icon { flex: none; width: 46px; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--green) 16%, var(--surface)); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Feature blocks: the copy beside an illustration, alternating sides */
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-block.flip .feature-copy { order: 2; }
.feature-block + .feature-block { padding-top: 24px; }
.feature-block h2 { font-size: clamp(34px, 4.2vw, 50px); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 32px; color: var(--muted); font-size: 16.5px; }
.points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--green) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3 8.6 13 14 7' fill='none' stroke='%2369a03b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.points strong { color: var(--text); font-weight: 650; }
.band .points li { color: rgb(255 255 255 / 80%); }
.band .points strong { color: #fff; }
.tag { display: inline-block; margin-top: 28px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--accent); }

/* Illustrations: the app's look in drawings (scripts/illustrations.py), framed like a card */
.illus { overflow: hidden; background: #0d130f; border: 1px solid #2d3a31; border-radius: var(--radius); box-shadow: 0 0 0 8px rgb(105 160 59 / 6%), 0 30px 60px rgb(0 0 0 / 35%); }
.illus svg { display: block; width: 100%; height: auto; }

/* Maps and trail design */
.design-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.design-section h2 { font-size: clamp(34px, 4.4vw, 52px); }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.two-lists h3 { font-size: 24px; color: var(--accent); }
.two-lists .points { margin-top: 14px; }
.two-lists .points li { font-size: 15.5px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); padding: 24px 22px 26px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.section.light .tile { box-shadow: 0 1px 2px rgb(15 26 18 / 6%), 0 8px 24px rgb(15 26 18 / 6%); }
.section.light .tile:hover { box-shadow: 0 2px 4px rgb(15 26 18 / 8%), 0 16px 32px rgb(15 26 18 / 10%); }
.tile .icon { margin-bottom: 16px; }
.tile h3 { font-size: 22px; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15px; }
#offline .tiles, #trails .tiles { grid-template-columns: repeat(3, 1fr); }

/* For the association */
.admin-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.admin-art { display: grid; gap: 18px; }
.admin-art .illus:not(.illus-wide) { width: 62%; margin-left: auto; margin-top: -90px; position: relative; }

/* Modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
.section.light .mod { box-shadow: 0 1px 2px rgb(15 26 18 / 6%), 0 8px 24px rgb(15 26 18 / 6%); }
.mod h3 { font-size: 24px; }
.mod p { color: var(--muted); font-size: 15px; }
.mod .needs { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--green); }
.section.light .mod .needs, .section.light .mod.free .label { color: #3d6a1f; }
.mod.core { background: linear-gradient(160deg, #345420, var(--primary)); border-color: var(--green); --heading: #fff; }
.mod.core p { color: #dce8d1; }
.mod.core .label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.mod.mix { background: transparent; border-style: dashed; box-shadow: none; }
.mod-notes { margin-top: 24px; display: grid; gap: 12px; max-width: 760px; }
.mod-notes p { color: var(--muted); font-size: 15px; }
.mod-notes strong { color: var(--text); }
.mod-notes .founding { padding: 16px 20px; border: 1px solid var(--green); border-radius: var(--radius-card); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.mod.free { border-color: var(--green); }
.mod.free .label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }

/* Cards: small bands */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 36px 32px; border-radius: var(--radius-card); text-align: center; }
.card-art { width: 120px; height: 64px; margin: 0 auto 18px; display: block; }
.card h3 { font-size: 26px; }
.card p { margin-top: 10px; color: rgb(255 255 255 / 78%); font-size: 16px; }

/* Getting started */
.start-section { padding-bottom: 72px; }
.journey.journey-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journey-3 p { font-size: 16px; }

/* About */
.about-body { display: grid; gap: 18px; font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 auto; }
.about-body p:first-child { color: var(--text); font-size: 21px; line-height: 1.55; padding-left: 22px; border-left: 3px solid var(--green); }

/* FAQ */
.faq-section { padding-top: 0; }
.faq { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
details + details { border-top: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-weight: 650; font-size: 18px; position: relative; color: #fff; transition: background-color .12s; }
summary:hover { background: var(--surface-2); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent); font-size: 20px; line-height: 1; font-weight: 500; color: var(--green); }
details[open] summary::after { content: "–"; }
details p { padding: 0 26px 24px; color: var(--muted); max-width: 680px; }

/* CTA */
.cta { text-align: center; padding: 128px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h1, .cta h2 { font-size: clamp(40px, 5.6vw, 66px); }
.cta p { margin-top: 18px; font-size: 19px; color: rgb(255 255 255 / 82%); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta .small { font-size: 15px; margin-top: 18px; }
.logo-big { width: min(680px, 100%); height: auto; margin-bottom: 44px; }

/* Footer */
.site-footer { background: var(--brand-deep); color: rgb(255 255 255 / 60%); padding: 44px 0 36px; font-size: 14px; border-top: 1px solid rgb(255 255 255 / 8%); isolation: isolate; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-links a { color: rgb(255 255 255 / 75%); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.legal-line { flex-basis: 100%; margin-top: 10px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 8%); font-size: 12.5px; color: rgb(255 255 255 / 52%); }

/* The privacy and legal page */
.section.legal { background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--green) 18%, transparent), transparent 70%), linear-gradient(180deg, #16220f 0, var(--bg) 460px); }
.legal h1 { font-size: clamp(38px, 5.4vw, 58px); }
.legal h2 { font-size: 28px; margin: 48px 0 12px; padding-top: 32px; border-top: 1px solid var(--border); }
.legal p { color: var(--muted); margin-top: 12px; }
.legal p strong { color: var(--text); }
.legal .updated { font-size: 14px; margin: 12px 0 24px; }
.legal-list { margin: 12px 0 0; padding-left: 22px; color: var(--muted); }
.legal-list li + li { margin-top: 8px; }
.legal-list li::marker { color: var(--green); }
.legal-list strong { color: var(--text); }
.draft-note { border-left: 3px solid #e39b2d; border-radius: 0 8px 8px 0; background: rgb(227 155 45 / 10%); padding: 12px 16px; margin-bottom: 8px; }
.legal-index { margin-top: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art svg { max-width: 340px; }
  .feature-inner, .design-inner, .admin-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-block.flip .feature-copy { order: 0; }
  .jump, .tiles, .mods { grid-template-columns: 1fr 1fr; }
  #offline .tiles, #trails .tiles { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-deep); padding: 8px 16px 18px; border-bottom: 1px solid rgb(255 255 255 / 8%);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
  .site-nav .btn { margin-top: 14px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-inner { padding-bottom: 60px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
  .about-body p:first-child { font-size: 19px; }
  .jump { grid-template-columns: 1fr 1fr; gap: 8px; }
  .jump a { padding: 12px; font-size: 18px; gap: 10px; }
  .jump .icon { width: 36px; height: 36px; }
  .jump .icon svg { width: 20px; height: 20px; }
  .tiles, #offline .tiles, #trails .tiles, .mods, .two-lists { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px; }
  .tile .icon { grid-row: span 2; align-self: start; margin-bottom: 0; width: 40px; height: 40px; }
  .tile p { grid-column: 2; margin-top: 4px; }
  .admin-art .illus:not(.illus-wide) { width: 80%; margin-top: -40px; }
  .logo img { height: 28px; }
  .footer-links { margin-left: 0; }
  summary { padding: 18px 48px 18px 16px; font-size: 17px; }
  summary::after { right: 16px; }
  details p { padding: 0 16px 20px; }
}

/* The private walkthrough page */
.private-page { background: var(--bg); }
.private-page .header-inner .btn { margin-left: auto; }
.private-video { min-height: calc(100vh - 68px - 100px); }
.section-head.light h1, .section-head.light h2 { color: #fff; }
.section-head.light p:not(.eyebrow) { color: rgb(255 255 255 / 80%); }
.video-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.video-frame { overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius); box-shadow: 0 30px 60px rgb(0 0 0 / 35%); }
.video-frame video { width: 100%; height: 100%; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; background: rgb(13 19 15 / 70%); border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius-card); overflow: hidden; }
.chapters li + li { border-top: 1px solid rgb(255 255 255 / 10%); }
.chapters button {
  width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 0; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; transition: background-color .12s, color .12s;
}
.chapters button span { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 13px; font-weight: 700; min-width: 34px; }
.chapters button:hover { background: rgb(255 255 255 / 6%); color: #fff; }
.chapters button.active { background: color-mix(in srgb, var(--green) 20%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--green); }

/* Pages with a single header button (legal pages, walkthrough): keep the logo and button apart on small phones */
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .header-inner > .logo img { height: 24px; }
  .header-inner > .btn-small { padding: 0 12px; font-size: 14px; }
}

/* After the rules above, so they win: the video above its chapters on smaller screens */
@media (max-width: 960px) {
  .video-layout { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .chapters li + li { border-top: 0; }
  .chapters li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 10%); }
  .chapters li:nth-child(even) { border-left: 1px solid rgb(255 255 255 / 10%); }
}
@media (max-width: 600px) {
  .chapters { grid-template-columns: 1fr; }
  .chapters li:nth-child(even) { border-left: 0; }
  .chapters li + li { border-top: 1px solid rgb(255 255 255 / 10%); }
}

/* The walkthrough's lock screen (worker/index.js) */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.lock-card { position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--text); padding: 36px 32px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 30px 60px rgb(0 0 0 / 35%); isolation: isolate; }
.lock-card h1 { font-size: 34px; }
.lock-card p { margin-top: 10px; color: var(--muted); }
.lock-card form { margin-top: 24px; display: grid; gap: 12px; text-align: left; }
.lock-card label { font-weight: 600; font-size: 15px; }
.lock-card input { font: inherit; color: var(--text); background: var(--bg); min-height: 48px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 4px; width: 100%; }
.lock-card input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(105 160 59 / 25%); }
.lock-card .error { color: #ff8a73; font-weight: 600; font-size: 15px; margin: 0; }
.lock-card .btn { width: 100%; margin-top: 4px; border: 0; cursor: pointer; font-family: inherit; }
.lock-card .small { font-size: 14px; margin-top: 20px; }
.mark-big { display: block; height: auto; margin: 0 auto 24px; width: min(320px, 100%); }

/* Proposed trails: from the idea to opening day */
.hero .lede .hl { color: var(--accent); font-weight: 650; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.journey li { position: relative; }
.journey li::before { content: ""; position: absolute; top: 23px; left: 54px; right: -14px; height: 2px; background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 30%, transparent)); }
.journey li:last-child::before { display: none; }
.journey .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 2px solid var(--green); color: #fff; font: 700 22px/1 "Barlow Semi Condensed", "Inter", sans-serif; }
.journey li:last-child .num { background: var(--green); color: var(--on-green); }
.journey h3 { margin-top: 18px; font-size: 23px; }
.journey p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.stats { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { padding: 18px 0 0; border-top: 2px solid var(--green); color: var(--muted); font-size: 15px; line-height: 1.4; }
.stats strong { display: block; margin-bottom: 6px; color: var(--accent); font: 700 56px/1 "Barlow Semi Condensed", "Inter", sans-serif; letter-spacing: -.02em; }
.checked { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-top: 88px; padding: 52px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--green) 7%, var(--surface)), var(--surface)); border: 1px solid var(--border); border-top: 3px solid var(--green); }
.checked h3 { font-size: clamp(30px, 3.6vw, 42px); }
.checked .points { margin-top: 22px; }
.checked .points li { font-size: 15.5px; }
.illus-checks svg { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--border); }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cap { padding: 26px 24px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
.cap.cap-star { border-top: 3px solid var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.cap .icon { margin-bottom: 16px; }
.cap h3 { font-size: 23px; }
.cap p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.proposed-admin { max-width: 820px; margin: 36px auto 0; text-align: center; color: var(--muted); font-size: 16px; }
.proposed-admin strong { color: var(--text); }
.proposed-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 48px; }
.proposed-cta .tag { margin-top: 0; }
@media (max-width: 960px) {
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .journey li:nth-child(3n)::before { display: none; }
  .caps { grid-template-columns: 1fr 1fr; }
  .checked { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .journey { grid-template-columns: 1fr; row-gap: 0; }
  .journey li { padding: 0 0 28px 66px; min-height: 46px; }
  .journey .num { position: absolute; left: 0; top: 0; }
  .journey li::before, .journey li:nth-child(3n)::before { display: block; top: 50px; bottom: 4px; left: 22px; right: auto; width: 2px; height: auto; background: color-mix(in srgb, var(--green) 55%, transparent); }
  .journey li:last-child::before { display: none; }
  .journey h3 { margin-top: 8px; }
  .caps { grid-template-columns: 1fr; }
  .checked { margin-top: 56px; padding: 28px 18px; }
  .stats { margin-bottom: 48px; }
  .stats { gap: 18px; }
  .stats li { padding-top: 14px; }
  .stats strong { font-size: 36px; }
  .proposed-cta .btn { flex: 1 1 100%; }
  .journey.journey-3 { grid-template-columns: 1fr; gap: 0; }
  .cta-actions .btn { flex: 1 1 100%; white-space: normal; }
}

/* An email address as served is written backwards, against scrapers (scripts/build.mjs); this shows it the right
   way round. assets/js/email.js then turns it back into ordinary text. */
.email-text { unicode-bidi: bidi-override; direction: rtl; }
