/* Keeper — shared styles for the marketing site */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  /* Palette — moss/stone brand, near-black surface (see PRODUCT.md) */
  --bg: oklch(0.10 0 0);
  --surface: oklch(0.17 0.008 158);
  --surface-2: oklch(0.22 0.01 158);
  --border: oklch(0.30 0.012 158);
  --ink: oklch(0.93 0.006 158);
  --muted: oklch(0.68 0.01 158);
  --primary: oklch(0.50 0.11 158);
  --primary-hover: oklch(0.44 0.11 158);
  --accent: oklch(0.80 0.13 75);

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: min(72rem, 100% - 3rem);
  --radius: 14px;

  /* z-scale */
  --z-nav: 100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; max-width: 65ch; }
p.lede { max-width: 58ch; }

a { color: inherit; }

.muted { color: var(--muted); }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-mobile-cta { display: none; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease-out;
}
.nav-toggle-label span::before { content: ""; position: absolute; top: -7px; width: 22px; }
.nav-toggle-label span::after { content: ""; position: absolute; top: 7px; width: 22px; }

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--wrap-pad, 1.5rem) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
  }
  .nav-links li { width: 100%; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-right .nav-cta { display: none; }
  .nav-mobile-cta { display: inline-flex; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { color: var(--muted); font-size: 0.85rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, color-mix(in oklch, var(--bg) 35%, transparent) 0%, var(--bg) 92%),
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 25%, transparent) 55%),
    url("https://images.unsplash.com/photo-1741667353050-bb004f2e8191?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center 35%;
}
.hero-inner { max-width: 40rem; }
.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: white;
}
.hero p.lede {
  font-size: 1.15rem;
  color: color-mix(in oklch, white 82%, var(--muted));
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero .btn-ghost { border-color: color-mix(in oklch, white 30%, transparent); color: white; }

/* Reveal on load */
.reveal {
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* Section heading */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* Pillars — three distinct mock-UI cards, not a repeated identical grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.15em; }
.pillar .copy { color: var(--muted); font-size: 0.95rem; margin: 0; }

.mock { border-radius: 10px; padding: 1rem; font-size: 0.85rem; }

.mock-spend { background: var(--bg); border: 1px solid var(--border); }
.mock-spend .row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed var(--border); }
.mock-spend .row:last-child { border-bottom: none; }
.mock-spend .amt { font-family: var(--font-head); font-weight: 600; }
.mock-spend .amt.out { color: var(--ink); }
.mock-spend .amt.in { color: var(--accent); }

.mock-tasks { background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.65rem; }
.mock-tasks .item { display: flex; align-items: center; gap: 0.65rem; }
.mock-tasks .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; }
.mock-tasks .box.done { background: var(--primary); border-color: var(--primary); }
.mock-tasks .item.done span { color: var(--muted); text-decoration: line-through; }

.mock-notes { background: var(--bg); border: 1px solid var(--border); }
.mock-notes .tag { display: inline-block; font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.mock-notes p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: none; }

/* Statement / pull-quote break */
.statement {
  text-align: left;
}
.statement blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  max-width: 22ch;
  text-wrap: balance;
}
.statement blockquote strong { color: var(--accent); font-weight: 600; }
.statement cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  color: var(--muted);
  font-size: 1rem;
}

/* Feature rows — alternating, asymmetric */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 8vw, 6rem); }
.feature-row:nth-child(even) .feature-visual { order: 2; }
.feature-row h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
}
.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* CTA band */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band .wrap { max-width: 40rem; }
.cta-band .actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Support page */
.page-header {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
}
.contact-card h2 { font-size: 1.1rem; }
.contact-card .email {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  margin: 0.75rem 0 1rem;
}
.contact-card .email:hover { text-decoration: underline; }
.contact-card .fine { color: var(--muted); font-size: 0.85rem; margin: 0; }

.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 1rem; }

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease-out;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}
details.faq .faq-body p:last-child { margin-bottom: 0; }

.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.checklist h2 { font-size: 1.3rem; }
.checklist ol { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.checklist li { margin-bottom: 0.6rem; }
.checklist li::marker { color: var(--accent); font-weight: 600; }

.status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}
