/* --------------------------------------------------------------------------
   Cereboffins — landing page
   Palette: ink + paper warmth, electric sage accent
   -------------------------------------------------------------------------- */

:root {
  --ink: #0c0f14;
  --ink-soft: #161b24;
  --slate: #3d4654;
  --muted: #6b7587;
  --line: rgba(255, 255, 255, 0.08);
  --paper: #f4f1ea;
  --paper-2: #e8e4db;
  --accent: #3ecf8e;
  --accent-dim: #2a9d64;
  --accent-glow: rgba(62, 207, 142, 0.35);
  --warning: #f4b942;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
}

*,
*::before,
*::after {
  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;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
}

.logo:hover {
  color: var(--paper);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #1a6b4a 100%);
  box-shadow: 0 0 24px var(--accent-glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--paper);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 92%, white);
  color: var(--ink);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 28%, transparent);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, rgba(62, 207, 142, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(244, 185, 66, 0.06), transparent 50%),
    linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 45%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-title-accent {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: color-mix(in srgb, var(--paper) 72%, var(--accent));
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 52rem;
}

.hero-stats li {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-soft) 70%, transparent);
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--paper);
  margin-bottom: 0.2rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-text {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  max-width: 40rem;
}

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

.section-text.muted {
  font-size: 0.9375rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.section-head.narrow {
  max-width: 36rem;
}

.section-sub {
  margin: 0;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

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

.problem {
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
}

.callout-card {
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ink) 40%, var(--ink-soft)) 0%, var(--ink-soft) 100%);
  box-shadow: var(--shadow);
}

.callout-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.callout-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

.callout-body em {
  font-style: italic;
  color: var(--paper);
}

/* Features */
.features {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-soft) 55%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* How */
.how {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink);
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Beta */
.beta {
  border-top: 1px solid var(--line);
}

.beta-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .beta-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.pullquote {
  margin: 0;
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--ink-soft));
}

.pullquote p {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 92%, transparent);
}

.pullquote footer {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Waitlist */
.waitlist {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.waitlist-card {
  padding: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .waitlist-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem 2.5rem;
  }

  .waitlist-copy {
    grid-column: 1;
  }

  .waitlist-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }

  .form-note {
    grid-column: 1 / -1;
  }
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.waitlist-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-note {
  margin: 0;
  min-height: 1.5rem;
  font-size: 0.875rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.logo-footer .logo-mark {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Privacy / legal (light document) — matches standalone policy page
   -------------------------------------------------------------------------- */

body.legal-page {
  color: #1c1f26;
  background: #faf9f7;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-skip:focus {
  outline-color: #c2410c;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(28, 31, 38, 0.08);
  background: color-mix(in srgb, #faf9f7 92%, white);
  backdrop-filter: blur(10px);
}

.legal-header-inner {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #1c1f26;
}

.legal-logo:hover {
  color: #c2410c;
}

.legal-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.35);
}

.legal-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #3d4654;
}

.legal-nav a:hover {
  color: #c2410c;
}

.legal-main {
  padding: 2.5rem 0 3.5rem;
}

.legal-article {
  max-width: 52rem;
  margin-inline: auto;
}

.legal-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: #5c6575;
}

.legal-intro {
  margin: 0 0 2rem;
  color: #2f3542;
}

.legal-outline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal;
}

.legal-outline > li {
  counter-increment: legal;
  margin: 0 0 2.25rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid rgba(28, 31, 38, 0.1);
}

.legal-outline > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-outline > li::before {
  content: counter(legal) ". ";
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #c2410c;
  display: block;
  margin-bottom: 0.35rem;
}

.legal-outline h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-outline h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1c1f26;
}

.legal-outline p,
.legal-outline ul {
  margin: 0 0 0.85rem;
  color: #3d4654;
}

.legal-outline ul {
  padding-left: 1.25rem;
}

.legal-outline li li {
  margin-bottom: 0.35rem;
}

.legal-outline a {
  color: #c2410c;
  font-weight: 600;
}

.legal-outline a:hover {
  text-decoration: underline;
}

.legal-footer {
  border-top: 1px solid rgba(28, 31, 38, 0.1);
  padding: 1.5rem 0 2rem;
  background: #f3f1ed;
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
}

.legal-footer a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer-meta {
  margin: 0;
  color: #6b7587;
}
