/* quebec.agency - one stylesheet.
   Line colors come from storage/data/lines.json (injected as --line-A ... --line-L by layout.php),
   so a line's identity is defined in exactly one place. */

:root {
  /* Light theme: Quebec blue + white. (--coral keeps its old name but is now the main blue accent.) */
  --bg: #FFFFFF; --bg2: #EEF3FA; --panel: #F7F9FD;
  --ink: #0B1B3A; --muted: #3F5170; --dim: #55678A;
  --rule: #D6DFEC; --rule2: #B4C2D8;
  --coral: #0B4DB5; --amber: #FFC21A; --lime: #167A47;
  --brand: #0B3D91; --on-accent: #FFFFFF; --on-fill: #0B1B3A;
  --max: 1240px;
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color-scheme: light; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; box-shadow: 0 0 0 2px #0B3D91; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.section { padding-top: 96px; padding-bottom: 16px; }
.section.tight { padding-top: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 24px 0; }
.grid { display: grid; gap: 20px; margin: 28px 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.eyebrow.dark { color: #0B1B3A; }
.h-hero { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 7.2vw, 104px); line-height: .95; letter-spacing: -.035em; margin: 22px 0 28px; }
.h-cta { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.035em; margin: 0 0 20px; }
.h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 12px 0 20px; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 20px; max-width: 900px; }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px; }
.h4 { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 4px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.link-arrow { font-weight: 600; }
.underline-lines { display: inline-block; padding-bottom: 8px; background-image: linear-gradient(90deg, var(--line-A) 0 25%, var(--line-B) 25% 50%, var(--line-E) 50% 75%, var(--line-G) 75% 100%); background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 100%; }
.zone-title { margin: 40px 0 16px; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 61, 145, .97); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #082c6b; box-shadow: 0 6px 24px rgba(11, 61, 145, .22); }
.header-stripe { height: 5px; background: linear-gradient(90deg, var(--line-A) 0 8.33%, var(--line-B) 0 16.66%, var(--line-C) 0 25%, var(--line-D) 0 33.33%, var(--line-E) 0 41.66%, var(--line-F) 0 50%, var(--line-G) 0 58.33%, var(--line-H) 0 66.66%, var(--line-I) 0 75%, var(--line-J) 0 83.33%, var(--line-K) 0 91.66%, var(--line-L) 0 100%); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav a { color: #DCE7FA; text-decoration: none; padding: 12px 0; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; font: 600 15px/1 var(--f-body); cursor: pointer; }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav a.btn { padding: 0 20px; color: var(--bg); }
.site-header .nav a.btn-light, .site-header .btn-light { background: #fff; color: var(--brand); }
.site-header .btn-light:hover { background: #fff; filter: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.site-header :focus-visible { outline-color: #fff; }
.nav-search { display: inline-flex; align-items: center; gap: 8px; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--coral); text-decoration: underline; }
.footer-base { padding-bottom: 48px; }

/* ---------- buttons, pills, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 600 17px/1 var(--f-body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn-primary { background: var(--coral); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--bg); color: var(--ink); }
.btn-line { background: var(--c, var(--coral)); color: var(--on-fill); }

.pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--rule2); text-decoration: none; font-weight: 600; font-size: 17px; }
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-lg { font-family: var(--f-display); font-size: 22px; letter-spacing: -.01em; }
.pills-lg { gap: 10px 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-block; border: 1px solid var(--rule2); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--ink); text-decoration: none; }
a.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip-req { border-style: dashed; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.badge { display: inline-block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule2); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.badge-premium { background: var(--amber); color: var(--on-fill); border-color: var(--amber); }
.badge-ok { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }
.badge-demo { border-style: dashed; }

/* ---------- transit bullets ---------- */
.bullet { --s: 48px; display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, var(--ink)); color: var(--on-fill); font-family: var(--f-display); font-weight: 800; font-size: calc(var(--s) * .5); line-height: 1; flex: none; text-decoration: none; }
.bullet-sm { --s: 28px; }
.bullet-md { --s: 48px; }
.bullet-lg { --s: 64px; }
.bullet-xl { --s: 112px; }
.bullet-btn { transition: transform .15s; }
.bullet-btn:hover { transform: translateY(-3px); text-decoration: none; }
.bullet-btn[aria-current="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); }
.bullets { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 40px; }
.bullets-row { display: flex; gap: 6px; margin: 0 0 12px; }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-copy .lead { max-width: 560px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 640px; height: auto; }
.intent { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; margin: 0 0 8px; }
.intent input { flex: 1 1 260px; }
.route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.6, .05, .2, 1) forwards; }
.r2 { animation-delay: .25s; } .r3 { animation-delay: .5s; } .r4 { animation-delay: .75s; } .r5 { animation-delay: 1s; } .r6 { animation-delay: 1.25s; }
.stn { opacity: 0; animation: pop .5s ease-out forwards; animation-delay: 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tick-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stats { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 56px; }
.stats > div { flex: 1 1 220px; border-top: 2px solid var(--rule); padding-top: 16px; }
.stat { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; }
.stats .eyebrow { margin: 6px 0 0; }

.ticker-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg2); overflow: hidden; padding: 18px 0; }
.ticker { display: flex; flex-wrap: nowrap; width: max-content; animation: tick 80s linear infinite; }
.tick { display: inline-flex; align-items: center; gap: 12px; margin-right: 40px; white-space: nowrap; font-family: var(--f-mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tick { text-decoration: none; padding: 8px 4px; }
a.tick:hover, a.tick:focus-visible { color: var(--coral); text-decoration: underline; text-underline-offset: 5px; }
.ticker-band:hover .ticker, .ticker-band:focus-within .ticker, .ticker-band:active .ticker { animation-play-state: paused; }
.ticker-bottom { margin-top: 96px; border-bottom: 0; padding: 12px 0; }
.ticker-bottom + .site-footer { margin-top: 0; border-top: 1px solid var(--rule); }
.ticker-reverse .ticker { animation: tick-rev 190s linear infinite; }
.tick i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }

/* ---------- line explorer ---------- */
.panel { background: var(--panel); border-radius: 28px; overflow: hidden; }
.line-panel { border-top: 8px solid var(--c); padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.line-panel-left { flex: 1 1 280px; min-width: 0; }
.line-panel-left .h2 { font-size: 40px; margin: 24px 0 12px; }
.line-panel-left .lead { font-size: 19px; }
.line-panel-right { flex: 2 1 520px; min-width: 0; }
.stops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 0; row-gap: 28px; }
.stops-wide { margin-top: 24px; }
.stop { display: block; color: inherit; text-decoration: none; }
.rail { position: relative; height: 20px; display: flex; align-items: center; }
.rail::before { content: ""; height: 6px; width: 100%; background: var(--c); }
.dot { position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 5px solid var(--ink); }
.stop-label { display: block; margin-top: 12px; padding-right: 12px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.stop:hover .stop-label { text-decoration: underline; }

.line-head { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.line-head .lead { margin-bottom: 16px; }

/* ---------- crew / blueprint ---------- */
.crew-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.steps { flex: 1 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 24px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-line { width: 6px; flex: 1; min-height: 24px; background: var(--c); }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: 32px; min-width: 0; }
.step-body .eyebrow { margin: 2px 0 6px; }
.step-body p { margin: 0; }
.crew-card { flex: 1 1 300px; max-width: 420px; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 32px; }
.crew-card a:not(.btn) { color: var(--bg); }
.big-number { font-family: var(--f-display); font-weight: 800; font-size: 72px; line-height: 1; }
.crew-text { margin: 8px 0 24px; font-size: 20px; line-height: 1.35; }
.how-n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 800; margin-bottom: 12px; }
.principles { display: flex; flex-wrap: wrap; gap: 32px; }
.principles > div { flex: 1 1 280px; border-top: 6px solid var(--c); padding-top: 20px; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 22px; padding: 28px; box-shadow: 0 1px 2px rgba(11, 61, 145, .05); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { text-decoration: none; border-color: var(--c, var(--ink)); transform: translateY(-2px); }
.card-link .h3 { margin-top: 14px; }
.spec-card { padding: 22px; }
.spec-top { display: flex; gap: 14px; align-items: center; }
.spec-top a { text-decoration: none; }
.spec-top a:hover { text-decoration: underline; }
.spec-card .chips { margin: 14px 0 8px; }
.spec-card p { margin: 6px 0; }
.why { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.cta-card { position: sticky; top: 24px; }
.empty { border: 2px dashed var(--rule2); border-radius: 22px; padding: 32px; margin: 24px 0; }
.brief { margin: 28px 0; }
.brief-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.brief-list dt { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.brief-list dd { margin: 0; }
.unlocked { border-color: var(--lime); }
.result-list { list-style: none; margin: 0 0 28px; padding: 0; }
.result-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* ---------- draft team ---------- */
.draft { list-style: none; margin: 32px 0; padding: 0; }
.draft-step { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.draft-role { display: flex; gap: 16px; align-items: flex-start; }
.draft-role .eyebrow { margin-bottom: 4px; }
.swap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.send-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 22px; padding: 28px; margin: 32px 0; }
.send-box .h3 { margin-bottom: 4px; }
.banner { border: 1px solid var(--rule2); border-radius: 16px; padding: 14px 18px; margin: 20px 0; }
.banner-ok { border-color: var(--lime); }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 2px solid var(--rule2); border-radius: 14px; padding: 13px 16px; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; padding: 0; accent-color: var(--coral); flex: none; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.form label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; font-weight: 400; }
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 14px; }
.form-wide { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; margin-bottom: 16px; }
.check, .radio { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 500 !important; margin: 0 !important; cursor: pointer; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 8px 0 16px; }
.choice { display: block; position: relative; cursor: pointer; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 2px solid var(--rule2); border-radius: 18px; padding: 18px; height: 100%; font-weight: 400; }
.choice:hover .choice-body { border-color: var(--ink); }
.choice input:checked + .choice-body { border-color: var(--c); background: var(--panel); box-shadow: 0 0 0 2px var(--c); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--ink); outline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 12px 0 28px; }
.filters label { flex: 1 1 200px; font-size: 14px; font-weight: 600; margin: 0; }
.filters label > * { margin-top: 6px; font-weight: 400; }
.flashes { padding-top: 0; }
.flash { margin: 0 0 10px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--rule2); background: var(--panel); }
.flash-ok { border-color: var(--lime); }
.flash-error { border-color: var(--coral); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 32px 0; }
.skill-group[hidden] { display: none; }

/* ---------- area picker ---------- */
.hood-picker { margin: 8px 0 24px; }
.hood-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.hood-tools[hidden] { display: none; }
.js .hood-tools[hidden] { display: flex; }
.hood-tools input[type="search"] { flex: 1 1 240px; width: auto; }
.hood-count { margin: 0 0 12px; min-height: 1.4em; }
.region { border: 1px solid var(--rule) !important; border-radius: 18px; padding: 8px 20px 12px !important; margin: 0 0 16px !important; background: var(--panel); }
.region legend { padding: 0 8px; float: none; }
.region-all { min-height: 40px; }
.region-all strong { font-family: var(--f-display); font-size: 19px; }
.region .check-grid { margin-bottom: 4px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.region .check[hidden] { display: none !important; }
.hood-filter { flex: 1 1 100%; border: 2px solid var(--rule2); border-radius: 14px; padding: 4px 16px; background: var(--bg2); }
.hood-filter summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.hood-filter[open] { padding-bottom: 12px; }
.hood-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 -6px 24px rgba(11, 61, 145, .12); border: 1px solid var(--rule2); border-radius: 18px; padding: 12px 16px; margin: 20px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .4); }
.hood-bar-count { margin: 0 auto 0 0; font-weight: 600; flex: 1 1 180px; }
.hood-bar .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
@media (max-width: 640px) { .hood-bar .btn { flex: 1 1 100%; } .region { padding: 6px 12px 10px !important; } }

/* ---------- join CTA ---------- */
.join-box { background: var(--c); color: var(--on-fill); border-radius: 36px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.join-box > div { flex: 1 1 420px; min-width: 0; }
.join-text { margin: 0; font-size: 21px; line-height: 1.5; max-width: 560px; }
.join-form { flex: 0 1 340px !important; display: flex; flex-direction: column; gap: 14px; }
.join-form label { font-size: 15px; font-weight: 600; }
.join-form select { background: #fff; color: #0B1B3A; border-color: #0B1B3A; margin-top: 6px; }

/* ---------- search dialog ---------- */
.search-dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--rule2); border-radius: 24px; padding: 28px; width: min(640px, calc(100vw - 32px)); margin: 8vh auto auto; }
.search-dialog::backdrop { background: rgba(8, 28, 66, .55); }
.search-form input { margin: 8px 0 12px; }
.search-results { max-height: 46vh; overflow: auto; }
.search-results h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 16px 0 4px; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.search-results a:hover { background: var(--bg2); }
.search-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); margin: 16px 0 28px; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--coral); }
.count { display: inline-block; background: var(--coral); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 8px; }
.table td { padding: 12px 8px; border-top: 1px solid var(--rule); vertical-align: top; }
.table .actions { min-width: 340px; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 6px 0; }
.inline select, .inline input { width: auto; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.narrow-input { width: 80px !important; }
.admin-card { margin-bottom: 16px; }
.admin-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.admin-card p { margin: 6px 0; }
.code { background: var(--bg2); border: 1px solid var(--rule2); border-radius: 12px; padding: 16px; overflow-x: auto; font-family: var(--f-mono); font-size: 14px; }

/* ---------- motion ---------- */
.fx { animation: fadein .28s ease-out; }
.fx-out { opacity: 0; transition: opacity .12s; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .cta-card { position: static; }
  .draft-step { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brief-list { grid-template-columns: 1fr; gap: 2px; }
  .brief-list dd { margin-bottom: 12px; }
}
@media (max-width: 860px) {
  /* Collapsible mobile menu (only when JS is available; otherwise the links simply wrap) */
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: #0B3D91; border-bottom: 1px solid var(--rule2); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); max-height: calc(100vh - 70px); overflow-y: auto; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.18); min-height: 52px; display: flex; align-items: center; }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .js .nav a.btn { margin-top: 18px; justify-content: center; border-bottom: 0; min-height: 52px; font-size: 17px; }
  .js .nav-search { gap: 12px; }
  .nav { width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .h-hero { font-size: clamp(40px, 12vw, 64px); }
  .hero { gap: 28px; padding-top: 24px; }
  .btn-lg { width: 100%; }
  .row .btn { flex: 1 1 100%; }
  .intent input { flex-basis: 100%; }
  .stat { font-size: 44px; }
  .big-number { font-size: 56px; }
  .step { gap: 16px; }
  .crew-card { max-width: none; padding: 24px; }
  .send-box { padding: 20px; }
  .footer-grid { gap: 20px; }
  .brand-name { font-size: 21px; }
  .table { font-size: 14px; }
  .search-dialog { margin-top: 4vh; padding: 20px; }

  .section { padding-top: 64px; }
  .line-panel { padding: 24px; }
  .join-box { padding: 32px 24px; }
  .nav { gap: 2px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route { animation: none; stroke-dashoffset: 0; }
  .stn { animation: none; opacity: 1; }
  .ticker, .fx { animation: none; }
  .ticker-band { overflow-x: auto; }
  .ticker-reverse .ticker { animation: none; }
  .bullet-btn, .card-link { transition: none; }
}

/* legal pages */
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose h3 { font-size: 17px; margin: 20px 0 6px; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a, .legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.prose .table-wrap, .prose table { margin: 12px 0; }
.legal-card { text-decoration: none; display: block; }
.legal-card:hover h2, .legal-card:focus-visible h2 { text-decoration: underline; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.legal-links a { color: var(--muted); padding: 8px 0; text-decoration: none; }
.legal-links a:hover { color: var(--coral); text-decoration: underline; }

/* accounts */
.nav-signin { font-weight: 600; }
form.inline { display: inline; margin-left: 12px; }
.table td a { text-decoration: underline; text-underline-offset: 2px; }
.wrap { overflow-wrap: anywhere; }
.account-bar { align-items: center; margin: 8px 0 8px; }
.account-bar form { margin: 0; }

/* ---------- audience landing pages ---------- */
.lp-hero { padding-top: 56px; padding-bottom: 24px; }
.lp-hero .h-hero { max-width: 900px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 8px 0 0; padding: 0; }
.chips li { border: 1px solid var(--rule2); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.chips-lines li { border-color: var(--c); }
.chips-lines a { color: inherit; text-decoration: none; }
.landing .card-feature { border-color: var(--c); }
.landing .stat { color: var(--ink); }
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq p { margin: 10px 0 0; max-width: 680px; }
.lp-final { text-align: center; border-color: var(--c); }
.lp-final .lead { margin-left: auto; margin-right: auto; }
.calc input[type=range] { width: 100%; margin: 14px 0; accent-color: var(--c); }
.calc-total { margin: 4px 0 8px; }
.lp-gap { margin-top: 56px; }

/* ---------- affiliate landing: icons, flow, targets ---------- */
.ico { flex: none; vertical-align: -0.2em; }
.ico-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px;
  color: color-mix(in srgb, var(--c, var(--coral)) 45%, #0B1B3A); border: 1.5px solid var(--c, var(--coral)); background: color-mix(in srgb, var(--c, var(--coral)) 12%, transparent); }
.ico-card .ico-badge { --c: var(--line-G); }
.lp-aff .eyebrow .ico { margin-right: 6px; }
.aff-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.aff-hero-copy { flex: 1 1 480px; min-width: 0; }
.aff-hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.aff-hero-art svg { width: 100%; max-width: 520px; height: auto; }
.flow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: f; }
.flow li { position: relative; padding: 24px; border: 1px solid var(--rule); border-radius: 22px; background: var(--panel); }
.flow li::after { content: counter(f); counter-increment: f; position: absolute; top: 18px; right: 22px; font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--rule2); }
.flow li .ico-badge { --c: var(--line-G); }
.target { border-top: 4px solid var(--c); }
.target .eyebrow { color: color-mix(in srgb, var(--c) 45%, #0B1B3A); }
.target .h4 { margin-bottom: 10px; }
.place { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0; }
.place .ico-badge { margin: 0; width: 46px; height: 46px; --c: var(--line-H); }
.place .h4 { margin: 2px 0 6px; }
.place p { margin: 0; }
.script h3 { display: flex; align-items: center; gap: 8px; }
.script-text { white-space: pre-wrap; word-wrap: break-word; font: 14px/1.55 var(--f-mono); background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; margin: 12px 0 16px; max-height: 360px; overflow: auto; }
.script .btn .ico { margin-right: 6px; }

/* ---------- business / client landing extras ---------- */
.chips-sm { margin: 12px 0 14px; gap: 6px; }
.chips-sm li { padding: 4px 11px; font-size: 13px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.tick-list .ico { color: var(--lime); margin-top: 2px; }
.sample .brief-list .locked { color: var(--muted); font-style: italic; }
.sample-wrap { align-items: center; }
.roi-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.roi-inputs label { display: block; font-size: 15px; color: var(--muted); }
.roi-inputs input { display: block; margin-top: 6px; width: 100%; min-height: 48px; padding: 0 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule2); border-radius: 12px; font: 600 18px var(--f-body); }
.roi-inputs label input#roi-win { display: inline-block; width: 80px; margin: 0 6px; }
.roi-out .stat { font-size: 40px; }

/* ---------- WhatsApp + QR ---------- */
.btn-wa { background: #25D366; color: #06240F; border-color: #25D366; }
.btn-wa .ico { margin-right: 6px; }
.share-card { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin: 20px 0 28px; }
.share-qr { flex: none; background: #fff; border-radius: 16px; padding: 8px; line-height: 0; }
.share-qr img { display: block; max-width: 100%; height: auto; }
.share-body { flex: 1 1 320px; min-width: 0; }
.share-body .h4 { margin: 14px 0 6px; }
.share-body .h4:first-child, .share-body .eyebrow + .h4 { margin-top: 0; }
.share-body .row { margin: 10px 0 0; gap: 10px; }

/* printable flyers and signs */
.print-body { background: #e9e6df; color: #0B1B3A; }
.print-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 14px; background: #0B3D91; color: #fff; }
.print-bar a:not(.btn) { color: #fff; }
.sheet { width: min(8.5in, 100%); min-height: 11in; margin: 24px auto; background: #fff; color: #0B1B3A; padding: 0.6in 0.7in 0.5in; position: relative; box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.sheet-stripe { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--c); }
.sheet-brand { font: 800 26px var(--f-display); margin: 6px 0 24px; letter-spacing: -.01em; }
.sheet-kicker { color: #3a4452; }
.sheet-h1 { font: 800 clamp(34px, 7vw, 58px)/1.05 var(--f-display); letter-spacing: -.02em; margin: 0 0 24px; }
.sheet-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; font-size: 21px; }
.sheet-points li { padding-left: 34px; position: relative; }
.sheet-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.sheet-qr { text-align: center; }
.sheet-qr-img { width: min(3.6in, 80%); margin: 0 auto; border: 3px solid #0B1B3A; border-radius: 18px; padding: 4px; line-height: 0; }
.sheet-qr-img svg { width: 100%; height: auto; display: block; }
.sheet-cta { font: 800 28px var(--f-display); margin: 18px 0 4px; }
.sheet-url { font: 500 17px var(--f-mono); color: #3a4452; margin: 0; word-break: break-all; }
.sheet-small { font-size: 13px; color: #3a4452; text-align: center; margin: 22px 0 0; }
@media print {
  .no-print { display: none !important; }
  .print-body { background: #fff; }
  .sheet { margin: 0; box-shadow: none; width: 100%; min-height: 0; padding: 0.4in 0.6in; }
  @page { margin: 0.4in; }
}

.banner.founding { border-color: var(--lime); }
.banner.founding svg { vertical-align: -3px; }
blockquote.review { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--lime); background: var(--bg2); border-radius: 0 12px 12px 0; }

.lang-switch { display: inline-flex; gap: 2px; margin-left: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.lang-switch a { padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.lang-switch a:hover { border-color: var(--rule2); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--brand); }
.lang-switch a:hover { border-color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .lang-switch { margin: 12px 0 0; } }

/* French labels are longer: tighten the desktop menu so it stays on one row */
@media (min-width: 1000px) {
  html[lang="fr"] .nav, html[lang="es"] .nav { font-size: 13px; gap: 4px 14px; flex-wrap: nowrap; white-space: nowrap; }
  html[lang="fr"] .nav a.btn, html[lang="es"] .nav a.btn { padding: 0 14px; font-size: 13px; }
  html[lang="fr"] .header-row, html[lang="es"] .header-row { gap: 12px; flex-wrap: nowrap; }
  html[lang="fr"] .lang-switch, html[lang="es"] .lang-switch { margin-left: 2px; }
  html[lang="fr"] .lang-switch a, html[lang="es"] .lang-switch a { padding: 6px; }
}
@media (min-width: 1000px) and (max-width: 1100px) {
  html[lang="fr"] .nav, html[lang="es"] .nav { font-size: 12px; gap: 4px 10px; }
  html[lang="fr"] .nav a.btn, html[lang="es"] .nav a.btn { padding: 0 10px; font-size: 12px; }
}

/* Built-in guide (Admin > Guide) */
.guide { max-width: 860px; }
.guide h2, .guide h3, .guide h4 { scroll-margin-top: 90px; }
.guide h2 { font-size: 34px; } .guide h3 { font-size: 26px; margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--rule); } .guide h4 { font-size: 18px; margin-top: 26px; }
.guide code { font-family: var(--f-mono); font-size: .9em; background: var(--bg2); padding: 1px 6px; border-radius: 6px; word-break: break-word; }
.guide pre { background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.guide pre code { background: none; padding: 0; }
.guide blockquote.note { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--coral); background: var(--bg2); border-radius: 0 12px 12px 0; }
.guide li.todo { list-style: none; margin-left: -22px; }
.guide .table td, .guide .table th { vertical-align: top; }
@media print { .site-header, .site-footer, .ticker, .admin-head, .tabs, #print-guide { display: none !important; } .guide { max-width: none; } }

/* PWA: offline banner, install button, offline page */
.offline-banner { background: var(--amber); color: #0B1B3A; text-align: center; font-weight: 600; padding: 8px 16px; font-size: 14px; }
.offline-banner[hidden], #pwa-install[hidden], #pwa-ios[hidden] { display: none; }
#pwa-install { margin-top: 8px; }
.offline-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.offline-list a { display: block; padding: 12px 16px; border: 1px solid var(--rule2); border-radius: 12px; text-decoration: none; word-break: break-word; }
.offline-list a:hover { border-color: var(--ink); }
.draft-note { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--amber); background: var(--bg2); border-radius: 0 12px 12px 0; }
@media (display-mode: standalone) { #pwa-install, #pwa-ios { display: none !important; } }

/* Partner directories (account page) */
.plain-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.check-group { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.check-group legend { font-weight: 600; margin-bottom: 8px; }

/* WhatsApp chat bubble (switched on in Admin > Content > Site settings) */
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #06240F; padding: 12px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.wa-fab:hover, .wa-fab:focus-visible { background: #1fb558; color: #06240F; }
.wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .wa-fab { padding: 13px; } .wa-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media print { .wa-fab { display: none; } }

/* Help and tickets */
.stack > * + * { margin-top: 12px; }
.stack { margin: 16px 0; }
