/*
  BEARSCAR public site.
  Matches the app's current system: loud arena surfaces, calm operational
  panels, and readable flat legal/support content.
*/

@font-face {
  font-family: 'Anton';
  src: url('/fonts/Anton_400Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-ExtraBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-Black.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0e1020;
  --bg-deep: #070914;
  --navy: #181b2e;
  --navy-2: #22253c;
  --navy-3: #13162a;
  --cream: #d8ccb5;
  --cream-light: #e6dcc8;
  --cream-ink: #0e0e0e;
  --coral: #ff5a73;
  --teal: #4fd1c5;
  --gold: #ffd25f;
  --purple: #9b6fe5;
  --text: #f5efe7;
  --text-2: #c9c4d6;
  --text-3: #8a8aa0;
  --line: rgba(245, 239, 231, 0.14);
  --ink-line: #050505;
  --max: 1240px;
  --pad: 48px;
  --display: 'Anton', Impact, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --skew: -7deg;
  --unskew: 7deg;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(245, 239, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 231, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #101327 0%, #090b17 45%, #05060d 100%);
  background-size:
    72px 72px,
    72px 72px,
    auto;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  content: '';
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--coral);
  color: #fff;
}

.topnav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  padding: 10px 12px;
  border: 2px solid var(--ink-line);
  background: rgba(18, 21, 40, 0.88);
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) skewX(var(--skew));
}

.topnav > * {
  transform: skewX(var(--unskew));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 90, 115, 0.72);
  border-radius: 50%;
  background: #05060d;
  object-fit: cover;
}

.brand-word,
.foot-mark {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.topnav-links {
  display: flex;
  gap: 19px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.topnav-links a,
.foot-col a,
.text-link {
  transition:
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.topnav-links a:hover,
.foot-col a:hover,
.foot-bottom a:hover,
.text-link:hover {
  color: var(--teal);
}

.topnav-cta,
.ghost-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
}

.topnav-cta {
  min-height: 42px;
  padding: 9px 16px;
  border: 2px solid var(--ink-line);
  background: var(--coral);
  color: #fff;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);
}

.site-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop,
.hero-video,
.hero-backdrop-scrim {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  z-index: -2;
  background: var(--bg-deep);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.16) contrast(1.04);
}

.hero-backdrop-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(9, 11, 23, 0.86) 0%,
      rgba(9, 11, 23, 0.62) 43%,
      rgba(9, 11, 23, 0.18) 74%,
      rgba(9, 11, 23, 0.66) 100%
    ),
    linear-gradient(180deg, rgba(9, 11, 23, 0.02), rgba(9, 11, 23, 0.82) 88%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.86fr);
  gap: 46px;
  align-items: center;
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px var(--pad) 92px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 820px;
  color: #fff;
  text-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.hero-title-brand {
  display: block;
  font-family: var(--display);
  font-size: clamp(84px, 12vw, 164px);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    7px 8px 0 rgba(79, 209, 197, 0.62),
    0 28px 80px rgba(0, 0, 0, 0.55);
}

.hero-title-tagline {
  display: block;
  max-width: 660px;
  margin-top: 16px;
  font-family: var(--body);
  font-size: clamp(30px, 4.3vw, 56px);
  font-weight: 950;
  line-height: 0.98;
  text-transform: none;
}

.hero-lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 47px);
  font-weight: 900;
  line-height: 1.04;
}

.hero-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.ghost-link {
  min-height: 52px;
  padding: 11px 18px;
  border: 2px solid var(--ink-line);
  background: var(--navy-2);
  color: var(--teal);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.38);
  transform: skewX(var(--skew));
}

.ghost-link span {
  transform: skewX(var(--unskew));
}

.storebadge {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 17px;
  border: 2px solid var(--ink-line);
  background: var(--cream);
  color: var(--cream-ink);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.42);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
  transform: skewX(var(--skew));
}

.storebadge > * {
  transform: skewX(var(--unskew));
}

