/* ═══════════════════════════════════════════════════════════════════════════
   TourDirectr brand layer — "road case under stage light"
   Loaded after styles.css. Re-points the page's variables at the brand tokens
   (Backstage theme), swaps the type to the five brand faces, and restyles the
   shared parts (buttons, eyebrows, cards) to the brand components:
   Button, SectionHeader, PassCard, PlateTag, TapeLabel.
   Proportions: ~70% case black, ~20% metal and tape, ≤10% red.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* brand tokens (Backstage) */
  --case-900: #0b0b0d; --case-800: #161619; --case-700: #222227;
  --hairline: #34343a; --control-border: #6a6a72;
  --ink-text: #f3f1ec; --ink-muted: #a9a9b0;
  --rec: #ff4a33; --rec-fill: #e01a0b; --rec-deep: #b3150a; --on-rec: #ffffff; --focus: #ff6a52;
  --chrome-100: #f4f4f6; --chrome-300: #bdbdc4; --chrome-500: #7c7c84; --chrome-700: #4a4a51;
  --tape-white: #f4f2ec; --marker: #101010;
  --radius-tape: 2px; --radius-plate: 8px; --radius-pass: 24px;
  --shadow-plate: 0 6px 14px rgba(0, 0, 0, .55);
  --shadow-tape: 0 2px 3px rgba(0, 0, 0, .45), 0 10px 18px rgba(0, 0, 0, .25);
  --shadow-pass: 0 24px 48px rgba(0, 0, 0, .7);
  --rec-glow: 0 0 14px 3px rgba(255, 58, 30, .55);
  --chrome: linear-gradient(135deg, var(--chrome-100) 0%, var(--chrome-300) 30%, var(--chrome-500) 50%, var(--chrome-100) 70%, var(--chrome-300) 100%);

  /* the page's own variables, now Backstage everywhere */
  --ink: var(--case-900); --ink2: var(--case-800); --ink3: var(--case-700);
  --paper: var(--case-900); --ground: var(--case-900);
  --card: var(--case-800); --s2: var(--case-700);
  --fg: var(--ink-text); --fg2: var(--ink-muted); --fg3: var(--ink-muted); --on: var(--case-900);
  --line: var(--hairline); --line2: var(--chrome-700);
  --love: var(--rec-fill);

  /* five faces, one job each */
  --f: Barlow, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --d: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --m: Michroma, 'Arial Black', Arial, sans-serif;
  --hand: 'Permanent Marker', 'Marker Felt', cursive;
  --stencil: 'Saira Stencil One', Impact, 'Arial Narrow Bold', sans-serif;
}
.dark { background: var(--case-900); }
body { background: var(--case-900); font: 400 17px/1.55 var(--f); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-plate); }
::selection { background: var(--rec-fill); color: var(--on-rec); }
main > section + section { border-top: 1px solid var(--hairline); }
.content.grainy::after, .who.grainy::after { display: none; } /* texture only behind the hero and the closing lockup */

/* ── type ── */
.mono { font-size: 10.5px; letter-spacing: .14em; }
.eyebrow { font: 700 14px/1.15 var(--d); letter-spacing: .24em; color: var(--ink-muted); gap: 8px; }
.eyebrow:not(:has(.pulse))::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: var(--rec-glow); flex: none; }
.pulse { width: 10px; height: 10px; background: var(--rec); box-shadow: var(--rec-glow); animation: recblink 2.4s steps(1) infinite; }
@keyframes recblink { 50% { opacity: .35; } }
.h2 { font: 900 clamp(38px, 4.6vw, 60px)/.96 var(--d); letter-spacing: -.005em; margin-top: 10px; }
.sub, .lede { font-size: 18px; line-height: 28px; }
.hero h1 { font: 900 clamp(46px, 5vw, 68px)/.92 var(--d); letter-spacing: -.01em; margin: 18px 0 22px; }
.hero h1 em::after { left: 0; right: 0; bottom: -.02em; height: 4px; opacity: 1; background: var(--rec); box-shadow: 0 0 12px rgba(255, 58, 30, .5); z-index: 0; }
.beat .n, .count, .dg b, .f2 b { font-family: var(--d); font-weight: 900; }
.beat .n { font-size: clamp(70px, 8vw, 120px); }
.beat h3, .showcard h3, .trio h3, .cell h3, .big, .end h2, .card h3, .mc h4, .phone > header b, .sc-head b, .stamp, .st, .stamp-ok span, .deck-empty b, .wk b {
  font-family: var(--d); font-stretch: normal; letter-spacing: -.005em; }
