/* Home page. Same palette as the app (src/ui/theme.js) and the legal pages (styles.css). */
:root {
  --bg: #0f1216;
  --surface: #181c22;
  --surface-2: #1f242c;
  --border: #2c333d;
  --text: #eceef1;
  --muted: #a3acb8;
  --accent: #6fd3b8;
  --on-accent: #0f1216;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  background: rgba(15, 18, 22, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; }
.brand img { border-radius: 9px; }
.top-links { display: flex; gap: 24px; font-size: 15px; }
.top-links a { color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head .sub { color: var(--muted); margin-top: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; padding-top: 48px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.035em; }
.lede { color: var(--muted); font-size: 19px; margin-top: 22px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}
.text-link { text-decoration: none; font-weight: 550; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.pills li { font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.hero-phone { display: flex; justify-content: center; }

.phone {
  width: 300px;
  height: auto;
  border-radius: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 10px #0b0d10;
}
.phone.small { width: 260px; border-radius: 36px; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promises article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.promises h2 { font-size: 21px; margin-bottom: 10px; }
.promises p { color: var(--muted); }

/* Features */
.feature-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; margin-bottom: 64px; }
.feature-row.reverse { grid-template-columns: auto 1fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: 28px; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }

/* Security */
.spec { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.spec dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.spec dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 12px; }
.price span { font-size: 17px; font-weight: 500; color: var(--muted); }
.plan p:last-child { color: var(--muted); font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Android waitlist */
#android { scroll-margin-top: 72px; }
.notify { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.notify input[type="email"] {
  flex: 1 1 260px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.notify input[type="email"]::placeholder { color: var(--muted); opacity: 0.7; }
.notify input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.notify button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.notify button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.notify .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; max-width: 760px; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 20px 56px; border-top: 1px solid var(--border); display: grid; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.foot-brand img { border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.foot p { color: var(--muted); font-size: 13px; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Tablet */
@media (max-width: 900px) {
  .hero, .feature-row, .feature-row.reverse, .spec { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-row img, .spec img { justify-self: center; }
  .promises, .grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .top-links a:not(:last-child) { display: none; }
  .hero { padding-top: 24px; }
  .lede { font-size: 17px; }
  .promises, .grid, .plans { grid-template-columns: 1fr; }
  .spec dl > div { grid-template-columns: 1fr; gap: 4px; }
  .phone { width: 250px; border-radius: 34px; }
  .phone.small { width: 230px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Added for the fuller site: trust strip, steps, security card, scenario,
      compare callout, article pages (features and comparisons). ── */

.trust {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust b { color: var(--text); font-weight: 600; }
/* Separators sit after each item, so a wrapped line never starts with one. */
.trust span:not(:last-child)::after { content: '·'; margin-left: 14px; color: var(--border); }

.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.explainer .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.explainer .box h3 { font-size: 19px; margin-bottom: 10px; }
.explainer .box p { color: var(--muted); }
.explainer .box.bad h3::before { content: '✕  '; color: #e46a6a; }
.explainer .box.good { border-color: var(--accent); }
.explainer .box.good h3::before { content: '✓  '; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.card-link:hover { border-color: var(--accent); }
.card-link h3 { font-size: 18px; }
.card-link p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link span { color: var(--accent); font-size: 14px; font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: '0' counter(step); display: block; color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.code {
  margin: 0;
  background: #0b0d10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c9d1d9;
}
.code .k { color: var(--accent); }
.code .c { color: #6b7684; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split .ticks { margin-top: 4px; }

.scenario { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 48px; }
.scenario h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.scenario > p { color: var(--muted); max-width: 640px; }
.scenario .ticks { margin-top: 28px; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.scenario .ticks strong { display: block; color: var(--text); }

.limits { border-left: 3px solid var(--accent); padding-left: 22px; }
.limits li { color: var(--muted); }

/* Article pages */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.article { max-width: 760px; padding-top: 24px; }
.article h1 { font-size: clamp(36px, 5vw, 54px); margin: 6px 0 18px; }
.article .lede { max-width: none; }
.article h2 { font-size: 26px; margin: 48px 0 12px; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { color: var(--muted); }
.article p + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 8px; }
.article strong { color: var(--text); }
.article .code { margin-top: 18px; }
.article .faq { padding-top: 8px; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-top: 20px; }
.note p { margin: 0; }

.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--surface); font-size: 14px; color: var(--muted); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text); }
.compare td:first-child small { display: block; color: var(--muted); font-size: 13px; }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--muted); }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }

@media (max-width: 900px) {
  .explainer, .split { grid-template-columns: 1fr; }
  .cards, .steps, .more { grid-template-columns: 1fr 1fr; }
  .scenario { padding: 32px; }
  .scenario .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .steps, .more { grid-template-columns: 1fr; }
  .scenario { padding: 24px; border-radius: 22px; }
  .trust { border-radius: 14px; }
}

/* Comparison table on phones: one card per row, answers labelled underneath. */
@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 6px 0; }
  .compare td { border: 0; padding: 6px 16px; }
  .compare td:nth-child(2)::before { content: 'Sealed: '; color: var(--muted); font-weight: 500; }
  .compare td:nth-child(3)::before { content: var(--other, 'Hidden album: '); color: var(--muted); font-weight: 500; }
}

/* Guides and comparison pages built by scripts/build_guides.py */
.top-links .top-cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}
.top-links .top-cta:hover { color: var(--on-accent); filter: brightness(1.06); }
.guide-date { color: var(--muted); font-size: 14px; margin: -6px 0 22px; }
.answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
}
.article .answer p { color: var(--text); font-size: 18px; }
.article .answer .answer-label { color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.guide-cta {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.article .guide-cta p { color: var(--muted); }
.article .guide-cta .guide-cta-title { color: var(--text); font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.guide-cta .store { margin-top: 16px; }
.guides-h1 { font-size: clamp(36px, 5vw, 54px); }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) {
  .guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-links .top-cta { padding: 7px 12px; font-size: 14px; }
}
