/* ============================================
   unflare — landing page
   Minimal app-landing style, warm cream brand
   ============================================ */

:root {
  --bg: #FAF9F7;
  --bg-soft: #F3EFEA;
  --ink: #232323;
  --ink-soft: #45423a;
  --muted: #8A8578;
  --sage: #6B8F71;
  --sage-dark: #587a5e;
  --sage-tint: #EAF0EB;
  --hairline: #E9E4DB;
  --card: #FFFFFF;
  --font-head: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }

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

a { color: var(--sage-dark); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.95);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--sage-dark); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important; font-size: 14px !important;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }
@media (max-width: 640px) { .nav-links li:not(.nav-cta-li) { display: none; } }

/* ---------- App Store badge ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #111; color: #fff; text-decoration: none;
  padding: 11px 22px 11px 18px; border-radius: 13px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.store-badge .sb-text { text-align: left; line-height: 1.15; }
.store-badge .sb-small { display: block; font-size: 10.5px; font-weight: 400; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge .sb-big { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Phone frames ---------- */
.iphone {
  border-radius: 46px;
  border: 10px solid #1b1b1d;
  background: #1b1b1d;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(35, 35, 35, 0.18), 0 4px 14px rgba(35, 35, 35, 0.08);
}
.iphone img { width: 100%; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 0; overflow: hidden; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--sage-dark); background: var(--sage-tint);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); max-width: 720px; margin: 0 auto 18px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin: 0 auto 32px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.hero-phone {
  position: relative;
  width: min(370px, 84vw);
  margin: 64px auto 0;
}
.hero-phone .iphone { border-bottom: none; border-radius: 46px 46px 0 0; box-shadow: 0 30px 80px rgba(35,35,35,0.16); }
.hero-phone::after {
  content: ""; position: absolute; left: -40px; right: -40px; bottom: -2px; height: 46%;
  background: linear-gradient(180deg, rgba(250,249,247,0) 0%, var(--bg) 88%);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tag {
  display: block; text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.section h2 { font-size: clamp(28px, 3.8vw, 40px); text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; font-size: 17px; color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* scan section (phone + features) */
.scan-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 72px; align-items: center; margin-top: 64px;
}
.scan-grid .iphone { width: min(300px, 80vw); justify-self: center; }
.features { display: flex; flex-direction: column; gap: 34px; max-width: 440px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-ic {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--sage-tint); color: var(--sage-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-ic svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17.5px; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--ink-soft); }
.features .store-badge { align-self: flex-start; margin-top: 6px; }
@media (max-width: 880px) {
  .scan-grid { grid-template-columns: 1fr; gap: 48px; }
  .features { margin: 0 auto; }
}

/* phone rows (trio / duo) */
.phone-row { display: grid; gap: 40px; margin-top: 64px; }
.phone-row.three { grid-template-columns: repeat(3, 1fr); }
.phone-row.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.phone-item { text-align: center; }
.phone-item .iphone { width: min(280px, 78vw); margin: 0 auto; }
.phone-item h3 { font-size: 17px; margin: 24px 0 6px; }
.phone-item p { font-size: 14.5px; color: var(--ink-soft); max-width: 280px; margin: 0 auto; }
@media (max-width: 880px) {
  .phone-row.three, .phone-row.two { grid-template-columns: 1fr; gap: 56px; }
}

/* swap section (text + phone) */
.swap-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 72px; align-items: center; margin-top: 0;
}
.swap-copy h2 { text-align: left; }
.swap-copy .section-sub { text-align: left; margin: 0 0 22px; }
.swap-copy ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.swap-copy li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-soft); }
.swap-copy li::before { content: "✓"; color: var(--sage-dark); font-weight: 700; }
.swap-grid .iphone { width: min(300px, 80vw); justify-self: center; }
@media (max-width: 880px) {
  .swap-grid { grid-template-columns: 1fr; gap: 48px; }
  .swap-copy h2, .swap-copy .section-sub { text-align: center; }
  .swap-copy ul { max-width: 380px; margin: 0 auto; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 680px; margin: 56px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 300; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 4px 20px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 110px 0 120px; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.final-cta p { font-size: 17px; color: var(--ink-soft); margin-bottom: 34px; }
.final-cta .hero-note { margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 52px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 24px; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--sage-dark); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.footer-bottom a { color: inherit; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 10px; }
.legal .legal-updated { color: var(--muted); font-size: 14.5px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin: 40px 0 14px; }
.legal h3 { font-size: 16.5px; margin: 26px 0 10px; font-family: var(--font-head); }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal .legal-callout {
  background: var(--sage-tint); border-radius: 14px; padding: 18px 22px;
  font-size: 15px; color: var(--ink-soft); margin: 20px 0;
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
