/* SuitedUp — shared styles */

:root {
  --bg: #08080A;
  --surface: #101015;
  --surface-2: #16161C;
  --border: #23232B;
  --border-strong: #32323C;

  --text: #F4F4F2;
  --text-muted: #A6A6AD;
  --text-faint: #6F6F78;

  --correct: #5DE39A;
  --correct-hover: #7BEAB0;
  --accent: #A88FFF;
  --danger: #E5484D;

  --mode-preflop: radial-gradient(120% 120% at 22% 14%, #8CF2BC 0%, #5DE39A 52%, #2A8F5E 100%);
  --mode-flop: radial-gradient(120% 120% at 22% 14%, #C4B0FF 0%, #A88FFF 52%, #5B3FB0 100%);
  --mode-two: radial-gradient(120% 120% at 22% 14%, #F2777B 0%, #E5484D 52%, #A82A2E 100%);

  --glow-accent: radial-gradient(circle, rgba(93, 227, 154, 0.10) 0%, rgba(93, 227, 154, 0) 62%);
  --glow-accent-2: radial-gradient(circle, rgba(168, 143, 255, 0.09) 0%, rgba(168, 143, 255, 0) 62%);

  --font-display: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-eyebrow: 0.14em;

  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto keeps the intrinsic aspect ratio from the width/height attributes,
   so a flex or grid parent can never squash an image. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--correct); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--correct);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: var(--maxw-narrow); }

.glow {
  position: absolute;
  width: 840px;
  height: 840px;
  background: var(--glow-accent);
  z-index: -1;
  pointer-events: none;
}
.glow--1 { top: -300px; left: -220px; }
.glow--2 { top: 1560px; right: -280px; width: 780px; height: 780px; background: var(--glow-accent-2); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--correct);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 40px; width: auto; }

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.nav__wordmark:hover { color: var(--text); }

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}

.nav__link { font-size: 14px; color: var(--text-muted); }
.nav__link:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav__links .nav__link { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--correct); color: var(--bg); }
.btn--primary:hover { background: var(--correct-hover); color: var(--bg); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--correct); color: var(--text); }

.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 14px; }

.btn svg { flex: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.hero__lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__fine { margin: 0; font-size: 14px; color: var(--text-faint); }

.hero__art { display: flex; justify-content: center; min-width: 0; }

/* ---------- phone frame ---------- */

.phone {
  border-radius: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  width: 316px;
  max-width: 100%;
  flex: none;
}
.phone img { border-radius: 36px; width: 100%; height: auto; }

.phone--sm { width: 216px; border-radius: 32px; padding: 7px; }
.phone--sm img { border-radius: 26px; }

.phone--md { width: 300px; border-radius: 42px; padding: 9px; }
.phone--md img { border-radius: 34px; }

/* Fills whatever grid column it lands in, rather than a fixed pixel width. */
.phone--fluid { width: 100%; border-radius: 26px; padding: 6px; }
.phone--fluid img { border-radius: 20px; }

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; }
.stat__label { font-size: 14px; color: var(--text-muted); }

/* ---------- generic section ---------- */

.section { padding-bottom: 96px; }
.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 52ch; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.section__head p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); }

.stack-32 { display: flex; flex-direction: column; gap: 32px; }

/* ---------- modes ---------- */

.mode {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.mode:last-child { border-bottom: 1px solid var(--border); }

.mode__swatch { width: 72px; height: 96px; border-radius: 12px; }
.mode__swatch--preflop { background: var(--mode-preflop); }
.mode__swatch--flop { background: var(--mode-flop); }
.mode__swatch--two { background: var(--mode-two); }

.mode__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mode__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.mode__body p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 48ch; }

.mode__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-faint);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .mode { grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
  .mode__swatch { width: 56px; height: 76px; }
  .mode__tag { grid-column: 2; }
}

/* ---------- steps ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 20px 4px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--correct);
  min-width: 24px;
}
.step__body { display: flex; flex-direction: column; gap: 4px; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.step__text { font-size: 16px; line-height: 1.5; color: var(--text-muted); }

.phone-pair { display: flex; justify-content: center; gap: 16px; min-width: 0; flex-wrap: wrap; }
.phone-pair .phone--sm:last-child { align-self: flex-end; }

/* ---------- screens ---------- */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.screen { display: flex; flex-direction: column; gap: 12px; }
.screen__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.screen__text { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.feature__text { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- faq / details ---------- */

.faq { display: flex; flex-direction: column; }

details {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
details:last-child { border-bottom: 1px solid var(--border); }

summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 500;
  color: var(--text-faint);
  flex: none;
  line-height: 1;
  transition: transform 0.15s ease;
}
details[open] summary::after { content: "−"; }
summary:hover { color: var(--correct); }

details p,
details ul { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
details ul { padding-left: 20px; }
details li + li { margin-top: 6px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); }

.footer-top {
  padding: 40px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-note { font-size: 14px; color: var(--text-faint); max-width: 36ch; }

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

.footer-legal { padding: 0 24px 40px; font-size: 12px; color: var(--text-faint); }

/* ---------- document pages (support / privacy / terms) ---------- */

.doc { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }

.doc__head { display: flex; flex-direction: column; gap: 12px; }
.doc__head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.12; }
.doc__meta { margin: 0; font-size: 14px; color: var(--text-faint); }
.doc__lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 60ch; }

.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc section h2 { font-size: 24px; }
.doc section h3 { font-size: 17px; font-weight: 600; margin-top: 6px; }
.doc section p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.doc section ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.doc section li + li { margin-top: 8px; }

.doc a { color: var(--accent); }
.doc a:hover { color: var(--text); }

/* ---------- support-specific ---------- */

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.contact-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.contact-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 46ch; }

.contact-card .btn--primary { white-space: nowrap; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.info__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
}
.info__value { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.info__value strong { color: var(--text); font-weight: 600; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--correct);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px 20px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- utilities ---------- */

.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; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
