/* ============================================================
   Peak Socials — styles.css
   Design tokens, layout, components. Edit variables in :root
   to re-theme the whole site.
   ============================================================ */

:root {
  /* Brand palette */
  --bg:        #0a0a0f;
  --bg-alt:    #101018;
  --surface:   #16161f;
  --surface-2: #1d1d29;
  --border:    rgba(255,255,255,0.08);
  --text:      #f4f4f8;
  --muted:     #a0a0b0;
  --accent:    #7c5cff;   /* violet */
  --accent-2:  #ff5c9d;   /* pink   */
  --accent-3:  #34e0c8;   /* teal   */

  /* Type & spacing */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: .8rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,92,255,0.45); }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,10,15,0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; }
.brand-mark { color: var(--accent); font-size: 1rem; }
.brand-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(124,92,255,0.18), transparent 55%),
    radial-gradient(600px circle at 85% 30%, rgba(255,92,157,0.14), transparent 55%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy .lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.4rem; }
.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.7rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; }
.orb-1 { width: 220px; height: 220px; background: var(--accent); top: 0; right: 20px; animation: float 7s ease-in-out infinite; }
.orb-2 { width: 180px; height: 180px; background: var(--accent-2); bottom: 10px; left: 10px; animation: float 9s ease-in-out infinite reverse; }
.phone-card {
  position: relative;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  animation: float 8s ease-in-out infinite;
}
.pc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); }
.pc-meta { display: flex; flex-direction: column; }
.pc-meta small { color: var(--muted); font-size: .72rem; }
.pc-image { height: 150px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pc-revenue { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.pc-growth { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.9); }
.pc-actions { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.pc-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; width: 72%; background: var(--gradient); border-radius: 999px; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }

/* ---------- Trust bar (sliding marquee) ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 22px 0; overflow: hidden; }
.trust-label { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .04em; margin: 0 0 16px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  flex: none;
  padding: 0 2.4rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--muted);
  opacity: .7;
  white-space: nowrap;
  letter-spacing: -.02em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stat-grid { text-align: center; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1rem; }
.stat strong { font-size: 2.8rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .unit { font-size: 1.6rem; font-weight: 700; color: var(--accent-3); }
.stat p { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-visual { position: relative; min-height: 320px; }
.about-card { position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow); }
.about-card-2 { inset: 40px -30px 40px 60px; background: linear-gradient(135deg, var(--accent-3), var(--accent)); opacity: .85; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .7rem; }
.check-list li { padding-left: 1.8rem; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-3); font-weight: 800; }

/* ---------- Testimonials ---------- */
.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.quote p { font-size: 1.02rem; }
.quote footer { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.q-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient); flex: none; }
.quote cite { font-style: normal; font-weight: 600; display: flex; flex-direction: column; }
.quote cite small { color: var(--muted); font-weight: 400; }

/* ---------- CTA / Contact ---------- */
.cta-section { background:
  radial-gradient(700px circle at 80% 10%, rgba(124,92,255,0.18), transparent 55%),
  radial-gradient(500px circle at 10% 90%, rgba(52,224,200,0.12), transparent 55%),
  var(--bg); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; color: var(--muted); }
.contact-list a:hover { color: var(--text); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: .88rem; margin: 0; min-height: 1.2em; }
.form-note.ok { color: var(--accent-3); }
.form-note.err { color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted); margin-top: .6rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.footer-cols h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-cols a { display: block; color: var(--muted); padding: .25rem 0; font-size: .92rem; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding: 1.4rem 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; flex-wrap: wrap; gap: .5rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy .lead { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { height: 60px; }
  .brand-logo { height: 30px; }
  .nav-toggle { display: flex; padding: 8px; }
  .nav-toggle span { width: 26px; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 1rem 24px; transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links li { padding: .5rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .footer-cols { grid-template-columns: 1fr; }
}

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

/* ============================================================
   Added components — theme toggle, hero badge, process, FAQ
   ============================================================ */

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; padding: 0; transition: transform .18s ease, border-color .18s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(20deg); border-color: var(--accent); }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gradient); display: block; }

/* Hero trust badge */
.hero-trust { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); }

