:root {
  --black: #0C0C0C;
  --stone: #353434;
  --core-gray: #D9D9D9;
  --light-gray: #F6F6F6;
  --heat-green: #DBFB4B;

  --font-display: "SwissPoster Semi Condensed", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "American Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-data: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: min(1520px, 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--light-gray);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- header ---------- */
.header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: clamp(30px, 2.1vw, 40px); width: auto; }
.login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.login:hover, .login:focus-visible {
  background: var(--heat-green);
  border-color: var(--heat-green);
  color: var(--black);
}
.auth { display: flex; align-items: center; gap: 10px; }
/* Sign up is the main action: filled; Log in stays outlined. */
.signup {
  background: var(--heat-green);
  border-color: var(--heat-green);
  color: var(--black);
}
.signup:hover, .signup:focus-visible {
  background: var(--light-gray);
  border-color: var(--light-gray);
}

/* ---------- hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7svh, 96px) var(--gutter) clamp(48px, 8svh, 104px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--heat-green);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, min(7.2vw, 13svh), 136px);
  line-height: .84;
  letter-spacing: -.01em;
}
h1 em { font-style: italic; }
.lede {
  margin: 28px 0 0;
  max-width: 30ch;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.45;
  color: var(--core-gray);
}
.stores {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stores a {
  display: block;
  border-radius: 9px;
  outline: 1px solid rgba(246, 246, 246, .32);
  outline-offset: -1px;
  transition: outline-color .15s, transform .15s;
}
.stores a:hover, .stores a:focus-visible { outline-color: var(--heat-green); transform: translateY(-1px); }
.stores img { height: clamp(52px, 3.6vw, 64px); width: auto; }
.toast {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--heat-green);
  color: var(--black);
  font-family: var(--font-data);
  font-size: 14px;
}
.toast[hidden] { display: none; }

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.phone {
  width: min(46%, clamp(210px, calc((100svh - 230px) / 2.25), 400px));
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6));
}
.phone--back { margin-top: 12%; margin-right: -6%; }
.phone--front { position: relative; z-index: 1; }

/* ---------- marquee (mirrors rule42.com brand reel) ---------- */
.reel {
  background: var(--heat-green);
  color: var(--black);
  padding: 18px 0;
  overflow: hidden;
}
.reel-track {
  display: flex;
  width: max-content;
  animation: marquee 33s linear infinite;
}
.reel ul {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0 48px 0 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}
.reel li { flex-shrink: 0; }
.reel span {
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.reel img { height: 44px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-data);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--core-gray);
}

.legal { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; }
.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -14px 0;
  text-decoration: none;
  transition: color .15s;
}
.legal a:hover, .legal a:focus-visible { color: var(--heat-green); }

/* ---------- legal pages ---------- */
.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px);
  font-size: 16px;
  line-height: 1.65;
  color: var(--core-gray);
}
.doc h1 { font-size: clamp(44px, 7vw, 72px); color: var(--light-gray); }
.doc .updated {
  margin: 20px 0 48px;
  font-family: var(--font-data);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--core-gray);
}
.doc h2 {
  margin: 48px 0 16px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--light-gray);
  scroll-margin-top: 24px;
}
.doc h3 {
  margin: 32px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--light-gray);
}
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 8px; }
.doc ol { list-style: lower-alpha; padding-left: 3.2em; }
.doc strong { color: var(--light-gray); font-weight: 600; }
.doc .num {
  font-family: var(--font-data);
  font-weight: 400;
  color: var(--heat-green);
}
.doc .sub { scroll-margin-top: 24px; }
.doc .sub .num { margin-right: 6px; font-size: 14px; }
.doc a { color: var(--heat-green); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-thickness: 2px; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 40px;
  font-family: var(--font-data);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heat-green);
}
.footer .legal a[aria-current="page"] { color: var(--heat-green); }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 48px;
    text-align: center;
    padding-top: 40px;
  }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  h1 { font-size: clamp(52px, 10.5vw, 88px); }
  .lede { font-size: clamp(17px, 2.4vw, 20px); }
  .phones { max-width: 540px; width: 100%; margin: 0 auto; }
  .phone { width: 46%; }
}
@media (max-width: 420px) {
  .logo img { height: 26px; }
  .login { padding: 0 16px; }
  .auth { gap: 8px; }
  .stores img { height: 46px; }
  .reel { padding: 14px 0; }
  .reel img { height: 36px; }
  .reel ul { gap: 32px; margin-right: 32px; }
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .legal a { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .login, .stores a, .legal a { transition: none; }
}
