:root {
  --ink: #0d1117;
  --paper: #f3f5fa;
  --surface: #ffffff;
  --line: #d9deea;
  --blue: #3348ff;
  --blue-soft: #e9edff;
  --green: #147a57;
  --green-light: #d9f0e5;
  --red: #d94040;
  --gold: #d49b20;
  --muted: #667085;
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; }

.site-header,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; }
.brand-icon { width: 38px; height: 38px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a, footer a { color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-download { padding: 9px 14px; border-radius: 6px; background: var(--ink); color: #fff; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .98; letter-spacing: 0; }
h2 { margin: 10px 0 12px; font-size: 1.45rem; line-height: 1.2; }
h3 { margin: 28px 0 6px; font-size: 1.05rem; }
p { margin: 0 0 18px; }
.primary-action { display: inline-block; padding: 15px 22px; border-radius: 6px; background: var(--blue); color: white; font-weight: 750; text-decoration: none; }

/* Product page */
.product-header { position: relative; z-index: 5; border-bottom: 0; background: transparent; }
.product-header::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: 100vw; border-bottom: 1px solid var(--line); background: var(--surface);
  transform: translateX(-50%);
}
.product-main { width: 100%; }
.product-hero {
  position: relative; min-height: min(820px, calc(100vh - 44px)); overflow: hidden;
  padding: 58px 24px 0; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center;
}
.hero-copy { position: relative; z-index: 2; width: min(100%, 760px); text-align: center; animation: rise .65s ease both; }
.hero-eyebrow { color: #a9b3ff; }
.hero-copy h1 { max-width: none; font-size: clamp(4.2rem, 9vw, 7.4rem); }
.hero-claim { margin: 10px 0 12px; font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 750; }
.hero-text { max-width: 620px; margin: 0 auto 24px; color: rgba(255,255,255,.65); font-size: 1.04rem; }
.store-action { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; text-decoration: none; text-align: left; font-weight: 750; line-height: 1.05; }
.store-action small { display: block; margin-bottom: 3px; color: rgba(255,255,255,.62); font-size: .64rem; font-weight: 500; }
.store-symbol { font-size: 1.5rem; }

.hero-device, .mini-device {
  position: relative; width: min(310px, calc(100vw - 40px)); flex: 0 0 auto; overflow: hidden;
  border: 9px solid #252b36; border-radius: 34px 34px 0 0; background: #f1f3f8; color: var(--ink);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.hero-device { z-index: 2; min-height: 500px; margin-top: 34px; padding: 22px 15px 0; animation: rise .65s .15s ease both; }
.device-speaker { position: absolute; top: 8px; left: 50%; width: 66px; height: 5px; border-radius: 5px; background: #090b0f; transform: translateX(-50%); }
.mock-status { display: flex; justify-content: space-between; color: #717987; font-size: 8px; font-weight: 750; }
.mock-appbar { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 14px; }
.mock-appbar div { display: flex; flex-direction: column; }
.mock-appbar small, .mock-round small, .mock-section-title span, .mock-pulse small { color: #858e9d; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.mock-appbar strong { font-size: 18px; }
.mock-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; }
.mock-round { position: relative; padding: 14px; border-radius: 8px; background: var(--blue); color: #fff; }
.mock-round small { display: block; color: rgba(255,255,255,.62); }
.mock-round strong { display: block; font-size: 15px; }
.mock-round span { font-size: 9px; color: rgba(255,255,255,.7); }
.mock-section-title { display: flex; justify-content: space-between; margin: 18px 0 8px; }
.mock-section-title b { color: var(--blue); font-size: 8px; }
.mock-match { display: grid; grid-template-columns: minmax(0, 1fr) clamp(48px, 20vw, 62px) minmax(0, 1fr); align-items: center; gap: 6px; margin-bottom: 7px; padding: 10px; border: 1px solid #e0e4ec; border-radius: 8px; background: #fff; }
.mock-match div { min-width: 0; }
.mock-match small { display: block; color: #98a0ad; font-size: 6px; }
.mock-match strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mock-away { text-align: right; }
.mock-tip { padding: 5px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue-soft); color: var(--blue); text-align: center; }
.mock-tip small { color: var(--blue); }
.mock-tip b { display: block; font-size: 12px; }
.mock-open { text-align: center; font-size: 11px; font-weight: 800; }
.mock-pulse { margin-top: 14px; padding: 13px; border-radius: 8px; background: #fff; }
.mock-pulse div { display: flex; justify-content: space-between; font-size: 10px; }
.mock-pulse i, .pulse-line { display: block; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #e5e8ef; }
.mock-pulse em, .pulse-line i { display: block; width: 83%; height: 100%; background: var(--green); }
.mock-nav { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 11px 8px; background: #111722; color: #7e8795; font-size: 7px; }
.mock-nav b { color: #fff; }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 42px; padding: 25px 20px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.trust-strip span::before { content: "✓"; margin-right: 7px; color: var(--green); }
.feature-intro { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 80px; text-align: center; }
.feature-intro h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.feature-intro p:last-child { max-width: 680px; margin: 20px auto 0; color: var(--muted); font-size: 1.08rem; }
.feature-band { min-height: 580px; padding: 72px max(24px, calc((100% - 1060px) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; overflow: hidden; }
.feature-band-light { background: var(--surface); }
.feature-band-dark { background: var(--ink); color: #fff; }
.feature-band-green { background: var(--green-light); }
.feature-copy { min-width: 0; max-width: 500px; }
.feature-copy h2 { font-size: clamp(2.25rem, 5vw, 4.6rem); }
.feature-copy p { color: var(--muted); font-size: 1.03rem; }
.feature-band-dark .feature-copy p { color: rgba(255,255,255,.6); }
.feature-number { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.feature-list { margin: 26px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 11px 0; border-top: 1px solid var(--line); font-weight: 650; }
.feature-list li::before { content: "✓"; margin-right: 10px; color: var(--green); }
.mini-device { justify-self: center; min-height: 420px; padding: 48px 18px 26px; border-radius: 34px; background: #f3f5fa; }
.mini-head small { display: block; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.mini-head strong { font-size: 22px; }
.mini-fixture { display: grid; grid-template-columns: 1fr 86px 1fr; align-items: center; gap: 6px; margin-top: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.mini-fixture > span:last-child { text-align: right; }
.mini-fixture div { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mini-fixture b { display: grid; place-items: center; width: 30px; height: 35px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; }
.mini-fixture i { color: var(--muted); font-style: normal; }
.mini-device button { width: 100%; margin-top: 28px; padding: 12px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; }

.ranking-board { width: min(100%, 500px); justify-self: center; }
.ranking-head { display: flex; justify-content: space-between; padding: 0 14px 9px; color: rgba(255,255,255,.42); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ranking-row { display: grid; grid-template-columns: 30px 38px 1fr 50px; align-items: center; min-height: 70px; margin-bottom: 8px; padding: 0 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; }
.ranking-row > b { color: rgba(255,255,255,.42); }
.ranking-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #29303c; font-size: 10px; font-weight: 800; }
.ranking-row em { color: #a9b3ff; font-size: 20px; font-style: normal; font-weight: 800; text-align: right; }
.ranking-first { border-color: var(--gold); background: #25231b; }
.ranking-first > b, .ranking-first em { color: #f1c75d; }
.ranking-first .ranking-avatar { background: var(--gold); color: var(--ink); }
.pulse-demo { width: min(100%, 500px); justify-self: center; padding: 34px; border-left: 5px solid var(--green); background: #fff; }
.pulse-demo small { color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.pulse-demo strong { display: block; margin-top: 5px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.pulse-people { display: flex; margin: 32px 0 16px; }
.pulse-people span { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -7px; border: 3px solid #fff; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.pulse-people span:nth-child(2) { background: var(--blue); }
.pulse-people span:nth-child(3) { background: var(--red); }
.pulse-people span:nth-child(4) { background: var(--gold); color: var(--ink); }
.pulse-people span:last-child { background: var(--green); }
.pulse-demo p { color: var(--muted); font-size: .9rem; }
.pulse-line { height: 8px; }
.pulse-line i { width: 100%; }
.closing-cta { padding: 110px 20px; background: var(--blue); color: #fff; text-align: center; }
.closing-cta img { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 16px 42px rgba(0,0,0,.25); }
.closing-cta .eyebrow { color: #cdd3ff; }
.closing-cta h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.closing-cta p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.closing-cta .primary-action { margin-top: 10px; background: #fff; color: var(--ink); }
.product-source { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Support, invitation and legal pages */
.intro { padding: 96px 0 80px; max-width: 790px; }
.lede { max-width: 720px; margin: 30px 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); }
.response-note { margin: 14px 0 0; color: var(--green); font-size: .9rem; font-weight: 650; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support-grid article { padding: 38px 30px 42px 0; }
.support-grid article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.index { color: var(--blue); font-size: .8rem; font-weight: 800; }
.support-grid p, .source-note p { color: var(--muted); }
.source-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 70px 0; align-items: start; }
.invite-main { min-height: calc(100vh - 184px); display: grid; align-items: center; }
.invite-panel { max-width: 760px; padding: 72px 0 88px; }
.invite-panel h1 { font-size: clamp(3rem, 9vw, 6.4rem); }
.invite-code-label { margin: 38px 0 4px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.invite-code { margin: 0 0 28px; font-size: clamp(2.2rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: .12em; line-height: 1; }
.invite-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.secondary-action { display: inline-block; padding: 14px 21px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.invite-error { max-width: 620px; padding: 18px 20px; border-left: 4px solid #b42318; background: #fff1f0; color: #7a271a; }
.legal-page { max-width: 820px; padding: 80px 0; }
.legal-page h1 { margin-bottom: 42px; font-size: clamp(2.6rem, 7vw, 5rem); }
.legal-page h2 { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.legal-page p { color: #3f4858; }
footer { min-height: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .product-header nav a:first-child { display: none; }
  nav { gap: 13px; font-size: .8rem; }
  .nav-download { padding: 7px 10px; }
  .product-hero { min-height: 820px; padding-top: 48px; }
  .hero-copy h1 { font-size: clamp(3rem, 18vw, 4.2rem); }
  .hero-text { max-width: 360px; font-size: .95rem; }
  .hero-device { width: min(286px, calc(100vw - 28px)); min-height: 480px; }
  .trust-strip { gap: 8px 18px; font-size: .64rem; }
  .feature-intro { padding: 78px 0 58px; text-align: left; }
  .feature-band { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
  .feature-band-dark .feature-copy { order: 0; }
  .ranking-board { order: 1; }
  .mini-device { width: min(286px, calc(100vw - 40px)); }
  .pulse-demo { padding: 26px; }
  .closing-cta { padding: 78px 20px; }
  .intro { padding: 64px 0 56px; }
  .invite-main { min-height: calc(100vh - 210px); }
  .invite-panel { padding: 56px 0 68px; }
  .invite-actions { align-items: stretch; flex-direction: column; }
  .invite-actions a { text-align: center; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid article { padding: 28px 0; }
  .support-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .source-note { grid-template-columns: 1fr; gap: 12px; padding: 48px 0; }
  footer { flex-wrap: wrap; justify-content: flex-start; padding: 24px 0; }
}

@media (max-width: 420px) {
  .site-header { width: calc(100% - 24px); }
  .product-header nav a:not(.nav-download) { display: none; }
  .product-header .brand { gap: 8px; font-size: .95rem; }
  .product-header .brand-icon { width: 32px; height: 32px; }
  .product-hero { padding-right: 12px; padding-left: 12px; }
  .hero-claim { font-size: clamp(1.15rem, 7vw, 1.45rem); }
  .hero-text { width: 100%; }
  .feature-band { padding-right: 20px; padding-left: 20px; }
  .feature-copy h2, .feature-intro h2 { overflow-wrap: anywhere; }
  .legal-page h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); overflow-wrap: anywhere; }
  .ranking-row { grid-template-columns: 24px 34px minmax(0, 1fr) 42px; padding: 0 10px; }
  .pulse-demo { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-device { animation: none; }
}
