/* Shared design system for vivirie.com
   Default is the BlindSpot app's night navy (home, app, about, delete-account).
   The shop opts into the light warm paper palette with body.shop, so the
   workbooks look like their covers. */
:root {
  --bg: #0a121c;
  --bg-alt: #0e1928;
  --card: #122236;
  --card-border: #1f3550;
  --line: #172739;
  --text: #cfe0f2;
  --text-soft: #a2b8cb;
  --text-muted: #7f98b3;
  --heading: #eff5fa;
  /* App blue, from constants/theme.js accent. */
  --accent: #77a0f1;
  --accent-hover: #93b4f5;
  --accent-ink: #08111e;
  --accent-soft: #182b4d;
  --warm: #e5b472;
  --warm-hover: #edc48c;
  --warm-ink: #1a1206;
  --warm-soft: #2a2213;
  --blue-app: #77a0f1;
  --ghost-hover-border: #35527e;
  --header-bg: rgba(10, 18, 28, 0.9);
  --radius: 14px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Shop: the dark brown and gold of the live Gumroad store (vivirie.gumroad.com,
   tokens from printable-packs/launch/gumroad/gumroad-profile-landing.html), so
   leaving the blue pages for the workbooks, and then for Gumroad, feels like
   one walk rather than a jump. */
body.shop,
.theme-shop {
  --bg: #1c1811;
  --bg-alt: #211c14;
  --card: #272117;
  --card-border: #3a3323;
  --line: #2e2919;
  --text: #ede4d2;
  --text-soft: #c9bea8;
  --text-muted: #a79c86;
  --heading: #f6f0e4;
  --accent: #d2b269;
  --accent-hover: #e0c487;
  --accent-ink: #1c1811;
  --accent-soft: #3a311d;
  --warm: #d2b269;
  --warm-hover: #e0c487;
  --warm-ink: #1c1811;
  --warm-soft: #3a311d;
  --ghost-hover-border: #5a4d33;
  --header-bg: rgba(28, 24, 17, 0.92);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 1020px; margin: 0 auto; }
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--heading);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: 34px; line-height: 1.14; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.28; }
p { margin: 0; }
@media (min-width: 760px) {
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
}

