/* BilliardFlow marketing site.
   Layout: dark "after hours" hero with the live floor plan in a browser frame, then
   alternating text/screenshot feature rows (phone-sized crops under 600px), the website-booking band, FAQ and the
   register-interest form. Brand palette: slate navy, tournament green, chalk blue. */
:root {
  /* Palette: Deep Slate Navy #0F172A, Tournament Green #065F46, Chalk Blue #38BDF8,
     Neutral Light #F8FAFC, white cards. Table-state colours match the app screenshots. */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --fg: #0f172a;
  --fg-2: #475569;
  --brand: #065f46;          /* tournament green: primary buttons, active states */
  --brand-ink: #ffffff;
  --highlight: #065f46;      /* eyebrows and key highlights */
  --link: #0369a1;           /* chalk blue, deepened so links pass contrast on white */
  --accent: #38bdf8;         /* chalk blue: CTAs and interactive accents */
  --accent-hover: #7dd3fc;
  --accent-ink: #0f172a;
  --free: #157347;   --free-bg: #e0f3e8;
  --booked: #8a5a00; --booked-bg: #fbeed0;
  --event: #6a3fb5;  --event-bg: #ece5f8;
  --danger: #b3261e;
  /* hero and website-booking band are dark in both themes */
  --night: #0f172a;
  --night-2: #1e293b;
  --night-line: #334155;
  --night-fg: #f8fafc;
  --night-fg-2: #94a3b8;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Maven Pro", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale: every font-size uses one of these */
  --fs-xs: .75rem;      /* 12px labels, badges, legal */
  --fs-sm: .9375rem;    /* 15px secondary text, buttons, nav */
  --fs-base: 1.0625rem; /* 17px body */
  --fs-md: 1.25rem;     /* 20px lead text */
  --fs-lg: 1.5625rem;   /* 25px small display headings */
  --fs-xl: 1.875rem;    /* 30px h3 */
  --fs-2xl: 2.375rem;   /* 38px h2 minimum, numbers */
  --fs-display: clamp(3.2rem, 9vw, 6.4rem);
  --tap: 44px;          /* minimum touch target */

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #020617; --surface: #0f172a; --surface-2: #0b1222; --line: #1e293b;
    --fg: #f8fafc; --fg-2: #94a3b8; --brand: #065f46; --brand-ink: #ffffff; --highlight: #38bdf8; --link: #38bdf8;
    --free: #5fcf98; --free-bg: #0f2a1d; --booked: #efb955; --booked-bg: #2c220d;
    --event: #b7a0ee; --event-bg: #221a36; --danger: #f2887f;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #020617; --surface: #0f172a; --surface-2: #0b1222; --line: #1e293b;
  --fg: #f8fafc; --fg-2: #94a3b8; --brand: #065f46; --brand-ink: #ffffff; --highlight: #38bdf8; --link: #38bdf8;
  --free: #5fcf98; --free-bg: #0f2a1d; --booked: #efb955; --booked-bg: #2c220d;
  --event: #b7a0ee; --event-bg: #221a36; --danger: #f2887f;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(var(--fs-2xl), 5vw, 3.6rem); }
h3 { font-size: var(--fs-xl); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-weight: 700; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--highlight); }
.lead { font-size: var(--fs-md); color: var(--fg-2); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  min-height: var(--tap); padding: 15px 22px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(248, 250, 252, .35); color: var(--night-fg); }
.btn-ghost:hover { border-color: var(--night-fg); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: #047857; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--night-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.logo img { display: block; width: 304px; max-width: 100%; height: auto; }   /* full size: 304 × 88 */
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--night-fg-2); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); padding-block: 12px; }
.nav a:hover { color: var(--night-fg); }
.nav .btn { white-space: nowrap; padding: 12px 16px; font-size: var(--fs-sm); color: var(--accent-ink); }
@media (max-width: 820px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }
@media (max-width: 600px) { .logo img { width: 200px; } }
@media (max-width: 440px) { .site-header .wrap { gap: 12px; } .logo img { width: 150px; } .nav .btn { padding-inline: 14px; letter-spacing: .03em; } }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(6, 95, 70, .55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(56, 189, 248, .12), transparent 70%),
    var(--night);
  color: var(--night-fg);
  padding-block: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.hero-copy { max-width: 760px; }