.storebadge:hover,
.topnav-cta:hover,
.ghost-link:hover {
  transform: translateY(-2px) skewX(var(--skew));
}

.storebadge--google {
  background: var(--navy);
  color: var(--text);
}

.storebadge--soon {
  cursor: default;
  overflow: visible;
  padding-right: 34px;
}

.storebadge--soon:hover {
  transform: skewX(var(--skew));
}

.storebadge--soon .storebadge-glyph,
.storebadge--soon .storebadge-stack {
  opacity: 0.84;
}

.coming-sticker {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 2;
  min-width: 52px;
  padding: 5px 8px 6px;
  border: 2px solid var(--ink-line);
  background: var(--coral);
  color: white;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.42);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg) skewX(var(--unskew));
}

.storebadge-glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.storebadge-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.storebadge-pre {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.68;
}

.storebadge-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.storebadge--lg {
  min-height: 64px;
  padding: 12px 26px 12px 20px;
}

.storebadge--lg .storebadge-name {
  font-size: 25px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-pills span,
.feature-list span {
  border: 2px solid var(--ink-line);
  background: var(--cream);
  color: var(--cream-ink);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  text-transform: uppercase;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.36);
}

.hero-product {
  position: relative;
  min-height: 680px;
}

.phone-shell,
.feature-phone {
  position: absolute;
  margin: 0;
  border: 2px solid var(--ink-line);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 90, 115, 0.18), transparent 26%),
    linear-gradient(145deg, #342421 0%, #111628 48%, #06070f 100%);
  box-shadow:
    12px 16px 0 rgba(0, 0, 0, 0.54),
    0 42px 120px rgba(0, 0, 0, 0.64);
  overflow: hidden;
}

.phone-shell img,
.feature-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shell--main {
  right: 116px;
  top: 0;
  z-index: 3;
  width: 308px;
  transform: rotate(-2deg);
}

.phone-shell--side {
  right: 0;
  top: 116px;
  z-index: 2;
  width: 260px;
  opacity: 0.94;
  transform: rotate(4deg);
}

.phone-shell--mini {
  right: 302px;
  bottom: 20px;
  z-index: 1;
  width: 196px;
  opacity: 0.82;
  transform: rotate(-8deg);
}

.signal-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--max));
  margin: -54px auto 0;
  padding: 0 var(--pad);
}

.signal-strip div {
  min-height: 118px;
  border: 2px solid var(--ink-line);
  border-right: 0;
  background: var(--navy);
  padding: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

.signal-strip div:last-child {
  border-right: 2px solid var(--ink-line);
}

.signal-strip strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.signal-strip span {
  display: block;
  margin-top: 9px;
  color: var(--text-2);
  font-size: 14px;
}

.arena-section,
.screens-section,
.split-section,
.proof-section,
.final-cta,
.foot {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 110px var(--pad);
}

.section-copy,
.split-copy,
.proof-copy {
  max-width: 790px;
}

.section-copy {
  margin-bottom: 38px;
}

.section-copy.compact {
  max-width: 760px;
}

.section-copy h2,
.split-copy h2,
.proof-copy h2,
.final-copy h2,
.doc h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-copy p:not(.eyebrow),
.split-copy p,
.proof-copy p,
.final-copy p:not(.eyebrow) {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 19px;
}

.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.arena-card {
  min-height: 260px;
  border: 2px solid var(--ink-line);
  padding: 25px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.42);
  transform: skewX(var(--skew));
}

.arena-card > * {
  transform: skewX(var(--unskew));
}

.arena-card--coral {
  background: var(--coral);
}

.arena-card--teal {
  background: var(--teal);
}

.arena-card--gold {
  background: var(--gold);
}

.arena-number {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.9;
  text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.3);
}

.arena-card--teal .arena-number,
.arena-card--gold .arena-number {
  color: var(--cream-ink);
  text-shadow: none;
}

