/*
 * The marketing site's stylesheet.
 *
 * Hand-written rather than Tailwind, because a marketing site that needs a
 * build step is a marketing site that can break the product's build — and the
 * whole point of the split is that a copy tweak can never redeploy the gate.
 * "Deploying" here is uploading a folder.
 *
 * The token values are copied from resources/css/app.css deliberately. Two
 * files hold the same hexes and that is the cost of the separation; the
 * alternative is sharing a build, which is the thing we are avoiding. If the
 * brand changes, both files change.
 */

:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-sunk: #f1f5f9;
  --ink: #020617;
  --ink-muted: #475569;
  --ink-subtle: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0e7490;
  --brand-hover: #155e75;
  --brand-soft: #ecfeff;
  --brand-line: #a5f3fc;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --warning-line: #fde68a;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-line: #fecaca;

  --radius-control: 0.5rem;
  --radius-card: 0.75rem;
  --ring: 0 0 0 1px color-mix(in oklab, #020617 5%, transparent);
  --shadow-sm: 0 1px 3px rgb(2 6 23 / 0.08), 0 1px 2px rgb(2 6 23 / 0.04);
  --shadow-lg: 0 24px 60px -20px rgb(2 6 23 / 0.28), 0 8px 20px -8px rgb(2 6 23 / 0.12);

  --measure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.021em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

section { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}

.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: var(--measure); }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding-inline: 22px;
  border-radius: var(--radius-control); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-sunk); }
.btn-sm { min-height: 40px; padding-inline: 16px; font-size: 0.875rem; }

/* ---- header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { height: 29px; width: auto; display: block; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand img { height: 27px; }
.footer-tagline { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }

/* The tagline in the hero, where it reads as the thing you repeat to the rest
   of the board rather than as a second headline competing with the first. */
.hero-tagline {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: var(--brand);
}
.site-nav { display: none; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---- hero --------------------------------------------------------------- */

.hero { padding-block: clamp(44px, 7vw, 88px) 0; }
.hero-grid { display: grid; gap: 44px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
}
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { font-size: 0.875rem; color: var(--ink-subtle); }

/* ---- the product composition -------------------------------------------- */

.showcase { position: relative; padding-bottom: 64px; }

.frame {
  border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame-url {
  margin-left: 10px; font-size: 0.6875rem; color: var(--ink-subtle);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
}

/* the phone, overlapping the bottom-left corner of the frame */
.phone {
  position: absolute; left: -26px; bottom: 0; width: 180px;
  border-radius: 26px; background: #0b1220; padding: 7px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 20px; background: var(--surface); overflow: hidden; }
@media (max-width: 640px) {
  .showcase { padding-bottom: 0; }
  .phone { position: static; width: 200px; margin: -28px auto 0; }
}

/* the guest pass, floating off the top-right */
.floater {
  position: absolute; right: -14px; bottom: -26px; width: 196px;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg); padding: 12px; border: 1px solid var(--line);
}
@media (max-width: 860px) { .floater { display: none; } }

/* ---- miniature product UI ----------------------------------------------- */
/*
 * Live HTML rather than screenshots: crisp on any display, no image pipeline,
 * and it cannot silently go stale in a way a screenshot can. Deliberately
 * simplified — it is a portrait of the product, not a copy of it.
 */

.ui { font-size: 11px; line-height: 1.35; color: var(--ink); }
.ui-header { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ui-title { font-weight: 800; font-size: 12px; }
.ui-spacer { flex: 1; }
.ui-readout { text-align: right; }
.ui-busy { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ui-busy b { color: var(--brand); font-size: 10px; }
.ticks { display: flex; gap: 2px; }
.ticks i { width: 3px; height: 9px; border-radius: 1.5px; background: var(--surface-sunk); }
.ticks i.on { background: var(--brand); }
.ui-count { font-size: 11px; font-weight: 700; margin-top: 2px; }
.ui-count span { color: var(--ink-subtle); }
.ui-count em { font-style: normal; font-weight: 500; color: var(--ink-muted); }
.scanline { height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-line)); }

.ui-body { padding: 12px; background: var(--canvas); }
.ui-card { background: var(--surface); border-radius: 10px; box-shadow: var(--ring); padding: 11px; }
.ui-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.ui-card-head b { font-size: 12.5px; }
.ui-chip {
  background: var(--brand); color: #fff; border-radius: 6px;
  padding: 5px 10px; font-size: 10px; font-weight: 700;
}
.ui-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.face { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--ring); }
.face.pick { box-shadow: 0 0 0 2.5px var(--brand); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face-name {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.36), transparent);
  color: #fff; font-size: 9px; font-weight: 700; padding: 14px 5px 4px; text-align: left;
}
.face-tick {
  position: absolute; right: 4px; bottom: 4px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 8px; font-weight: 800;
}
.face-flag {
  position: absolute; left: 4px; top: 4px; background: var(--danger-soft);
  color: var(--danger); border: 1px solid var(--danger-line);
  border-radius: 999px; padding: 1px 5px; font-size: 7.5px; font-weight: 700;
}

