/* AI Ally — global stylesheet
   Brand: Ally Navy #0A2540 · Signal Orange #FF6B35 · Cloud White #FAFBFC · Ink #1A1A2E · Graphite #6B7280 · Mint #10B981
   Fonts: Space Grotesk (700) headings · Inter (400/500) body
*/

:root {
  --navy: #0A2540;
  --orange: #FF6B35;
  --white: #FAFBFC;
  --ink: #1A1A2E;
  --graphite: #6B7280;
  --mint: #10B981;
  --cloud: #F4F6F8;
  --border: #E4E7EB;
  --max: 1140px;
  --radius: 12px;
  --shadow: 0 2px 24px rgba(10, 37, 64, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }
h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite); margin-bottom: 1rem; }

p { margin-bottom: 1rem; color: var(--ink); }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #e85a26; color: white; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: white; }

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand-mark { width: 32px; height: 32px; }
.brand-light { color: var(--white); }
.brand-light .brand-word { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links .btn { font-size: 0.9rem; padding: 10px 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F8 100%);
  text-align: center;
}
.hero h1 { max-width: 18ch; margin: 0 auto 1.5rem; }
.lede {
  font-size: 1.25rem;
  color: var(--graphite);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.cta-row.centered { justify-content: center; }
.credibility {
  font-size: 0.9rem;
  color: var(--graphite);
  font-weight: 500;
  margin: 0;
}

/* Sections */
section { padding: 80px 0; }
section.value-props { background: white; }
section.how-it-works { background: var(--cloud); }
section.social-proof { background: white; padding: 60px 0; }
section.cta-band { background: var(--navy); color: white; text-align: center; }
section.cta-band h2 { color: white; }
section.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.15rem; }

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 2rem;
}
.card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.card p { color: var(--graphite); margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 2rem;
}
.step { text-align: center; padding: 16px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step h4 { color: var(--navy); }
.step p { color: var(--graphite); }

/* Social proof */
.social-proof blockquote {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
  font-style: italic;
}
.social-proof cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--graphite);
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Article (long-form pages) */
.article {
  padding: 60px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}
.article h1 { text-align: left; margin-bottom: 1rem; }
.article h2 { margin-top: 3rem; margin-bottom: 1rem; padding-top: 1rem; }
.article h3 { margin-top: 2rem; margin-bottom: 0.8rem; }
.article p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.4rem; color: var(--ink); }
.article ul { margin: 1rem 0 1.5rem 1.5rem; }
.article li { margin-bottom: 0.5rem; line-height: 1.6; }
.article .lede { text-align: left; max-width: none; margin: 0 0 2rem; font-size: 1.3rem; color: var(--graphite); }
.article blockquote { border-left: 4px solid var(--orange); padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0; font-style: italic; color: var(--graphite); }

/* Pricing table */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}
.tier {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.tier.featured { border-color: var(--orange); border-width: 2px; box-shadow: var(--shadow); }
.tier h3 { color: var(--navy); margin-bottom: 0.5rem; }
.tier .scope { color: var(--graphite); font-size: 0.95rem; margin-bottom: 1rem; min-height: 3rem; }
.tier .price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.8rem; color: var(--orange); margin-bottom: 0.5rem; }
.tier .price-note { font-size: 0.85rem; color: var(--graphite); }

/* FAQ */
.faq details {
  background: var(--cloud);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 700;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 1rem; margin-bottom: 0; color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 { color: var(--orange); }
.footer-grid a { display: block; color: rgba(255,255,255,0.75); margin-bottom: 8px; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 6px; }
.footer-tagline { color: rgba(255,255,255,0.7); margin-top: 0.5rem; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Credentials strip — founding team backgrounds + education */
.creds-strip { padding: 48px 0 24px; background: var(--cloud); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.creds-strip h3 { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); text-align: center; margin-bottom: 22px; }
.creds-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-bottom: 28px; }
.creds-row:last-child { margin-bottom: 0; }
.creds-row .wm { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: 0.01em; padding: 10px 18px; background: white; border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; opacity: 0.88; transition: opacity .2s, transform .2s; }
.creds-row .wm:hover { opacity: 1; transform: translateY(-1px); }
.creds-row .wm.serif { font-family: 'Inter', serif; font-style: italic; font-weight: 600; }
.creds-note { text-align: center; font-size: 0.82rem; color: var(--graphite); max-width: 760px; margin: 8px auto 0; font-style: italic; }

@media (max-width: 640px) {
  .creds-row { gap: 10px 14px; }
  .creds-row .wm { font-size: 0.88rem; padding: 8px 12px; }
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; background: white; padding: 24px; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  body.nav-open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
