:root {
  --ink: #2a1418;
  --muted: #6e5a5e;
  --bg: #ffffff;
  --soft: #fff5f1;
  --line: #f1ddd7;
  --brand-1: #a8295c;
  --brand-2: #ff7a45;
  --cream: #ffe8c8;
  --accent: #c8364f;
  --radius: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fbeeea;
    --muted: #c4abad;
    --bg: #1a0f13;
    --soft: #25161b;
    --line: #3b252b;
    --accent: #ff8f75;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

img { max-width: 100%; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-1), #e0475f 55%, var(--brand-2));
  color: #fff;
  padding: 72px 0;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 20px; margin: 0 0 28px; max-width: 30em; text-shadow: 0 1px 2px rgb(80 0 30 / .25); }
.hero-art { justify-self: center; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(circle, rgb(255 232 200 / .35), transparent 65%);
}
.hero-art img {
  position: relative; display: block;
  width: min(300px, 70vw); height: auto;
  border-radius: 22.5%;
  box-shadow: 0 30px 60px rgb(70 0 30 / .4);
  transform: rotate(-4deg);
}
/* Used once app screenshots are added to /assets */
.hero-shot { justify-self: center; width: min(340px, 100%); height: auto; border-radius: 28px; filter: drop-shadow(0 24px 40px rgb(0 0 0 / .35)); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .45);
  color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 12px; font-weight: 600; line-height: 1.3;
}
.badge:hover { background: rgb(255 255 255 / .26); }
.badge small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.hero-note { font-size: 15px !important; opacity: .9; margin: 18px 0 0 !important; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .emoji { font-size: 26px; display: block; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 700;
}
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.gallery img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgb(50 10 20 / .15); }

.privacy-callout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy-callout div { border-left: 3px solid var(--accent); padding-left: 16px; }
.privacy-callout strong { display: block; }
.privacy-callout span { color: var(--muted); font-size: 16px; }

/* Documents (privacy / support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--soft); }
.doc details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p, .doc details ol, .doc details ul { margin: 10px 0 0; }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; justify-self: start; }
  .hero-art img { width: 132px; }
  .features, .privacy-callout, .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .nav { gap: 14px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}

@media (min-width: 821px) and (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
