/* ============================================================
   ESTARA AI — styles.css  (v3, refined professional)
   Calm, organised, single accent. Brand colours in :root.
   ============================================================ */

:root {
  --bg: #0a1128;          /* dark navy */
  --bg-alt: #0d1530;
  --surface: #111b3c;
  --surface-hover: #152147;
  --border: rgba(148, 168, 220, 0.16);
  --border-strong: rgba(148, 168, 220, 0.28);
  --text: #e8ebf2;
  --text-dim: #9aa3b8;
  --accent: #7c9cf5;          /* soft periwinkle blue */
  --accent-deep: #5b7cfa;     /* button blue */
  --accent-soft: rgba(124, 156, 245, 0.1);
  --green: #86d6ab;
  --red: #e39aa7;
  --amber: #e3c584;
  --radius: 16px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; }
.section { padding: 110px 0; }
.section-alt { background: rgba(13, 21, 48, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 56px; }

/* ---------- Shared panel (cards, tiles, quotes) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.panel:hover { border-color: var(--border-strong); background: var(--surface-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #6a89fb; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 38px; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 17, 40, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--accent); }
.logo-img { height: 48px; width: auto; }
.footer .logo-img { height: 36px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.btn-nav-login + .btn-nav { margin-left: -16px; }
.nav-login-mobile { display: none; }
@media (max-width: 760px) {
  .nav-login-mobile { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  position: relative;
  padding: 160px 28px 80px;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-fade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10, 17, 40, 0) 0%, rgba(10, 17, 40, 0.55) 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1084px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(17, 27, 60, 0.6);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero-title { font-size: clamp(2.2rem, 3.8vw, 2.95rem); max-width: 780px; }
.hero-line { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-line { white-space: normal; }
}

.hero-sub { color: var(--text-dim); font-size: clamp(1.02rem, 1.9vw, 1.18rem); max-width: 640px; margin: 26px 0 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 40px; }
.hero-microcopy { color: var(--text-dim); font-size: 0.85rem; margin-top: 18px; opacity: 0.85; }

.hero-stats {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.83rem; color: var(--text-dim); margin-top: 8px; }
.stat-divider { width: 1px; height: 44px; background: var(--border); }

/* ---------- Tech strip ---------- */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 22px 0;
}
.tech-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.tech-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Problem section ---------- */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.problem-sticky { position: sticky; top: 130px; }
.problem-lead { color: var(--text-dim); font-size: 1.05rem; margin: 18px 0 28px; }
.problem-cards { display: flex; flex-direction: column; gap: 20px; }
.pain-card { padding: 32px 30px; }
.pain-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pain-card h3 { margin-bottom: 10px; }
.pain-card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Service cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 38px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.card-featured { border-color: rgba(124, 156, 245, 0.4); }
.card-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 0 var(--radius) 0 12px;
}
.card-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-icon svg { width: 25px; height: 25px; }
.card p { color: var(--text-dim); font-size: 0.95rem; margin-top: 12px; }
.card-list { list-style: none; margin: 20px 0 28px; }
.card-list li { font-size: 0.9rem; color: var(--text); padding: 7px 0 7px 26px; position: relative; }
.card-list li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0.8);
}
.card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.25s ease;
}
.card-link:hover { gap: 12px; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bento-tile { padding: 34px 30px; }
.bento-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.bento-tile h3 { margin-bottom: 10px; }
.bento-tile p { color: var(--text-dim); font-size: 0.94rem; }
.bento-stat {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.bento-visual {
  margin-top: auto;
  padding: 22px 24px;
  background: rgba(9, 11, 17, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.84rem;
  line-height: 2.1;
  color: var(--text-dim);
}
.code-key { color: var(--accent); }
.code-str { color: #b8a8ee; }
.code-num { color: var(--green); }
.code-comment { color: rgba(154, 163, 184, 0.55); }
.code-ok { color: var(--green); }
.code-line { white-space: nowrap; overflow: hidden; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 12px; }
.timeline-line {
  position: absolute;
  left: 37px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-line span {
  display: block;
  width: 100%; height: 0%;
  background: var(--accent);
  transition: height 0.2s linear;
}
.tl-step { display: flex; gap: 32px; padding: 28px 0; position: relative; }
.tl-node {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: 0 0 0 6px var(--bg-alt);
  z-index: 1;
}
.tl-body h3 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tl-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(124, 156, 245, 0.35);
  background: var(--accent-soft);
  padding: 3px 12px;
  border-radius: 999px;
}
.tl-body p { color: var(--text-dim); font-size: 0.96rem; margin-top: 10px; max-width: 620px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
  min-width: 720px;
}
.compare th, .compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--text-dim); font-weight: 500; width: 20%; }
.compare .compare-hero {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid rgba(124, 156, 245, 0.3);
  border-right: 1px solid rgba(124, 156, 245, 0.3);
}
.compare thead .compare-hero {
  color: var(--text);
  font-size: 1.02rem;
}
.compare .yes { color: var(--green); font-weight: 700; margin-right: 6px; }
.compare .no { color: var(--red); font-weight: 700; margin-right: 6px; }
.compare .mid { color: var(--amber); font-weight: 700; margin-right: 6px; }

/* ---------- Plans / subscriptions ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { padding: 38px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan-tagline { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; }
.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin: 24px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-per { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.price-from { font-size: 0.9rem; font-weight: 500; color: var(--text-dim); }
.plan-includes {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 16px;
}
.price-card .card-list { margin: 14px 0 30px; flex: 1; }
.btn-block { justify-content: center; width: 100%; margin-top: auto; }
.plans-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 640px;
  margin: 44px auto 0;
}
.plans-note a { color: var(--accent); }
.plans-note a:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { padding: 34px 30px 30px; display: flex; flex-direction: column; }
.quote blockquote { color: var(--text); font-size: 0.97rem; line-height: 1.75; }
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
.quote figcaption {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.quote figcaption strong { font-family: var(--font-display); font-size: 0.95rem; }
.quote figcaption span { color: var(--text-dim); font-size: 0.84rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: rgba(124, 156, 245, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-icon::before { width: 16px; height: 2px; top: 7px; }
.faq-icon::after { width: 2px; height: 16px; left: 7px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item p { padding: 0 26px 22px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.cta-list {
  list-style: none;
  margin: 28px auto 38px;
  max-width: 460px;
  text-align: left;
}
.cta-list li {
  color: var(--text-dim);
  font-size: 0.98rem;
  padding: 8px 0 8px 32px;
  position: relative;
}
.cta-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.cta-note { display: block; margin-top: 26px; font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 18px; }
.footer-col a, .footer-col address {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-style: normal;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 960px) {
  .cards-3, .quotes, .plans { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
  .problem-layout { grid-template-columns: 1fr; gap: 44px; }
  .problem-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 17, 40, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 1.05rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-nav { display: none; }
  .section { padding: 80px 0; }
  .stat-divider { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-step { gap: 20px; }
  .timeline-line { left: 25px; }
  .tl-node { width: 42px; height: 42px; font-size: 0.85rem; }
  .cta-panel { padding: 60px 26px; }
}

/* ============================================================
   v4 additions — trust strip, case studies, founder section,
   engagement models, plan details table, legal pages, mobile fixes
   ============================================================ */

/* Anchored sections never hide under the fixed nav */
section[id], footer[id], .plan-details { scroll-margin-top: 92px; }

/* Hero text-stat */
.stat-num-text { font-size: 1.35rem; padding: 8px 0 3px; }

/* ---------- Trust strip ---------- */
.trust { padding: 36px 0; }
.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px 48px;
  flex-wrap: wrap;
}
.trust-clients { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.trust-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}
.trust-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-dim); }
.trust-proof { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.trust-quote { font-size: 0.93rem; color: var(--text); line-height: 1.65; }
.trust-attrib { display: block; color: var(--text-dim); font-size: 0.8rem; margin-top: 6px; }

/* ---------- Case studies ---------- */
.case { margin-bottom: 26px; overflow: hidden; }
.case-head { padding: 36px 40px 0; }
.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(124, 156, 245, 0.35);
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 999px;
}
.case-head h3 { font-size: 1.5rem; margin-top: 16px; }
.case-client { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
.case-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  padding: 26px 40px 40px;
}
.case-col h4 {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 24px 0 10px;
}
.case-col h4:first-child { margin-top: 0; }
.case-col p { color: var(--text-dim); font-size: 0.95rem; }
.case-col .card-list { margin: 0 0 6px; }
.case-quote {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 0.93rem;
  line-height: 1.65;
}
.case-quote span { display: block; color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; }

