/* Ubipass public website (website part 1, 2026-11-25): the home page (served by worker.js from home.html), the
   Android download page, Support, Terms of use and the Privacy notice. Chris's logo system: cream in light mode,
   black in dark mode, Pass Blue for the brand, following the computer's or phone's setting. Manrope, from our own
   server (fonts/fonts.css). Only these pages load this file: the staff, admin, door and TV pages keep styles.css
   until their own parts (docs/design.md, "The website"). */

:root {
  color-scheme: light dark;
  --u-page: #FEF6EB; --u-card: #FFFFFF; --u-line: #EADFCC; --u-rule: #F2E8D8;
  --u-text: #1A0E08; --u-muted: #6B5E52; --u-link: #0B2FA7;
  --u-blue: #0B2FA7; --u-blue2: #1A3FC2; --u-cream: #FEF6EB; --u-ink: #1A0E08;
  --u-soft: #F2E8D9; --u-tint: #E7EBF8; --u-ok: #3F6212; --u-ok-soft: #EEF3D2; --u-err: #B42318; --u-err-soft: #FBE0D6;
  --u-orange: #F0A63A; --u-lime: #C9D96B; --u-coral: #E8643A; --u-mauve: #C07A93;
  --u-chip: #1A0E08; --u-chip-text: #FEF6EB;           /* the dark pill over the headline */
  --u-stage: linear-gradient(180deg, #F2E8D9 0%, #F8EFE3 100%);
  --u-lift: 0 22px 40px -26px rgba(26, 14, 8, 0.32);
  --u-spark-1: #0B2FA7; --u-spark-2: #7E9A1F; --u-spark-3: #C2410C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --u-page: #000000; --u-card: #141414; --u-line: #2B2B2B; --u-rule: #1E1E1E;
    --u-text: #FEF6EB; --u-muted: #A9A196; --u-link: #FEF6EB;   /* Pass Blue words on black are too faint: cream */
    --u-soft: #1C1C1C; --u-tint: #141B33; --u-ok: #C9D96B; --u-ok-soft: #1C2414; --u-err: #E8643A; --u-err-soft: #2A1712;
    --u-chip: #FEF6EB; --u-chip-text: #000000;
    --u-stage: linear-gradient(180deg, #121212 0%, #070707 100%);
    --u-lift: 0 24px 40px -24px rgba(0, 0, 0, 0.85);
    --u-spark-1: #8FA3F0; --u-spark-2: #C9D96B; --u-spark-3: #E8643A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--u-page); color: var(--u-text); font: 500 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: var(--u-link); font-weight: 700; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--u-link); outline-offset: 3px; border-radius: 6px; }
.u-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Embassy-era lines (EMBASSY_FEATURES in embassy.js, off): same rule as styles.css */
html:not(.embassy-on) [data-embassy-ui] { display: none !important; }
html.embassy-on [data-embassy-off] { display: none !important; }

.u-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .u-wrap { padding: 0 16px; } }

/* The wordmark: the UP symbol, then "ubipass" */
.u-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--u-text); text-decoration: none; font-weight: 800; font-size: 23px;
  letter-spacing: -0.04em; line-height: 1; }
.u-logo svg { width: 19px; height: 24px; fill: none; stroke: var(--u-link); stroke-width: 27; stroke-linecap: round; stroke-linejoin: round; }
.u-logo small { font-size: 15px; font-weight: 700; color: var(--u-muted); letter-spacing: 0; margin-left: 4px; }

