:root {
  --ink: #1b1f3a;          /* deep indigo, from the app's splash */
  --ink-2: #262b4d;
  --paper: #f6efe0;        /* mosaic cream */
  --teal: #16a39a;         /* the app's accent */
  --teal-dark: #0f7f78;
  --terracotta: #d98a5b;
  --text: #20243f;
  --muted: #5f6480;
  --card: #ffffff;
  --border: rgba(27, 31, 58, 0.12);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12142a;
    --text: #ece8dc;
    --muted: #a9aac4;
    --card: #1b1f3a;
    --border: rgba(236, 232, 220, 0.14);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .serif { font-family: "New York", Georgia, "Times New Roman", serif; }

a { color: var(--teal-dark); }
@media (prefers-color-scheme: dark) { a { color: #4fd1c7; } }

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 24px;
  background: rgba(27, 31, 58, 0.92);
  backdrop-filter: blur(10px);
}
.top .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #fff; text-decoration: none; font-weight: 600; }
.top .brand img { width: 30px; height: 30px; border-radius: 7px; }
.top a.link { color: #d9dcf0; text-decoration: none; font-size: 15px; }
.top a.link:hover { color: #fff; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #3b3f78 0%, var(--ink) 60%);
  color: #fff;
  text-align: center;
  padding: 72px 24px 88px;
}
.hero .icon {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 28px 0 14px; letter-spacing: -0.5px; }
.hero p.lead { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 2.4vw, 21px); color: #d9dcf0; }

.cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; font-size: 17px;
}
.button:hover { background: var(--teal-dark); }
.button.disabled { background: rgba(255, 255, 255, 0.16); color: #e7e9f8; cursor: default; }
.button.secondary { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.45); color: #fff; }
.button.secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- sections ---- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4.5vw, 40px); text-align: center; margin: 0 0 12px; }
section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

/* ---- screenshots ---- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 24px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: 0 0 auto; width: 260px; scroll-snap-align: center; text-align: center; }
.shots img {
  width: 100%; display: block; border-radius: 28px;
  border: 7px solid var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  background: var(--ink);
}
.shots figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; }
@media (min-width: 1100px) { .shots { justify-content: center; } }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }

/* ---- privacy band ---- */
.band { background: var(--ink); color: #fff; text-align: center; padding: 56px 24px; }
.band h2 { color: #fff; }
.band p { max-width: 640px; margin: 0 auto; color: #d9dcf0; }

/* ---- long-form pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { text-align: left; font-size: 24px; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.doc details summary { cursor: pointer; font-weight: 600; }
.doc details p { margin: 10px 0 0; color: var(--muted); }
.callout { background: var(--card); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 24px 44px; border-top: 1px solid var(--border); }
footer a { margin: 0 8px; }

@media (max-width: 560px) {
  .top { gap: 14px; padding: 10px 16px; }
  .top .brand span { display: none; }
  .hero { padding: 52px 20px 64px; }
}