/* ---------- Founder ---------- */
.founder-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 56px;
}
.founder-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.founder-photo::before {
  content: "JG";
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-copy h3 { font-size: 1.35rem; margin-bottom: 14px; }
.founder-copy p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 14px; }
.bento-about { margin-top: 0; }
.tile-link { color: var(--accent); font-size: 0.88rem; white-space: nowrap; }
.tile-link:hover { text-decoration: underline; }

/* ---------- Engagement models & project pricing ---------- */
.engage-cards .card { padding: 32px 30px; }
.project-prices { margin-top: 26px; padding: 38px 40px; }
.project-prices h3 { margin-bottom: 8px; }
.project-prices-note { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.price-list { list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.price-list-amt { font-family: var(--font-display); font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Plans v2 ---------- */
.plan-bestfor {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.plan-tagline { margin-top: 8px; }
.plan-term { font-size: 0.8rem; color: var(--text-dim); margin: 2px 0 4px; }
.price-card .card-list { margin-bottom: 18px; }
.plan-foot { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 20px; }
.li-sub { color: var(--text-dim); font-size: 0.82rem; }
.plans-details-link { text-align: center; margin-top: 36px; }
.plans-details-link a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.plans-details-link a:hover { text-decoration: underline; }
.plan-details { margin-top: 44px; }
.compare-plans { min-width: 680px; }
.compare-plans td:first-child { width: 22%; }
.compare-span { color: var(--text-dim); }
.plans-smallprint { max-width: 840px; margin: 30px auto 0; }
.plans-smallprint p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 12px; }
.plans-smallprint strong { color: var(--text); }

/* ---------- CTA email alternative ---------- */
.cta-email { margin-top: 22px; color: var(--text-dim); font-size: 0.92rem; }
.cta-email a { color: var(--accent); }
.cta-email a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 150px 0 90px; }
.legal-main h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 38px; }
.legal-main h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal-main p, .legal-main li { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 12px; }
.legal-main ul { margin: 10px 0 14px 22px; }
.legal-main ul li { margin-bottom: 6px; }
.legal-main a { color: var(--accent); }
.legal-main a:hover { text-decoration: underline; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--accent); font-size: 0.9rem; }
.legal-back:hover { text-decoration: underline; }

