/* ============================================================
   POCKET BRAINBOOK — editorial edition
   Simple. Content-first. Like a quality industry publication.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Stardos+Stencil:wght@400;700&display=swap');

:root {
  /* Branding (used sparingly) */
  --navy: #002776;
  --navy-deep: #001A4D;
  --gold: #00913A;
  --gold-bright: #FFDF00;

  /* Editorial neutrals */
  --paper: #FAF7F2;
  --paper-2: #F0EBE2;
  --ink: #1A1A1A;
  --ink-2: #333333;
  --muted: #6B6B6B;
  --rule: #D9D4C9;
  --rule-light: #E8E3D8;

  /* Dark chrome */
  --chrome: #002776;
  --chrome-text: #FFFFFF;
  --chrome-text-dim: rgba(255, 255, 255, 0.7);
  --chrome-rule: rgba(255, 255, 255, 0.12);

  --max: 1100px;
  --content-max: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
  font-weight: 400;
}

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.15s ease; }
a:hover { color: var(--ink); }

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

::selection { background: var(--gold-bright); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.content {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ============================================================
   TOP BAR (tagline above header on every page)
   ============================================================ */
.top-bar {
  background: #001A4D;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem var(--gutter);
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
  line-height: 1.45;
}

.top-bar strong {
  color: var(--gold-bright);
  font-weight: 600;
}

@media (max-width: 640px) {
  .top-bar {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-rule);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-link img { height: 110px; width: auto; }

.brand-link .brand-text {
  color: var(--chrome-text);
  font-family: 'Stardos Stencil', 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  color: var(--chrome-text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

nav a:hover { color: var(--chrome-text); border-bottom-color: var(--gold-bright); }

nav a.cta-mini {
  background: var(--gold-bright);
  color: var(--navy-deep);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: none;
  border-radius: 2px;
  transition: background 0.15s ease;
}

nav a.cta-mini:hover {
  background: var(--chrome-text);
  color: var(--navy-deep);
  border-bottom: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--chrome-rule);
  color: var(--chrome-text);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 2px;
}

@media (max-width: 800px) {
  nav ul { display: none; }
  .menu-toggle { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    background: var(--chrome);
    border: 1px solid var(--chrome-rule);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    min-width: 200px;
    z-index: 50;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.hero-meta strong { color: var(--gold); font-weight: 600; }

.hero h1 {
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin-bottom: 2rem;
  max-width: 50ch;
  line-height: 1.6;
}

.app-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.125rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.15s ease;
  border: 1px solid var(--ink);
}

.badge-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.badge-btn .badge-svg { width: 20px; height: 20px; flex-shrink: 0; }
.badge-btn .badge-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge-btn .badge-label small { font-size: 0.62rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1px; }
.badge-btn .badge-label strong { font-size: 0.95rem; font-weight: 700; }

.price-line {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.price-line strong { color: var(--ink); font-weight: 600; }

/* Hero image — simple, no rotation, no gimmicks */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(16, 40, 66, 0.25), 0 6px 20px -8px rgba(16, 40, 66, 0.15);
  border: 1px solid var(--rule);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { margin-bottom: 2rem; }

.section-head .label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.section-head h2 { margin-bottom: 0.75rem; }

.section-head .lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.6;
}

/* Subtle alternating bg for sections */
.section-alt { background: var(--paper-2); }

/* ----- Editorial prose blocks ----- */
.prose-block {
  max-width: var(--content-max);
  margin: 0 auto;
}

.prose-block p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose-block p strong { color: var(--ink); }

/* ----- Feature list (NOT cards) ----- */
.feature-list {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.feature-row:last-child { border-bottom: none; }

.feature-row .num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  font-style: italic;
}

.feature-row h3 {
  margin-bottom: 0.375rem;
  color: var(--ink);
}

.feature-row p {
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ----- Inside list (capabilities — simple inline list, NOT a grid) ----- */
.inside-list {
  max-width: var(--content-max);
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-2);
}

.inside-list .group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.inside-list .group:last-child { border-bottom: none; padding-bottom: 0; }

.inside-list .group-label {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: block;
}

.inside-list .group-items {
  color: var(--ink);
  font-weight: 500;
}

/* ----- Pull quote ----- */
.pullquote {
  max-width: var(--content-max);
  margin: 2rem auto;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--gold);
}

.pullquote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.pullquote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ----- Pricing block ----- */
.pricing-block {
  max-width: var(--content-max);
  margin: 0 auto;
}

.pricing-block .pricing-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.pricing-block .pricing-row:last-child { border-bottom: none; }

.pricing-block .price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.pricing-block .price-detail {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
}

.pricing-block .price-detail strong { color: var(--ink); }

/* ----- CTA block (simple, not full-bleed gold) ----- */
.cta-block {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cta-block h2 { margin-bottom: 0.75rem; }
.cta-block p { color: var(--ink-2); margin-bottom: 1.5rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-block .app-badges { justify-content: center; }

/* ----- Testimonials placeholder ----- */
.placeholder-note {
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  padding: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  max-width: var(--content-max);
  margin: 0 auto;
  border-radius: 2px;
}

/* ----- Side quote (right-floating testimonial aside) ----- */
.side-quote {
  float: right;
  width: 280px;
  margin: 0.5rem 0 1.5rem 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
}

.side-quote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 0.875rem 0;
}

.side-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .side-quote {
    float: none;
    width: auto;
    margin: 1.5rem 0;
  }
}

/* ----- FOOTER ----- */
footer {
  background: var(--chrome);
  color: var(--chrome-text-dim);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.footer-grid h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  color: var(--chrome-text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--chrome-text-dim);
  max-width: 32ch;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-brand img.footer-logo { width: 130px; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: var(--chrome-text);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.footer-grid a:hover { border-bottom-color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--chrome-rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-bright); }

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.footer-social a {
  color: var(--chrome-text);
  display: inline-flex;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--gold-bright); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

/* ============================================================
   PROSE PAGES (privacy, faq, v1-help, data-deletion)
   ============================================================ */
.prose-page {
  background: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.prose {
  max-width: var(--content-max);
  margin: 0 auto;
}

.prose h1 { margin-bottom: 0.5rem; }

.prose .alert {
  background: #FFF6E0;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.prose .alert h2 {
  margin: 0 0 0.6rem;
  padding: 0;
  border: none;
  color: #C0001A;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.3rem;
}
.prose .alert p { margin: 0.5rem 0 0; color: var(--ink); }
.prose .alert p:first-of-type { margin-top: 0; }

.prose .last-updated {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}

.prose p, .prose li {
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose a { color: var(--gold); }
.prose a:hover { color: var(--ink); }

.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.toc {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.toc h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.toc ol { padding-left: 1.5rem; margin: 0; }
.toc li { margin-bottom: 0.25rem; font-size: 0.95rem; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* FAQ details */
.faq-list {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

details {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  cursor: pointer;
}

details:first-child { border-top: 1px solid var(--rule); }

summary {
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
  line-height: 1;
}

details[open] summary::after { transform: rotate(45deg); }

details > p {
  margin-top: 0.875rem;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1rem;
  padding-right: 1.5rem;
}

details > p a { color: var(--gold); }
