/* LIVRA — graphite web theme. Mirrors the app's "Livra Graphite" token layer:
   near-black canvas, graphite surfaces, a single warm gold accent, monochrome
   ink brand. Self-contained (system font stack, no web fonts). */

:root {
  --bg:        #0e0f12;   /* app darkCanvas */
  --bg-band:   #101216;   /* alternating band */
  --card:      #16181d;
  --card-2:    #1b1e24;
  --line:      rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.055);
  --ink:       #f0f1f3;   /* darkOnSurface */
  --muted:     #9ba0a6;   /* darkOnSurfaceVariant */
  --faint:     #71757c;
  --gold:      #e8a13d;   /* the one warm accent */
  --gold-dim:  #caa15e;
  --steel:     #93a0b0;
  --green:     #33b07d;
  --radius:    20px;
  --maxw:      1120px;
  --pad:       clamp(1.1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p  { margin: 0; color: var(--muted); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}

/* ── top nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .16em; font-size: 1.02rem; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links a:not(.nav-cta) { display: none; } }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem .9rem;
  color: var(--ink) !important; font-weight: 600;
}
.nav-cta:hover { border-color: rgba(255,255,255,.3); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 640px; z-index: 0;
  background:
    radial-gradient(58% 42% at 72% 8%, rgba(232,161,61,.10), transparent 70%),
    radial-gradient(46% 40% at 12% 0%, rgba(147,160,176,.10), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.6rem; color: var(--faint); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { order: -1; max-width: 340px; margin: 0 auto; }
}

/* store chips (coming soon) */
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: 13px; padding: .6rem .95rem;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem;
}
.chip small { display: block; color: var(--faint); font-weight: 500; font-size: .72rem; letter-spacing: .02em; }
.chip .ic { width: 20px; height: 20px; fill: currentColor; opacity: .95; }

/* framed screenshot — the app's PromoShot language */
.shot {
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 2px 0 rgba(255,255,255,.03) inset;
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.hero-shot { justify-self: end; width: 100%; max-width: 380px; }
/* a tall portrait phone screenshot — keep it a sensible, centred size in a row */
.f-shot.phone { max-width: 300px; margin-inline: auto; }

/* ── feature rows ─────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--line-soft); }
.section.band { background: var(--bg-band); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { margin-top: .8rem; font-size: 1.05rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(2.6rem, 6vw, 4.5rem); }
.feature.rev .f-copy { order: 2; }
.feature .f-copy h3 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: .7rem; }
.feature .f-copy p { font-size: 1.06rem; }
.feature .f-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-dim); background: linear-gradient(145deg, #2a2c33, #1a1c22);
  border: 1px solid var(--line); margin-bottom: 1.1rem;
}
.feature .f-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature.rev .f-copy { order: 0; }
  .feature .f-shot { max-width: 420px; }
}

/* ── stat / trust strip ───────────────────────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip .cell { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 1.3rem 1.2rem; }
.strip .cell b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.strip .cell span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr 1fr; } }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { margin-bottom: .8rem; }
.cta p { max-width: 40ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta .hero-cta { justify-content: center; }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding: clamp(2.4rem, 6vw, 3.4rem) 0 3rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: flex-start; justify-content: space-between; }
.foot .brand { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .94rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { width: 100%; border-top: 1px solid var(--line-soft); margin-top: 1.6rem; padding-top: 1.4rem; font-size: .84rem; color: var(--faint); }
.foot-legal .disc { max-width: 62ch; }

/* ── legal (privacy / terms) ──────────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4rem) 0 3rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: .4rem; }
.legal .updated { color: var(--faint); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.32rem; margin: 2.4rem 0 .6rem; letter-spacing: -.01em; }
.legal h3 { font-size: 1.05rem; color: var(--ink); margin: 1.5rem 0 .4rem; }
.legal p, .legal li { color: #c4c8cd; }
.legal p { margin: .7rem 0; }
.legal ul { padding-inline-start: 1.2rem; }
.legal li { margin: .4rem 0; }
.legal a { color: var(--gold-dim); }
.legal a:hover { color: var(--gold); }
.legal strong { color: var(--ink); }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: start; }
.legal blockquote { border-inline-start: 3px solid var(--gold); margin: 1rem 0; padding: .3rem 1rem; color: var(--muted); }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.legal code { background: rgba(255,255,255,.06); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }
