/* ============================================================
   Boxerium — landing page styles
   Mobile-first (375px). Design tokens from the app's system.
   ============================================================ */

:root {
  --bg:           #0B0B0D;
  --surface:      #17171C;
  --surface-alt:  #202027;
  --hairline:     rgba(255, 255, 255, 0.08);
  --coral:        #EC9C84;
  --coral-fill:   #EF8E70;
  --coral-deep:   #D9795C;
  --text:         #F4F4F6;
  --text-2:       #9A9AA2;
  --text-3:       #6E6E76;
  --work-1:       #35A65E;
  --work-2:       #1C7E43;

  --maxw: 1120px;
  --pad: 22px;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--inter);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint scanline overlay so dark sections don't look flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }

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

.coral { color: var(--coral); }

/* Shared eyebrow / kicker */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.625rem;          /* ~10pt */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 18px;
}

/* App Store badge focus ring (non-negotiable) */
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link:hover { text-decoration: none; }
.badge-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.badge-link img { height: 52px; width: auto; }

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-left { display: inline-flex; align-items: center; gap: 18px; }
.nav-back {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-back:hover { color: var(--coral); text-decoration: none; }
.nav-back:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.app-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--coral-fill), var(--coral-deep));
  flex: none;
  box-shadow: 0 2px 10px rgba(239, 142, 112, 0.3);
}
.wordmark {
  font-family: var(--inter);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
}
.nav-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: 0;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 90% 12%, rgba(236, 156, 132, 0.18), transparent 45%),
    radial-gradient(circle at 8% 88%, rgba(236, 156, 132, 0.08), transparent 55%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.hero-copy { max-width: 540px; }

.headline {
  font-weight: 900;
  font-size: clamp(2.85rem, 13vw, 5rem);   /* ~48pt mobile → ~80pt desktop */
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.lede {
  font-size: 1.075rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 0 26px;
}

.bullets { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.bullets li {
  position: relative;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 20px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral-fill);
}

/* ---------- Phone mockup ---------- */
.hero-phone { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(310px, 80vw);
  aspect-ratio: 74 / 154;
  background: #1A1A1F;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 70px rgba(0, 0, 0, 0.6);
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 22px;
  background: #1A1A1F;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  background: linear-gradient(180deg, var(--work-1), var(--work-2));
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.statusbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.statusbar .signal { letter-spacing: 0.06em; }
.screen-title { font-weight: 700; font-size: 0.82rem; margin: 2px 0 12px; }

.work-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  padding: 7px 22px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.round-count { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; margin: 0; }
.round-name { color: rgba(255,255,255,0.72); font-size: 0.78rem; margin: 2px 0 0; }

.ring-wrap {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  margin: 16px 0;
  display: grid;
  place-items: center;
}
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }     /* start arc at 12 o'clock */
.ring-track { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 5; }
.ring-arc {
  fill: none;
  stroke: var(--coral-fill);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 70 100;     /* ~70% of circumference (pathLength=100) */
}
.ring-time {
  position: absolute;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.round-dots { display: flex; gap: 6px; margin: 4px 0 14px; align-items: center; }
.round-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.round-dots span.on {
  width: 9px; height: 9px;
  background: var(--coral-fill);
}

.combo-pill {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border-radius: 999px;
}

.controls {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
}
.ctrl {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
}
.ctrl.skip { width: 44px; height: 44px; }
.ctrl.pause { width: 60px; height: 60px; background: var(--coral-fill); }

/* ===================== THREE-LINE VALUE PROP ===================== */
.valueprop {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 88px 0 84px;
}
.three-line {
  font-weight: 900;
  font-size: clamp(2.1rem, 9.5vw, 4rem);    /* ~36pt mobile → ~64pt desktop */
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.three-line span { display: block; }
.valueprop-sub {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 1.05rem;
}

/* ===================== FEATURES ===================== */
.features { border-top: 1px solid var(--hairline); padding: 72px 0; }
.feature-grid { display: grid; gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 26px 24px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.card:hover { background: var(--surface-alt); transform: translateY(-2px); }
.card-icon { display: inline-flex; color: var(--coral); margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-weight: 700; font-size: 1rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { font-size: 0.875rem; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ===================== FOUNDER NOTE ===================== */
.founder { border-top: 1px solid var(--hairline); padding: 80px 0; }
.founder-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.founder-inner > p:not(.eyebrow):not(.signoff) {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
  text-align: left;
}
.signoff {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin: 30px 0 0;
}

/* ===================== FAQ ===================== */
.faq { border-top: 1px solid var(--hairline); padding: 72px 0; }
.faq-inner { max-width: 640px; margin: 0 auto; }
.faq-title {
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--text-3);
  margin-bottom: 30px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 2px;
  font-weight: 700;
  font-size: 1.0125rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.chev {
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-bottom: 3px;
}
.faq details[open] .chev { transform: rotate(225deg); margin-bottom: -3px; }
.answer { padding: 0 2px 22px; }
.answer p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ===================== FINAL CTA ===================== */
.final-cta {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 96px 0 100px;
  background:
    radial-gradient(circle at 50% 30%, rgba(236, 156, 132, 0.16), transparent 55%);
}
.final-headline { font-weight: 900; font-size: clamp(2.4rem, 9vw, 3.75rem); letter-spacing: -0.03em; }
.final-sub { color: var(--text-2); font-size: 1.1rem; margin: 16px 0 30px; }
.final-cta .badge-link img { height: 56px; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-fine, .footer-loc {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0;
}
.footer-mission p {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin: 0;
}
.footer-contact a { color: var(--text-2); font-size: 0.9rem; }
.footer-contact a:hover { color: var(--coral); }
.footer-loc { font-style: italic; margin-top: 10px; }

/* ============================================================
   RESPONSIVE — tablet / desktop
   ============================================================ */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
  /* Hide the long monospace tagline on small screens */
  .nav-meta { display: none; }
}

@media (min-width: 900px) {
  :root { --pad: 32px; }
  .hero { padding: 84px 0 96px; }
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .hero-copy { flex: 1 1 0; }
  .hero-phone { flex: 0 0 auto; }
  .phone { width: 320px; }

  .footer-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-mission { text-align: center; }
  .footer-contact { text-align: right; }
}

/* ============================================================
   prefers-reduced-motion — respect it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
