/* =============================================================================
   Akyeba marketing — dark academic
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette — warm cream on near-black ink, with one terracotta accent */
  --ink:         #0E1320;
  --paper:       #F5EFE0;
  --surface:     #161D2E;
  --surface-2:   #1E2638;
  --border:      #2A3142;
  --muted:       #8B8A85;
  --accent:      #C68B5D;
  --accent-hi:   #D9A576;
  --accent-bg:   rgba(198, 139, 93, 0.12);
  --accent-glow: rgba(198, 139, 93, 0.20);

  /* Layout */
  --section-pad:   clamp(5rem, 12vh, 9rem);
  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-weight: 600;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 19, 32, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.brand .dot { color: var(--accent); }

.nav-links {
  display: flex; gap: 2.25rem; align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--paper); opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1; color: var(--accent);
}
.nav-cta { margin-left: 0.75rem; }

@media (max-width: 720px) {
  .nav-links { gap: 1.25rem; }
  .nav-links li:not(.persistent) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.75rem; }

/* ── Section primitives ──────────────────────────────────────────────────── */

section { padding: var(--section-pad) 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.section-head { margin-bottom: 3.5rem; max-width: 52rem; }
.section-head h2 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-head p {
  color: rgba(245, 239, 224, 0.62);
  font-size: 1.05rem;
}

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

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 14vh, 10rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 20%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 90%, rgba(40, 60, 100, 0.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: 1.75rem;
}
.hero p.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 38rem;
  color: rgba(245, 239, 224, 0.78);
  margin-bottom: 2.75rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero.compact { padding-top: clamp(4rem, 9vh, 6rem); padding-bottom: clamp(2rem, 5vh, 4rem); }
.hero.compact h1 { font-size: clamp(1.85rem, 5vw, 3.5rem); max-width: 26ch; letter-spacing: -0.02em; }

/* ── Feature cards ───────────────────────────────────────────────────────── */

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

.feature-card {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.18s, transform 0.18s;
  position: relative;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.feature-card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: rgba(245, 239, 224, 0.62);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Perspectives (How it works) ─────────────────────────────────────────── */

.perspectives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.perspective {
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
.perspective .role {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.perspective h3 {
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.perspective ul { list-style: none; }
.perspective li {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: rgba(245, 239, 224, 0.72);
  border-bottom: 1px solid rgba(42, 49, 66, 0.6);
  display: flex; gap: 0.65rem;
}
.perspective li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}
.perspective li:last-child { border-bottom: none; }

/* ── Stats row ───────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 4rem;
  border: 1px solid var(--border);
}
.stat {
  padding: 2.75rem 1.5rem 2.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: 'tnum';
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 0.65rem;
}
@media (max-width: 640px) {
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.pricing-card {
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -10px; left: 1.75rem;
  background: var(--accent); color: var(--ink);
  padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em;
}
.pricing-card h3 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.pricing-card .tagline {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 2.25rem;
  flex: 1;
}
.pricing-card li {
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: rgba(245, 239, 224, 0.82);
  display: flex; gap: 0.65rem;
}
.pricing-card li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
}
.pricing-card li.off { color: var(--muted); opacity: 0.55; }
.pricing-card li.off::before { content: '—'; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq dl { display: grid; gap: 2.25rem; }
.faq dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  margin-bottom: 0.65rem;
}
.faq dd {
  color: rgba(245, 239, 224, 0.7);
  font-size: 0.9375rem;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  border-radius: 2px;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem 1.25rem;
}
.checkboxes label {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--paper);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  font-weight: 400;
}
.checkboxes input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.checkboxes input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkboxes input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── Prose (About page) ──────────────────────────────────────────────────── */

.prose { max-width: 42rem; }
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(245, 239, 224, 0.82);
  margin-bottom: 1.5rem;
}
.prose p strong { color: var(--paper); font-weight: 600; }
.prose p em.accent {
  color: var(--accent);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}
.prose h3 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 3rem 0 1rem;
  color: var(--paper);
}
.prose a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.prose a:hover { border-color: var(--accent); }

/* ── CTA section ─────────────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at center, var(--accent-glow), transparent 65%);
}
.cta-section h2 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.cta-section p {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: rgba(245, 239, 224, 0.72);
  font-size: 1.05rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--ink);
}
footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.foot-brand-block { display: flex; flex-direction: column; gap: 0.35rem; }
.foot-brand { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.foot-tag { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.foot-links {
  display: flex; gap: 1.75rem;
  font-size: 0.8125rem;
  list-style: none;
}
.foot-links a {
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
}
.foot-links a:hover { color: var(--accent); }