/* ---------- Responsive (new sections) ---------- */
@media (max-width: 960px) {
  .case-body { grid-template-columns: 1fr; gap: 10px; }
  .founder-layout { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 280px; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .plans .card-featured { order: -1; }
}
@media (max-width: 760px) {
  section[id], footer[id], .plan-details { scroll-margin-top: 78px; }
  .price-card { padding: 28px 20px; }
  .price-card .card-list li { padding: 6px 0 6px 22px; font-size: 0.88rem; }
  .price-card .card-list li::before { top: 12px; transform: rotate(-45deg) scale(0.7); }
  .plans { gap: 16px; }
  .case-head { padding: 28px 22px 0; }
  .case-body { padding: 20px 22px 30px; }
  .project-prices { padding: 26px 20px; }
  .legal-main { padding: 120px 0 70px; }
}

/* ---------- v5 additions: trust "and more" ---------- */
.trust-more { font-style: italic; opacity: 0.65; font-weight: 400; }

/* ---------- v8: case study summary cards ---------- */
.case-sum { padding: 34px 30px; display: flex; flex-direction: column; }
.case-sum h3 { font-size: 1.3rem; margin-top: 14px; }
.case-sum .case-client { margin-top: 3px; }
.case-sum .card-link { margin-top: auto; padding-top: 18px; }
.case-visual {
  margin: 20px 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 17, 40, 0.55);
  padding: 14px;
}
.case-visual svg { width: 100%; height: auto; display: block; }
.case-metric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.45;
}
.case-sum-desc { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; }

/* ---------- v6: navy aurora background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 35% at 18% 22%, rgba(91, 124, 250, 0.16), transparent 70%),
    radial-gradient(50% 40% at 82% 28%, rgba(124, 156, 245, 0.11), transparent 70%),
    radial-gradient(55% 45% at 50% 88%, rgba(64, 105, 255, 0.10), transparent 70%);
  animation: aurora-drift 36s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ---------- v7: fine grain texture (sits on top of the aurora glow) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- v9: full sub-pages (pricing & case studies) ---------- */
.page-main { padding-top: 118px; }
.page-main .section:first-child { padding-top: 50px; }
.section-head h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.16; }
.page-back { display: inline-block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 26px; transition: color 0.2s ease; }
.page-back:hover { color: var(--accent); }
.case-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin: 0 auto 56px;
}
.deliverable h3 { font-size: 1.05rem; margin-bottom: 10px; }
.deliverable p { color: var(--text-dim); font-size: 0.92rem; }
.deliverable .deliv-saving {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}
@media (max-width: 640px) {
  .page-main { padding-top: 96px; }
  .case-stats { gap: 24px; }
}

/* ---------- v10: text-only About section ---------- */
.founder-copy-solo {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.founder-copy-solo p { font-size: 1rem; }
.founder-copy-solo .card-link { display: inline-block; margin-top: 4px; }
