/* Base colours from app/MyGraine/Theme.swift; bronze and champagne accents for the site.
   The app is dark only, and so is the site. */
:root {
  --ink: #0b0a09;
  --bronze: #a8865a;
  --bronze-deep: #3a2e20;
  --champagne: #e2cfae;
  --background: #121212;
  --card: #1d1d1b;
  --raised: #2a2a28;
  --text: #d6d4cc;
  --bright: #e8e6de;
  --muted: #8a8780;
  --talk: #2b2340;
  --talk-text: #cfccf5;
  --warn: #d9b56b;
  --save-text: #bfde96;
  --line: #2f2f2c;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { color: var(--bright); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

section { padding: 72px 0; }
section[id] { scroll-margin-top: 56px; }
section.wrap { padding-left: 16px; padding-right: 16px; }
.band { background: #171716; border-block: 1px solid var(--line); }

.section-lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.muted { color: var(--muted); }
.eyebrow { color: var(--bronze); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { color: var(--bright); font-weight: 700; font-size: 1.1rem; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--bright); }

/* Hero: near-black panel beside rippled bronze */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(88vh, 820px); padding: 0;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.hero-text {
  align-self: center; justify-self: end;
  width: 100%; max-width: 520px; padding: 64px 48px 64px 16px;
}
.lede { font-size: 1.2rem; color: var(--text); }
.note { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--bronze-deep); padding-left: 12px; }
.hero-metal {
  position: relative; overflow: hidden;
  display: grid; place-items: center; padding: 48px 16px;
  border-left: 1px solid #5a4630;
  box-shadow: inset 24px 0 40px -20px rgba(0, 0, 0, 0.9);
}
.ripple { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-metal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0) 55%, rgba(11, 10, 9, 0.55));
}
.hero-metal .phone { position: relative; z-index: 1; }

/* Phone frame around a screenshot */
.phone {
  margin: 0;
  border-radius: 38px;
  padding: 8px;
  background: #050505;
  border: 1px solid #3a3a37;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px #000;
  max-width: 300px;
  justify-self: center;
}
.phone img { border-radius: 31px; }
.hero-phone { max-width: 320px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 20px; }
.step-n {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bronze-deep); color: var(--champagne); font-weight: 700;
  margin-bottom: 12px;
}
.steps p { margin: 0; }

/* Spoken example */
.example { display: grid; gap: 12px; max-width: 640px; margin: 0 auto 40px; }
.bubble { border-radius: 18px; padding: 16px 18px; }
.bubble .label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.said { background: var(--bronze-deep); color: var(--champagne); margin-right: 15%; font-size: 1.1rem; }
.heard { background: var(--card); border: 1px solid var(--line); margin-left: 15%; }
.heard .line { display: block; }
.heard b { color: var(--bronze); font-weight: 600; margin-right: 6px; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Report */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.ticks { padding: 0; margin: 0 0 1.2em; list-style: none; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.85em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--bronze);
}

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy-grid .lock { grid-row: span 3; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, #3a2e20, #1f1913); border: 1px solid #5a4630; }
.privacy-grid .lock h3 { color: var(--champagne); font-size: 1.35rem; }
.privacy-grid .lock p { color: #cdbfa8; }
.icon { width: 64px; height: 64px; fill: none; stroke: var(--champagne); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.privacy-grid .card:not(.lock) { grid-column: span 2; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery .phone { max-width: 240px; margin: 0 auto; border-radius: 30px; padding: 6px; }
.gallery .phone img { border-radius: 25px; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

.built { max-width: 760px; }
.built p { margin: 0; }

.foot { padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: 0.9rem; }

/* Tablet */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid .lock { grid-row: auto; grid-column: span 2; }
  .privacy-grid .card:not(.lock) { grid-column: auto; }
  .privacy-grid .card:last-child { grid-column: span 2; }
}

/* Phone */
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .top nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { justify-self: stretch; max-width: none; padding: 32px 16px; }
  .hero-metal { border-left: 0; border-top: 1px solid #5a4630; box-shadow: inset 0 24px 40px -20px rgba(0, 0, 0, 0.9); padding: 40px 16px; }
  .hero-phone, .split .phone { max-width: 260px; }
  .steps, .two-col, .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid .lock, .privacy-grid .card:last-child { grid-column: auto; }
  .said { margin-right: 8%; }
  .heard { margin-left: 8%; }
  .gallery { gap: 16px; }
  .gallery .phone { border-radius: 22px; padding: 4px; }
  .gallery .phone img { border-radius: 19px; }
}
