/* ============================================================
   Congrava — app.css
   Design: Fraunces (display) + Inter (body/UI), warm paper ground,
   navy/blue brand accent. Flat surfaces, no gradients on type or
   buttons — the brand gradient lives only in the logo mark itself.
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ink:            #14183a;
  --ink-soft:       #4b5175;
  --navy:           #0f1e4a;
  --blue:           #2b56d9;
  --paper:          #faf8f4;
  --paper-line:     #e7e0d4;
  --panel:          #ffffff;
  --panel-line:     #e3e6ef;
  --white:          #ffffff;
  --nav-h:          72px;
  --container-max:  1120px;
  --radius:         6px;
  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5.5rem 0; }
.section-dark { background: var(--navy); color: var(--white); }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: #9db6f2; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-title-light { color: var(--white); }

.section-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 56ch;
}
.section-text-light    { color: rgba(255,255,255,0.68); }
.section-text-centered { margin-left: auto; margin-right: auto; }

.section-header        { margin-bottom: 3rem; max-width: 640px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.6rem; }
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-dark:hover { border-color: var(--white); }
.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  background: var(--navy);
  color: var(--white);
}
.btn-nav:hover { background: var(--blue); }
.btn-on-dark { background: var(--white); color: var(--navy); }
.btn-on-dark:hover { background: #dfe6fa; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--paper-line); }
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  min-height: var(--nav-h);
}
.nav-brand { display: flex; align-items: center; gap: 0.55rem; }
.nav-wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-weight: 500; font-size: 0.94rem; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-link:hover { color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--paper-line); }
.hero-content { max-width: 700px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.hero-title-em { font-style: italic; color: var(--blue); }
.hero-tagline { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 1.75rem; }
.hero-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero-pill-dot { color: var(--paper-line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Platform: editorial numbered rows (not a card grid) ─────── */
.platform-rows { border-top: 1px solid var(--panel-line); }
.platform-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--panel-line);
}
.platform-row-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--paper-line);
  line-height: 1;
}
.platform-row-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.platform-row-text { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1rem; line-height: 1.65; }
.platform-row-bullets { display: flex; flex-wrap: wrap; gap: 0.4rem 0; font-size: 0.92rem; font-weight: 500; color: var(--navy); }
.platform-row-bullets li:not(:last-child)::after { content: '\00b7'; color: var(--paper-line); margin: 0 0.6rem; font-weight: 700; }
.platform-row-bullets { display: flex; flex-wrap: wrap; }

/* ── Steps (how it works) — large serif numerals, no badges ── */
.steps { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 1.75rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; color: #4a63b0; line-height: 1; }
.step-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.step-text { color: rgba(255,255,255,0.68); line-height: 1.65; }

/* ── Contact — full-bleed panel, not a floating white card ───── */
.contact-panel { background: var(--navy); color: var(--white); border-radius: 10px; padding: 3.5rem 3rem; }
.contact-panel .eyebrow { color: #9db6f2; }
.contact-panel .section-title { color: var(--white); max-width: 22ch; }
.contact-panel .section-text { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand-link { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.footer-brand .nav-wordmark { color: var(--white); }
.footer-tagline { color: rgba(255,255,255,0.5); max-width: 32ch; line-height: 1.6; }
.footer-nav { display: contents; }
.footer-nav-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 1rem; }
.footer-nav-col a, .footer-contact-link { color: rgba(255,255,255,0.72); transition: color 0.15s ease; }
.footer-nav-col a:hover, .footer-contact-link:hover { color: var(--white); }
.footer-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.85rem;
}
.footer-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-hero { background: var(--panel); border-bottom: 1px solid var(--panel-line); padding: 3.5rem 0 2.75rem; }
.legal-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 600; color: var(--navy); }
.legal-section { padding: 3rem 0 6rem; }
.legal-content { max-width: 700px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.legal-content p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.legal-content a { color: var(--blue); font-weight: 600; }

/* ── Error page ───────────────────────────────────────────── */
.error-section { padding: 7rem 0; text-align: center; }
.error-content { max-width: 480px; margin: 0 auto; }
.error-code { font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }
.error-text { color: var(--ink-soft); margin-bottom: 2rem; }
.error-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .contact-panel { padding: 2.5rem 1.75rem; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 0.7rem 0; }
  .btn-nav { justify-content: center; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }

  .hero-actions, .error-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: center; }

  .platform-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .platform-row-number { font-size: 2rem; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step-number { font-size: 1.75rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}
