/* ============================================================================
   HomeCombat — marketing site
   Mirrors the app's dark, single-accent UI (lib/theme.ts). Surfaces are flat
   #0C0C0E with hairline white borders. Accent #FF5A36 is reserved for data
   (score ring, signal fills, progress fills), branding ("at home."), and the
   primary CTA fill. Chips, card frames, tags and badges are neutral.
   ========================================================================= */

:root {
  --bg: #040405;
  --surface: #0C0C0E;
  --surface-2: #141416;
  --accent: #FF5A36;
  --accent-dim: rgba(255, 90, 54, 0.14);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.50);
  --text-3: rgba(255, 255, 255, 0.26);
  --border: rgba(255, 255, 255, 0.09);
  --border-mid: rgba(255, 255, 255, 0.16);
  --radius-sm: 10px;
  --radius: 22px;
  --radius-lg: 32px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Soft top-of-page atmospheric glow. The same warm gradient the app applies
   behind home / archetype intro / timer setup, kept very subtle. */
.glow {
  position: fixed;
  top: -420px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.10), transparent 62%);
  pointer-events: none; z-index: 0;
}

/* ── header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px;
}
.site-header .logo { height: 26px; width: auto; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--text-2);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

/* ── buttons — solid accent fill, no gradient, no orange halo ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800; font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase;
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: #FF6B4A; border-color: #FF6B4A; }
.btn svg { width: 18px; height: 18px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-mid);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-mid); }
.btn-store svg { width: 20px; height: 20px; margin-bottom: 2px; }

/* ── chip / eyebrow — neutral, app-style overline pill ─────────────────────
   No accent border. Tracks the app's Type.overline: tiny, all caps, wide
   tracking, white text on a hairline surface. */
.chip {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-mid);
  padding: 6px 12px; border-radius: 999px;
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; z-index: 1; text-align: center; padding: 68px 0 36px; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 76px);
  font-weight: 900; line-height: 1.02; letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-2);
  max-width: 580px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px; font-size: 13px; color: var(--text-3);
  letter-spacing: 0.4px;
}

/* ── section scaffolding ──────────────────────────────────────────────────── */
section { position: relative; z-index: 1; padding: 68px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900; letter-spacing: -1px;
  margin: 14px 0 12px;
}
.section-sub {
  text-align: center; color: var(--text-2);
  max-width: 560px; margin: 0 auto 46px;
}
.combos-head { text-align: center; }
.combos-head .chip { margin-bottom: 6px; }

/* ── two-column spotlight layout ──────────────────────────────────────────── */
.spotlight { padding: 36px 0; }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.spotlight-grid-flip { grid-template-columns: 1fr 1fr; }

.spotlight-copy .chip { margin-bottom: 18px; }
.spotlight-copy h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900; letter-spacing: -0.8px; line-height: 1.08;
  margin-bottom: 16px;
}
.copy-body {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
}

/* ── numbered list — neutral surface badges, app-style row ────────────────── */
.how-list { list-style: none; margin-bottom: 30px; max-width: 480px; }
.how-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 6px 0;
}
.how-num {
  flex: none;
  width: 24px; height: 24px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px; font-weight: 800;
  margin-top: 1px;
}
.how-text {
  flex: 1;
  color: var(--text-2);
  font-size: 14px; line-height: 20px;
}

/* ── "phone" mock frame — flat dark surface with hairline border ──────────
   Drops the accent inner shadow for the app's cleaner glass look. */
.phone {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* Header strip — chevron-back / center label / spacer */
.phone-header {
  display: grid; grid-template-columns: 40px 1fr 40px;
  align-items: center;
}
.phone-iconbtn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.phase-label {
  text-align: center;
  font-size: 13px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text);
}
.phase-label-result, .phase-label-round { color: var(--text); }