.soon-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase;
}
.soon-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: soon-pulse 2s ease-in-out 3; }
@keyframes soon-pulse { 50% { opacity: .3; } }
.hero h1 { font-size: var(--fs-display); color: var(--night-fg); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--night-fg-2); margin-top: 20px; font-size: var(--fs-md); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stage { position: relative; margin-top: clamp(40px, 6vw, 64px); }
.browser {
  position: relative; z-index: 1;
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--night-line); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px rgba(56, 189, 248, .25);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.browser-bar .url {
  width: auto; height: auto; border-radius: 6px; background: var(--night); color: var(--night-fg-2);
  font-size: var(--fs-xs); padding: 4px 12px; margin-left: 10px; flex: 0 1 320px; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* The ticking table card over the hero shot */
.live-table {
  position: absolute; z-index: 2; right: clamp(8px, 4vw, 48px); top: clamp(-20px, -2vw, 0px);
  width: 230px; padding: 14px 16px 16px; border-radius: 10px;
  background: #1f6f9e; color: #fff; border: 3px solid #3fa0d6;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6);
  font-variant-numeric: tabular-nums;
}
.live-table .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live-table b { font-size: var(--fs-base); }
.tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; background: #efb955; color: #2a1b00; }
.live-table .clock { font-size: var(--fs-2xl); font-weight: 500; line-height: 1.1; margin-top: 6px; }
.live-table .sofar { font-size: var(--fs-sm); color: #d5ecfa; }
.live-table .sofar strong { color: #fff; font-size: var(--fs-md); }
@media (max-width: 640px) { .live-table { position: relative; right: auto; top: auto; margin: 0 0 16px auto; } }

/* Pain -> fix strip */
.fixes { background: var(--surface); border-bottom: 1px solid var(--line); }
.fixes ul { list-style: none; margin: 0; padding-block: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fixes li { display: grid; gap: 6px; min-width: 0; }
.fixes strong { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 400; letter-spacing: .02em; }
.fixes span { color: var(--fg-2); font-size: var(--fs-sm); }
@media (max-width: 900px) { .fixes ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fixes ul { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; min-width: 0; }
.feature-copy p { color: var(--fg-2); }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--free-bg); box-shadow: inset 0 0 0 4px var(--free);
}
.ticks b { font-weight: 700; }
.addon { display: inline-flex; gap: 6px; align-items: center; justify-self: start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--event-bg); color: var(--event); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot-stack { position: relative; padding-bottom: 12%; }
.shot-stack .shot-over { position: absolute; width: 48%; right: -2%; bottom: 0; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .shot-stack .shot-over { right: 0; }
}

/* Badges strip in customers section, using the app's own badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.b-new { background: var(--free); color: var(--surface); }
.b-vip { background: #2a2108; color: #f2c14e; }
.b-ret { background: #0f7f86; color: #fff; }
.b-reg { background: #7446b5; color: #fff; }
.b-top { background: #f6c443; color: #2a1b00; }
.b-whale { background: #0f3550; color: #cfe8f7; }
.b-loyal { background: #1f6f9e; color: #fff; }
.b-black { background: var(--danger); color: #fff; }
.b-walk { background: #5b1a16; color: #ffd0cb; }

/* Head office tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button {
  font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  min-height: var(--tap); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Devices */
.devices { background: var(--surface); border-block: 1px solid var(--line); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 28px); align-items: start; }
.phone { border: 8px solid #0f172a; border-radius: 30px; overflow: hidden; background: #0f172a; box-shadow: var(--shadow); }
.phone img { border-radius: 22px; }
.phones figure { margin: 0; display: grid; gap: 10px; }
.phones figcaption { text-align: center; font-size: var(--fs-sm); color: var(--fg-2); }
.phones figure:nth-child(even) { margin-top: 40px; }
@media (max-width: 720px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phones figure:nth-child(even) { margin-top: 24px; } }
.modes { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.modes-split { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.modes-split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modes-split .dark { clip-path: inset(0 0 0 var(--split, 50%)); }
.modes-split input { position: absolute; inset: auto 0 12px; width: 60%; margin: 0 auto; }
.modes-split::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--accent); pointer-events: none; }
@media (max-width: 860px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust div { background: var(--surface); padding: 24px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.trust h3 { font-size: var(--fs-lg); }
.trust p { color: var(--fg-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-lg); line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--fg-2); max-width: 70ch; }

/* Trial form */
.trial { background: var(--surface); border-top: 1px solid var(--line); }
.trial-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--fg-2); }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: var(--fs-lg); line-height: 36px; text-align: center; width: 36px; height: 36px; border-radius: 50%; background: var(--free-bg); color: var(--free); }
.steps b { color: var(--fg); display: block; }
form.card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field label small { font-weight: 400; font-size: var(--fs-xs); color: var(--fg-2); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:user-invalid { border-color: var(--danger); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-foot p { font-size: var(--fs-sm); color: var(--fg-2); flex: 1 1 260px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.err { background: var(--booked-bg); }
button[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; background: var(--free-bg); color: var(--fg); }
form.card.done > :not(.form-msg) { display: none; }
.form-msg:focus { outline: none; }
.form-msg code { font-family: inherit; font-weight: 700; user-select: all; }
@media (max-width: 860px) { .trial-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { form.card { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-fg-2); padding-block: 48px; font-size: var(--fs-sm); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--night-fg); text-decoration: none; display: inline-block; padding-block: 10px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.site-footer h4 { margin: 0 0 12px; color: var(--night-fg); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 20px; font-size: var(--fs-xs); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

.site-footer .legal a { padding-block: 0; }

/* Legal pages */
.legal-page { padding-block: 56px 80px; }
.legal-page .wrap { max-width: 780px; display: grid; gap: 16px; }
.legal-page h1 { font-size: clamp(var(--fs-2xl), 6vw, 3.6rem); }
.legal-page h2 { font-size: var(--fs-xl); margin-top: 18px; }
.legal-page p, .legal-page li { color: var(--fg-2); }
.placeholder { background: var(--booked-bg); color: var(--booked); padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* Website booking showcase: dark band, the customer's journey as three real steps */
.webbook { background: var(--night); color: var(--night-fg); }
.webbook .eyebrow { color: var(--accent); }
.webbook .lead { color: var(--night-fg-2); }
.webbook .shot { border-color: var(--night-line); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .8); }
.web-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 36px);
  grid-template-areas: "live form" "done form";
  align-items: start;
}
.web-flow li { display: grid; gap: 12px; min-width: 0; }
.wf-live { grid-area: live; } .wf-form { grid-area: form; } .wf-done { grid-area: done; }
.wf-step { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--night-fg); }
.wf-step span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--fs-md); line-height: 1; background: var(--accent); color: var(--accent-ink);
}
.web-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.webbook .ticks li { color: var(--night-fg-2); }
.webbook .ticks b { color: var(--night-fg); }
.webbook .ticks li::before { background: rgba(56, 189, 248, .15); box-shadow: inset 0 0 0 4px var(--accent); }
.demo-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 20px;
}
.demo-card h3 { font-size: var(--fs-xl); color: var(--night-fg); }
.demo-card p { color: var(--night-fg-2); font-size: var(--fs-sm); margin-block: 8px 16px; }
.demo-phone { border-radius: 14px; border: 5px solid #0f172a; }
@media (max-width: 860px) {
  .web-flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "live" "form" "done"; }
  .web-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) { .demo-card { grid-template-columns: 1fr; } .demo-phone { width: 140px; } }

