/* ==========================================================================
   BuildDocDo — Systems Documentation
   Brand system: Build (blue) → Document (teal) → Do (amber)
   ========================================================================== */

:root {
  /* Brand palette */
  --build: #2563eb;      /* blue   — Build It   */
  --build-dark: #1d4ed8;
  --document: #0d9488;   /* teal   — Document It*/
  --do: #f59e0b;         /* amber  — Do It      */
  --do-dark: #d97706;

  /* Neutrals */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12), 0 8px 16px rgba(15, 23, 42, .08);
  --radius: 14px;
  --radius-lg: 22px;
  --gradient: linear-gradient(120deg, var(--build) 0%, var(--document) 55%, var(--do) 110%);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--build); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--build-dark); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
ul { color: var(--ink-soft); }

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--document); margin-bottom: 1rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--do); color: #1f2937; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--do-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: var(--build); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--light:hover { border-color: var(--build); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .97rem; padding: 8px 14px; border-radius: 8px; }
.nav-links a:hover { color: var(--build); background: var(--surface-2); }
.nav-links a.active { color: var(--build); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--surface); padding: clamp(64px, 10vw, 130px) 0 clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(245,158,11,.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: .5rem; margin-bottom: 2rem; font-size: 1.28rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* Verb chips (Build/Document/Do) ----------------------------------------- */
.verbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8rem; }
.verb {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; padding: 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.verb .dot { width: 10px; height: 10px; border-radius: 50%; }
.verb--build .dot { background: var(--build); }
.verb--doc   .dot { background: var(--document); }
.verb--do    .dot { background: var(--do); }

/* Generic grid ----------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff;
}
.icon--build { background: linear-gradient(135deg, var(--build), #3b82f6); }
.icon--doc   { background: linear-gradient(135deg, var(--document), #14b8a6); }
.icon--do    { background: linear-gradient(135deg, var(--do), #fbbf24); }
.icon svg { width: 26px; height: 26px; }

/* Numbered step cards */
.step .num {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--muted);
  display: block; margin-bottom: 10px;
}
.step--build { border-top: 4px solid var(--build); }
.step--doc   { border-top: 4px solid var(--document); }
.step--do    { border-top: 4px solid var(--do); }

/* Feature list ----------------------------------------------------------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--document); color: #fff; display: grid; place-items: center; font-size: 13px; margin-top: 2px;
}

/* Split / about section -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.media-panel {
  background: var(--gradient); border-radius: var(--radius-lg); padding: 40px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.media-panel h3 { color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.stat .n { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat .l { font-size: .92rem; opacity: .92; }

/* Banded section */
.band { background: var(--ink); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: #cbd5e1; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--gradient); color: #fff; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.92); }

/* Testimonials ----------------------------------------------------------- */
.quote { font-size: 1.05rem; color: var(--ink); }
.quote::before { content: "“"; font-size: 3rem; color: var(--do); line-height: 0; display: block; height: 26px; }
.quote-author { font-weight: 700; margin-top: 16px; color: var(--ink); }
.quote-author span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: center; justify-content: center; opacity: .7; }
.logos span { font-weight: 800; font-size: 1.1rem; color: var(--muted); letter-spacing: -.02em; }

/* Forms ------------------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--build); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600;
}

/* FAQ -------------------------------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--build); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .faq-body p { margin: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { color: #cbd5e1; display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #94a3b8; font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #94a3b8;
}
.footer-bottom a { display: inline; color: #94a3b8; }

/* Page hero (interior pages) --------------------------------------------- */
.page-hero { background: var(--surface); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: .25rem; }

/* Pricing ---------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--build); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--build); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 8px 0 2px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.price-card li::before { content: "✓"; color: var(--document); font-weight: 800; }

/* Utility ---------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.bg-surface { background: var(--surface); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px;
    gap: 4px; box-shadow: var(--shadow-md); transform: translateY(-150%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