.arena-card h3 {
  margin: 28px 0 10px;
  color: var(--cream-ink);
  font-size: 25px;
  line-height: 1.04;
  font-weight: 900;
}

.arena-card p {
  margin: 0;
  color: rgba(14, 14, 14, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.screens-section {
  border-top: 1px solid var(--line);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screen-card {
  margin: 0;
  border: 2px solid var(--ink-line);
  background: var(--navy);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

/* --large and --wide kept for backwards-compat but neutralized — the
   3×2 grid is more balanced and avoids orphan rows. */
.screen-card--large,
.screen-card--wide {
  grid-row: auto;
  grid-column: auto;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  object-position: top center;
}

.screen-card--wide img {
  max-height: 680px;
  object-fit: cover;
}

.screen-card figcaption {
  display: grid;
  gap: 4px;
  border-top: 2px solid var(--ink-line);
  background: var(--cream);
  color: var(--cream-ink);
  padding: 14px 16px;
}

.screen-card figcaption strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}

.screen-card figcaption span {
  color: rgba(14, 14, 14, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.split-section,
.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.62fr);
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.proof-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.5fr);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-phone {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  transform: rotate(2deg);
}

.feature-phone--proof {
  width: min(100%, 360px);
  transform: rotate(-2deg);
}

.text-link {
  margin-top: 26px;
  color: var(--teal);
}

.final-cta {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 2px solid var(--ink-line);
  background: var(--bg-deep);
  padding: 0;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.48);
  isolation: isolate;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('/backgrounds/lifestyle/motel-parking.jpg');
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.final-cta::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 23, 0.95), rgba(9, 11, 23, 0.42)),
    linear-gradient(180deg, rgba(9, 11, 23, 0.12), rgba(9, 11, 23, 0.95));
  content: '';
}

.final-copy {
  max-width: 780px;
  padding: 64px;
}

.foot {
  border-top: 1px solid var(--line);
  padding-top: 58px;
  padding-bottom: 34px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.foot-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 3px 0;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-mark {
  font-size: 29px;
}

.foot-tag,
.foot-bottom {
  color: var(--text-3);
  font-size: 13px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}

.foot-bottom a {
  color: var(--teal);
  font-weight: 900;
}

.doc-page {
  background:
    linear-gradient(90deg, rgba(9, 11, 23, 0.96), rgba(9, 11, 23, 0.74)),
    url('/backgrounds/lifestyle/rooftop.jpg') center top / cover fixed,
    var(--bg);
}

.doc-shell {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 144px var(--pad) 90px;
}

.doc {
  max-width: 840px;
  border: 2px solid var(--ink-line);
  background: var(--cream);
  color: var(--cream-ink);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.42);
  padding: 46px;
}

.doc-eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc h1 {
  color: var(--cream-ink);
  font-size: clamp(54px, 8vw, 92px);
}

