/* THE WEBSITE (index, guide, contact, terms, privacy, 404). Light and plain, in the board's own colours: the grass green, the road navy and a little of the yellow line.
   No cards, no glow: sections are separated by space and by a strip of road. Built for a phone first. The board itself (app.html and the pages after it) keeps its own look. */
:root {
  --bg: #f6f7f2; --paper: #ffffff; --ink: #15211b; --mute: #56635c; --line: #dfe4dc;
  --green: #14804f; --green-d: #0e6a40; --green-l: #e4f2e9; --navy: #0a2459; --yellow: #fdc20f; --white: #f3f5f8;
  --wrap: 1120px; --gut: max(18px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(23px, 2.8vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: max(18px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* ---- the header ---- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 242, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 18px; white-space: nowrap; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.nav a:hover { background: var(--green-l); }
.nav a[aria-current="page"] { color: var(--green-d); font-weight: 600; }
.head-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav, .head-acts { display: none; }
  .site-head.open .wrap { flex-wrap: wrap; padding-bottom: 12px; }
  .site-head.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; order: 3; }
  .site-head.open .nav a { padding: 12px; font-size: 17px; }
  .site-head.open .head-acts { display: flex; width: 100%; order: 4; margin: 0; flex-wrap: wrap; }
  .site-head.open .head-acts .btn { flex: 1 1 auto; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { flex: none; }
.btn.go { background: var(--green); color: #fff; } .btn.go:hover { background: var(--green-d); }
.btn.line { background: transparent; color: var(--ink); border-color: #c8d0c6; } .btn.line:hover { border-color: var(--green); color: var(--green-d); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn[hidden] { display: none; }

/* ---- the home page ---- */
.hero { padding: clamp(36px, 7vw, 80px) 0 clamp(30px, 5vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--mute); max-width: 32em; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .note { margin-top: 14px; font-size: 14.5px; color: var(--mute); }
.pic { margin: 0; }
.pic img { width: 100%; border-radius: 12px; border: 5px solid var(--navy); background: var(--navy); height: auto; }
/* a taller frame (the hero, the class picture): the picture is cut to fit, never squeezed */
.pic.tall img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.pic.tall.right img { object-position: right center; }
.pic figcaption { margin-top: 10px; font-size: 14.5px; color: var(--mute); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* THE ROAD: a strip of the board between the sections, with a car driving along it now and then */
.road { position: relative; height: 46px; background: var(--navy); overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 46px); }
.road::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--green); }
.road .car { position: absolute; top: 25px; left: -60px; width: 44px; height: 17px; animation: drive 16s linear infinite; }
.road .car.two { top: 5px; animation-duration: 22s; animation-delay: -9s; animation-direction: reverse; transform: scaleX(-1); }
@keyframes drive { from { left: -60px; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .road .car { animation: none; left: 12%; } .road .car.two { left: 70%; } }

.band { padding: clamp(40px, 6vw, 72px) 0; }
.band.tint { background: var(--green-l); }
.band .intro { max-width: 40em; color: var(--mute); }
.feat { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 36px; }
.feat li { padding-top: 14px; border-top: 3px solid var(--green); }
.feat h3 { margin-bottom: 6px; }
.feat p { margin: 0; color: var(--mute); font-size: 16px; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; gap: 22px; } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 28px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.how-steps { margin: 18px 0 0; padding-left: 22px; } .how-steps li { margin-bottom: 8px; }
.end-cta { text-align: center; } .end-cta .acts { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---- plain pages (terms, privacy, contact, 404) ---- */
.page { padding: clamp(34px, 6vw, 64px) 0 clamp(40px, 6vw, 72px); }
.page .wrap { max-width: 780px; }
.page .sub { color: var(--mute); margin-bottom: 2em; }
.page h2 { margin-top: 1.6em; font-size: 22px; }
.page ul { padding-left: 22px; } .page li { margin-bottom: 6px; }
.updated { font-size: 14.5px; color: var(--mute); }

/* contact */
.reach { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15.5px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #c8d0c6; border-radius: 10px; background: var(--paper); color: var(--ink); font-family: inherit; font-weight: 400; font-size: 16px; line-height: 1.4; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(20, 128, 79, .25); border-color: var(--green); }
.form textarea { min-height: 140px; resize: vertical; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .msg { min-height: 1.4em; margin: 0; font-size: 15.5px; } .form .msg.good { color: var(--green-d); } .form .msg.bad { color: #b42318; }
.form small { font-weight: 400; color: var(--mute); }

/* 404 */
.lost { text-align: center; } .lost .big { font-size: clamp(64px, 14vw, 120px); font-weight: 700; color: var(--navy); line-height: 1; margin: 0 0 10px; }
.lost .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---- the footer ---- */
.site-foot { background: var(--navy); color: #dfe6f3; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-foot a { color: #fff; text-decoration: none; } .site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; margin: 6px 0 0; color: #b7c2d8; font-size: 14px; }
.site-foot .logo { color: #fff; margin-bottom: 8px; }
.site-foot p { margin: 0 0 6px; color: #b7c2d8; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* ---- the cookie question (Google Analytics only after Accept) ---- */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; box-shadow: 0 8px 26px rgba(10, 36, 89, .14); font-size: 15px; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent .acts { display: flex; gap: 8px; }
.consent[hidden] { display: none; }

/* short pages (contact, 404): the footer stays at the bottom of the screen */
body:has(> .site-foot) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .site-foot) > .site-foot { margin-top: auto; }