section { padding: 56px 20px; }
@media (min-width: 760px) { section { padding: 72px 32px; } }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center { text-align: center; }
.lede { color: var(--text-soft); font-size: 17px; max-width: 600px; line-height: 1.65; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow-warm { color: var(--warm); }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pill-warm { background: var(--warm-soft); color: var(--warm); }

/* Header & Navigation */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--heading); }
.nav a[aria-current="page"] { color: var(--heading); background: var(--bg-alt); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-warm { background: var(--warm); color: var(--warm-ink); }
.btn-warm:hover { background: var(--warm-hover); color: var(--warm-ink); }
.btn-ghost { background: var(--card); border-color: var(--card-border); color: var(--heading); }
.btn-ghost:hover { border-color: var(--ghost-hover-border); background: var(--bg-alt); color: var(--heading); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Cards & Grids */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card p { color: var(--text-soft); font-size: 15px; }
.card h3 { margin-bottom: 8px; }
.card .btn { margin-top: 20px; }

/* Feature list on BlindSpot page */
.features { display: grid; gap: 16px; margin-top: 32px; text-align: left; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.feature h3 { font-size: 19px; }

/* Phone mockups on the BlindSpot page. Static pictures of real screens, built
   from the app's own default theme (constants/theme.js) so they match what
   people see after installing. Swap for real screenshots later by putting an
   <img> inside .phone-screen in place of the markup. */
.phones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 22px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2a436f transparent;
}
@media (min-width: 900px) {
  .phones { grid-auto-flow: row; grid-template-columns: repeat(3, 260px); justify-content: center; overflow: visible; }
}
.phone-item { scroll-snap-align: center; text-align: center; }
.phone {
  width: 260px;
  height: 540px;
  border-radius: 38px;
  background: #05090f;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px #24364d;
}
.phone-screen {
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #1a2d45;
  color: #eff5fa;
  font-size: 12px;
  line-height: 1.4;
  padding: 26px 16px 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-caption { margin-top: 16px; }
.phone-caption h3 { font-size: 18px; }
.phone-caption p { color: var(--text-soft); font-size: 14px; margin-top: 6px; }

.ps-eyebrow { color: #93adc2; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.ps-title { font-family: 'Newsreader', Georgia, serif; font-size: 19px; color: #eff5fa; }
.ps-head { display: flex; align-items: center; gap: 12px; background: #213851; border: 1px solid #375c9a; border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.ps-ring { width: 38px; height: 38px; flex: 0 0 auto; }
.ps-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 2px; border-bottom: 1px solid #2a4366; }
.ps-check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #77a0f1; flex: 0 0 auto; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #1a2d45; }
.ps-check.on { background: #77a0f1; }
.ps-row .t { color: #eff5fa; font-size: 13px; }
.ps-row.done .t { color: #6289b3; text-decoration: line-through; }
.ps-row .m { color: #93adc2; font-size: 10px; margin-top: 2px; }
.ps-section { margin-top: 16px; margin-bottom: 2px; }
.ps-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid #2a4366; padding: 9px 0 14px; color: #6289b3; font-size: 9px; }
.ps-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ps-tabs .on { color: #77a0f1; }
.ps-tabs i { font-style: normal; font-size: 14px; }

.ps-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 6px 30px; }
.ps-center .ps-eyebrow { color: #77a0f1; margin-top: 18px; }
.ps-center .ps-title { font-size: 26px; margin-top: 6px; }
.ps-center p { color: #a2b8cb; font-size: 12.5px; margin-top: 12px; line-height: 1.55; }
.ps-btn { width: 100%; margin-top: 20px; background: #77a0f1; color: #0b1730; border-radius: 12px; padding: 11px; font-weight: 700; font-size: 13px; }
.ps-link { margin-top: 12px; color: #93adc2; font-size: 12px; }

.ps-chart { background: #213851; border: 1px solid #375c9a; border-radius: 14px; padding: 12px; margin-top: 8px; }
.ps-chart-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ps-chart-top .n { font-size: 13px; color: #eff5fa; font-weight: 600; }
.ps-chart-top .c { font-size: 10px; color: #ffe42b; font-weight: 600; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps-slot { aspect-ratio: 1; border-radius: 8px; border: 1px dashed #375c9a; }
.ps-slot.f { border: 2px solid #fbfcfe; box-shadow: 0 2px 0 rgba(6, 12, 22, 0.5); }
.ps-habit { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #2a4366; }
.ps-habit .ps-check { border-color: #83b8a3; }
.ps-habit .ps-check.on { background: #83b8a3; }

.ps-routine { margin-top: 10px; background: #182f49; border: 1px solid #305886; border-radius: 12px; padding: 9px 11px; }
.ps-routine-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ps-routine-top .n { font-size: 13px; font-weight: 600; }
.ps-routine-top .m { font-size: 10px; color: #93adc2; }
.ps-step { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.ps-step.done span { color: #6289b3; text-decoration: line-through; }
.ps-check.teal { border-color: #77c8b8; width: 15px; height: 15px; font-size: 9px; border-radius: 5px; }
.ps-check.teal.on { background: #77c8b8; }
.ps-slot.f { overflow: hidden; }
.ps-slot svg { width: 100%; height: 100%; display: block; }

/* Thin underlined links, used under the BlindSpot pricing line. */
.text-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.text-links a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-links a:hover { color: var(--heading); }

/* Shop Product Cards */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.product .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product .meta { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.product .price { color: var(--heading); font-size: 20px; font-weight: 700; margin-top: 14px; }
.product .price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.product .btn { margin-top: auto; width: 100%; }
.product .price + .btn { margin-top: 14px; }

.product-wide { display: grid; }
@media (min-width: 760px) {
  .product-wide { grid-template-columns: 1fr 1.15fr; }
  .product-wide img { height: 100%; aspect-ratio: auto; border-bottom: none; border-right: 1px solid var(--line); }
  .product-wide .body { padding: 32px; }
  .product-wide .btn { width: auto; align-self: flex-start; }
}

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-soft); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Prose & Legal/About Pages */
.prose { max-width: 680px; }
.prose p + p, .prose p + ul, .prose p + ol { margin-top: 16px; }
.prose h2 { margin-top: 38px; margin-bottom: 12px; font-size: 24px; }
.prose ul, .prose ol { padding-left: 20px; color: var(--text-soft); line-height: 1.7; }
.prose li + li { margin-top: 6px; }
.prose p { color: var(--text-soft); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin-top: 18px;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.facts dt { color: var(--text-muted); font-weight: 600; }
.facts dd { margin: 0; color: var(--heading); }

/* Footer: one column per area. Add a column for each new product line. */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px 20px 30px;
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px 32px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 4px; color: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
.site-footer > p { max-width: 1020px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* body.app used to swap in the app blue on a light page. The whole site is
   app navy by default now, so it has nothing left to change. */
