/* ═══════════════════════════════════════════════════════
   Landing page shared styles — Cirra AI
   Used by src/_includes/landing-base.njk
   ═══════════════════════════════════════════════════════ */

:root {
  /* Brand colors per Cirra AI guidelines */
  --royal-blue: #4068EB;
  --penn-blue: #05184F;
  --eerie-black: #1D1D1D;
  --grad-cyan: #00FFDA;
  --grad-mint: #42E7BC;

  /* Functional tokens */
  --ink: #05184F;          /* Penn Blue for headings */
  --ink-body: #1D1D1D;     /* Eerie Black for body */
  --paper: #ffffff;
  --paper-soft: #f5f7fc;   /* very subtle blue-tinted bg */
  --accent: #4068EB;       /* Royal Blue */
  --accent-soft: #e8edfd;
  --rule: #dde2f0;
  --muted: #5b6680;
  --success: #0d8050;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sen', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink-body);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───── Nav ───── */
nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo svg {
  height: 32px;
  width: auto;
  display: block;
}
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent); }

/* ───── Hero ───── */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
/* Grid items default to min-width:auto, which lets non-wrapping content
   (e.g. monospace tokens in the chat mock) expand the column past the
   viewport. Forcing min-width:0 lets the column shrink to its track. */
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sen', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
}
h1 {
  font-family: 'Sen', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.subhead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.5;
}
.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-primary svg { transition: transform 0.15s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--ink);
}
.trust-line {
  font-family: 'Sen', sans-serif;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-line span { display: flex; align-items: center; gap: 6px; }
.trust-line span::before {
  content: '\2713';
  color: var(--success);
  font-weight: bold;
}

/* ───── Logo strip ───── */
.logo-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-strip-label {
  font-family: 'Sen', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.logo-strip-items {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Sen', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--penn-blue);
  opacity: 0.7;
}

/* ───── Sections ───── */
section.feature {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}
.section-eyebrow {
  font-family: 'Sen', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-family: 'Sen', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 720px;
}
h2 em { font-style: normal; color: var(--accent); }
.section-lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 56px;
}

/* Three-step */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.step-num {
  font-family: 'Sen', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 {
  font-family: 'Sen', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step p {
  color: var(--muted);
  font-size: 16px;
}

/* Capabilities */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.capability {
  background: var(--paper);
  padding: 36px;
}
.capability-icon {
  font-family: 'Sen', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.capability h3 {
  font-family: 'Sen', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.capability p {
  color: var(--muted);
  font-size: 15px;
}

/* Trust */
.trust-section {
  background: var(--penn-blue);
  color: var(--paper);
}
.trust-section h2 { color: var(--paper); }
.trust-section .section-lead { color: #a8b3d4; }
.trust-section .section-eyebrow { color: #8fa6ff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.trust-item h3 {
  font-family: 'Sen', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--paper);
}
.trust-item p {
  color: #a8b3d4;
  font-size: 15px;
}

/* FAQ */
.faq-list {
  max-width: 780px;
}
details {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
details summary {
  font-family: 'Sen', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-family: 'Sen', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}
details[open] summary::after { content: '\2212'; }
details p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 640px;
}

/* Final CTA */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--paper-soft);
}
.final-cta h2 {
  margin: 0 auto 24px;
  text-align: center;
}
.final-cta .subhead {
  margin: 0 auto 36px;
  text-align: center;
}
.final-cta .cta-row { justify-content: center; }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--muted); text-decoration: none; margin-left: 24px; }
footer a:hover { color: var(--ink); }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary,
  .btn-primary svg,
  details summary::after { transition: none; }
  .cursor { animation: none; }
}

/* Responsive */
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .capabilities { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  section.feature { padding: 64px 0; }
  .final-cta { padding: 72px 0; }
  .logo-strip-inner { justify-content: center; }
  .logo-strip-items { gap: 28px; font-size: 16px; }
}

/* Narrow phones: tighter padding, smaller heading, stacked CTAs */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  nav { padding: 18px 0; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
  .logo svg { height: 28px; }
  .hero { padding: 40px 0 32px; }
  h1 {
    font-size: clamp(30px, 8vw, 40px);
    margin-bottom: 20px;
  }
  .subhead { font-size: 17px; margin-bottom: 28px; }
  .cta-row { gap: 12px; margin-bottom: 24px; }
  .btn-primary {
    padding: 14px 22px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  .btn-secondary {
    padding: 12px 4px;
    font-size: 14px;
  }
  h2 {
    font-size: clamp(26px, 7vw, 32px);
    margin-bottom: 20px;
  }
  .section-lead { font-size: 17px; margin-bottom: 40px; }
  section.feature { padding: 48px 0; }
  .final-cta { padding: 56px 0; }
  .logo-strip { padding: 28px 0; }
  .logo-strip-items { gap: 18px 22px; font-size: 14px; }
  .capability { padding: 28px 24px; }
  .capability h3, .step h3, .trust-item h3 { font-size: 19px; }
  details summary { font-size: 17px; gap: 16px; }
  details summary::after { font-size: 24px; }
  details p { font-size: 15px; }
  .trust-line { gap: 12px 18px; font-size: 12.5px; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  footer a { margin-left: 0; margin-right: 20px; }
}