/* phone: the member pass */
.pass { padding: 14px 12px 16px; text-align: center; }
.pass-club { font-size: 9.5px; color: var(--ink-muted); }
.pass-name { font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.qr {
  width: 118px; height: 118px; margin: 0 auto 9px;
  border-radius: 6px; box-shadow: var(--ring); padding: 5px; background: #fff;
}
.pass-code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.1em; font-weight: 700; }
.pass-meta { font-size: 9px; color: var(--ink-subtle); margin-top: 3px; }
.pass-tabs { display: flex; border-top: 1px solid var(--line); }
.pass-tabs span { flex: 1; text-align: center; padding: 7px 0 9px; font-size: 8.5px; color: var(--ink-subtle); font-weight: 600; }
.pass-tabs span.on { color: var(--brand); }

/* guest pass floater */
.guest-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.guest-top b { font-size: 11.5px; }
.pill { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill-ok { background: var(--success-soft); color: var(--success); }
.guest-qr {
  /* Smaller than the member's pass on purpose: a guest code is the supporting
     object in this composition, and a bigger one read as the main event. */
  width: 104px; height: 104px; display: block; margin: 0 auto 9px;
  border-radius: 6px; box-shadow: var(--ring); padding: 5px; background: #fff;
}
.guest-meta { font-size: 9.5px; color: var(--ink-muted); }
.guest-meta b { color: var(--ink); }

/* ---- generic blocks ----------------------------------------------------- */

.band { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: var(--measure); margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--ink-muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--ring), var(--shadow-sm); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 0.9375rem; }

.step-n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center;
  font-weight: 800; font-size: 0.8125rem; margin-bottom: 14px;
  border: 1px solid var(--brand-line);
}

/* ---- pricing ------------------------------------------------------------ */

.tiers { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiers { grid-template-columns: repeat(4, 1fr); } }

.tier {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--ring), var(--shadow-sm); padding: 24px;
  display: flex; flex-direction: column; height: 100%;
}
.tier.featured { box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg); }
.tier-flag {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line); border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700; padding: 2px 10px; margin-bottom: 10px;
}
.tier h3 { font-size: 1.125rem; }
.tier-for { color: var(--ink-muted); font-size: 0.875rem; margin-top: 4px; min-height: 58px; }
.tier-for b { color: var(--ink); font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.price b { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--ink-muted); font-size: 0.875rem; }
.price-alt { font-size: 0.8125rem; color: var(--ink-subtle); margin-bottom: 18px; }
.tier .btn { width: 100%; margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.875rem; }
.tier li { display: flex; gap: 9px; color: var(--ink-muted); }
.tier li::before { content: '✓'; color: var(--brand); font-weight: 800; flex: none; }
.tier li.none::before { content: '—'; color: var(--ink-subtle); }

.price-foot { margin-top: 26px; font-size: 0.875rem; color: var(--ink-muted); }

/* ---- compare ------------------------------------------------------------ */

.compare {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--radius-card); padding: 24px; margin-top: 32px;
}
.compare-rows { display: grid; gap: 10px; margin-top: 14px; }
.compare-row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9375rem; }
.compare-row b { font-variant-numeric: tabular-nums; }

