/* Cognitive Warmth — Backbrain web styles. Mirrors the app palette and type. */

:root {
  --bg-deep: #15110d;
  --bg-card: #221c16;
  --bg-panel: #1c1813;
  --accent: #e8a87c;
  --accent-soft: #f0b88b;
  --accent-deep: #8e5536;
  --success: #98b894;
  --alert: #d68760;
  --text-primary: #f4ede1;
  --text-muted: #a89a87;
  --text-subtle: #8a7a64;
  --text-faint: #6b5f4f;
  --border-subtle: rgba(244, 237, 225, 0.06);
  --border-standard: rgba(244, 237, 225, 0.10);
}

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

html {
  background: radial-gradient(ellipse at 50% 0%, var(--bg-card) 0%, var(--bg-deep) 60%, #0f0c09 100%);
  background-attachment: fixed;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Legal-page container (privacy / terms / support / faq) ────────── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

header.brand-bar {
  display: flex;
  align-items: center;
  margin-bottom: 56px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 28px;
}

p.intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.container section {
  margin-bottom: 32px;
}

.container section h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.container section p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.container section p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-deep);
}

a:hover {
  border-bottom-style: solid;
}

.container footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.container footer a {
  color: var(--text-muted);
  border-bottom: none;
}

.container footer a:hover { color: var(--accent); }

/* ── Landing-page wrapper ──────────────────────────────────────────── */

body.landing { background: transparent; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

@media (max-width: 700px) {
  .page { padding: 18px 20px 60px; }
}

/* ── Site header (top bar with brand + small CTA) ──────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 32px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: rgba(232, 168, 124, 0.12);
  border: 1px solid rgba(232, 168, 124, 0.45);
  color: var(--accent);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-bottom: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 168, 124, 0.18);
  border-bottom: none;
}

@media (max-width: 600px) {
  .header-cta { display: none; }
}

/* ── Phone frame (used everywhere screenshots appear) ──────────────── */

.phone-frame {
  position: relative;
  width: 280px;
  background: #0a0806;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(232, 168, 124, 0.10),
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(232, 168, 124, 0.06);
  margin: 0 auto;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background: var(--bg-card);
  /* Aspect-ratio fallback: keeps a phone-shaped placeholder when the
     image hasn't been added yet so the layout doesn't collapse. */
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.phone-frame.small {
  width: 260px;
  border-radius: 30px;
  padding: 6px;
}

.phone-frame.small img { border-radius: 24px; }

@media (max-width: 700px) {
  .phone-frame { width: 240px; }
  .phone-frame.small { width: 220px; }
}

/* ── Hero split (copy left, screenshot right) ──────────────────────── */

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 32px 0 96px;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 56px;
    margin: 16px 0 72px;
  }
}

.hero-copy h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--text-primary);
  margin: 0 0 22px;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

@media (max-width: 700px) {
  .hero-copy h1 { font-size: 42px; letter-spacing: -1px; }
}

.hero-copy .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.pill.green { color: var(--success); background: rgba(152, 184, 148, 0.10); border: 1px solid rgba(152, 184, 148, 0.35); }
.pill.amber { color: var(--accent); background: rgba(232, 168, 124, 0.10); border: 1px solid rgba(232, 168, 124, 0.35); }
.pill.rust { color: var(--alert); background: rgba(214, 135, 96, 0.10); border: 1px solid rgba(214, 135, 96, 0.35); }

.app-store-cta {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 50%, #d68760 100%);
  color: #2a1a0e;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-radius: 14px;
  text-decoration: none;
  border-bottom: none;
  box-shadow: 0 0 30px rgba(232, 168, 124, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.app-store-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(232, 168, 124, 0.32);
  border-bottom: none;
}

.app-store-cta.large {
  padding: 18px 40px;
  font-size: 15px;
}

.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone-frame { width: 380px; }

@media (max-width: 900px) {
  .hero-shot .phone-frame { width: 320px; }
}

@media (max-width: 700px) {
  .hero-shot .phone-frame { width: 260px; }
}

/* ── Showcase (3 phones in a row) ──────────────────────────────────── */

.showcase {
  margin: 96px 0;
  text-align: center;
}

.showcase h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.showcase h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.showcase .sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 56px;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; gap: 64px; }
}

.showcase figure {
  margin: 0;
  text-align: center;
}

.showcase figcaption {
  margin-top: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.showcase figcaption .step-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 8px;
}

.showcase figcaption strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ── Value grid (4 cards) ──────────────────────────────────────────── */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 96px 0;
}

@media (max-width: 700px) {
  .value-grid { grid-template-columns: 1fr; margin: 72px 0; }
}

.value {
  padding: 28px 26px;
  border-radius: 16px;
  background: rgba(244, 237, 225, 0.025);
  border: 1px solid var(--border-subtle);
}

.value h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--accent);
}

.value p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ── Deep shot (text + screenshot, panel background) ───────────────── */

.deep-shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 96px 0;
  padding: 64px 56px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
}

@media (max-width: 900px) {
  .deep-shot {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 32px;
  }
}

.deep-text h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.deep-text h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.deep-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.deep-image { display: flex; justify-content: center; }
.deep-image .phone-frame { width: 420px; }

@media (max-width: 900px) {
  .deep-image .phone-frame { width: 340px; }
}

@media (max-width: 700px) {
  .deep-image .phone-frame { width: 260px; }
}

/* ── Pricing ───────────────────────────────────────────────────────── */

.pricing {
  margin: 96px 0;
  text-align: center;
}

.pricing h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.pricing .sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .tier-row { grid-template-columns: 1fr; }
}

.tier {
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(244, 237, 225, 0.025);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.tier.featured {
  background: rgba(232, 168, 124, 0.06);
  border-color: rgba(232, 168, 124, 0.45);
  box-shadow: 0 0 40px rgba(232, 168, 124, 0.10);
}

.tier h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.tier.featured h4 {
  font-style: italic;
  color: var(--accent);
}

.tier .price {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1;
}

.tier .price .per {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.tier.featured .price { color: var(--accent); }

.tier > p:not(.price) {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ── Closing CTA ───────────────────────────────────────────────────── */

.closing {
  text-align: center;
  margin: 96px 0;
  padding: 72px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
}

.closing h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -1px;
  margin: 0 0 28px;
  color: var(--text-primary);
}

.closing h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

@media (max-width: 700px) {
  .closing h2 { font-size: 30px; }
  .closing { padding: 56px 22px; }
}

/* ── Site footer (landing) ─────────────────────────────────────────── */

.site-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
}

.footer-links a:hover { color: var(--accent); border-bottom: none; }

.footer-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  line-height: 1.65;
  color: var(--text-faint);
}

/* ── Small screens ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .container { padding: 40px 22px 60px; }
  .page-title { font-size: 36px; }
}
