/* BeepBeep website (rebuilt 13 Nov 2026). The look is the app's Tripper "Drive stories" language: paper, large light headlines,
   one hero panel, rounded cards, an ink button for the main action. The colours are tokens; js/site.js swaps them for the story
   world the visitor picks (data from tools/website/build_site.py). System fonts only: nothing is loaded from third parties. */
:root {
  --paper: #F7F6EE; --ink: #202B28; --onInk: #F7F6EE; --quiet: #5B655C; --soft: #E6EADD; --hero: #D9E4C6; --accent: #46672D; --line: #D4D8CA;
  --orange: #FF7A00;
  --r1: 12px; --r2: 20px; --r3: 28px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-world]), :root[data-world="drive-stories"] {
    --paper: #18231F; --ink: #EDF1E8; --onInk: #18231F; --quiet: #B4BFB1; --soft: #29382E; --hero: #32432E; --accent: #B7D68C; --line: #3B483D;
    color-scheme: dark;
  }
}
/* Older names the legal pages use. */
:root { --bg: var(--paper); --card: var(--soft); --muted: var(--quiet); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--onInk); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- type ---- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--quiet); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.muted { color: var(--quiet); }
.small { font-size: 14px; }

/* ---- header / nav ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); }
.nav .cta { background: var(--ink); color: var(--onInk); font-weight: 600; }
.nav .cta:hover { background: var(--ink); opacity: .9; }
.lookbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.lookbtn .dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--hero) 0 50%, var(--accent) 0); border: 1px solid var(--line); }
.menubtn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; min-height: 44px; min-width: 44px; font-size: 20px; cursor: pointer; }
@media (max-width: 900px) {
  .menubtn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 8px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .top .lookbtn { margin-left: 0; }
}

/* ---- look picker ---- */
.looks { position: fixed; inset: auto 16px 16px auto; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: min(80vh, 640px); overflow: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.looks[hidden] { display: none; }
.looks h3 { margin: 0 0 4px; }
.looks .close { position: absolute; right: 10px; top: 10px; border: 0; background: none; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.swatch { display: flex; gap: 10px; align-items: center; text-align: left; border: 2px solid transparent; border-radius: 14px; padding: 8px; cursor: pointer;
  font: inherit; font-size: 14px; min-height: 56px; }
.swatch img { width: 40px; height: 40px; flex: none; }
.swatch[aria-pressed="true"] { border-color: currentColor; }
.swatch b { display: block; font-size: 15px; }

/* ---- sections ---- */
section { padding: clamp(56px, 9vw, 110px) 0; }
section.tight { padding: 40px 0; }
.band { background: var(--soft); }
.hero-panel { background: var(--hero); border-radius: var(--r3); }
.grid2 { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: center; }
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--soft); border-radius: var(--r2); padding: 22px 24px; margin: 16px 0; }
.card.paper { background: var(--paper); border: 1px solid var(--line); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---- buttons ---- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 600;
  text-decoration: none; font-size: 17px; border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn.ink { background: var(--ink); color: var(--onInk); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #141a26; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; line-height: 1.1; }
.btn .two { text-align: left; line-height: 1.15; }
.btn:hover { opacity: .92; }

/* ---- hero ---- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 7vw, 80px); }
.hero .grid2 { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .hero .grid2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--quiet); }

/* ---- the story card (as in the app) ---- */
.story { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; box-shadow: 0 20px 50px rgba(32,43,40,.10);
  max-width: 420px; margin-left: auto; }
.story .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--quiet); text-transform: uppercase; letter-spacing: .08em; }
.story .canvas { background: var(--hero); border-radius: var(--r2); margin: 12px 0; padding: 14px; position: relative; overflow: hidden; }
.story .band { display: flex; justify-content: space-between; align-items: center; background: transparent; }
.story .who { display: flex; align-items: center; gap: 10px; }
.story .who img { width: 56px; height: 56px; }
.story .who b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.story .medal { width: 46px; height: 46px; }
.story svg.route { width: 100%; height: 150px; display: block; }
.story .times { font-size: 13px; color: var(--quiet); }
.story h3 { font-size: 34px; letter-spacing: -0.03em; white-space: pre-line; margin: 6px 0 8px; }
.story .note { color: var(--quiet); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats div { background: var(--soft); border-radius: 14px; padding: 10px; }
.stats b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.stats span { font-size: 12px; color: var(--quiet); }

/* ---- cast of characters ---- */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cast { grid-template-columns: repeat(2, 1fr); } }
.who-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; }
.who-card img { width: 72px; height: 72px; margin-bottom: 8px; }
.who-card b { display: block; font-size: 15px; }
.who-card p { white-space: pre-line; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 0; }

