/* Ovrlay marketing site — mirrors the app's dark editorial design system. */

:root {
  --canvas: #0e0e10;
  --surface: #17171a;
  --surface-raised: #1f1f24;
  --border: #2a2a30;
  --text: #f3eee6;
  --text-dim: #9a948a;
  --accent: #e0a458;
  --accent-text: #141210;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle full-page grain, like the app canvas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/grain.jpg") repeat;
  background-size: 700px;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand { font-family: var(--serif); font-weight: 400; }

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand { font-size: 28px; color: var(--text); text-decoration: none; }
nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
}
nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede { color: var(--text-dim); font-size: 19px; margin: 24px 0 36px; max-width: 44ch; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.badge.primary { background: var(--accent); color: var(--accent-text); }
.badge.secondary { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); }
.badge .soon { display: block; font-weight: 400; font-size: 11px; opacity: 0.7; }

/* the hero "photo" — real app overlays composited in CSS, exactly like
   the app composites them in Skia */
.demo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 45% at 62% 30%, #f0e2c8 0%, rgba(240,226,200,0) 60%),
    linear-gradient(155deg, #3a6ea5 0%, #c46d3b 55%, #22333b 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.demo .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo .leak   { mix-blend-mode: screen;  opacity: 0.9; }
.demo .grain  { mix-blend-mode: overlay; opacity: 0.65; }
.demo .border { mix-blend-mode: multiply; opacity: 0.9; }
.demo figcaption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 12px;
  color: rgba(243,238,230,0.75);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--border); }
.kicker {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- packs strip ---------- */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pack {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}
.pack img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.pack.dark span { color: var(--text); }
.pack.light span { color: #23211d; text-shadow: none; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; }
.plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.plan.featured { border-color: var(--accent); position: relative; }
.plan .tag {
  position: absolute;
  top: -11px;
  right: 22px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 5px;
}
.plan h3 { font-size: 22px; }
.plan .price { font-size: 34px; font-family: var(--serif); margin: 10px 0 4px; }
.plan .per { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; }
.plan li { color: var(--text-dim); font-size: 15px; padding: 5px 0; }
.plan li::before { content: "✓  "; color: var(--accent); }

/* ---------- signup ---------- */
.signup-form { display: flex; gap: 12px; max-width: 480px; }
.signup-form input {
  flex: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--sans);
}
.signup-form input:focus { outline: none; border-color: var(--accent); }
.signup-form button { border: none; cursor: pointer; font-family: var(--sans); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--text-dim); margin-right: 22px; }
footer a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; padding: 40px 0 80px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 56px; }
  .demo { max-width: 380px; }
  .grid { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  nav a { margin-left: 16px; }
}
