/* SkyShare stylesheet.
 *
 * Colours and fonts follow sturupflygklubb.se: white and light grey surfaces,
 * dark navy text blocks, green (#65bc7b) as the action colour and blue
 * (#198fd9) for links. Headings in Roboto Slab, body in Roboto (light).
 *
 * Fonts are self-hosted in /static/fonts so no visitor data goes to Google.
 * Dark mode: set by data-theme on <html> (see app.js), defaulting to the
 * system setting.
 */

/* ---- Fonts ---------------------------------------------------------------- */
@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url(../fonts/roboto-latin-300.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url(../fonts/roboto-latin-ext-300.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; font-weight: 300; font-display: swap; src: url(../fonts/roboto-slab-latin-300.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Slab"; font-weight: 300; font-display: swap; src: url(../fonts/roboto-slab-latin-ext-300.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-slab-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-slab-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url(../fonts/roboto-slab-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url(../fonts/roboto-slab-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Colours -------------------------------------------------------------- */
:root {
  --green: #65bc7b;        /* club accent */
  --green-dark: #4a9c60;
  --blue: #198fd9;         /* club link colour */
  --navy: #212934;         /* club dark */
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --surface: #ffffff;
  --border: #e2e2e2;
  --text: #1c1c1c;
  --muted: #5d6670;
  --on-green: #10301b;
  --danger: #c0392b;
  --warn: #b7791f;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.05);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #72c987; --green-dark: #8fd6a1; --blue: #4fb0ee;
    --bg: #12171d; --bg-alt: #181f27; --surface: #1d252f; --border: #2c3642;
    --text: #e8ebee; --muted: #a2acb7; --navy: #0c1015; --on-green: #0b2414;
    --shadow: 0 1px 3px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --green: #72c987; --green-dark: #8fd6a1; --blue: #4fb0ee;
  --bg: #12171d; --bg-alt: #181f27; --surface: #1d252f; --border: #2c3642;
  --text: #e8ebee; --muted: #a2acb7; --navy: #0c1015; --on-green: #0b2414;
  --shadow: 0 1px 3px rgba(0,0,0,.4); color-scheme: dark;
}

/* ---- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.6 "Roboto", Arial, Helvetica, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: "Roboto Slab", Arial, sans-serif; font-weight: 400; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 500; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, .mono { white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { font: 500 .8rem/1 "Roboto", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); margin-bottom: .6rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Buttons and forms ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 .9rem/1 "Roboto", sans-serif; text-transform: uppercase; letter-spacing: .03em;
  padding: .85em 1.4em; border-radius: 6px; border: 1px solid transparent;
  background: var(--green); color: var(--on-green); cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--green); color: var(--text); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { padding: .55em .9em; font-size: .78rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }

label { display: block; font-weight: 400; margin-bottom: .3rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .7em .8em; font: 300 1rem "Roboto", sans-serif; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
textarea { min-height: 7rem; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 300; }
.check input { margin-top: .35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--green); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem .3rem; margin: 0 0 1.4rem; }
legend { font-family: "Roboto Slab", sans-serif; padding: 0 .4rem; }

/* ---- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--text); font: 400 1.4rem "Roboto Slab", sans-serif; text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; }
.logo span b { color: var(--green-dark); font-weight: 600; }
.main-nav { display: flex; gap: .2rem; margin-left: 1.5rem; }
.main-nav a { color: var(--text); padding: .5rem .75rem; border-radius: 6px; font-weight: 400; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--bg-alt); text-decoration: none; }
.main-nav a.active { color: var(--green-dark); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.tool { background: none; border: 1px solid transparent; color: var(--text); padding: .45rem .55rem; border-radius: 6px; cursor: pointer; font: 400 .85rem "Roboto"; display: inline-flex; align-items: center; gap: .3rem; position: relative; }
.tool:hover { background: var(--bg-alt); text-decoration: none; }
.badge { background: var(--green); color: var(--on-green); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 0 .4rem; line-height: 1.4; }
.tool .badge { position: absolute; top: -2px; right: -4px; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-menu .dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.user-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: .55rem .75rem; color: var(--text); border-radius: 6px; background: none; border: 0; font: 300 .95rem "Roboto"; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-alt); text-decoration: none; }

.main-nav .show-mobile { display: none; }
@media (max-width: 960px) {
  .main-nav .show-mobile { display: block; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem; margin: 0; }
  .main-nav.open { display: flex; }
  .hide-mobile { display: none !important; }
  .header-tools { gap: .1rem; }
  .tool { padding: .4rem .4rem; }
  .logo { font-size: 1.2rem; }
  .logo svg { width: 30px; height: 30px; }
}

/* ---- Flash messages ------------------------------------------------------- */
.flashes { margin: 1rem auto 0; }
.flash { padding: .8rem 1rem; border-radius: 8px; margin-bottom: .5rem; border-left: 4px solid var(--blue); background: var(--bg-alt); }
.flash.success { border-color: var(--green); }
.flash.error { border-color: var(--danger); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .container { position: relative; padding-top: 5rem; padding-bottom: 4rem; }
.hero h1 { max-width: 15em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p.lead { font-size: 1.2rem; max-width: 34em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero .eyebrow { color: #b8f0c6; }

.search-box { background: var(--surface); color: var(--text); border-radius: 12px; padding: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: .75rem; align-items: end; margin-top: 2rem; }
.search-box label { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
@media (max-width: 900px) { .search-box { grid-template-columns: 1fr 1fr; } .search-box .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .search-box { grid-template-columns: 1fr; } }

.stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stats div { font-size: .9rem; }
.stats b { display: block; font: 400 1.8rem "Roboto Slab"; }

/* ---- Cards ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.panel h2, .panel h3 { margin-top: 0; }

.flight-card { position: relative; transition: transform .15s; }
.flight-card:hover { transform: translateY(-2px); }
.flight-card .cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.flight-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.flight-card .tag { position: absolute; left: .7rem; top: .7rem; background: rgba(255,255,255,.92); color: #1c1c1c; font: 500 .72rem "Roboto"; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .55rem; border-radius: 4px; }
.flight-card .save { position: absolute; right: .5rem; top: .5rem; }
.flight-card .save button { background: rgba(255,255,255,.92); border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: #1c1c1c; display: grid; place-items: center; }
.flight-card .save button.on { color: var(--green-dark); }
.flight-card .save button.on .icon { fill: currentColor; }
.flight-card h3 { margin: 0; font-size: 1.1rem; }
.flight-card h3 a { color: var(--text); }
.flight-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.flight-card .save, .flight-card .pilot a { position: relative; z-index: 2; }
.route { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.route .code { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }
.route .line { flex: 1; height: 1px; background: var(--border); position: relative; min-width: 1.5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); }
.price b { font: 400 1.35rem "Roboto Slab"; }
.price small { color: var(--muted); }
.pilot { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 500 .8rem "Roboto"; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.stars { color: #e3a008; white-space: nowrap; }
.seats-left { font-size: .82rem; font-weight: 500; color: var(--green-dark); }
.seats-left.few { color: var(--warn); }
.status { display: inline-block; font: 500 .72rem "Roboto"; text-transform: uppercase; letter-spacing: .04em; padding: .25rem .5rem; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--border); }
.status.confirmed, .status.verified, .status.go, .status.completed { color: var(--green-dark); border-color: var(--green); }
.status.requested, .status.pending { color: var(--warn); border-color: var(--warn); }
.status.declined, .status.cancelled, .status.rejected, .status.nogo { color: var(--danger); border-color: var(--danger); }

/* ---- Flights list --------------------------------------------------------- */
.list-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters .panel { padding: 1rem; }
.filters .field { margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; color: var(--text); background: var(--surface); }
.chip:hover, .chip.on { border-color: var(--green); text-decoration: none; }
.chip.on { background: var(--green); color: var(--on-green); }
@media (max-width: 900px) { .list-layout { grid-template-columns: 1fr; } .filters { position: static; } }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---- Flight page ---------------------------------------------------------- */
.flight-hero { position: relative; height: 340px; background: var(--navy); }
.flight-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; margin-top: -4rem; position: relative; }
.detail-layout > aside { position: sticky; top: 88px; align-self: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; margin-top: 1.5rem; } .detail-layout > aside { position: static; } .flight-hero { height: 220px; } }
.route-big { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 1rem 0 1.4rem; }
.route-big .end b { display: block; font: 400 1.25rem "Roboto Slab"; }
.route-big .end:last-child { text-align: right; }
.route-big .mid { text-align: center; color: var(--muted); font-size: .85rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.fact { background: var(--bg-alt); border-radius: 8px; padding: .7rem .9rem; }
.fact small { display: block; color: var(--muted); }
.fact b { font-weight: 400; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cost-table td { padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.cost-table td:last-child { text-align: right; }
.cost-table tr:last-child td { border: 0; font-weight: 500; }
.wx { background: var(--bg-alt); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .8rem; }
.wx pre { white-space: pre-wrap; word-break: break-word; margin: .3rem 0 0; font-size: .8rem; }
.wx .cat { font: 700 .7rem "Roboto"; padding: .15rem .4rem; border-radius: 3px; color: #fff; }
.cat.VFR { background: #2e9e4f; } .cat.MVFR { background: #1f6fd1; } .cat.IFR { background: #c0392b; } .cat.LIFR { background: #8e44ad; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding: .3rem 0; }
.booking-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.booking-row:last-child { border: 0; }
.booking-row .grow { flex: 1; min-width: 180px; }
.inline-form { display: inline; }
.review { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.review:last-child { border: 0; }

/* ---- How it works / feature blocks --------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: var(--on-green); font: 500 1rem "Roboto"; margin-bottom: .8rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { padding: .3rem 0 .3rem 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 1rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.feature { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature .icon { width: 1.8rem; height: 1.8rem; color: var(--green-dark); margin-bottom: .6rem; }
.dark-band { background: var(--navy); color: #e8ebee; }
.dark-band h2 { color: #fff; }
.dark-band .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.dark-band .feature .icon { color: var(--green); }
.dark-band .muted { color: #a9b3bd; }

/* Story carousel: horizontal scroll with snap; app.js auto-advances. */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.story img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .carousel { grid-auto-columns: calc((100% - 2.4rem) / 3); } }

.event-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.event-row:hover { text-decoration: none; background: var(--bg-alt); }
.date-box { width: 58px; text-align: center; border: 1px solid var(--border); border-radius: 8px; padding: .3rem 0; background: var(--surface); flex: none; }
.date-box b { display: block; font: 400 1.4rem/1.1 "Roboto Slab"; }
.date-box small { text-transform: uppercase; color: var(--muted); font-size: .7rem; }

/* ---- Dashboard / tables --------------------------------------------------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--green); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem; border-bottom: 1px solid var(--border); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { padding: .7rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .7rem; }
.note-list li.unread { font-weight: 400; }
.note-list li.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: .55rem; flex: none; }

/* ---- Messages / forum ----------------------------------------------------- */
.thread { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.msg { max-width: 75%; padding: .6rem .9rem; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--green); color: var(--on-green); border-color: transparent; }
.msg small { display: block; opacity: .7; font-size: .75rem; margin-top: .2rem; }
.post { padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.post .body { white-space: pre-wrap; }
.thread-row { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.thread-row .grow { flex: 1; min-width: 0; }
.thread-row h3 { margin: 0 0 .2rem; font-size: 1.05rem; }

/* ---- Info pages ----------------------------------------------------------- */
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.callout { border-left: 4px solid var(--green); background: var(--bg-alt); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0; }
.callout.warn { border-color: var(--warn); }
details { border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem; background: var(--surface); }
details summary { cursor: pointer; font-weight: 400; }
details[open] summary { margin-bottom: .5rem; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c9d0d7; padding: 3rem 0 1.5rem; margin-top: 3rem; font-size: .92rem; }
.site-footer a { color: #e8ebee; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.site-footer .logo { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Cookie banner -------------------------------------------------------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; z-index: 90; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 1.2rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.cookie-banner .prefs { display: none; margin-top: .8rem; }
.cookie-banner.expanded .prefs { display: block; }

/* ---- Install (PWA) -------------------------------------------------------- */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .install-grid { grid-template-columns: 1fr; } }
.install-grid ol { padding-left: 1.2rem; margin: 0; }

/* Pilot application: one box per licence type */
.licence-row { border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem .1rem; margin-bottom: .6rem; }
.licence-row > .check { margin-bottom: .5rem; }
.licence-row:has(input[type=checkbox]:not(:checked)) .grid-2 { opacity: .55; }
