/* nawd / CrumbControl — Notion-inspired marketing site.
   White base, oversized tight headlines, one warm accent, generous air.
   Palette mirrors the app (Palette.swift): navy #1C2B45, gold #E8923F,
   dough #F6E8CC, hairline #E4DAC8. Shared by landing, product, legal. */
:root {
  --bg: #ffffff;
  --wash: #fbf4e6;        /* cream section tint */
  --wash-deep: #f6e8cc;   /* dough */
  --surface: #ffffff;
  --navy: #1c2b45;
  --fg: #1c2b45;
  --fg-2: #545b69;
  --fg-3: #868d9a;
  --gold: #e8923f;
  --gold-deep: #c8731f;
  --on-gold: #3a2208;
  --line: #e4dac8;
  --line-soft: #efe6d6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 3px rgba(43, 30, 12, 0.07), 0 12px 40px rgba(43, 30, 12, 0.07);
  --max: 1080px;
  --max-text: 720px;
}

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

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
/* height:auto is load-bearing: imgs declare width/height attributes (to
   reserve layout space), so without it max-width squashes only the width
   and the rendered image stretches vertically. */
img { max-width: 100%; height: auto; display: block; }

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

/* ───────────────────────── Nav ───────────────────────── */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.brand {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .mark { font-size: 20px; line-height: 1; }
/* App-icon brand mark (the real CrumbControl icon, not an emoji). */
.brand img.mark { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-soft); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--fg-2); font-weight: 600; font-size: 14px;
  padding: 6px 10px; border-radius: 8px;
}
.nav-links a:hover { background: var(--wash); color: var(--navy); text-decoration: none; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 16px rgba(200, 115, 31, 0.28); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--surface); }
.btn-ghost:hover { background: var(--wash); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; box-shadow: none; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { text-align: center; padding: 84px 0 36px; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--navy); margin: 0 auto 20px; font-weight: 800; max-width: 820px;
}
.hero p.sub {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--fg-2);
  max-width: 580px; margin: 0 auto 30px;
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--fg-3); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px;
}

/* Hero screenshot, framed like a device on a dough slab */
.hero-shot {
  margin: 54px auto 0; max-width: 880px;
  background: linear-gradient(160deg, var(--wash), var(--wash-deep));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 56px);
  display: flex; justify-content: center;
}
.phone {
  width: min(320px, 78vw);
  border-radius: 42px; padding: 10px;
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(18, 32, 56, 0.35);
}
.phone img { border-radius: 34px; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 88px 0; }
.section.tint { background: var(--wash); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 4.6vw, 44px); letter-spacing: -0.03em; line-height: 1.08;
  color: var(--navy); margin: 0 0 12px; font-weight: 800;
}
.section-head p { color: var(--fg-2); font-size: 17px; margin: 0; }

/* Alternating feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: center; padding: 44px 0;
}
.feature .shot {
  background: linear-gradient(160deg, var(--wash), var(--wash-deep));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(18px, 3.4vw, 40px); display: flex; justify-content: center;
}
.feature .phone { width: min(250px, 64vw); border-radius: 34px; padding: 8px; }
.feature .phone img { border-radius: 27px; }
.feature h3 {
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.025em; line-height: 1.12;
  color: var(--navy); margin: 0 0 12px; font-weight: 800;
}
.feature p { color: var(--fg-2); font-size: 16.5px; margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li {
  color: var(--fg-2); font-size: 15.5px; padding: 7px 0 7px 30px; position: relative;
}
.feature li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 7px; background: var(--wash-deep);
  color: var(--gold-deep); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
@media (min-width: 821px) { .feature.rev .shot { order: 2; } }

/* ───────────────────────── Pricing ───────────────────────── */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); position: relative;
}
.plan.featured { border: 2px solid var(--gold); }
.plan .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--gold); color: var(--on-gold); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; color: var(--navy); }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); margin: 10px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--fg-3); letter-spacing: 0; }
.plan .alt { color: var(--fg-3); font-size: 13.5px; margin: 0 0 18px; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; }
.plan li { color: var(--fg-2); font-size: 15px; padding: 6px 0 6px 28px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px; border-radius: 7px; background: var(--wash-deep);
  color: var(--gold-deep); font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.plan li.dim { color: var(--fg-3); }
.plan li.dim::before { content: "–"; color: var(--fg-3); background: var(--line-soft); }
.plan .btn { width: 100%; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16.5px; color: var(--navy); padding: 20px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--fg-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 4px 22px; color: var(--fg-2); font-size: 15.5px; max-width: 620px; }

/* ───────────────────────── Download band ───────────────────────── */
.download-band {
  text-align: center; background: var(--navy); color: #f6e8cc;
  border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 72px) 28px;
  margin: 0 auto;
}
.download-band h2 {
  color: #fff; font-size: clamp(28px, 4.6vw, 42px); letter-spacing: -0.03em;
  margin: 0 0 10px; font-weight: 800;
}
.download-band p { color: #cdd6e4; margin: 0 auto 26px; max-width: 460px; font-size: 16.5px; }

/* ───────────────────────── Studio landing ───────────────────────── */
.apps { display: grid; gap: 18px; padding: 8px 0 30px; max-width: 720px; margin: 0 auto; }
.app-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px;
  color: inherit;
}
.app-card:hover { text-decoration: none; border-color: var(--gold); }
.app-icon {
  width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto;
  background: linear-gradient(160deg, var(--wash), var(--wash-deep));
  display: grid; place-items: center; font-size: 34px;
  border: 1px solid var(--line);
}
.app-body { flex: 1; min-width: 0; }
.app-body h3 { margin: 0 0 3px; font-size: 19px; color: var(--navy); letter-spacing: -0.01em; }
.app-body p { margin: 0; color: var(--fg-2); font-size: 15px; }
.app-meta { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; align-items: center; }
.app-meta a { font-weight: 600; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--wash-deep); color: var(--fg-2);
}

/* ───────────────────────── Legal ───────────────────────── */
.legal { max-width: var(--max-text); margin: 0 auto; padding: 56px 24px 40px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); color: var(--navy); letter-spacing: -0.03em; margin: 0 0 4px; font-weight: 800; }
.legal .updated { color: var(--fg-3); font-size: 13.5px; margin: 0 0 30px; }
.legal h2 { font-size: 19px; color: var(--navy); letter-spacing: -0.01em; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--fg-2); font-size: 16px; }
.legal ul { padding-left: 20px; }
.back { font-weight: 600; font-size: 14px; }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  border-top: 1px solid var(--line-soft); margin-top: 80px; padding: 34px 0 56px;
  color: var(--fg-3); font-size: 13.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; align-items: center;
}
.footer a { color: var(--fg-2); font-weight: 600; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; padding: 30px 0; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .section { padding: 64px 0; }
}