/* Buttons: 48 px tall at least */
.u-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; text-align: center; }
.u-btn.main { background: var(--u-blue); color: var(--u-cream); }
.u-btn.main:hover { background: #08237D; }
.u-btn.line { background: var(--u-card); border-color: var(--u-line); color: var(--u-link); }
.u-btn.line:hover { border-color: var(--u-link); }
.u-btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.u-btn .u-ico { width: 19px; height: 19px; }

/* Top bar */
.u-nav { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.u-nav .u-links { display: flex; gap: 26px; margin-left: 12px; }
.u-nav .u-links a, .u-nav .u-plain { color: var(--u-muted); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.u-nav .u-links a:hover, .u-nav .u-plain:hover, .u-nav .u-links a[aria-current] { color: var(--u-text); }
.u-nav .u-grow { flex: 1; }
.u-nav .u-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) { .u-nav .u-links, .u-nav .u-plain { display: none; } .u-nav { gap: 12px; min-height: 68px; } }

/* The small dark pill above a headline */
.u-kick { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: var(--u-chip);
  color: var(--u-chip-text); font-weight: 800; font-size: 14px; }
.u-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-lime); flex: none; }
.u-kick.blue { background: var(--u-blue); color: var(--u-cream); }
.u-kick.blue i { background: var(--u-orange); }

/* ---------- Home ---------- */
.u-hero { text-align: center; padding-top: 48px; }
.u-hero h1 { font-size: clamp(46px, 9vw, 88px); line-height: 0.98; font-weight: 800; letter-spacing: -0.05em; margin: 22px 0; }
.u-hero h1 span { color: var(--u-link); }
@media (prefers-color-scheme: dark) { .u-hero h1 span { color: #8FA3F0; } }
.u-lead { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--u-muted); font-weight: 600; max-width: 690px; margin: 0 auto; }
.u-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 14px; }
.u-ctas .u-btn { min-height: 54px; padding: 0 24px; }
.u-note { font-size: 15px; color: var(--u-muted); font-weight: 600; }
.u-team { max-width: 560px; margin: 18px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--u-soft); font-weight: 600; }

.u-stage { position: relative; margin: 56px auto 0; max-width: 1240px; height: 640px; border-radius: 36px; background: var(--u-stage);
  border: 1px solid var(--u-line); overflow: hidden; }
.u-phone { position: absolute; left: 50%; top: 70px; width: 300px; height: 620px; margin-left: -330px; border-radius: 46px; background: #1A0E08;
  padding: 12px; box-shadow: 0 40px 80px -30px rgba(26, 14, 8, 0.6); }