.doc-meta {
  margin: 16px 0 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(14, 14, 14, 0.2);
  color: rgba(14, 14, 14, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.doc h2 {
  margin: 36px 0 12px;
  color: var(--cream-ink);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.doc p,
.doc ul li,
.doc ol li {
  color: rgba(14, 14, 14, 0.74);
  font-size: 16px;
  line-height: 1.72;
}

.doc p {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: #b3354b;
  font-weight: 900;
}

.doc-callout {
  border: 1px solid rgba(14, 14, 14, 0.22);
  background: rgba(255, 210, 95, 0.24);
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin: 18px 0 34px;
  padding: 22px;
  border: 2px solid var(--ink-line);
  background: rgba(14, 14, 14, 0.06);
  box-shadow: 5px 6px 0 rgba(14, 14, 14, 0.18);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(14, 14, 14, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 2px solid rgba(14, 14, 14, 0.8);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.36);
  color: var(--cream-ink);
  font: 800 15px/1.4 var(--body);
  outline: none;
  padding: 12px 13px;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

.contact-form textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #b3354b;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 90, 115, 0.18);
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-privacy-notice {
  margin: 0;
  padding: 13px 14px;
  border-left: 4px solid #b3354b;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(14, 14, 14, 0.74);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-privacy-notice a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-submit {
  min-height: 46px;
  border: 2px solid var(--ink-line);
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  font: 900 13px/1 var(--body);
  letter-spacing: 0.04em;
  padding: 13px 18px;
  text-transform: uppercase;
  box-shadow: 4px 5px 0 rgba(14, 14, 14, 0.28);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    opacity 180ms var(--ease);
}

.contact-submit:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 6px 0 rgba(14, 14, 14, 0.34);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-status {
  min-height: 24px;
  margin: 0;
  color: rgba(14, 14, 14, 0.66);
  font-size: 14px;
  font-weight: 900;
}

.contact-status[data-state='success'] {
  color: #1f6b5d;
}

.contact-status[data-state='error'] {
  color: #9e2639;
}

.invite-fallback-page .topnav {
  max-width: 980px;
}

.invite-fallback-page main {
  min-height: calc(100svh - 260px);
  display: grid;
  place-items: center;
  padding: 148px var(--pad) 80px;
}

.auth-confirm-page {
  min-height: 100svh;
}

.auth-confirm-main {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.auth-confirm-backdrop {
  z-index: -2;
}

.auth-confirm-bg {
  opacity: 0.74;
  filter: saturate(1.13) contrast(1.06);
}

.auth-confirm-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(9, 11, 23, 0.92) 0%,
      rgba(9, 11, 23, 0.76) 42%,
      rgba(9, 11, 23, 0.46) 74%,
      rgba(9, 11, 23, 0.76) 100%
    ),
    linear-gradient(180deg, rgba(9, 11, 23, 0.18), rgba(9, 11, 23, 0.88) 88%, var(--bg) 100%);
}

.invite-fallback,
.auth-confirm {
  width: min(100%, 980px);
}

.invite-fallback {
  text-align: center;
}

.invite-fallback-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border: 2px solid var(--ink-line);
}

.invite-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.invite-fallback h1,
.auth-confirm-copy h1 {
  margin: 0 auto;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.invite-copy,
.invite-note,
.auth-confirm-lead {
  max-width: 590px;
  margin: 22px auto 0;
  color: var(--text-2);
}

.invite-actions,
.auth-confirm-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.invite-primary {
  min-height: 58px;
  border: 2px solid var(--ink-line);
  background: var(--coral);
  color: #fff;
  padding: 14px 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-confirm {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 150px var(--pad) 92px;
}

.auth-confirm-copy {
  max-width: 760px;
}

.auth-confirm-copy h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 150px);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    7px 8px 0 rgba(79, 209, 197, 0.54),
    0 28px 80px rgba(0, 0, 0, 0.58);
}

.auth-confirm-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(25px, 3.8vw, 44px);
  font-weight: 900;
  line-height: 1.05;
}

.auth-confirm-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.auth-open-app {
  min-height: 62px;
  padding: 16px 28px;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.42);
  transform: skewX(var(--skew));
}

.auth-open-app:hover {
  transform: translateY(-2px) skewX(var(--skew));
}

.auth-open-app > span {
  transform: skewX(var(--unskew));
}

.auth-confirm-copy .invite-note {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 800;
}