/* ---- world tiles ---- */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
.world { border: 2px solid var(--line); border-radius: var(--r2); padding: 14px; text-align: left; cursor: pointer; font: inherit; min-height: 150px; display: flex;
  flex-direction: column; gap: 6px; }
.world img { width: 52px; height: 52px; }
.world b { font-size: 16px; }
.world small { font-size: 12px; opacity: .8; }
.world[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 2px currentColor inset; }
.words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.words span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }

/* ---- phone shots ---- */
.shot { border-radius: 26px; box-shadow: 0 18px 44px rgba(32,43,40,.16); background: var(--paper); }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 min(270px, 72vw); margin: 0; scroll-snap-align: start; }
.shots figcaption { font-size: 14px; color: var(--quiet); margin-top: 8px; }

/* ---- features ---- */
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; }
.feat .n { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); }
.feat h3 { font-size: 18px; margin: 4px 0 6px; }
.feat p { font-size: 15px; color: var(--quiet); margin: 0; }

/* ---- passport ---- */
.areas { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.areas li { display: flex; justify-content: space-between; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stamp { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.stamp.good { background: #DDEFD9; color: #1D5B2E; } .stamp.eye { background: #F6EBC8; color: #6B5100; }
.stamp.check { background: #FADBC4; color: #8A3B00; } .stamp.not { background: #E5E7EA; color: #3D4550; }

/* ---- steps / guides ---- */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--onInk);
  align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.tabs { display: inline-flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 14px; margin: 10px 0 22px; }
.tabs button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px; min-height: 44px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.guide { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.guide figure { margin: 0; }
.guide img { border-radius: 18px; border: 1px solid var(--line); }
.guide figcaption { font-size: 15px; margin-top: 10px; }
.guide figcaption b { display: block; font-size: 17px; }

/* ---- adapter levels ---- */
.levels { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }
.level { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.level .grade { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.level .grade.basic { color: #8A6100; } .level .grade.good { color: #1F5FA3; } .level .grade.better, .level .grade.best { color: #1D6B36; }
.level h3 { margin: 0; }
.level .num { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.level .find { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.level .find a { font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); border-radius: var(--r1); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--quiet); font-weight: 600; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r1); }

/* ---- FAQ ---- */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--quiet); }
details[open] summary::after { content: "–"; }
details summary::-webkit-details-marker { display: none; }
details p { color: var(--quiet); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; }
.foot .cols { display: grid; gap: 26px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---- legal pages (privacy, support, delete account, ios) keep their own markup ---- */
main.doc, body > main:not(.site) { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
body > main:not(.site) > header { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.logo { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--onInk); display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex: none; }
body > main:not(.site) h1 { font-size: clamp(32px, 5vw, 46px); margin: 0; }
body > main:not(.site) h2 { font-size: 26px; margin: 34px 0 10px; }
body > main:not(.site) ul, body > main:not(.site) ol { padding-left: 22px; }
body > main:not(.site) li { margin: 6px 0; }
body > main:not(.site) table { margin: 12px 0; }

/* ---- hero: mode switch, world row, story carousel (owner, 13 Nov 2026: switching at the top, more than one story) ---- */
.modeswitch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--soft); border: 1px solid var(--line); padding: 5px;
  border-radius: 18px; margin: 26px 0 0; width: min(420px, 100%); }
.modeswitch button { border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; padding: 10px 14px; border-radius: 14px;
  cursor: pointer; min-height: 56px; }
.modeswitch button b { display: block; font-size: 17px; }
.modeswitch button small { color: var(--quiet); font-size: 13px; }
.modeswitch button[aria-selected="true"] { background: var(--ink); color: var(--onInk); }
.modeswitch button[aria-selected="true"] small { color: var(--onInk); opacity: .8; }
.pickworld { margin-top: 18px; }
.mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mini button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); padding: 5px; cursor: pointer; display: grid; place-items: center; }
.mini button img { width: 30px; height: 30px; }
.mini button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.hero-visual { min-width: 0; }
.carousel { max-width: 440px; margin-left: auto; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; padding: 4px 4px 26px; }
.track::-webkit-scrollbar { display: none; }
.track .story { flex: 0 0 100%; scroll-snap-align: center; margin: 0; max-width: none; }
.cnav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 22px; cursor: pointer; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 220px; }
.dots { gap: 0; }
.dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots button[aria-current="true"]::before { background: var(--ink); width: 22px; border-radius: 6px; }
@media (max-width: 900px) { .carousel { margin: 0 auto; } }
.mech { max-width: 380px; margin-left: auto; }
.mech img { width: 100%; height: min(640px, 78vh); object-fit: cover; object-position: top; }
@media (max-width: 900px) { .mech { margin: 0 auto; } }

/* ---- 13 Nov 2026 (owner review): world picker at the top right, and every screen size ---- */
.hero-visual .pickworld { margin: 0 0 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hero-visual .pickworld .mini { justify-content: flex-end; margin-top: 0; }
@media (max-width: 900px) { .hero-visual .pickworld { align-items: center; } .hero-visual .pickworld .mini { justify-content: center; } }
.grid2, .grid3, .grid4, .hero .grid2 { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.grid3 { --cols: 3; } .grid4 { --cols: 4; }
.hero .grid2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid2, .grid3, .hero .grid2 { grid-template-columns: minmax(0, 1fr); } .grid4 { --cols: 2; } }
@media (max-width: 520px) { .grid4 { --cols: 1; } }
h1, h2, h3, p, li, td, th, figcaption { overflow-wrap: break-word; }
.card, .feat, .step, .level, .who-card, .story { min-width: 0; }
.modeimg { width: 100%; max-width: 260px; margin: 18px auto 0; }
@media (max-width: 520px) {
  .modeimg { max-width: 220px; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  h2 { font-size: clamp(28px, 8.5vw, 36px); }
  .card { padding: 18px; }
  .story { padding: 14px; }
  .story h3 { font-size: 28px; }
  .stats b { font-size: 18px; }
  .btns .btn { width: 100%; }
  .modeswitch { width: 100%; }
  .mini button { width: 40px; height: 40px; }
  .mini button img { width: 26px; height: 26px; }
}
@media (max-width: 360px) { .stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .stats div { padding: 8px; } .stats b { font-size: 16px; } .wrap { padding: 0 14px; } }
body > main:not(.site) table { display: block; max-width: 100%; overflow-x: auto; }
.hero-visual .mini { gap: 6px; flex-wrap: nowrap; }
.hero-visual .mini button { width: 38px; height: 38px; padding: 4px; flex: none; }
.hero-visual .mini button img { width: 24px; height: 24px; }
@media (max-width: 460px) { .hero-visual .mini { flex-wrap: wrap; } }

/* ---- hero layout by area (owner review 13 Nov 2026: phones see the story first) ---- */
.herogrid { display: grid; gap: 0 56px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "text visual" "cta visual" "switch visual"; align-items: start; }
.h-text { grid-area: text; } .h-cta { grid-area: cta; } .h-switch { grid-area: switch; } .hero-visual { grid-area: visual; }
.h-cta .btns { margin-top: 18px; }
@media (max-width: 900px) {
  .herogrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "switch" "visual" "cta"; max-width: 560px; }
  .hero { padding: 22px 0 36px; }
  .h-text h1 { margin-bottom: 10px; }
  .h-text .lead { font-size: 17px; margin-bottom: 0; }
  .h-text .long { display: none; }
  .h-switch .modeswitch { margin-top: 18px; width: 100%; }
  .modeswitch button { min-height: 50px; padding: 8px 12px; }
  .modeswitch button small { display: none; }
  .hero-visual { margin-top: 16px; }
  .hero-visual .pickworld { align-items: stretch; }
  .hero-visual .pickworld .mini { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 4px 2px 8px; scrollbar-width: none; }
  .hero-visual .pickworld .mini::-webkit-scrollbar { display: none; }
  .carousel, .mech { margin: 0 auto; max-width: none; }
  .mech img { height: min(520px, 70vh); }
  .h-cta { margin-top: 18px; }
  .h-cta .chips { display: none; }
  section { padding: 48px 0; }
  .lookbtn .lookname { display: none; }
}
@media (max-width: 460px) { .hero-visual .mini { flex-wrap: nowrap; } }
/* Look button stays in the phone header (next to the menu button). */
.top .headlook { display: none; }
@media (max-width: 900px) {
  .top .wrap { gap: 10px; }
  .top .headlook { display: inline-flex; margin-left: auto; }
  .menubtn { margin-left: 0; }
}
/* Sticky get-the-app bar on phones. */
.getbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.getbar .btn { min-height: 46px; font-size: 16px; }
.getbar[hidden] { display: none; }
@media (min-width: 901px) { .getbar { display: none !important; } }
@media (max-width: 900px) { .foot { padding-bottom: 96px; } }

.track .story { box-shadow: none; }
.carousel .track { padding-bottom: 14px; }

@media (max-width: 900px) { body { padding-bottom: 84px; } .foot { padding-bottom: 40px; } }

/* ---- Mechanic carousel cards (owner, 13 Nov 2026: Mechanic talks about health reports and more) ---- */
.mcard h3 { font-size: 30px; margin: 14px 0 12px; }
.mcard .live { color: #1D6B36; text-transform: none; letter-spacing: 0; font-weight: 600; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gauges.two { grid-template-columns: 1fr 1fr; }
.gauges div { background: var(--hero); border-radius: 14px; padding: 12px 10px; }
.gauges b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.gauges span { font-size: 12px; color: var(--quiet); }
.mcard .note { margin-top: 12px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 9px 12px; font-size: 15px; }
.rows li small { display: block; font-size: 12px; color: var(--quiet); }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 7px; font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.doc b { font-size: 16px; }
.doc i { font-style: normal; color: var(--quiet); padding-left: 14px; position: relative; }
.doc i::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 520px) { .mcard h3 { font-size: 26px; } .gauges b { font-size: 18px; } }

/* ---- story-world picker in the stories section + floating world button (owner, 13 Nov 2026) ---- */
.pickworld.inline { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pickworld.inline .mini { margin-top: 0; }
.worldfab { display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  cursor: pointer; font: inherit; }
.getbar { grid-template-columns: 1fr 1fr auto; }
.getbar .worldfab { width: 46px; height: 46px; }
.worldfab.floating { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; gap: 8px; padding: 6px 16px 6px 8px; min-height: 52px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16); font-weight: 600; font-size: 15px; }
@media (max-width: 900px) {
  .worldfab.floating { display: none; }
  .pickworld.inline .mini { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding: 4px 2px; max-width: 100%; }
  .pickworld.inline .mini::-webkit-scrollbar { display: none; }
}

.getbar .btn { min-height: 52px; }
.getbar .btn small { font-variant-numeric: tabular-nums; }
