/* ── RESET & ROOT ──
   Light-theme "anti-slop" design system. Re-theme by editing the variables in :root only.
   --primary is the trust/CTA color (navy by default); --accent is the single highlight color
   (deep orange). Keep it to two solid colors. No gradients, no dark mode by default. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f7fa;   /* alternating section background */
  --bg-softer: #eef2f7;
  --ink:       #112038;   /* headings */
  --text:      #42506a;   /* body */
  --muted:     #6a7689;
  --border:    #e3e8ef;
  --primary:   #173a6a;   /* navy: trust + primary buttons */
  --primary-dark: #102a4e;
  --accent:    #c2410c;   /* deep orange: single highlight/accent */
  --accent-dark: #9a330a;
  --accent-soft: #fbeee6;
  --primary-soft: #eaf0f8;
  --green:     #15803d;
  --radius:    12px;
  --shadow-sm: 0 1px 2px rgba(17,32,56,0.06);
  --shadow-md: 0 6px 20px rgba(17,32,56,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ──
   .gradient-text is the emphasis span in headings. Despite the legacy name it is a SOLID accent
   color (no gradient), so wrapping a phrase in it tints it the accent color. */
.gradient-text { color: var(--accent); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 66px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── HEADER ACTIONS / CLICK-TO-CALL ──
   The .nav-call button must stay visible on mobile (the .nav-links list hides on small screens,
   but the call button does not). On very narrow screens the number text hides, leaving the icon. */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-call:hover { background: #f6e0d3; }
.nav-call svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 640px) {
  .nav-call { padding: 0.45rem 0.75rem; }
  .nav-cta { padding: 0.45rem 0.85rem !important; }
}
@media (max-width: 380px) {
  .nav-call-num { display: none; }
  .nav-call { padding: 0.5rem; }
}

/* ── BUTTONS ── */
.btn-primary, .btn-orange, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-orange { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-orange:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #c7cfdb; background: var(--bg-soft); }

/* ── CARDS ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.badge-blue   { background: var(--primary-soft); color: var(--primary); border: 1px solid #cdd9ea; }
.badge-orange { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #f0d2c0; }
.badge-green  { background: #e7f4ec; color: var(--green); border: 1px solid #c5e6d1; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); }

/* ── FAQ (accordion; pairs with the script in page-skeleton.html) ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-soft); }
.faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner {
  padding: 0 1.5rem 1.3rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 3rem 2rem; background: var(--bg-soft); }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; max-width: 250px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.feature-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── FLOW VISUAL (CSS-only diagram; replaces "AI-default" code-block aesthetics) ──
   Use to show inputs/sources converging to one output. .ok = green, .miss = accent. */
.flow {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 0.82rem;
}
.flow-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 0.4rem; background: #fff; }
.flow-row .flow-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; color: var(--primary); font-weight: 700; }
.flow-row.ok .flow-ico { background: #e7f4ec; color: var(--green); }
.flow-row .flow-label { font-weight: 600; color: var(--ink); }
.flow-row .flow-tag { margin-left: auto; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); }
.flow-row.ok .flow-tag { color: var(--green); }
.flow-row.miss { border-color: #f0d2c0; background: #fdf6f1; }
.flow-row.miss .flow-ico { background: var(--accent-soft); color: var(--accent); }
.flow-row.miss .flow-tag { color: var(--accent-dark); }
.flow-arrow { text-align: center; color: #b6c0cf; font-size: 0.9rem; margin: 0.1rem 0; }

/* ── PRICING TIERS ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.highlight { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-tier { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.75rem; }
.price-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.price-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.25rem; }
.price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.price-card .feature-list { margin-bottom: 1.5rem; }
.price-card .price-cta { margin-top: auto; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── PRICING TABLE (scrapable; good for AI Overview pricing extraction) ── */
.table-wrap { overflow-x: auto; margin-top: 2.5rem; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
table.pricing-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 580px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: top; }
.pricing-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pricing-table td:last-child { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--primary); white-space: nowrap; }

/* ── EMBEDDED CONTACT FORM (iframe; sized tall so the whole form shows with no inner scroll) ──
   Cross-origin embedded forms cannot auto-resize, so set a generous fixed height and bump it
   for mobile where fields stack. Tune the height to the actual form length. */
.contact-iframe { width: 100%; height: 1100px; border: 0; border-radius: 12px; background: #fff; margin-top: 1.25rem; display: block; overflow: hidden; }
@media (max-width: 560px) { .contact-iframe { height: 1320px; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