/* Process steps */
.steps { counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.step-num {
  display: inline-block; font-size: 2rem; font-weight: 800; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: .6rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
.faq-container { max-width: 780px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 1.3rem;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(255,255,255,0.18); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0;
  font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-3); font-weight: 400;
  transition: transform .2s ease; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 0 0 1.1rem; font-size: .95rem; }

/* ---------- Service tiers (Full Management vs Chatting Only) ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tier-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
}
.tier-featured:hover { border-color: transparent; }
.tier-badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 1rem;
}
.tier-badge-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.tier h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.tier-tagline { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: .8rem;
  flex: 1;
}
.tier-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
}
.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
}
.tier .btn { margin-top: auto; }

@media (max-width: 760px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ---------- Brand logo image ---------- */
.brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand-logo { height: 38px; }
@media (max-width: 680px) { .brand-logo { height: 30px; } }

/* ---------- Hero graphic (mountain) ---------- */
.hero-graphic {
  position: relative;
  width: 82%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.5));
  animation: float 8s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-graphic { animation: floatY 8s ease-in-out infinite; }

/* Marquee brand logos */
.mq-item { display: inline-flex; align-items: center; transition: opacity .2s ease, color .2s ease; }
.mq-item svg { width: 30px; height: 30px; display: block; fill: currentColor; }
.mq-item.mq-word { font-size: 1.35rem; }
.mq-item:hover { opacity: 1; color: var(--text); }

/* ---------- Section CTA (button under a section) ---------- */
.section-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Case studies page ---------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(650px circle at 30% 0%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(500px circle at 80% 20%, rgba(255,92,157,0.12), transparent 55%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: 0 auto; }

.cs-summary { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.4rem; }
.cs-summary strong { display: block; font-size: 2rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-summary span { font-size: .85rem; color: var(--muted); }

.cs-list { display: grid; gap: 1.6rem; }
.cs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cs-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.35); box-shadow: var(--shadow); }
.cs-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cs-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px;
  background: var(--gradient); color: #fff; margin-bottom: .7rem;
}
.cs-head h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.cs-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.cs-metric {
  display: flex; align-items: baseline; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; position: relative;
}
.cs-from { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.cs-arrow { color: var(--accent-3); font-weight: 700; }
.cs-to { font-size: 1.9rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-metric small { position: absolute; bottom: -1.4rem; left: 0; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.cs-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.8rem; align-items: start; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.cs-columns .cs-slider { margin-top: 0; }
.cs-body { display: grid; gap: 1.1rem; align-content: start; }
.cs-body h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-3); margin-bottom: .4rem; }
.cs-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.cs-quote {
  margin: 1.6rem 0 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.02rem; font-style: italic; color: var(--text);
}
.cs-disclaimer { padding: 0 0 1rem; }
.cs-disclaimer p { max-width: 760px; margin: 0 auto; text-align: center; color: var(--muted); font-size: .85rem; }
.cs-cta { text-align: center; max-width: 620px; margin: 0 auto; }

@media (max-width: 760px) {
  .cs-metric small { position: static; display: block; margin-top: .3rem; }
  .cs-columns { grid-template-columns: 1fr; gap: 1.4rem; }
  .cs-body { grid-template-columns: 1fr; gap: 1.1rem; }
  .cs-summary { gap: 1.8rem; }
}

/* ---------- Case study image slider ---------- */
.cs-slider { margin-top: 1.6rem; }
.cs-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.cs-slides { display: flex; transition: transform .4s ease; }
.cs-slide { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; }
.cs-slide img {
  width: 100%; height: auto; display: block;
  max-height: 480px; object-fit: contain; background: #000;
}
.cs-slide figcaption { padding: .85rem 1.1rem; color: var(--muted); font-size: .9rem; text-align: center; }
.cs-slide figcaption code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 5px; font-size: .85em; }

/* Empty placeholder slide */
.cs-slide-empty .cs-empty {
  min-height: 220px; margin: 1rem;
  display: grid; place-items: center; gap: .3rem;
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--muted); text-align: center;
}
.cs-empty span { font-size: 2rem; }
.cs-empty p { margin: 0; font-weight: 600; }

/* Control bar (arrows + dots) below the slide */
.cs-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.cs-nav {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.cs-nav:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Dots */
.cs-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .9rem; }
.cs-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.cs-dot.active { background: var(--accent); transform: scale(1.3); }

/* ---------- Case study 3-stage story slides ---------- */
.cs-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: center; padding: 1.6rem; width: 100%; }
.cs-stage-num {
  display: inline-block; font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent-3); margin-bottom: .6rem;
}
.cs-stage-text h4 { font-size: 1.15rem; margin: 0 0 .5rem; }
.cs-stage-text p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.cs-stage-media img {
  width: 100%; height: auto; display: block; max-height: 340px;
  object-fit: contain; border-radius: var(--radius-sm); background: #000; border: 1px solid var(--border);
}
.cs-stage-media .cs-empty { margin: 0; min-height: 200px; }
@media (max-width: 760px) {
  .cs-stage { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.2rem; }
}