.beat h3 { font-weight: 900; font-size: clamp(30px, 3.2vw, 42px); }
.cell h3, .trio h3 { font-weight: 700; font-size: 28px; line-height: 1.05; }
.showcard h3 { font-weight: 900; font-size: clamp(30px, 2.8vw, 38px); }
.showcard h3 small { font-family: var(--f); }
.big { font-weight: 900; font-size: clamp(40px, 6vw, 84px); line-height: .94; }
.end h2 { font-weight: 900; font-size: clamp(44px, 7.4vw, 108px); line-height: .9; letter-spacing: -.01em; }
.card h3 { font-weight: 800; font-size: 30px; line-height: 1; }
.mc h4 { font-weight: 800; font-size: 25px; line-height: 1; }
summary { font: 600 clamp(17px, 1.7vw, 20px)/1.3 var(--f); }
.tabs button, .switch button { font-family: var(--f); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }

/* ── Button: one red plate per screen, outlined for the rest ── */
.btn { font: 700 15px/16px var(--f); letter-spacing: .06em; text-transform: uppercase; min-height: 48px; padding: 14px 24px; border-radius: var(--radius-plate);
  border: 2px solid var(--rec-fill); background: var(--rec-fill); color: var(--on-rec); box-shadow: var(--shadow-plate); }
.btn:hover { background: var(--rec-deep); border-color: var(--rec-deep); }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--on-rec); flex: none; }
.btn.ghost, .nav .btn, .reqcard .btn { background: transparent; color: var(--ink-text); border-color: var(--control-border); box-shadow: none; }
.btn.ghost:hover, .nav .btn:hover, .reqcard .btn:hover { background: transparent; border-color: var(--ink-text); }
.btn.sm { min-height: 40px; padding: 10px 16px; font-size: 13px; }
.approved #rv-ok, .reqcard.done .btn { color: #fff; }
.linkbtn { color: var(--rec); text-decoration-color: currentColor; }
.linkbtn:hover { color: var(--focus); }

/* ── nav ── */
.nav { border-radius: var(--radius-plate); background: rgba(11, 11, 13, .86); border-color: var(--hairline); padding: 8px 8px 8px 18px; }
.logo-img { display: block; height: auto; }
.nav .logo-img { width: 132px; }
.nav nav a, .nav-in { color: var(--ink-muted); font-weight: 500; }
.nav-prog { background: var(--rec); }

/* ── hero ── */
.beam { opacity: calc(var(--o, .5) * .55); }
.spot { background: radial-gradient(440px circle at var(--mx, 72%) var(--my, 38%), color-mix(in srgb, var(--gel) 14%, transparent), transparent 70%); }
.hero .lede { margin-top: 26px; }
.gels .mono { color: var(--ink-muted); }

/* TapeLabel: gaffer tape, hand-marked, one per screen */
.tapelabel { display: inline-block; background: var(--tape-white); color: var(--marker); font: 400 clamp(19px, 2vw, 25px)/1.2 var(--hand); padding: 10px 30px 9px;
  border-radius: var(--radius-tape); box-shadow: var(--shadow-tape); transform: rotate(-1.5deg); max-width: 100%;
  clip-path: polygon(0 0, 100% 0, 99% 18%, 100% 36%, 98.8% 54%, 100% 72%, 99% 88%, 100% 100%, 0 100%, 1% 84%, 0 66%, 1.2% 48%, 0 30%, 1% 14%); }