/* ── archetype hero row ───────────────────────────────────────────────────── */
.arch-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 6px 4px 8px;
}
.arch-hero-left { flex: 1; min-width: 0; }
.arch-hero-right { width: 108px; flex: none; }
.archetype-title {
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 32px;
}
.tagline {
  color: var(--text-2);
  font-size: 13px;
  line-height: 19px;
  margin-top: 6px;
}

/* ScoreRing — kept accent; this is data viz, not decoration. */
.score-ring {
  position: relative;
  width: 108px; height: 108px;
}
.score-ring svg { width: 100%; height: 100%; }
.score-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num {
  color: var(--text);
  font-weight: 900;
  font-size: 35px;
  line-height: 37px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.score-label {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── glass block — flat surface, hairline border, no orange wash ─────────── */
.block {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}
.block-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.block-ico { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.block-title {
  color: var(--text);
  font-size: 13px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
}

/* SignalChip rows — accent fill kept; it's data, not framing. */
.signal {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.signal-label {
  width: 130px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.signal-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.signal-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.signal-num {
  width: 26px;
  text-align: right;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Numbered row — results.tsx NumberedRow */
.num-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
}
.num-badge {
  flex: none;
  width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 13px; font-weight: 900;
}
.num-text {
  flex: 1;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
}

/* ── timer mock — direct port of active timer screen ──────────────────────── */
.timer-ring-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0 4px;
}
.timer-ring {
  position: relative;
  width: clamp(220px, 32vw, 280px);
  aspect-ratio: 1;
}
.timer-ring svg { width: 100%; height: 100%; }
.timer-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.countdown {
  font-size: clamp(54px, 8vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.phase-sub {
  margin-top: 6px;
  font-size: 11px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-2);
}

/* 3-pill row — flat surface, neutral border. */
.pill-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.pill {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  overflow: hidden;
  min-height: 64px;
  justify-content: center;
}
.pill-value {
  color: var(--text);
  font-size: 18px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.pill-of { color: var(--text-3); font-weight: 700; }
.pill-label {
  color: var(--text-3);
  font-size: 9px; font-weight: 900;
  letter-spacing: 1.4px; text-transform: uppercase;
}

/* ── discipline carousel — clean dark cards, no orange framing ────────────
   Borders/tags/arrow are neutral. Only the progress fill keeps the accent
   so the data still reads. */
.combos { padding-top: 68px; padding-bottom: 36px; }
.carousel {
  --card-w: 300px;
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px calc((100vw - var(--card-w)) / 2) 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}
.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel::-webkit-scrollbar { display: none; }

.disc-card {
  scroll-snap-align: center;
  flex: 0 0 var(--card-w);
  height: 472px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}
.disc-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-mid);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6);
}
.carousel.dragging .disc-card { transition: none; }
.disc-card .hero-img {
  height: 270px; width: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
}
.disc-card .scrim {
  position: absolute; left: 0; right: 0; top: 120px; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.86) 58%, var(--surface) 100%);
  pointer-events: none;
}
.disc-card .tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-mid);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.disc-card .body {
  position: relative; z-index: 2;
  margin-top: auto; padding: 22px;
}
.disc-card .titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.disc-card .titlerow > div:first-child { flex: 1; min-width: 0; }
.disc-card .body h3 {
  font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
}
.disc-card .body .sub {
  font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.45;
  letter-spacing: 0.2px;
}
.disc-card .arrow {
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  flex: none;
}
.disc-card .arrow svg { width: 15px; height: 15px; color: var(--text); }
.disc-card .progress { margin-top: 16px; }
.disc-card .track {
  height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.disc-card .track .fill {
  height: 100%; width: 4%; border-radius: 2px;
  background: var(--accent);
}
.disc-card .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px;
}
.disc-card .meta .count {
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.6px; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.disc-card .meta .count b { color: var(--text); font-weight: 800; }

/* Pagination dots — accent active pill stays; it indicates current item. */
.carousel-controls {
  display: flex; justify-content: center; align-items: center;
  margin-top: 4px;
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 8px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.20);
  transition: width 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.carousel-dot.active {
  width: 24px;
  background: var(--accent);
}

/* ── pricing — neutral glass card, accent only on the CTA inside ─────────── */
.pricing {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
}
.pricing .chip { margin-bottom: 22px; }
.pricing h2 { font-size: clamp(28px, 4.4vw, 38px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.pricing .tagline-center { color: var(--text-2); margin-bottom: 26px; }
.pricing .fine {
  margin: 20px auto 0; max-width: 520px;
  font-size: 12px; line-height: 1.7; color: var(--text-3);
}

/* ── footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-inner .logo { height: 22px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-2); }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; font-size: 12px; color: var(--text-3); padding-top: 24px; }

/* ── legal document pages (privacy + terms + support reuse this) ──────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(32px, 5.2vw, 46px); font-weight: 900; letter-spacing: -1.2px; margin-bottom: 8px; }
.doc .updated { color: var(--text-3); font-size: 13px; margin-bottom: 38px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 36px 0 10px; letter-spacing: -0.3px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--accent); text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 700; }

/* ── responsive ───────────────────────────────────────────────────────────── */

/* iPad portrait + small laptops: collapse spotlights to single column. */
@media (max-width: 980px) {
  .spotlight-grid, .spotlight-grid-flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-grid-flip .phone { order: 2; }
  .copy-body, .how-list { max-width: none; }
  .phone { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Phones: hide desktop nav, center the logo in the header, tighten spacing. */
@media (max-width: 760px) {
  .site-header {
    padding: 20px 20px;
    justify-content: center;
  }
  .nav-links { display: none; }

  section { padding: 48px 0; }
  .spotlight { padding: 24px 0; }
  .combos { padding-top: 48px; padding-bottom: 24px; }

  .hero { padding: 36px 0 24px; }
  .hero h1 { letter-spacing: -1.2px; margin-bottom: 18px; }
  .hero p.lead { margin-bottom: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .phone { padding: 18px 14px 20px; }
  .arch-hero { gap: 12px; }
  .arch-hero-right { width: 92px; }
  .score-ring { width: 92px; height: 92px; }
  .score-num { font-size: 28px; line-height: 30px; }
  .archetype-title { font-size: 26px; line-height: 28px; }
  .signal-label { width: 108px; font-size: 10px; }
  .signal-num { font-size: 10px; }
  .timer-ring { width: min(78vw, 280px); }
  .pill-label { font-size: 8px; letter-spacing: 1.2px; }
  .pill-value { font-size: 16px; }

  .pricing { padding: 40px 22px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-links { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .copyright { text-align: center; }

  .doc { padding: 24px 20px 56px; }
  .doc h2 { margin-top: 28px; }
}

/* Small phones (iPhone SE / mini): shrink the carousel card so it fits. */
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .site-header { padding: 18px 18px; }
  .site-header .logo { height: 24px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .carousel { --card-w: min(86vw, 300px); gap: 14px; }
  .disc-card { height: auto; min-height: 440px; }
  .disc-card .hero-img { height: 220px; }
  .disc-card .scrim { top: 90px; }
  .disc-card .body { padding: 18px; }
  .disc-card .body h3 { font-size: 22px; }

  .phone { padding: 16px 12px 18px; border-radius: 26px; }
  .block { padding: 14px; border-radius: 24px; }
  .arch-hero-right { width: 84px; }
  .score-ring { width: 84px; height: 84px; }
  .score-num { font-size: 24px; line-height: 26px; }
  .archetype-title { font-size: 22px; line-height: 24px; }

  .pricing { padding: 32px 18px; border-radius: 24px; }
  .pricing .fine { font-size: 11px; }

  .doc h1 { letter-spacing: -0.8px; }
  .doc p, .doc li { font-size: 14px; }
}