/* ---------- Mobile overflow fixes (case study sliders) ---------- */
.cs-card { min-width: 0; }
.cs-slider, .cs-viewport { min-width: 0; max-width: 100%; }
.cs-slide { min-width: 0; }
.cs-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-stage-text, .cs-stage-media { min-width: 0; }
.cs-stage-media img { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .cs-stage { grid-template-columns: minmax(0, 1fr); }
  .cs-card { padding: 1.3rem; }
}

/* Constrain the case-study grid column so wide sliders can't stretch the page */
.cs-list { grid-template-columns: minmax(0, 1fr); }
.cs-card { overflow: hidden; }

.cs-controls .cs-dots { margin-top: 0; }

/* ---------- Bigger case-study screenshots ---------- */
.cs-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.cs-stage-media img { max-height: 400px; }
@media (max-width: 760px) {
  .cs-stage { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; }
  .cs-stage-media img {
    max-height: none;
    width: calc(100% + 2.2rem);
    max-width: calc(100% + 2.2rem);
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    border-radius: 8px;
  }
}

.cs-when { display: inline-block; margin-top: .9rem; font-size: .78rem; font-weight: 600; color: var(--muted); padding: .32rem .75rem; border: 1px solid var(--border); border-radius: 999px; }

/* ---------- Apply page ---------- */
.apply-wrap { max-width: 560px; margin: 0 auto; }
.apply-contact { max-width: 560px; margin: 1.6rem auto 0; text-align: center; justify-items: center; }

/* ---------- Apply wizard ---------- */
.apply-section { padding-top: clamp(2rem, 5vw, 3.2rem); }
.apply-intro { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.apply-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.apply-intro .lead { color: var(--muted); font-size: 1.05rem; }

.wizard {
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.wiz-top { margin-bottom: 1.8rem; }
.wiz-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.wiz-progress span { display: block; height: 100%; width: 16.66%; background: var(--gradient); border-radius: 999px; transition: width .4s ease; }
.wiz-meta { display: flex; justify-content: space-between; margin-top: .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizfade .3s ease; }
@keyframes wizfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-step h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .25rem; }
.wiz-sub { color: var(--muted); margin-bottom: 1.6rem; }

.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.wiz-grid .field.full { grid-column: 1 / -1; }
.field label .hint { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .85em; }

.wiz-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-weight: 500 !important; color: var(--text) !important; }
.wiz-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; flex: none; }
.wiz-privacy { margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent-2); }

.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.wiz-back { background: none; border: 0; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; cursor: pointer; padding: .6rem .2rem; }
.wiz-back:hover { color: var(--text); }
.wiz-back[hidden] { display: none; }
.wiz-next { margin-left: auto; }

.wiz-success { text-align: center; padding: 1.5rem 0; }
.wiz-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center; font-size: 1.9rem; color: #fff;
  background: var(--gradient); box-shadow: 0 10px 30px rgba(124,92,255,0.4);
}
.wiz-success h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.wiz-success p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

@media (max-width: 600px) {
  .wiz-grid { grid-template-columns: 1fr; }
}

/* Apply wizard — multi-select challenge chips */
.wiz-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.wiz-checks .wiz-check {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem .95rem; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.wiz-checks .wiz-check:hover { border-color: var(--accent); }
.wiz-checks .wiz-check:has(input:checked) { border-color: var(--accent); background: rgba(124,92,255,0.12); }
.challenge-other { margin-top: 1.1rem; }
@media (max-width: 600px) { .wiz-checks { grid-template-columns: 1fr; } }

/* FAQ process steps */
.faq-item ol.faq-steps { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; padding-left: 1.3rem; }
.faq-item ol.faq-steps li { margin: .3rem 0; }
.faq-item ol.faq-steps li::marker { color: var(--accent-3); font-weight: 700; }

/* ---------- Prevent horizontal overflow from form controls (mobile) ---------- */
html { overflow-x: clip; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.field { min-width: 0; }
.wiz-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wiz-grid > * { min-width: 0; }
@media (max-width: 600px) { .wiz-grid { grid-template-columns: minmax(0, 1fr); } }

/* Prevent mobile auto-zoom on input focus — font-size must be >= 16px */
.field input, .field textarea, .field select { font-size: 16px; }
