/* Shared styles for the marketing pages (home + keyword pages). Light only,
   deliberately: the app itself has no dark mode. */
:root {
  --paper: #fbf4ea;
  --paper-deep: #f5e8d8;
  --card: #fffcf6;
  --ink: #2e241d;
  --body-ink: #50453d;
  --muted: #7b6f66;
  --hairline: #e8ddd0;
  --hairline-strong: #d8c9b6;
  --rust: #903300;
  --rust-deep: #6e2600;
  --rust-tint: #f3e1d0;
  --gold: #ba7517;
  --flame: #ff8a3d;
  --liked: #ff3b5c;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body-ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 234, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
nav.top.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 2px rgba(46, 36, 29, 0.15); }
.wordmark span { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.1px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link { font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px; font-weight: 700; color: #fff9f2; background: var(--ink);
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.nav-cta:hover { background: var(--rust); transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links a.link { display: none; } }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: var(--rust);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.section { padding: 112px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.12;
  letter-spacing: -0.8px; margin-top: 14px; text-wrap: balance;
}
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .section-head h2 { font-size: 33px; }
}

/* ---------- App Store button ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #0f0f10; color: #fff; text-decoration: none;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  box-shadow: 0 12px 28px -10px rgba(20, 15, 10, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(20, 15, 10, 0.5); }
.store-btn:active { transform: translateY(0); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .t { display: flex; flex-direction: column; line-height: 1.12; }
.store-btn .s { font-size: 11px; font-weight: 500; letter-spacing: 0.2px; }
.store-btn .b { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(186, 117, 23, 0.18), rgba(186, 117, 23, 0) 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; padding-top: 72px; padding-bottom: 96px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: 68px; line-height: 1.04;
  letter-spacing: -1.6px; margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--rust); }
.hero .lede { font-size: 20px; line-height: 1.6; color: var(--body-ink); max-width: 500px; margin: 0 0 34px; text-wrap: pretty; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 44px; gap: 48px; }
  .hero h1 { font-size: 46px; letter-spacing: -1px; }
  .hero .lede { margin-left: auto; margin-right: auto; font-size: 18px; }
}

/* ---------- animated phone ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  background: #1c1714; border-radius: 52px; padding: 11px;
  box-shadow:
    0 50px 80px -30px rgba(70, 40, 15, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--paper); }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 88px; height: 25px; background: #1c1714; border-radius: 14px; z-index: 6; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 15px 26px 0 30px; font-size: 12px; font-weight: 600; color: var(--ink); z-index: 5; }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { width: 15px; height: 11px; }
.app-bar { position: absolute; top: 46px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 12px; z-index: 5; }
.app-bar .grp { display: flex; gap: 6px; }
.pill {
  display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px;
  background: rgba(255, 252, 246, 0.94); border: 1px solid var(--hairline); font-size: 11.5px; font-weight: 700; color: var(--ink);
}
.pill.ico { width: 28px; padding: 0; justify-content: center; }
.pill svg { width: 13px; height: 13px; }
.pill .fl { color: var(--flame); }
.pill .ref-name { transition: opacity 0.3s; }
.feed { position: absolute; inset: 0; transition: transform 0.75s var(--ease); }
.slide { height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 26px 40px; text-align: center; }
.slide .study { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.slide .study i { width: 46px; height: 46px; border-radius: 13px; background: var(--rust-tint); display: flex; align-items: center; justify-content: center; color: var(--rust); }
.slide .study i svg { width: 20px; height: 20px; }
.slide .study span { font-size: 10px; font-weight: 600; color: var(--muted); }
.slide p { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); margin: 0; }
.slide .r { margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.slide .red { color: #c0272d; }
.rail { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; gap: 18px; z-index: 5; }
.rail svg { width: 23px; height: 23px; color: var(--ink); }
.rail .heart { transition: transform 0.3s var(--ease), color 0.2s; }
.rail .heart.on { color: var(--liked); animation: pop 0.45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.swipe-hint {
  position: absolute; bottom: 14px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
  border-radius: 2px; background: rgba(46, 36, 29, 0.25); z-index: 5;
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(70, 40, 15, 0.35);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; z-index: 2;
  opacity: 0; animation: chip-in 0.9s var(--ease) forwards, float 8s ease-in-out infinite;
}
.chip b { display: flex; width: 30px; height: 30px; border-radius: 9px; background: var(--rust-tint); align-items: center; justify-content: center; font-size: 15px; }
.chip small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.chip.c1 { left: -8%; top: 22%; animation-delay: 0.6s, 1.5s; }
.chip.c2 { right: -10%; bottom: 20%; animation-delay: 0.9s, 0s; }
@keyframes chip-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1060px) { .chip.c1 { left: -2%; } .chip.c2 { right: -2%; } }
@media (max-width: 520px) { .chip { display: none; } .phone { width: 270px; } }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--card); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 20px; text-align: center; border-left: 1px solid var(--hairline); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; line-height: 1.2; }
.fact span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}

/* ---------- features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 30px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: 0 24px 48px -28px rgba(70, 40, 15, 0.35); }
.card.wide { grid-column: span 2; }
.card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--rust-tint); color: var(--rust); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.card .quote { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--hairline); }
.card .quote p { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.5; }
.card .quote span { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 30px 28px; border-radius: 24px; border: 1px solid var(--hairline); background: var(--card); counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff9f2; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- statement ---------- */
.statement { background: var(--ink); color: #e9dccb; }
.statement .narrow { padding-top: 120px; padding-bottom: 120px; }
.statement .eyebrow { color: #f0b37a; }
.statement h2 { color: #fbf4ea; font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.14; letter-spacing: -0.8px; margin: 16px 0 26px; text-wrap: balance; }
.statement p { font-size: 18.5px; line-height: 1.75; margin: 0 0 18px; color: #d9cbb8; }
@media (max-width: 640px) { .statement h2 { font-size: 33px; } .statement .narrow { padding-top: 88px; padding-bottom: 88px; } }

/* ---------- compare ---------- */
.compare { border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; background: var(--paper); }
.compare thead th.us { color: var(--rust); }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 26%; }
.compare td.us { color: var(--ink); background: rgba(243, 225, 208, 0.35); }
.compare td { color: var(--muted); }
.compare-note { margin: 22px auto 0; text-align: center; font-size: 15.5px; color: var(--muted); max-width: 640px; }
.compare-note a { color: var(--rust); font-weight: 600; }
@media (max-width: 640px) {
  .compare th, .compare td { padding: 14px 14px; font-size: 14px; }
}

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 18px; font-weight: 650; letter-spacing: -0.1px; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--rust); border-bottom: 2px solid var(--rust);
  transform: rotate(45deg); transition: transform 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0 0 24px; color: var(--body-ink); font-size: 16.5px; line-height: 1.7; }
.faq .ans a { color: var(--rust); font-weight: 600; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final .box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 88px 24px;
  background: linear-gradient(160deg, #fae0af 0%, #f3c98e 100%);
}
.final .box::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%; height: 90%;
  background: #523728; border-radius: 50% 50% 0 0; opacity: 0.08;
}
.final h2 { position: relative; font-family: var(--serif); font-weight: 600; font-size: 48px; letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px; text-wrap: balance; }
.final p { position: relative; margin: 0 0 32px; font-size: 18px; color: #5e4636; }
.final .store-btn { position: relative; }
@media (max-width: 640px) { .final h2 { font-size: 34px; } .final .box { padding: 64px 20px; border-radius: 26px; } }

/* ---------- article (keyword pages) ---------- */
.article-hero { padding: 72px 0 24px; text-align: center; }
.article-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 54px; line-height: 1.08; letter-spacing: -1.2px; margin: 16px auto 20px; max-width: 760px; text-wrap: balance; }
.article-hero .lede { font-size: 19px; color: var(--body-ink); max-width: 620px; margin: 0 auto 30px; text-wrap: pretty; }
.prose { padding-top: 40px; padding-bottom: 40px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.5px; line-height: 1.2; margin: 56px 0 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.75; color: var(--body-ink); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--rust); font-weight: 600; }
.prose .callout { margin: 32px 0; padding: 24px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--hairline); }
.prose .callout p { margin: 0; }
@media (max-width: 640px) { .article-hero h1 { font-size: 38px; } .prose h2 { font-size: 27px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.foot p { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; max-width: 300px; }
.foot h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.2px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.foot li a:hover { color: var(--ink); }
.legal { padding-bottom: 40px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal a { color: var(--muted); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- entrance (hero: plays on load, no JS needed) ---------- */
.rise { animation: rise 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.16s; }
.rise.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chip { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