.js .hero .tapelabel { opacity: 0; animation: tapeon .6s var(--spring) .65s forwards; }
@keyframes tapeon { from { opacity: 0; transform: rotate(-6deg) scale(1.08) translateY(-8px); } to { opacity: 1; transform: rotate(-1.5deg); } }

/* ── why: the loose notes stay paper; the tidy list is the case ── */
.raw { --fg: #111113; --fg2: #3d3d44; --fg3: #55555c; --line: #cfccc3; background: #fff; color: var(--fg); border-color: #cfccc3; }
[data-k=note] .raw { background: repeating-linear-gradient(#fff 0 25px, #e9e6df 25px 26px); }
[data-k=sheet] .raw { background: linear-gradient(90deg, transparent 39%, #cfccc3 39% 40%, transparent 40%), #fff; }
[data-k=dm] .raw { background: var(--tape-white); }
[data-k=chat] .raw { background: var(--case-700); color: var(--ink-text); }
[data-k=chat] .src { color: var(--ink-muted); }
.wave i { background: #111113; }
.mess { border-radius: var(--radius-pass); }
.mess .logo-img { width: 120px; }
.tidy { background: var(--case-900); border-radius: var(--radius-plate); }
.tidy .tag { width: 96px; font-size: 9.5px; letter-spacing: .12em; }
.pill { font-size: 9.5px; letter-spacing: .1em; }
.switch { border-radius: var(--radius-plate); background: var(--case-800); border-color: var(--hairline); }
.switch button { border-radius: 6px; }
.switch button[aria-pressed="true"] { color: var(--case-900); }
.switch .thumb { border-radius: 6px; background: var(--ink-text); }

/* ── how ── */
.ticks li::before { color: var(--rec); }
.rail { background: var(--hairline); }
.rail i { background: var(--rec); }
.phone.tall { box-shadow: 0 0 0 9px #0d0d11, 0 0 0 10px var(--chrome-700), 0 50px 90px -34px color-mix(in srgb, var(--gel) 40%, transparent), var(--shadow-pass); }
.shot { background: #fff; }

/* ── content: route map + PassCards ── */
.map, .showcard { border-radius: var(--radius-pass); }
.lk { border-radius: var(--radius-plate); }
.rq { border-radius: var(--radius-plate); }
.rq .mono { color: var(--rec); }

/* PlateTag: engraved aluminium for metadata */
.plate { display: inline-flex; align-items: center; gap: 10px; padding: 7px 11px; border-radius: var(--radius-plate); color: var(--marker); font: 400 10px/16px var(--m); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--chrome-100) 0%, var(--chrome-300) 55%, var(--chrome-500) 100%); box-shadow: var(--shadow-plate), inset 0 1px 0 rgba(255, 255, 255, .7); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); white-space: nowrap; }
.plate .rivet { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--chrome-100), var(--chrome-700)); flex: none; }
.plate .live { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: var(--rec-glow); flex: none; }
.map-tag.plate { left: 16px; top: 16px; }

.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 0; margin-top: 56px; }
.passes > .pass { padding: 10px; }
.pass { border-radius: var(--radius-pass); padding: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .3); box-shadow: var(--shadow-pass); max-width: 340px; width: 100%; justify-self: center; }
.pass .slot { width: 64px; height: 14px; margin: 4px auto 10px; border-radius: 999px; background: var(--case-900); border: 1px solid rgba(255, 255, 255, .4); }
.pcard { border-radius: 16px; overflow: hidden; color: var(--marker); background: var(--chrome); display: flex; flex-direction: column; min-height: 100%; }
.pbar, .pfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--marker); color: var(--chrome-100); padding: 10px 16px; font: 700 14px/1 var(--d); letter-spacing: .2em; text-transform: uppercase; }
.pbody { padding: 22px 16px 18px; display: grid; gap: 8px; flex: 1; }
.pbody h3 { margin: 0; font: 900 54px/.88 var(--d); text-transform: uppercase; letter-spacing: 0; color: var(--marker); }
.pbody p { margin: 0; font: 500 15.5px/22px var(--f); color: var(--marker); }
.pfoot { justify-content: flex-start; color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .12em; }
.pfoot .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: var(--rec-glow); flex: none; }

