/* Subba website. Warm minimal: cream canvas, one terracotta accent,
   editorial spacing, hairlines over boxes. */

:root {
  --bg: #faf7f1;
  --surface: #fffdf8;
  --ink: #211c15;
  --muted: #8a8174;
  --accent: #c2552f;
  --line: #e9e2d4;
  --band: #211c15;
  --band-text: #f5f1e8;
  --band-muted: #a89e8f;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 104px;
  --space-7: 160px;

  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

a {
  color: var(--accent);
}

/* ---------- Header ---------- */

/* header.wrap so this wins over .wrap's own padding */
header.wrap {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Coming soon pill ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.pill.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.pill.inverted {
  background: var(--bg);
  color: var(--ink);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill .dot {
    animation: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-5);
}

.hero h1 {
  font-size: clamp(2.7rem, 7.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: var(--space-4) auto 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  margin: var(--space-3) auto 0;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero .pill {
  margin-top: var(--space-4);
}

.cta-note {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- App preview card ---------- */

.preview {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-6);
}

.phone-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) var(--space-2);
  width: min(400px, 100%);
  text-align: left;
}

.phone-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-card .total {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: var(--space-1);
}

.phone-card .per {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}

.sub-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.sub-row .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.sub-row .when {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.sub-row .price {
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */

section {
  padding: var(--space-5) 0;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: var(--space-2);
}

.section-sub {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: var(--space-4);
}

/* Features: editorial list, hairlines instead of cards */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.feature .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--space-1) 0;
}

.feature p {
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---------- Dark band ---------- */

.band {
  background: var(--band);
  color: var(--band-text);
  border-radius: calc(var(--radius) + 8px);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  margin: var(--space-5) 0;
}

.band h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 auto var(--space-2);
}

.band h2 em {
  font-style: normal;
  color: var(--accent);
}

.band p {
  color: var(--band-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-4);
}

/* ---------- Support ---------- */

.support p {
  max-width: 54ch;
}

.support .hint {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
}

.support a {
  font-weight: 700;
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
  padding: var(--space-4) 0 var(--space-5);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot nav {
  display: flex;
  gap: var(--space-3);
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.foot a:hover {
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-7);
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-1);
}

.prose .effective {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-4);
}

.prose h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--space-4) 0 var(--space-1);
}

.prose p,
.prose li {
  color: #57503f;
  margin-bottom: var(--space-2);
  font-size: 0.99rem;
}

.prose ul {
  padding-left: var(--space-3);
  margin-bottom: var(--space-2);
}

.prose a {
  font-weight: 600;
}

.prose .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.prose .summary p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  header.wrap {
    padding-top: var(--space-3);
  }

  .hero {
    padding-top: var(--space-5);
  }

  .features {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .band {
    padding: var(--space-5) var(--space-3);
  }

  .nav-links {
    gap: var(--space-2);
  }
}