/* ---------- Motion ----------
   Everything here sits under html.motion, which a tiny inline script adds only when the visitor
   hasn't asked for reduced motion. Without it the page is fully static and fully visible. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Scroll progress bar under the header */
.scroll-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(2, 6, 23, .55); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: perspective(1400px) translateY(60px) rotateX(10deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.motion .hero-copy > * { animation: rise .9s var(--ease-out) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .26s; }
.motion .hero-copy > :nth-child(5) { animation-delay: .36s; }
.motion .browser { animation: stage-in 1.2s var(--ease-out) .3s both; }
.motion .live-table { animation: pop-in .7s var(--ease-out) 1s both, float 6s ease-in-out 1.8s infinite; }
.motion .stage { will-change: transform; }

/* Scroll reveals: site.js adds .reveal (and --d for staggering), then .in when it scrolls into view */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.motion .reveal.from-left { transform: translateX(-40px); }
.motion .reveal.from-right { transform: translateX(40px); }
.motion .reveal.zoom { transform: translateY(40px) scale(.96); }
.motion .reveal.in, .motion-done .reveal { opacity: 1; transform: none; }
@media (max-width: 860px) { .motion .reveal.from-left, .motion .reveal.from-right { transform: translateY(32px); } }

/* Screenshots lift a little under the pointer */
.motion .shot { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
@media (hover: hover) { .motion .feature .shot:hover, .motion .web-flow .shot:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(15, 23, 42, .45); } }
.motion .phone { transition: transform .5s var(--ease-out); }
@media (hover: hover) { .motion .phones figure:hover .phone { transform: translateY(-8px) rotate(-1deg); } }

/* Head office tabs cross-fade */
#ho-shot img { transition: opacity .35s ease, transform .5s var(--ease-out); }
#ho-shot.swapping img { opacity: 0; transform: scale(.985); }
.tabs [role="tab"] { transition: background-color .25s, color .25s, border-color .25s, transform .15s; }
.tabs [role="tab"]:active { transform: scale(.97); }

/* FAQ answers slide open */
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.motion .faq details[open] p { animation: faq-in .4s var(--ease-out); }
.faq summary::after { display: inline-block; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details:hover { border-color: var(--accent); }

/* Buttons: a soft glow on the accent buttons */
.btn-accent { transition: transform .2s var(--ease-out), background .2s, box-shadow .3s; }
.btn-accent:hover { box-shadow: 0 8px 24px -8px rgba(56, 189, 248, .7); }

/* Main Events booked from the website (app v103) */
.feature.web-ev { margin-top: clamp(40px, 6vw, 64px); }
.webbook .feature-copy p:not(.eyebrow) { color: var(--night-fg-2); }
.webbook .feature-copy h3 { color: var(--night-fg); }