/* ── review ── */
.frame { border-radius: var(--radius-pass); }
.cm { border-radius: var(--radius-plate); }
.cm time { border-radius: 6px; }
.cap { border-radius: var(--radius-plate); }

/* ── bento ── */
.cell { border-radius: var(--radius-pass); }
.cell::before { background: radial-gradient(280px circle at var(--cx, 50%) var(--cy, 0%), color-mix(in srgb, var(--gel) 12%, transparent), transparent 70%); }
.cell.a { background: var(--case-800); border-color: var(--hairline); }
.reqcard, .dg, .acct-list div { border-radius: var(--radius-plate); }
.hs .app { background: url(brand/app-icon-192.png) center / cover; }
.hs .app::after { display: none; }
.node { border-radius: var(--radius-plate); }
.node.ink { background: var(--chrome); color: var(--marker); border-color: var(--chrome-500); font-weight: 700; box-shadow: var(--shadow-plate); }
.wire { background: repeating-linear-gradient(90deg, var(--rec) 0 6px, transparent 6px 12px); }
.seg { border-radius: var(--radius-plate); }
.seg button { border-radius: 6px; }

/* ── who ── */
.who::before { background: radial-gradient(46% 70% at 88% 100%, color-mix(in srgb, var(--gel) 12%, transparent), transparent 70%); }
.tabs .ink { background: var(--rec); box-shadow: 0 0 14px rgba(255, 58, 30, .55); }
.panel li::before { background: var(--rec); box-shadow: var(--rec-glow); }

/* ── faq ── */
details:first-of-type { border-top-color: var(--hairline); }
summary::after { color: var(--rec); font-family: var(--f); }

/* ── closing lockup ── */
.lockup { display: block; width: min(760px, 100%); height: auto; margin: 0 auto 8px; border-radius: var(--radius-tape); box-shadow: var(--shadow-pass); }
.end h2 { margin-top: 44px; }
.end .b1, .end .b2 { opacity: .18; }

/* ── footer ── */
footer { background: var(--case-700); color: var(--ink-muted); border-top-color: var(--hairline); }
footer .wrap { row-gap: 18px; }
footer .logo-img { width: 140px; }
footer .tagline { font: 500 14px/20px var(--f); color: var(--ink-muted); }
footer small { margin-right: 0; flex-basis: 100%; order: 3; }
footer nav { margin-left: auto; }
footer nav a:hover { color: var(--ink-text); }

.toast { background: var(--case-800); border-color: var(--hairline); border-radius: var(--radius-plate); }

@media (max-width: 900px) {
  .passes { grid-template-columns: 1fr; gap: 28px; }
  .shot { border-radius: var(--radius-pass); color: var(--fg); --s2: #ecedf2; --card: #fff; --on: #fff; }
}
@media (max-width: 640px) {
  .nav .logo-img { width: 120px; }
  .nav { gap: 12px; }
  .nav .btn { white-space: nowrap; padding: 9px 12px; font-size: 12px; min-height: 38px; }
  .pbody h3 { font-size: 46px; }
  .switch { display: grid; width: 100%; }
  .switch button { padding: 12px 8px; font-size: 12px; letter-spacing: .02em; }
  .tapelabel { padding: 9px 20px 8px; }
  .hero h1 em::after { height: 3px; }
  footer nav { margin-left: 0; }
}