@media (prefers-color-scheme: dark) { .u-phone { background: #2B2B2B; } }
.u-screen { width: 100%; height: 100%; border-radius: 36px; background: #FEF6EB; color: #1A0E08; overflow: hidden; padding: 46px 16px 0; position: relative; }
.u-screen h5 { margin: 0 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.u-pass { border-radius: 22px; background: linear-gradient(135deg, #0B2FA7, #1A3FC2); color: #FEF6EB; padding: 16px; }
.u-pass .top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 11px; letter-spacing: 0.08em; }
.u-pass .u-logo { color: #FEF6EB; font-size: 18px; } .u-pass .u-logo svg { stroke: #FEF6EB; width: 14px; height: 18px; }
.u-pass .who { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.u-pass .face { width: 42px; height: 42px; border-radius: 50%; background: rgba(254, 246, 235, 0.2); display: grid; place-items: center; font-weight: 800; }
.u-pass .who b { display: block; font-size: 16px; line-height: 1.2; } .u-pass .who small { font-size: 12px; font-weight: 600; }
.u-pass .qr { background: #fff; border-radius: 16px; padding: 10px; width: 176px; margin: 0 auto; }
.u-pass .qr svg { display: block; width: 156px; height: 156px; }
.u-pass p { font-size: 12px; text-align: center; margin-top: 10px; font-weight: 600; }
.u-tabs { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 58px; border-radius: 29px; background: #fff; border: 1px solid #EADFCC;
  display: flex; align-items: center; justify-content: space-around; color: #6B5E52; }
.u-tabs .on { background: #E7EBF8; color: #0B2FA7; border-radius: 20px; padding: 8px 12px; display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; }
.u-ticket { position: absolute; left: 50%; top: 110px; margin-left: 20px; width: 400px; border-radius: 28px; background: var(--u-card); border: 1px solid var(--u-line);
  box-shadow: var(--u-lift); overflow: hidden; }
.u-ticket .pic { height: 170px; position: relative; }
.u-ticket .pic svg { display: block; width: 100%; height: 100%; }
.u-ticket .pic .when { position: absolute; left: 16px; top: 14px; }
.u-ticket .body { padding: 18px 20px 20px; }
.u-ticket .host { font-size: 13px; color: var(--u-muted); font-weight: 700; }
.u-ticket h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 12px; }
.u-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.u-facts div { background: var(--u-tint); border-radius: 16px; padding: 10px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.u-facts small { display: block; color: var(--u-muted); font-weight: 600; font-size: 12px; }
.u-facts .u-ico { width: 18px; height: 18px; color: var(--u-link); margin-bottom: 6px; display: block; }
.u-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.u-chip.going { background: var(--u-lime); color: var(--u-ink); }
.u-chip.when { background: #fff; color: #1A0E08; }
.u-chip.example { background: var(--u-soft); color: var(--u-muted); }
.u-tag { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--u-card); border: 1px solid var(--u-line); border-radius: 16px;
  padding: 10px 14px; box-shadow: var(--u-lift); font-weight: 700; font-size: 14px; line-height: 1.35; }
.u-tag .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--u-ink); flex: none; }
.u-tag .dot .u-ico { width: 17px; height: 17px; }
.u-tag small { display: block; color: var(--u-muted); font-size: 12.5px; font-weight: 600; }
.u-tag.t1 { left: 50%; margin-left: 120px; top: 520px; }
.u-tag.t2 { left: 50%; margin-left: -566px; top: 300px; }
@media (max-width: 1290px) { .u-tag.t2 { display: none; } }
@media (max-width: 1000px) {
  .u-stage { height: auto; padding: 40px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .u-phone { position: relative; left: auto; top: auto; margin: 0; height: 560px; order: 2; border-radius: 46px 46px 0 0; }
  .u-ticket { position: relative; left: auto; top: auto; margin: 0; width: min(100%, 400px); order: 1; }
  .u-tag { display: none; }
}

.u-section { margin-top: 110px; }
.u-section h2 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.05em; margin: 20px 0 18px; }
.u-section .u-lead { margin: 0; max-width: 640px; }
.u-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 960px) { .u-cards { grid-template-columns: 1fr; } }
.u-mini { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 26px; padding: 22px; }
.u-mini .hd { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--u-muted); }
.u-mini .hd .u-chip { margin-left: auto; min-height: 24px; font-size: 12px; padding: 1px 10px; }
.u-mini .hd .u-ico { width: 17px; height: 17px; }
.u-mini .num { display: flex; align-items: flex-end; gap: 14px; margin: 12px 0 4px; }
.u-mini .num b { font-size: 60px; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.u-mini .num svg { flex: 1; height: 58px; min-width: 0; }
.u-mini .what { font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.u-mini .box { background: var(--u-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--u-muted); font-weight: 600; line-height: 1.5; }
.u-mini .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--u-rule); }
.u-mini .trio span { font-size: 12.5px; color: var(--u-muted); font-weight: 700; }
.u-mini .trio b { display: block; font-size: 22px; font-weight: 800; color: var(--u-text); }
.u-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 100px; }
@media (max-width: 860px) { .u-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; } }
.u-steps .n { width: 46px; height: 46px; border-radius: 50%; background: var(--u-blue); color: var(--u-cream); display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.u-steps h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 8px; }
.u-steps p { color: var(--u-muted); line-height: 1.55; font-weight: 600; }

/* Footer */
.u-foot { margin-top: 110px; border-top: 1px solid var(--u-line); padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; }
.u-foot .u-grow { flex: 1 1 320px; }
.u-foot small { display: block; color: var(--u-muted); font-weight: 600; font-size: 14px; max-width: 440px; line-height: 1.55; margin-top: 14px; }
.u-foot nav { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.u-foot nav a { color: var(--u-text); text-decoration: none; font-size: 15px; }
.u-foot nav a:hover { text-decoration: underline; }

/* ---------- Document pages: Android, Support, Terms, Privacy ---------- */
.u-head { padding-top: 40px; padding-bottom: 28px; }
.u-head h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 18px 0 12px; }
.u-head .u-lead { margin: 0; max-width: 680px; }
.u-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 32px; padding: 2px 12px; border-radius: 999px;
  border: 1px solid var(--u-line); background: var(--u-card); color: var(--u-muted); font-size: 13.5px; font-weight: 700; }
.u-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: var(--u-soft); font-weight: 600;
  line-height: 1.55; margin-bottom: 18px; }
.u-callout .u-ico { margin-top: 3px; color: var(--u-link); }
.u-callout.warn { background: var(--u-err-soft); } .u-callout.warn .u-ico { color: var(--u-err); }
.u-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.u-layout.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.u-layout.two > div { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .u-layout, .u-layout.two { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.u-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .u-toc { position: static; margin-bottom: 8px; } }
.u-toc b { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--u-muted); margin: 0 0 8px 12px; }
.u-toc a { color: var(--u-muted); text-decoration: none; font-weight: 650; font-size: 14px; padding: 7px 12px; border-radius: 10px; line-height: 1.35; }
.u-toc a:hover { color: var(--u-text); background: var(--u-soft); }
.u-paper { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 26px; padding: 34px 38px; }
@media (max-width: 600px) { .u-paper { padding: 22px 18px; border-radius: 22px; } }
.u-paper section + section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--u-rule); }
.u-paper h2, .u-paper h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; scroll-margin-top: 20px; }
.u-paper p + p { margin-top: 10px; }
.u-paper ul, .u-paper ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.u-paper b { font-weight: 800; }
.small-print { font-size: 14px; color: var(--u-muted); font-weight: 600; }

/* Support */
.u-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 860px) { .u-ways { grid-template-columns: 1fr; } }
.u-way { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.u-way .tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--u-ink); margin-bottom: 8px; }
.u-way h2 { font-size: 18px; font-weight: 800; }
.u-way p { color: var(--u-muted); font-weight: 600; font-size: 15px; line-height: 1.5; }
.u-way a { overflow-wrap: anywhere; }
.u-faq { margin-top: 8px; }
.u-faq details { border-bottom: 1px solid var(--u-rule); }
.u-faq details:last-child { border-bottom: 0; }
.u-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; font-weight: 800; font-size: 16.5px; }
.u-faq summary::-webkit-details-marker { display: none; }
.u-faq summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--u-muted); border-bottom: 2px solid var(--u-muted);
  transform: rotate(45deg) translate(-3px, -3px); flex: none; }
.u-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.u-faq details > p { padding: 0 0 16px; color: var(--u-muted); font-weight: 600; line-height: 1.6; }

/* Android */
.u-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .u-apps { grid-template-columns: 1fr; } }
.u-app { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.u-app .row { display: flex; align-items: center; gap: 14px; }
.u-app .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.u-app .icon svg { width: 26px; height: 33px; fill: none; stroke-width: 27; stroke-linecap: round; stroke-linejoin: round; }
.u-app h2 { font-size: 22px; font-weight: 800; }
.u-app .name { font-size: 13.5px; color: var(--u-muted); font-weight: 700; }
.u-app > p { color: var(--u-muted); font-weight: 600; line-height: 1.5; }
.u-app .u-btn { align-self: flex-start; margin-top: 6px; }
.u-install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .u-install { grid-template-columns: 1fr; } }
.u-install div { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 22px; padding: 20px; }
.u-install .n { width: 36px; height: 36px; border-radius: 50%; background: var(--u-blue); color: var(--u-cream); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.u-install p { color: var(--u-muted); font-weight: 600; line-height: 1.5; } .u-install b { color: var(--u-text); }
