/* PhoenixHub public website — shared layout and components.
   Colours, radii, shadows and fonts come from /phoenix-theme.css (the same
   tokens as PhoenixHub Manager and Vote); nothing here defines a brand colour.
   Marketing pages set <html data-theme="light"> so the site never flips dark. */

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body.site{ margin:0; background:var(--phoenix-background); color:var(--phoenix-text); font-family:var(--font-body); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; }
.site h1, .site h2, .site h3{ font-family:var(--font-brand); margin:0; letter-spacing:-.01em; color:var(--phoenix-primary-strong); }
.site a{ color:var(--phoenix-primary); text-decoration:none; }
.site a:hover{ color:var(--phoenix-primary-hover); }
.site :focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:8px; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 28px; }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-accent, .btn-ghost-light{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:12px 24px;
  border-radius:12px; font-family:var(--font-brand); font-size:16px; font-weight:700; letter-spacing:.005em; cursor:pointer;
  border:1.5px solid transparent; transition:background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.btn-primary, .site a.btn-primary{ background:var(--phoenix-primary); color:#fff; }
.btn-primary:hover, .site a.btn-primary:hover{ background:var(--phoenix-primary-hover); color:#fff; }
.btn-secondary, .site a.btn-secondary{ background:transparent; color:var(--phoenix-primary-strong); border-color:var(--phoenix-border-strong); }
.btn-secondary:hover{ border-color:var(--phoenix-primary); color:var(--phoenix-primary); }
.btn-accent, .site a.btn-accent{ background:var(--phoenix-accent); color:var(--phoenix-accent-ink); box-shadow:0 10px 30px -12px rgba(61,220,132,.65); }
.btn-accent:hover, .site a.btn-accent:hover{ background:#52e493; color:var(--phoenix-accent-ink); }
.btn-ghost-light, .site a.btn-ghost-light{ background:rgba(255,255,255,.06); color:#fff; border-color:rgba(255,255,255,.34); }
.btn-ghost-light:hover, .site a.btn-ghost-light:hover{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.6); }
.btn-accent:active, .btn-primary:active{ transform:translateY(1px); }
.play-dot{ width:26px; height:26px; border-radius:50%; background:var(--phoenix-accent-ink); color:var(--phoenix-accent); display:inline-flex; align-items:center; justify-content:center; font-size:11px; padding-left:2px; }

/* ---------- header / navigation ---------- */
.site-nav{ position:sticky; top:0; z-index:50; background:rgba(250,249,245,.92); backdrop-filter:saturate(1.2) blur(10px); -webkit-backdrop-filter:saturate(1.2) blur(10px); border-bottom:1px solid var(--phoenix-border); }
.site-nav .row{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:72px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand .mark{ width:36px; height:36px; border-radius:10px; flex:none; }
.brand .name{ font-family:var(--font-brand); font-weight:800; font-size:24px; letter-spacing:-.01em; color:var(--phoenix-primary-strong); }
.brand .by{ font-size:13px; color:var(--phoenix-text-faint); margin-left:4px; }
.brand .by a{ color:inherit; }
.brand .by a:hover{ color:var(--phoenix-primary-strong); text-decoration:underline; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ position:relative; font-size:15.5px; font-weight:600; color:var(--phoenix-text); padding:8px 0; }
.nav-links a:hover{ color:var(--phoenix-primary); }
.nav-links a[aria-current="page"]{ color:var(--phoenix-primary); }
.nav-links a[aria-current="page"]::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2.5px; border-radius:2px; background:var(--phoenix-primary); }
.nav-cta{ min-height:44px; padding:10px 20px; font-size:15px; }
/* The one "Book a demo" in the header, at every width (no duplicate nav link). */
@media (max-width:980px){ .nav-links{ gap:22px; } }
@media (max-width:640px){
  .site-nav .row{ min-height:60px; gap:10px; }
  .brand .name{ font-size:20px; } .brand .mark{ width:30px; height:30px; } .brand .by{ display:none; }
  .nav-links{ gap:14px; } .nav-links a{ font-size:14px; } .nav-links a.hide-sm{ display:none; }
  .nav-cta{ min-height:38px; padding:8px 14px; font-size:14px; white-space:nowrap; }
}

/* ---------- hero (dark court) ---------- */
.hero-court{ position:relative; overflow:hidden; color:#fff; background:#07190f; isolation:isolate; }
.hero-court .scene{ position:absolute; inset:0; z-index:-1; width:100%; height:100%; object-fit:cover; object-position:center bottom; }
.hero-court .inner{ display:grid; grid-template-columns:minmax(0,5.6fr) minmax(0,6.4fr); align-items:center; gap:32px; min-height:640px; padding-top:64px; padding-bottom:96px; }
.eyebrow{ font-family:var(--font-body); font-size:13.5px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#d3e6dc; }
.hero-court h1{ color:#fff; font-size:clamp(38px, 4.6vw, 64px); line-height:1.02; text-wrap:balance; font-weight:800; margin-top:18px; letter-spacing:-.015em; }
.hero-court h1 .accent{ display:block; color:var(--phoenix-accent); }
.hero-court .lede{ font-size:clamp(17px, 1.6vw, 21px); line-height:1.5; color:#e3eee8; margin:24px 0 0; max-width:470px; }
.hero-tagline{ font-family:var(--font-brand); font-weight:700; font-size:clamp(19px, 1.8vw, 24px); line-height:1.3; color:#fff; margin:22px 0 0; max-width:480px; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero-note{ margin-top:18px; font-size:13.5px; color:#a9c4b7; }

/* devices — genuine Riverside screens inside drawn frames */
.devices{ position:relative; min-height:500px; }
.laptop{ position:absolute; right:40px; top:10px; width:min(640px, 100%); filter:drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.laptop .lid{ background:#10181a; border-radius:18px 18px 6px 6px; padding:14px 14px 18px; box-shadow:inset 0 0 0 1.5px #2b3a36; }
.laptop .lid img{ display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; object-position:left top; border-radius:6px; background:#f6f4ee; }
.laptop .base{ height:16px; margin:0 -34px; background:linear-gradient(#cfd6d2, #8f9a95); border-radius:0 0 18px 18px; position:relative; }
.laptop .base::before{ content:""; position:absolute; left:50%; top:0; width:120px; height:6px; margin-left:-60px; background:#a5afab; border-radius:0 0 8px 8px; }
.phone{ position:absolute; right:-6px; bottom:-18px; width:clamp(170px, 17vw, 230px); filter:drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.phone .body{ background:#0b1210; border-radius:34px; padding:9px; box-shadow:inset 0 0 0 1.5px #33413c; }
.phone .body img{ display:block; width:100%; height:auto; aspect-ratio:390/780; object-fit:cover; object-position:top; border-radius:26px; background:#f6f4ee; }
.phone .notch{ display:none; }

@media (max-width:1040px){
  .hero-court .inner{ grid-template-columns:1fr; min-height:0; padding-top:48px; padding-bottom:0; }
  .devices{ min-height:0; height:clamp(300px, 62vw, 520px); margin-top:24px; }
  .laptop{ left:0; right:auto; width:min(620px, 88%); }
  .phone{ right:0; bottom:18px; }
}
@media (max-width:640px){
  .hero-court .inner{ padding-top:36px; }
  .eyebrow{ font-size:12px; letter-spacing:.14em; }
  .hero-ctas .btn-accent, .hero-ctas .btn-ghost-light{ width:100%; }
  .devices{ height:clamp(260px, 88vw, 420px); }
  .laptop{ width:92%; top:6px; }
  .laptop .lid{ padding:8px 8px 10px; border-radius:12px 12px 4px 4px; }
  .laptop .base{ height:10px; margin:0 -18px; }
  .phone{ width:36%; right:-4px; bottom:6px; }
  .phone .body{ border-radius:24px; padding:6px; } .phone .body img{ border-radius:19px; } .phone .notch{ top:10px; width:44px; height:12px; margin-left:-22px; }
}

/* ---------- sections ---------- */
section.section{ padding:92px 0; }
.section-head{ max-width:680px; margin:0 auto 52px; text-align:center; }
.section-head h2{ font-size:clamp(28px, 3.2vw, 40px); line-height:1.12; }
.section-head p{ font-size:17.5px; color:var(--phoenix-text-muted); margin:14px 0 0; }
.brand-line{ font-family:var(--font-brand); font-weight:700; font-size:20px; color:var(--phoenix-primary); margin:18px 0 0; }
.proof{ background:var(--phoenix-surface); border-bottom:1px solid var(--phoenix-border); }
.proof .row{ padding-top:22px; padding-bottom:22px; text-align:center; font-size:15px; color:var(--phoenix-text-muted); }
.proof strong{ color:var(--phoenix-primary-strong); }

/* The match lifecycle: one connected journey */
.journey{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:18px; }
.journey li{ position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:0 4px; }
.journey .j-ico{ width:84px; height:84px; border-radius:50%; background:var(--phoenix-primary-soft); color:var(--phoenix-primary); display:flex; align-items:center; justify-content:center; margin-bottom:6px; }
.journey .j-ico svg{ width:36px; height:36px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.journey strong{ font-family:var(--font-brand); font-size:19px; font-weight:700; color:var(--phoenix-primary-strong); line-height:1.2; }
.journey span.j-text{ font-size:15px; color:var(--phoenix-text-muted); line-height:1.5; max-width:190px; }
.journey li:not(:last-child)::after{ content:""; position:absolute; top:42px; right:-22px; width:26px; height:2px; background:var(--phoenix-border-strong); }
.journey li:not(:last-child)::before{ content:""; position:absolute; top:37px; right:-22px; width:10px; height:10px; border-top:2px solid var(--phoenix-border-strong); border-right:2px solid var(--phoenix-border-strong); transform:rotate(45deg); }
@media (max-width:1040px){ .journey{ grid-template-columns:repeat(3, minmax(0,1fr)); row-gap:40px; } .journey li:nth-child(3)::after, .journey li:nth-child(3)::before{ display:none; } }
@media (max-width:640px){
  .journey{ grid-template-columns:1fr; row-gap:0; max-width:420px; margin:0 auto; }
  .journey li{ flex-direction:row; align-items:flex-start; text-align:left; gap:16px; padding:0 0 26px; }
  .journey .j-ico{ width:56px; height:56px; flex:none; margin:0; } .journey .j-ico svg{ width:26px; height:26px; }
  .journey li > div{ display:flex; flex-direction:column; gap:3px; padding-top:4px; }
  .journey span.j-text{ max-width:none; }
  .journey li:not(:last-child)::after{ display:block; top:62px; left:27px; right:auto; width:2px; height:calc(100% - 66px); }
  .journey li:not(:last-child)::before{ display:none; }
  .journey li:nth-child(3)::after{ display:block; }
}
@media (min-width:641px){ .journey li > div{ display:contents; } }

/* cards / capability blocks */
.grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.card{ background:var(--phoenix-surface); border:1px solid var(--phoenix-border); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); }
.card h3{ font-size:20px; line-height:1.25; margin-bottom:10px; }
.card p{ font-size:15.5px; color:var(--phoenix-text-muted); margin:0; }
.cap-name{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-body); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--phoenix-primary); background:var(--phoenix-primary-soft); border-radius:999px; padding:6px 12px; margin-bottom:14px; }
.cap-name::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--phoenix-accent); }
.more-link{ display:inline-block; margin-top:18px; font-weight:700; font-size:15px; }
.ticks{ list-style:none; padding:0; margin:18px 0 0; }
.ticks li{ position:relative; padding:6px 0 6px 30px; font-size:15.5px; line-height:1.5; }
.ticks li::before{ content:"✓"; position:absolute; left:0; top:6px; width:20px; height:20px; border-radius:50%; background:var(--phoenix-primary-soft); color:var(--phoenix-primary); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.note{ margin-top:14px; font-size:14px; color:var(--phoenix-text-faint); line-height:1.55; }
.tag-beta{ font-size:11px; font-weight:700; color:var(--phoenix-primary); text-transform:uppercase; letter-spacing:.04em; margin-left:6px; }

.feature{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; padding:48px; border-radius:24px; }
.feature.flip{ grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); }
.feature.flip .feature-media{ order:-1; }
.feature h3{ font-size:clamp(24px, 2.4vw, 32px); line-height:1.15; margin-bottom:14px; }
.feature p{ font-size:16.5px; color:var(--phoenix-text-muted); }
.feature.dark{ background:var(--phoenix-navy); color:#e3eee8; border:none; }
.feature.dark h3{ color:#fff; } .feature.dark p{ color:#c9dbd1; } .feature.dark .ticks li{ color:#e3eee8; }
.feature.dark .cap-name{ background:rgba(61,220,132,.14); color:var(--phoenix-accent); }
.feature.dark a{ color:var(--phoenix-accent); }
.feature-media{ display:flex; justify-content:center; }
.shot-phone{ width:min(290px, 100%); margin:0; }
.shot-phone img{ display:block; width:100%; height:auto; aspect-ratio:390/780; object-fit:cover; object-position:top; background:#0b1210;
  border:10px solid #0b1210; border-radius:40px; box-shadow:0 30px 60px -28px rgba(8,30,22,.6), 0 0 0 1.5px #33413c; }
.shot-browser{ width:100%; margin:0; background:#fff; border-radius:16px; overflow:hidden; border:1px solid var(--phoenix-border); box-shadow:0 30px 60px -30px rgba(8,30,22,.45); }
.shot-browser .bar{ display:flex; gap:6px; align-items:center; padding:10px 14px; background:var(--phoenix-surface-2); border-bottom:1px solid var(--phoenix-border); }
.shot-browser .bar i{ width:10px; height:10px; border-radius:50%; background:var(--phoenix-border-strong); }
.shot-browser picture{ display:block; }
.shot-browser img{ display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; object-position:left top; }
@media (max-width:640px){ .shot-browser img{ aspect-ratio:auto; } }
figcaption{ text-align:center; font-size:13px; color:var(--phoenix-text-faint); margin-top:12px; }
.feature.dark figcaption{ color:#8fae9f; }
@media (max-width:900px){
  .feature, .feature.flip{ grid-template-columns:1fr; gap:32px; padding:28px; }
  .feature.flip .feature-media{ order:0; }
  .grid{ grid-template-columns:1fr; }
}
@media (min-width:641px) and (max-width:900px){ .grid{ grid-template-columns:1fr 1fr; } }

.steps{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px; }
.step-num{ width:40px; height:40px; border-radius:12px; background:var(--phoenix-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-brand); font-weight:800; font-size:18px; margin-bottom:14px; }
.steps h3{ font-size:19px; margin-bottom:6px; }
.steps p{ font-size:15.5px; color:var(--phoenix-text-muted); margin:0; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; } }

.band-cta{ background:var(--phoenix-navy); color:#fff; border-radius:28px; padding:56px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  background-image:radial-gradient(90% 140% at 100% 0%, rgba(61,220,132,.18), rgba(61,220,132,0) 60%); }
.band-cta h2{ color:#fff; font-size:clamp(26px, 3vw, 38px); }
.band-cta p{ color:#c9dbd1; margin:10px 0 0; font-size:17px; }
.band-cta .brand-line{ color:var(--phoenix-accent); }
@media (max-width:640px){ .band-cta{ padding:32px 24px; } .band-cta .btn-accent{ width:100%; } }

/* forms (waitlist / demo) */
.site input[type="email"], .site input[type="text"], .site input[type="tel"], .site select, .site textarea{
  font-family:var(--font-body); font-size:16px; padding:13px 15px; border:1.5px solid var(--phoenix-border-strong); border-radius:12px; background:#fff; color:var(--phoenix-text); }
.site input:focus, .site select:focus, .site textarea:focus{ outline:none; border-color:var(--phoenix-primary); box-shadow:var(--focus-ring); }
.form-error{ color:var(--status-danger); font-size:14px; margin-top:10px; display:none; }
.form-thanks{ display:none; padding:16px 20px; border:1px solid var(--status-success-border); border-radius:12px; background:var(--status-success-soft); color:var(--phoenix-primary-strong); font-weight:600; }
.cta-wrap{ max-width:600px; margin:0 auto; text-align:center; }
.cta-form{ display:flex; flex-direction:column; gap:10px; max-width:420px; margin:26px auto 0; }

/* footer */
.site-footer, body.site > footer{ background:var(--phoenix-navy); color:#9fbcae; }
.site-footer .row, body.site > footer .row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:36px; padding-bottom:36px; font-size:14px; }
.site-footer a, body.site > footer a{ color:#c9dbd1; }
.site-footer a:hover, body.site > footer a:hover{ color:#fff; }
.site-footer .links, body.site > footer .links{ display:flex; gap:22px; flex-wrap:wrap; }
body.site > footer .foot-brand{ display:flex; align-items:center; gap:10px; color:#e3eee8; }
body.site > footer .foot-brand img{ width:28px; height:28px; border-radius:8px; }

/* product-tour modal: poster = Play button, then the native video controls */
.modal-overlay{ position:fixed; inset:0; background:rgba(6,20,14,.62); z-index:100; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-overlay[hidden]{ display:none; }
.modal-panel{ background:var(--phoenix-surface); border-radius:22px; max-width:760px; width:100%; padding:32px; position:relative; box-shadow:0 30px 80px -24px rgba(6,20,14,.6); max-height:90vh; overflow-y:auto; }
.modal-panel h2{ font-size:26px; padding-right:36px; }
.modal-close{ position:absolute; top:18px; right:18px; background:none; border:none; font-size:26px; line-height:1; color:var(--phoenix-text-faint); padding:4px 8px; border-radius:8px; cursor:pointer; }
.modal-close:hover{ color:var(--phoenix-text); background:var(--phoenix-surface-2); }
.video-frame{ margin-top:18px; aspect-ratio:16/9; border-radius:14px; background:var(--phoenix-navy); display:flex; align-items:center; justify-content:center; overflow:hidden;
  background-image:radial-gradient(80% 120% at 80% 0%, rgba(61,220,132,.2), rgba(61,220,132,0) 60%); }
.video-frame{ position:relative; }
.tour-play{ position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:pointer; display:block; }
.tour-play img{ width:100%; height:100%; object-fit:cover; display:block; transition:filter .15s ease; }
.tour-play:hover img{ filter:brightness(1.06); }
.tour-play:focus-visible{ outline:3px solid var(--phoenix-accent); outline-offset:-3px; border-radius:14px; }
.tour-video{ position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; object-fit:contain; }
.tour-play[hidden], .tour-video[hidden]{ display:none; }
.modal-copy{ margin-top:18px; font-size:15.5px; line-height:1.6; color:var(--phoenix-text-muted); }
.coming-soon-toast{ position:fixed; left:50%; bottom:28px; transform:translate(-50%,12px); background:var(--phoenix-navy); color:#fff; padding:12px 20px; border-radius:12px; font-size:14px; font-weight:600;
  box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; z-index:200; max-width:min(90vw, 420px); text-align:center; }
.coming-soon-toast.show{ opacity:1; transform:translate(-50%,0); }

/* ---------- inner-page header (Product, Pricing, Book a demo) ---------- */
.page-hero{ background:var(--phoenix-navy); color:#e3eee8; padding:84px 0 92px; text-align:center;
  background-image:url("/brand/court-hero.svg"); background-size:cover; background-position:center 72%; }
.page-hero h1{ color:#fff; font-size:clamp(34px, 4.4vw, 56px); line-height:1.06; max-width:880px; margin:18px auto 0; text-wrap:balance; }
.page-hero .lede{ font-size:18.5px; color:#e3eee8; max-width:680px; margin:20px auto 0; }
.page-hero .brand-line{ color:var(--phoenix-accent); font-size:22px; }
.page-hero .microcopy{ font-size:14.5px; color:#a9c4b7; max-width:620px; margin:14px auto 0; }
.page-hero + section, .page-hero + main{ position:relative; }
@media (max-width:640px){ .page-hero{ padding:56px 0 88px; } }
