/* CenterStage OS — marketing site
   Identity: the "all-access laminate" — a venue credential on a lanyard.
   Brand red (#ef4338) from the app, warmed with a marquee amber, on stage black
   transitioning to run-sheet paper. Display: Bricolage Grotesque. Body: Inter.
   Data/credential lines: JetBrains Mono. */

:root {
  --stage:   #0b0e13;
  --stage-2: #06080c;
  --ink:     #11151b;
  --paper:   #f7f6f3;
  --panel:   #ffffff;
  --muted:   #646c78;
  --line:    #dedfdd;
  --red:     #e8463b;
  --red-ink: #bd3027;
  --amber:   #dfa33b;
  --green:   #128653;

  --r:       16px;
  --maxw:    1240px;
  --shadow:  0 24px 70px -28px rgba(7,10,15,.34), 0 8px 22px -16px rgba(7,10,15,.18);
  --shadow-card: 0 16px 40px -28px rgba(7,10,15,.28), 0 2px 8px rgba(7,10,15,.04);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.03em; margin: 0; font-weight: 750; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Mono credential label — the recurring "venue ops data" motif */
.cred {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* status pill: the hold→settlement vernacular from the run sheet */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pill .dot.g { background: var(--green); }
.pill .dot.a { background: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 650; font-size: 14.5px;
  padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(232,70,59,.28); outline-offset: 3px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -14px rgba(232,70,59,.82); }
.btn-primary:hover { background: #d93b31; box-shadow: 0 14px 30px -15px rgba(232,70,59,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c2b6; }
.btn-onstage { background: #fff; color: var(--stage); }
.btn-onstage:hover { background: #f0ede7; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-line-light:hover { border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,246,243,.88);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid rgba(17,21,27,.08);
}
.site-head .wrap { display: flex; align-items: center; gap: 34px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; }
.brand img { width: 27px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: 28px; margin-left: 8px; }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 550; font-size: 14px; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .18s ease; }
.nav a:hover::after { right: 0; }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-cta .signin { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
/* mobile menu button + the sign-in link that only appears in the mobile drawer */
.menu-toggle { display: none; margin-left: 12px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 18px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle:hover { border-color: #c9c2b6; }
.nav-signin { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .head-cta .signin { display: none; }
  /* Header nav becomes a drop-down drawer toggled by the hamburger. */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    padding: 6px 24px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(7,10,15,.35);
    display: none;
  }
  .site-head.menu-open .nav { display: flex; }
  .nav a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-signin { display: block; color: var(--red-ink); font-weight: 600; }
}
@media (max-width: 520px) {
  .home-head .head-cta .btn { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 86% 12%, rgba(232,70,59,.17), transparent 62%),
    radial-gradient(55% 80% at 64% 90%, rgba(61,83,112,.16), transparent 68%),
    linear-gradient(125deg, var(--stage-2) 0%, #0b1017 58%, #11131a 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .88fr 1.12fr; gap: 74px; align-items: center;
  padding-top: 104px; padding-bottom: 112px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  width: fit-content; margin: 0;
  color: rgba(255,255,255,.7);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(232,70,59,.12); }
.hero h1 { max-width: 10.5ch; font-size: clamp(44px, 5.2vw, 70px); margin: 20px 0 0; color: #fff; line-height: .98; }
.hero h1 .hl { color: #ff5a4e; }
.hero .sub { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: rgba(255,255,255,.72); max-width: 39ch; margin: 24px 0 0; }
.hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust { margin-top: 24px; display: flex; gap: 10px 20px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: 13.5px; }
.hero .trust i { color: #28b875; font-size: 12px; }

/* Product-first preview */
.hero-product { position: relative; min-width: 0; padding: 28px 0 32px; }
.hero-product::before {
  content: ""; position: absolute; inset: -10% -12% -18%;
  background: radial-gradient(circle at 50% 50%, rgba(232,70,59,.17), transparent 60%);
  filter: blur(18px); pointer-events: none;
}
.hero-window {
  position: relative; z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: #0b1017;
  box-shadow: 0 38px 90px -28px rgba(0,0,0,.85), 0 12px 32px -20px rgba(0,0,0,.7);
  transform: perspective(1400px) rotateY(-2.5deg) rotateX(1deg);
  transform-origin: center;
}
.hero-window-bar {
  height: 43px; display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: #111720; border-bottom: 1px solid rgba(255,255,255,.08);
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3e4855; }
.window-url {
  min-width: 0; flex: 1; max-width: 270px;
  padding: 5px 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 6px;
  background: rgba(0,0,0,.25); color: rgba(255,255,255,.42);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window-url i { margin-right: 5px; font-size: 8px; }
.window-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.58); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.window-live i { width: 6px; height: 6px; border-radius: 50%; background: #2cc77d; box-shadow: 0 0 0 4px rgba(44,199,125,.1); }
.hero-window > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.hero-status {
  position: absolute; z-index: 2; right: -18px; bottom: 0;
  display: flex; align-items: center; gap: 12px; min-width: 245px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  background: rgba(16,21,28,.9); backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px -22px rgba(0,0,0,.8);
}
.status-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(44,199,125,.14); color: #31c881; }
.hero-status span:last-child { display: grid; gap: 2px; }
.hero-status small { color: rgba(255,255,255,.46); font-family: var(--mono); font-size: 8.5px; letter-spacing: .13em; }
.hero-status strong { color: #fff; font-size: 12.5px; font-weight: 600; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; padding-bottom: 84px; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero h1 { margin-inline: auto; max-width: 13ch; }
  .hero .sub { max-width: 42ch; margin-left: auto; margin-right: auto; }
  .hero .actions, .hero .trust { justify-content: center; }
  .hero-product { width: min(760px, 100%); margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero .wrap { padding-top: 54px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(39px, 12vw, 52px); }
  .hero .actions .btn { width: 100%; }
  .hero-product { padding-bottom: 0; }
  .hero-status { display: none; }
  .hero-window { border-radius: 11px; transform: none; }
  .hero-window-bar { height: 36px; padding-inline: 10px; }
  .window-live { display: none; }
}

/* ---------- workflow strip (hold → settlement) ---------- */
.flowstrip { background: #070a0e; color: #fff; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.flowstrip .wrap { padding: 20px 28px; display: flex; align-items: center; gap: 12px 17px; flex-wrap: wrap; justify-content: center; }
.flowstrip .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.5); }
.flowstrip .step { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.82); }
.flowstrip .arr { color: var(--red); font-weight: 700; font-size: 12px; }

/* ---------- generic section ---------- */
.section { padding: 112px 0; }
.section.tight { padding: 82px 0; }
.sec-head { max-width: 64ch; margin: 0 0 52px; }
.sec-head .eyebrow { color: var(--red); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); }
.sec-head p { color: var(--muted); font-size: 17.5px; line-height: 1.7; margin: 16px 0 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }

/* ---------- feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.88); border: 1px solid rgba(17,21,27,.1); border-radius: var(--r); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(232,70,59,.55), transparent); opacity: 0; transition: opacity .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(17,21,27,.15); box-shadow: 0 24px 50px -30px rgba(7,10,15,.38); }
.card:hover::after { opacity: 1; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fbe9e7; color: var(--red); font-size: 17px; margin-bottom: 20px; border: 1px solid rgba(232,70,59,.09); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; }
.card.span3 { grid-column: span 3; }
.card.span2 { grid-column: span 2; }
.card.feature { grid-column: span 3; display: grid; grid-template-columns: 1fr; gap: 18px; }
.card.dark { background: linear-gradient(145deg, #111721, var(--stage)); color: #fff; border-color: #202a37; }
.card.dark p { color: rgba(255,255,255,.72); }
.card.dark .ic { background: rgba(239,67,56,.16); }
.chiplist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.chiplist .ch { font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: rgba(247,246,243,.7); }
.card.dark .chiplist .ch { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.8); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .card.span3, .card.span2, .card.feature { grid-column: auto; } }

/* ---------- screenshot showcase ---------- */
.showcase { position: relative; overflow: hidden; background: linear-gradient(155deg, #101722 0%, var(--stage-2) 72%); color: #fff; }
.showcase::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 42%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(232,70,59,.12), transparent 66%); pointer-events: none; }
.showcase .wrap { position: relative; z-index: 1; }
.showcase .sec-head { margin-inline: auto; text-align: center; }
.showcase .sec-head h2 { color: #fff; }
.showcase .sec-head .eyebrow { color: var(--amber); }
.showcase .sec-head p { color: rgba(255,255,255,.74); }
.browser { max-width: 1050px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 50px 100px -34px rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.14); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #11161d; border-bottom: 1px solid #222b36; }
.browser .bar .d { width: 11px; height: 11px; border-radius: 50%; background: #3a434f; }
.browser .bar .url { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: #6b7686; background: #0a0e13; padding: 5px 12px; border-radius: 6px; }
.browser img { width: 100%; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1050px; margin: 18px auto 0; }
.thumbs figure { margin: 0; border-radius: 11px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #11161d; transition: border-color .2s ease, transform .2s ease; }
.thumbs figure:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.thumbs img { width: 100%; display: block; }
.thumbs figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); padding: 10px 12px; }
@media (max-width: 760px) { .thumbs { grid-template-columns: 1fr; } }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.split.flip .copy { order: 2; }
.split .copy h2 { font-size: clamp(30px, 3.4vw, 42px); }
.split .copy p { color: var(--muted); font-size: 16.5px; line-height: 1.72; margin: 18px 0 0; }
.split .shot { border-radius: 16px; overflow: hidden; border: 1px solid rgba(17,21,27,.11); box-shadow: 0 28px 70px -36px rgba(7,10,15,.4); background: #fff; }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.split ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #303640; }
.split ul li i { color: var(--red); margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip .copy { order: 0; } }

/* ---------- leads section + inbox mock ---------- */
.leadsband { background: linear-gradient(180deg, var(--paper) 0%, #fbfbfa 100%); }
.leadmock { background: var(--panel); border: 1px solid rgba(17,21,27,.11); border-radius: var(--r); box-shadow: 0 28px 70px -38px rgba(7,10,15,.4); overflow: hidden; }
.leadmock .lm-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.leadmock .lm-head b { font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.leadmock .lm-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #fff; background: var(--red); padding: 3px 9px; border-radius: 999px; }
.leadmock .lm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.leadmock .lm-row:last-child { border-bottom: none; }
.leadmock .who { font-weight: 600; font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.leadmock .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.leadmock .src { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--red-ink); background: #fdecea; border: 1px solid #f5c4bf; padding: 2px 6px; border-radius: 5px; }
.leadmock .pill { font-size: 11px; padding: 4px 10px; flex-shrink: 0; }

/* ---------- small-screen spacing ---------- */
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .section.tight { padding: 52px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .flowstrip .wrap { gap: 10px 12px; }
}

/* ---------- pricing / trial ---------- */
.trialband { background: linear-gradient(180deg, #f7f6f3, #f1f0ec); }
.trialcard { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid rgba(17,21,27,.11); border-radius: 20px; box-shadow: 0 30px 80px -42px rgba(7,10,15,.45); overflow: hidden; }
.trialcard .top { position: relative; overflow: hidden; background: linear-gradient(135deg, #101721, var(--stage)); color: #fff; padding: 38px 42px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.trialcard .top::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -130px; border: 50px solid rgba(232,70,59,.1); }
.trialcard .top > * { position: relative; z-index: 1; }
.trialcard .top h3 { font-size: 28px; color: #fff; }
.trialcard .top .price { text-align: right; }
.trialcard .top .price b { font-family: var(--display); font-size: 40px; }
.trialcard .top .price span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.trialcard .body { padding: 34px 42px 40px; }
.trialcard .body ul { columns: 2; list-style: none; padding: 0; margin: 0 0 26px; }
.trialcard .body ul li { break-inside: avoid; padding: 7px 0; display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.trialcard .body ul li i { color: var(--green); }
@media (max-width: 620px) { .trialcard .body ul { columns: 1; } .trialcard .top { flex-direction: column; align-items: flex-start; } .trialcard .top .price { text-align: left; } }

/* ---------- final CTA ---------- */
.cta { position: relative; overflow: hidden; background: radial-gradient(90% 180% at 50% -40%, #243246, var(--stage) 48%, var(--stage-2)); color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); color: #fff; }
.cta p { color: rgba(255,255,255,.76); font-size: 19px; margin: 16px auto 30px; max-width: 46ch; }

/* ---------- footer ---------- */
.foot { background: #05070a; color: rgba(255,255,255,.58); padding: 52px 0; border-top: 1px solid rgba(255,255,255,.07); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot .brand { color: #fff; }
.foot a { color: rgba(255,255,255,.6); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }

/* ---------- signup modal ---------- */
dialog#signup { padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; max-width: 490px; width: calc(100% - 32px); box-shadow: 0 50px 110px -28px rgba(0,0,0,.65); background: var(--panel); color: var(--ink); }
dialog#signup::backdrop { background: rgba(6,9,13,.7); backdrop-filter: blur(7px); }
.modal-head { background: linear-gradient(145deg, #131a24, var(--stage)); color: #fff; padding: 28px 30px; position: relative; }
.modal-head img { width: 34px; height: 34px; object-fit: contain; }
.modal-head .eyebrow { color: var(--red); margin-top: 14px; }
.modal-head h3 { color: #fff; font-size: 24px; margin-top: 6px; }
.modal-head p { color: rgba(255,255,255,.7); font-size: 14px; margin: 8px 0 0; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.1); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,.2); }
.modal-body { padding: 28px 30px 30px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #c8cdd4; border-radius: 9px; font-family: var(--body); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,70,59,.13); }
.field.subdomain { position: relative; }
.field.subdomain .combo { display: flex; align-items: stretch; border: 1px solid #cfd5dd; border-radius: 9px; overflow: hidden; }
.field.subdomain .combo:focus-within { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,70,59,.13); }
.field.subdomain .combo input { border: none; border-radius: 0; }
.field.subdomain .combo input:focus { outline: none; }
.field.subdomain .combo .suffix { display: flex; align-items: center; padding: 0 12px; background: #f3f1ec; color: var(--muted); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.field .err { color: var(--red-ink); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid .combo { border-color: var(--red-ink); }
.field.invalid .err { display: block; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 18px; display: flex; gap: 8px; align-items: flex-start; }
.form-note i { color: var(--green); margin-top: 2px; }
.form-error { background: #fdecea; color: var(--red-ink); border: 1px solid #f5c4bf; border-radius: 9px; padding: 11px 13px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }

/* success state */
.success { text-align: center; padding: 8px 4px 4px; }
.success .check { width: 58px; height: 58px; border-radius: 50%; background: #e6f4ec; color: var(--green); display: grid; place-items: center; font-size: 26px; margin: 0 auto 18px; }
.success h3 { font-size: 24px; }
.success p { color: var(--muted); margin: 10px 0 0; }
.success .urlbox { margin: 22px 0; background: var(--stage); color: #fff; border-radius: 12px; padding: 16px; }
.success .urlbox .cred { color: rgba(255,255,255,.5); }
.success .urlbox a { font-family: var(--mono); font-size: 16px; color: #fff; word-break: break-all; text-decoration: none; display: block; margin-top: 6px; }
.success .creds { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 12px; text-align: left; }
.success .creds b { color: var(--ink); }

/* setup progress (cosmetic — see runSetupProgress in app.js) */
.setup-progress { margin: 24px 0 4px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--amber)); transition: width .5s ease; }
.progress-step { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 14px 0 0; min-height: 18px; opacity: 1; transition: opacity .15s ease; }
.progress-step.swap { opacity: 0; }
.success-details { margin-top: 6px; animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  .progress-step { transition: none; }
  .success-details { animation: none; }
}

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- login page (venue picker) ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(120% 120% at 80% 0%, #1a222e 0%, var(--stage) 50%, var(--stage-2) 100%);
  color: #fff;
}
.login-top { padding: 22px 24px; }
.login-top .brand { color: #fff; }
.login-main { display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 420px;
  background: var(--panel); color: var(--ink);
  border-radius: 18px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.5);
  overflow: hidden;
}
.login-card .card-head { background: var(--stage); color: #fff; padding: 26px 28px 24px; }
.login-card .card-head img { width: 36px; height: 36px; object-fit: contain; }
.login-card .card-head .eyebrow { color: var(--red); margin-top: 14px; }
.login-card .card-head h1 { color: #fff; font-size: 25px; margin-top: 6px; }
.login-card .card-head p { color: rgba(255,255,255,.7); font-size: 14px; margin: 8px 0 0; }
.login-card .card-body { padding: 24px 28px 28px; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; padding: 12px 38px 12px 13px; border: 1px solid #cfd5dd; border-radius: 9px;
  font-family: var(--body); font-size: 15px; color: var(--ink); background: #fff;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select-wrap select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,70,59,.13); }
.select-wrap select:disabled { color: var(--muted); cursor: default; }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.login-card .field .venue-state { font-size: 12.5px; color: var(--muted); margin-top: 7px; min-height: 1em; }
.login-card .field .venue-state.error { color: var(--red-ink); }
.login-card .handoff-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 18px; display: flex; gap: 8px; align-items: flex-start; }
.login-card .handoff-note i { color: var(--green); margin-top: 2px; }
.login-card .alt { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.login-card .alt a { color: var(--red-ink); text-decoration: none; font-weight: 600; }
.login-card .alt a:hover { text-decoration: underline; }

.login-foot { padding: 22px 24px; display: flex; justify-content: center; gap: 20px; text-align: center; }
.login-foot a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; }
.login-foot a:hover { color: #fff; }

.retry-btn { background: none; border: none; color: var(--red-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ============ Cookie consent banner (GDPR) ============ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  background: var(--stage); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.cookie-banner.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-copy { max-width: 70ch; }
.cookie-copy strong { font-family: var(--display); font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-copy p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.5; }
.cookie-copy a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 18px; font-size: 14px; }
.cookie-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.cookie-actions .btn-ghost:hover { border-color: rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .cookie-inner { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ============ Legal / policy page (GDPR) ============ */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 38px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: #2b2f36; font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red-ink); }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.legal .callout { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.legal .legal-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }

/* data-request form on the policy page */
.data-request { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 16px; box-shadow: var(--shadow-card); }
.data-request .row { display: flex; gap: 12px; flex-wrap: wrap; }
.data-request .row .field { flex: 1; min-width: 200px; }
.data-request .result { margin-top: 12px; font-size: 14px; display: none; }
.data-request .result.show { display: block; }
.data-request .result.ok { color: var(--green); }
.data-request .result.bad { color: var(--red-ink); }

/* required-consent checkbox in the signup modal */
.consent-field { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); }
.consent-field input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; }
.consent-field a { color: var(--red-ink); }
.field.consent-field.invalid { color: var(--red-ink); }
.field.consent-field.invalid a { color: var(--red-ink); }

/* Keyboard and reduced-motion polish */
.signin:focus-visible, .nav a:focus-visible, .foot a:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(232,70,59,.28);
  outline-offset: 5px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .card::after, .thumbs figure, .nav a::after { transition: none; }
  .btn:hover, .card:hover, .thumbs figure:hover { transform: none; }
  .hero-window { transform: none; }
}
