:root {
  --paper: #f1ede4;
  --surface: #fbf8f1;
  --ink: #232528;
  --mist: #5b626b;
  --fog: #949aa2;
  --accent: #6a59be;
  --accent-soft: #a99be0;
  --rule: #e4dfd4;
  /* Device frame + App Store badge adapt per theme (see dark block below).
     On a near-black page a dark bezel and a black badge lose all definition,
     so both get inverted/ringed rather than left to blend in. */
  --phone-bezel: #12141A;
  --phone-ring: rgba(0, 0, 0, 0);
  --phone-shadow: 0 24px 60px -18px rgba(20, 16, 40, .42), 0 4px 14px rgba(20, 16, 40, .10);
  --radius: 18px;
  --maxw: 1040px;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d10;
    --surface: #14171c;
    --ink: #e9e6e0;
    --mist: #aeb7c2;
    --fog: #5c646e;
    --accent: #b4a6ec;
    --accent-soft: #a99be0;
    --rule: #23272f;
    /* Lift the device off the background: a light hairline ring instead of a
       shadow (shadows are invisible on dark), and Apple's light badge. */
    --phone-bezel: #1C2027;
    --phone-ring: rgba(233, 230, 224, .22);
    --phone-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  }
}

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

/* Sections are anchor targets and the header is sticky (64px) — without this,
   jumping to #pricing parks the heading underneath the header. */
:target, section[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand svg { display: block; }
.nav a { color: var(--mist); margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  color: var(--accent); font-size: 14px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08;
  margin: 0 0 18px; max-width: 15ch; letter-spacing: -0.01em;
}
.hero p.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--mist); max-width: 46ch; margin: 0 0 30px; }
.hero-shot { display: flex; justify-content: center; }

/* Phone frame */
.phone {
  border-radius: 42px; background: var(--phone-bezel); padding: 10px;
  box-shadow: var(--phone-shadow), 0 0 0 1px var(--phone-ring);
  max-width: 300px; width: 100%;
}
.phone img {
  display: block; width: 100%; height: auto; border-radius: 33px;
  /* Keeps the dark UI from bleeding into the dark bezel. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.badges { display: flex; gap: 14px; flex-wrap: wrap; }
/* Official Apple "Download on the App Store" badge.
   The artwork carries its own background and lockup, so it must not be
   restyled — no background, border or padding of ours. Apple requires a
   minimum height of 40px and clear space of >= 1/4 the badge height. */
.appstore {
  display: inline-block; line-height: 0; border-radius: 8px;
  /* Explicitly cleared: the badge artwork supplies its own background and
     corners, so any box of ours would render as an ugly frame around it. */
  background: none; padding: 0; border: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.appstore img { display: block; height: 48px; width: auto; }
.appstore:hover { text-decoration: none; opacity: .85; transform: translateY(-1px); }
.hint { color: var(--fog); font-size: 13px; margin-top: 14px; }

/* Privacy banner */
.privacy-strip {
  margin: 48px auto; max-width: 720px; text-align: center;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px 30px;
}
.privacy-strip strong { color: var(--accent); }

/* Features */
.features { padding: 32px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 26px;
}
.card .ic { color: var(--accent); margin-bottom: 12px; }
.card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.card p { color: var(--mist); font-size: 15px; margin: 0; }

/* Section heading */
.section-title { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); text-align: center; margin: 56px 0 8px; }
.section-sub { text-align: center; color: var(--mist); margin: 0 auto 34px; max-width: 44ch; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.legal .updated { color: var(--fog); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-family: var(--serif); font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .note { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; color: var(--mist); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal th { color: var(--mist); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 34px 0; margin-top: 40px; color: var(--fog); font-size: 14px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer nav a { color: var(--mist); margin-left: 20px; }
.site-footer nav a:first-child { margin-left: 0; }

/* How it works */
.how { padding: 16px 0 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.steps h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.steps p { color: var(--mist); font-size: 15px; margin: 0; }

/* Showcase */
.showcase { padding: 8px 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; justify-items: center; }
.shots figure { margin: 0; text-align: center; max-width: 300px; }
.shots figcaption { color: var(--mist); font-size: 14px; margin-top: 14px; }

/* Pricing */
.pricing { padding: 8px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .02em;
}
.plan h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.plan .price { font-size: 34px; font-weight: 700; margin: 0 0 18px; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--mist); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { color: var(--mist); font-size: 15px; padding: 7px 0 7px 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-note { color: var(--fog); font-size: 13px; margin: 16px 0 0; }

/* FAQ */
.faq { padding: 8px 0 16px; }
.faq .wrap { max-width: 760px; }
.faq details {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; 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: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--mist); margin: 0 0 18px; font-size: 15px; }

/* Closing CTA */
.cta { text-align: center; padding: 56px 0 8px; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.cta p { color: var(--mist); margin: 0 0 26px; }
.cta .badges { justify-content: center; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1, .hero p.lede { max-width: none; margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero-shot { order: -1; }
  .phone { max-width: 260px; }
}

@media (max-width: 560px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer nav a { margin: 0 20px 0 0; }
  .nav a:first-child { margin-left: 0; }
  .nav { display: none; }
}