.auth-foot {
  max-width: 1120px;
  padding-top: 0;
  padding-bottom: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  :root {
    --pad: 32px;
  }

  .topnav-links {
    gap: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 96px;
  }

  .hero-product {
    min-height: 570px;
    max-width: 650px;
  }

  .phone-shell--main {
    left: 0;
    right: auto;
  }

  .phone-shell--side {
    left: 264px;
    right: auto;
  }

  .phone-shell--mini {
    left: 198px;
    right: auto;
  }

  .signal-strip,
  .arena-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screens-grid,
  .split-section,
  .proof-section,
  .auth-confirm {
    grid-template-columns: 1fr;
  }

  .screen-card--large,
  .screen-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .screen-card {
    max-width: 420px;
  }

  .feature-phone {
    justify-self: start;
    max-width: 620px;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 20px;
  }

  body {
    font-size: 16px;
  }

  .topnav {
    width: min(calc(100% - 20px), var(--max));
    min-height: 62px;
    top: 10px;
    padding: 9px 10px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 20px;
  }

  .topnav-links {
    display: none;
  }

  .topnav-cta {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 82px;
  }

  .hero-title-brand {
    font-size: clamp(68px, 21vw, 96px);
  }

  .hero-title-tagline {
    max-width: 420px;
    font-size: clamp(28px, 8.8vw, 42px);
  }

  .hero-lead {
    font-size: 30px;
  }

  .storebadge,
  .ghost-link {
    width: 100%;
  }

  .storebadge {
    justify-content: flex-start;
  }

  .storebadge--soon {
    padding-right: 54px;
  }

  .coming-sticker {
    right: 12px;
  }

  .hero-product {
    min-height: 460px;
  }

  .phone-shell--main {
    width: 224px;
  }

  .phone-shell--side {
    left: 174px;
    top: 92px;
    width: 186px;
  }

  .phone-shell--mini {
    left: 124px;
    bottom: 0;
    width: 144px;
  }

  .signal-strip,
  .arena-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-top: -28px;
  }

  .signal-strip div,
  .signal-strip div:last-child {
    border-right: 2px solid var(--ink-line);
  }

  .arena-section,
  .screens-section,
  .split-section,
  .proof-section,
  .final-cta,
  .foot {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-copy h2,
  .split-copy h2,
  .proof-copy h2,
  .final-copy h2 {
    font-size: 50px;
  }

  .section-copy p:not(.eyebrow),
  .split-copy p,
  .proof-copy p,
  .final-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .screens-grid {
    grid-template-columns: 1fr;
  }

  .screen-card {
    max-width: none;
  }

  .final-cta {
    width: calc(100% - 32px);
    min-height: 560px;
    padding: 0;
  }

  .final-copy,
  .doc,
  .auth-confirm-copy,
  .auth-confirm-panel {
    padding: 30px 22px;
  }

  .doc-shell {
    padding-top: 118px;
    padding-bottom: 68px;
  }

  .doc h1 {
    font-size: 56px;
  }

  .doc h2 {
    font-size: 25px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .auth-confirm-main,
  .invite-fallback-page main {
    padding-top: 118px;
  }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 430px) {
  .hero-product {
    min-height: 420px;
  }

  .phone-shell--main {
    width: 206px;
  }

  .phone-shell--side {
    left: 150px;
    width: 170px;
  }

  .phone-shell--mini {
    left: 106px;
    width: 132px;
  }
}

/* ---------------------------------------------------------------
   Scroll-driven animations (BEARSCAR rocka mode)
   - opt-in via [data-animate]
   - graceful: if JS doesn't run we fall back to .force-visible (set
     by the IntersectionObserver script on <html>) so nothing stays
     hidden if scripts are blocked
   - respects prefers-reduced-motion
---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(38px) scale(0.96);
    transition:
      opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }
  [data-animate='left'] {
    transform: translateX(-56px) rotate(-3deg);
  }
  [data-animate='right'] {
    transform: translateX(56px) rotate(3deg);
  }
  [data-animate='rise'] {
    transform: translateY(48px);
  }
  [data-animate='pop'] {
    transform: scale(0.82) rotate(-4deg);
  }
  [data-animate].in-view,
  [data-animate].force-visible {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  /* Hero phones keep their resting tilt — they bounce in then breathe with parallax */
  .phone-shell {
    --parallax: 0px;
    transition:
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .phone-shell[data-animate] {
    opacity: 0;
  }
  .phone-shell--main[data-animate] {
    transform: translate(40px, 60px) rotate(8deg) scale(0.9);
  }
  .phone-shell--side[data-animate] {
    transform: translate(80px, -40px) rotate(14deg) scale(0.9);
  }
  .phone-shell--mini[data-animate] {
    transform: translate(-60px, 80px) rotate(-20deg) scale(0.85);
  }
  .phone-shell--main.in-view {
    opacity: 1;
    transform: translateY(var(--parallax)) rotate(-2deg);
  }
  .phone-shell--side.in-view {
    opacity: 0.94;
    transform: translateY(calc(var(--parallax) * -1)) rotate(4deg);
  }
  .phone-shell--mini.in-view {
    opacity: 0.82;
    transform: translateY(var(--parallax)) rotate(-8deg);
  }

  /* Screen-grid: cards lift on hover with a slight skew + harder shadow */
  .screen-card {
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 320ms ease;
  }
  .screen-card:hover {
    transform: translate(-4px, -8px) rotate(-0.8deg);
    box-shadow: 14px 18px 0 rgba(0, 0, 0, 0.55);
  }

  /* Feature-phones in squads/proof: settle into their tilt, lift on hover */
  .feature-phone {
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .feature-phone[data-animate].in-view {
    transform: rotate(2deg);
  }
  .feature-phone--proof[data-animate].in-view {
    transform: rotate(-2deg);
  }
  .feature-phone:hover {
    transform: rotate(0deg) translateY(-6px);
  }

  /* Staggered children — set via inline --i on JS side or data-stagger */
  [data-stagger='1'] {
    transition-delay: 80ms;
  }
  [data-stagger='2'] {
    transition-delay: 160ms;
  }
  [data-stagger='3'] {
    transition-delay: 240ms;
  }
  [data-stagger='4'] {
    transition-delay: 320ms;
  }
  [data-stagger='5'] {
    transition-delay: 400ms;
  }
  [data-stagger='6'] {
    transition-delay: 480ms;
  }

  /* Pills glow rhythmically — keeps the hero alive while idle */
  @keyframes pill-glow {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(0, 215, 196, 0);
    }
    50% {
      box-shadow: 0 0 0 5px rgba(0, 215, 196, 0.22);
    }
  }
  .hero-pills span {
    animation: pill-glow 3.4s ease-in-out infinite;
  }
  .hero-pills span:nth-child(1) {
    animation-delay: 0s;
  }
  .hero-pills span:nth-child(2) {
    animation-delay: 0.4s;
  }
  .hero-pills span:nth-child(3) {
    animation-delay: 0.8s;
  }
  .hero-pills span:nth-child(4) {
    animation-delay: 1.2s;
  }
  .hero-pills span:nth-child(5) {
    animation-delay: 1.6s;
  }

  /* Arena number wobble — sticker-on-cardboard feel */
  @keyframes arena-wobble {
    0%,
    100% {
      transform: rotate(0deg);
    }
    25% {
      transform: rotate(2deg);
    }
    75% {
      transform: rotate(-2deg);
    }
  }
  .arena-number {
    display: inline-block;
    animation: arena-wobble 5s ease-in-out infinite;
    transform-origin: center;
  }
  .arena-card:nth-child(1) .arena-number {
    animation-delay: 0s;
  }
  .arena-card:nth-child(2) .arena-number {
    animation-delay: 0.7s;
  }
  .arena-card:nth-child(3) .arena-number {
    animation-delay: 1.4s;
  }

  /* Arena card hover — pop forward slightly */
  .arena-card {
    transition:
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms ease;
  }
  .arena-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 10px 14px 0 rgba(0, 0, 0, 0.5);
  }

  /* Top-nav links pop on hover */
  .topnav-links a {
    transition:
      transform 200ms ease,
      color 200ms ease;
  }
  .topnav-links a:hover {
    transform: translateY(-2px);
  }
}

/* No-JS fallback: if the observer never runs, reveal everything after a beat */
html.no-animate-js [data-animate] {
  opacity: 1;
  transform: none;
}