/* ---- faq / footer ------------------------------------------------------- */

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; color: var(--ink-muted); max-width: var(--measure); }

.site-footer { border-top: 1px solid var(--line); padding-block: 40px; background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.875rem; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { width: 100%; font-size: 0.8125rem; color: var(--ink-subtle); }

/* ---- legal pages -------------------------------------------------------- */

.legal { padding-block: 56px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-subtle); font-size: 0.875rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-muted); max-width: var(--measure); }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 12px; }
.legal strong { color: var(--ink); }

/* ---- request a demo ----------------------------------------------------- */

.demo-grid { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: start; }
}

.demo-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.demo-points li { display: flex; gap: 10px; color: var(--ink-muted); font-size: 0.9375rem; }
.demo-points li::before { content: '✓'; color: var(--brand); font-weight: 800; flex: none; }

.demo-form {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--ring), var(--shadow-sm); padding: 24px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .optional { color: var(--ink-subtle); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 46px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-control); width: 100%;
}
.field textarea { min-height: auto; resize: vertical; }
.demo-form .btn { width: 100%; }
.form-note { font-size: 0.8125rem; color: var(--ink-subtle); }

/* Off-screen rather than display:none — a bot reading the DOM still finds it,
   which is the point, while nobody using the page ever does. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- for the parent ----------------------------------------------------- */

.split { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: center; }
}
.split-title { margin-bottom: 8px; }
.split-title + .split-body { margin-bottom: 28px; }
.split-body { color: var(--ink-muted); font-size: 0.9375rem; max-width: var(--measure); }

.shots { display: grid; gap: 18px; }
@media (min-width: 560px) { .shots { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.shot {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--ring), var(--shadow-sm); overflow: hidden;
}
.shot-head {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-subtle);
}
.shot-body { padding: 12px 14px 16px; }

.log-day {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-subtle);
  padding: 8px 0 6px;
}
.log-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.log-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.log-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.log-row b { font-size: 0.8125rem; }
.log-row em { font-style: normal; font-size: 0.6875rem; color: var(--ink-muted); }
.log-mins { font-size: 0.6875rem; color: var(--ink-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* One hue deepening with the bar, the same rule the product uses: darker means
   busier everywhere, and a busy Saturday never turns red like a fault.

   Heights and opacities are inline on the elements. This is a still picture of
   a chart the product draws from real data, and a custom-property/calc version
   silently rendered nothing — there is no cleverness worth buying here. */
.week { display: flex; align-items: flex-end; gap: 6px; height: 104px; }
.week span {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 6px; font-size: 0.625rem; color: var(--ink-subtle);
}
.week .d-mon { height: 19px; opacity: 0.47; }
.week .d-tue { height: 10px; opacity: 0.40; }
.week .d-wed { height: 29px; opacity: 0.55; }
.week .d-thu { height: 34px; opacity: 0.59; }
.week .d-fri { height: 53px; opacity: 0.74; }
.week .d-sat { height: 86px; opacity: 1; }
.week .d-sun { height: 67px; opacity: 0.85; }
.week b { display: block; width: 100%; border-radius: 3px; background: var(--brand); }

.week-note { margin-top: 12px; font-size: 0.75rem; color: var(--ink-muted); }

/* ---- utilities -----------------------------------------------------------
   These exist because our own Content-Security-Policy sets `style-src 'self'`
   with no 'unsafe-inline', which blocks the style="" attribute outright. Every
   inline style on this site was silently doing nothing — the week chart
   rendered as an empty box for an hour before anyone noticed.

   Keeping the strict policy and moving the styles here is the right way round:
   a marketing page has no business needing inline styles, and 'unsafe-inline'
   is exactly the thing a CSP is for. */

.centred { text-align: center; }
.lede-tight { margin-top: 14px; margin-inline: auto; }
.lede-centred { margin: 12px auto 24px; }
.fine-print { margin-top: 14px; font-size: 0.875rem; color: var(--ink-muted); }
.spaced-top { margin-top: 28px; }
.ui-admin { font-size: 9.5px; color: var(--brand); font-weight: 700; }
