/* ============================================
   OpFlow -- Main Stylesheet
   Swiss Clean | Inter | Dual Accent
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0F2A4A;
  --indigo: #4F46E5;
  --indigo-light: #6366F1;
  --indigo-subtle: #EEF2FF;
  --orange: #EA580C;
  --orange-subtle: #FFF7ED;
  --grey: #6B7280;
  --grey-light: #9CA3AF;
  --border: #E5E7EB;
  --surface: #F3F4F6;
  --bg: #FAFAFA;
  --white: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --section-gap: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-light); }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 48px; letter-spacing: -0.03em; }
h2 { font-size: 32px; letter-spacing: -0.02em; }
h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 600; }

.section-heading {
  margin-bottom: 48px;
}

.subtext {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 3px;
}

.badge-indigo {
  background: var(--indigo-subtle);
  color: var(--indigo);
}

.badge-orange {
  background: var(--orange-subtle);
  color: var(--orange);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: #C2410C;
  color: var(--white);
}

.btn-indigo {
  background: var(--indigo);
  color: var(--white);
}
.btn-indigo:hover {
  background: #4338CA;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  padding: 10px 12px;
}
.btn-ghost:hover {
  background: var(--indigo-subtle);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  transition: background 0.15s;
}

.card:hover {
  background: var(--surface);
}

/* --- Section backgrounds --- */
.bg-surface { background: var(--surface); }
.bg-white { background: var(--bg); }
.bg-orange-subtle { background: var(--orange-subtle); }

/* --- Icons --- */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-container svg {
  width: 24px;
  height: 24px;
}

.icon-container-indigo {
  background: var(--indigo-subtle);
}

.icon-container-indigo svg {
  stroke: var(--indigo);
}

.icon-container-orange {
  background: var(--orange-subtle);
}

.icon-container-orange svg {
  stroke: var(--orange);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-logo .op { color: var(--navy); }
.nav-logo .flow { color: var(--indigo); }

.nav-logo-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--indigo);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--section-gap) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-visual .card {
  padding: 0;
  overflow: hidden;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-after-col {
  padding: 28px 24px;
}

.before-after-col:first-child {
  border-right: 1px solid var(--border);
}

.before-after-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.before-after-label.before { color: var(--grey); }
.before-after-label.after { color: var(--indigo); }

.before-after-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--navy);
}

.before-after-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.before-after-item.manual svg { stroke: var(--grey-light); }
.before-after-item.automated svg { stroke: var(--indigo); }

/* ============================================
   PROBLEM STATEMENT
   ============================================ */
.problems {
  padding: var(--section-gap) 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card p {
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================
   ROI CALCULATOR
   ============================================ */
.calculator {
  padding: var(--section-gap) 0;
  text-align: center;
}

.calculator .calc-layout {
  text-align: left;
}

.calc-layout {
  max-width: 640px;
  margin: 0 auto;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.calc-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--orange);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--orange);
}

.calc-slider-value {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-left: 8px;
}

.calc-select {
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  width: 200px;
}

.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.calc-result p {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 8px;
}

.calc-result .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-gap) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.services-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.service-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item .icon-container {
  width: 40px;
  height: 40px;
}

.service-item .icon-container svg {
  width: 20px;
  height: 20px;
}

.service-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.service-info p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

.services-cta {
  margin-top: 32px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--section-gap) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step .icon-container {
  width: 56px;
  height: 56px;
}

.step .icon-container svg {
  width: 28px;
  height: 28px;
}

.step h4 {
  font-size: 16px;
}

.step p {
  font-size: 14px;
  color: var(--grey);
  max-width: 200px;
}

.step-connector {
  width: 80px;
  height: 1px;
  background: var(--border);
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.social-proof {
  padding: var(--section-gap) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  font-style: normal;
}

.testimonial-card .attribution {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-card .business {
  font-size: 13px;
  color: var(--grey);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--section-gap) 0;
}

.cta-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand .nav-logo {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.footer-brand .nav-logo .op { color: var(--white); }
.footer-brand .nav-logo .flow { color: var(--orange); }

.footer-tagline {
  font-size: 13px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  font-size: 14px;
}

.footer-contact p {
  margin-bottom: 4px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 48px 0 0;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-sub {
  font-size: 18px;
  color: var(--grey);
  max-width: 560px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--indigo);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--indigo-light);
}

.breadcrumb span {
  color: var(--navy);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-section {
  padding: var(--section-gap) 0;
}

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--orange);
}

.form-group .optional {
  color: var(--grey);
  font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--indigo);
}

.form-group textarea {
  resize: vertical;
}

.contact-success {
  max-width: 560px;
}

.contact-success h2 {
  margin-bottom: 8px;
}

.contact-success p {
  color: var(--grey);
  font-size: 16px;
}

.contact-location {
  max-width: 560px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--grey);
}

.contact-location p {
  margin-bottom: 4px;
}

/* ============================================
   FOOTER EXTENDED (social, subscribe)
   ============================================ */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--orange);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-subscribe {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-subscribe-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-subscribe-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.footer-subscribe-form input[type="email"] {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer-subscribe-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  z-index: 200;
}

.cookie-banner a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* ============================================
   SERVICE DETAIL
   ============================================ */
.service-detail {
  padding: var(--section-gap) 0;
}

.service-detail-content {
  max-width: 720px;
}

.service-detail-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.service-detail-content p,
.service-detail-content li {
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-detail-content ul,
.service-detail-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.service-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.service-detail-content th,
.service-detail-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.service-detail-content th {
  font-weight: 600;
  background: var(--surface);
}

.service-detail-content strong {
  font-weight: 600;
}

/* ============================================
   SERVICE DETAIL V2 (redesigned)
   ============================================ */
.breadcrumb-bar {
  background: var(--bg);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.breadcrumb a { color: var(--grey); }
.breadcrumb span:last-child { color: var(--navy); }

.svc-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.svc-hero-grid {
  display: flex;
  gap: 64px;
  align-items: center;
}

.svc-hero-content {
  flex: 1;
}

.svc-hero-content h1 {
  margin: 16px 0;
}

.svc-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 20px;
}

.svc-hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.svc-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
  flex-shrink: 0;
}

.stat-card {
  padding: 24px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.48px;
}

.stat-label {
  font-size: 14px;
  color: var(--grey);
}

/* Service sections */
.svc-section {
  padding: 64px 0;
}

.svc-section h2 {
  margin-bottom: 32px;
}

.svc-section.bg-default { background: var(--bg); }
.svc-section.bg-surface { background: var(--surface); }
.svc-section.bg-white { background: var(--white); }

.section-sub {
  color: var(--grey);
  margin-bottom: 32px;
}

/* Icon card grid */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.icon-card-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.icon-card {
  padding: 24px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-card-compact {
  padding: 20px;
  gap: 8px;
}

.icon-card-icon {
  color: var(--indigo);
  flex-shrink: 0;
}

.icon-card h4 {
  font-size: 16px;
  font-weight: 600;
}

.icon-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

.fw-500 { font-weight: 500; }

/* Step cards */
.step-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  padding: 24px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -1px;
  line-height: 1;
}

.step-card h4 {
  font-size: 18px;
  font-weight: 600;
}

.step-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

/* Audience section */
.svc-audience-grid {
  display: flex;
  gap: 64px;
  align-items: center;
}

.svc-audience-text {
  flex: 1;
}

.svc-audience-text h2 {
  margin-bottom: 16px;
}

.svc-audience-text p {
  line-height: 1.6;
}

.svc-audience-tags {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.industry-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
}

.industry-tag svg {
  color: var(--indigo);
  flex-shrink: 0;
}

/* Tier cards */
.tier-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}

.tier-card {
  padding: 32px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier-card h3 {
  font-size: 20px;
  font-weight: 600;
}

.tier-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
}

.tier-period {
  font-size: 14px;
  color: var(--grey);
}

.tier-divider {
  height: 1px;
  background: var(--border);
}

.tier-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.tier-feature svg {
  color: var(--indigo);
  flex-shrink: 0;
}

.tier-popular {
  background: var(--indigo-subtle);
  border: 2px solid var(--indigo);
}

.tier-popular .tier-divider {
  background: var(--indigo);
}

.badge-indigo-solid {
  background: var(--indigo);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Testimonial */
.testimonial-heading {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.24px;
}

.testimonial-card {
  padding: 32px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}

.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey);
}

.testimonial-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--indigo);
}

/* Service CTA */
.svc-cta {
  background: var(--orange-subtle);
  padding: 64px 0;
}

.svc-cta h2 {
  margin-bottom: 8px;
}

.svc-cta p {
  color: var(--grey);
  margin-bottom: 24px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Service V2 responsive */
@media (max-width: 1024px) {
  .svc-hero-grid {
    flex-direction: column;
    gap: 32px;
  }

  .svc-hero-stats {
    width: 100%;
    flex-direction: row;
  }

  .stat-card {
    flex: 1;
  }

  .icon-card-grid,
  .step-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon-card-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .svc-audience-grid {
    flex-direction: column;
    gap: 32px;
  }

  .svc-audience-tags {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .industry-tag {
    flex: 1;
    min-width: 180px;
  }

  .tier-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .svc-hero {
    padding: 40px 0;
  }

  .svc-hero-stats {
    flex-direction: column;
  }

  .icon-card-grid,
  .step-card-grid,
  .icon-card-grid-5 {
    grid-template-columns: 1fr;
  }

  .tier-card-grid {
    grid-template-columns: 1fr;
  }

  .svc-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .svc-hero-buttons .btn {
    text-align: center;
  }

  .stat-value {
    font-size: 20px;
  }
}

/* ============================================
   CTA CARD (reusable)
   ============================================ */
.cta-card {
  padding: 32px;
  border-radius: 4px;
  margin-top: 48px;
  max-width: 720px;
}

.cta-card h3 {
  margin-bottom: 8px;
}

.cta-card p {
  color: var(--grey);
  margin-bottom: 16px;
}

/* ============================================
   BLOG
   ============================================ */
.blog-listing {
  padding: var(--section-gap) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.blog-date {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.empty-state {
  padding: 48px 0;
  color: var(--grey);
  font-size: 16px;
}

/* ============================================
   ARTICLE (blog + case study)
   ============================================ */
.article-page {
  padding: var(--section-gap) 0;
}

.article-page .container {
  max-width: 720px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.article-body {
  margin-top: 32px;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body li {
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--indigo);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--grey);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-body th {
  font-weight: 600;
  background: var(--surface);
}

.article-body table strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-body table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
  }

  .article-body th,
  .article-body td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-studies-listing {
  padding: var(--section-gap) 0;
}

.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.case-study-card h3 {
  font-size: 20px;
  font-weight: 600;
}

.case-study-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--grey);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.metric-label {
  font-size: 13px;
  color: var(--grey);
  margin-top: 4px;
}

.case-study-quote {
  padding: 24px;
  margin: 32px 0;
  font-style: italic;
  line-height: 1.6;
}

.case-study-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: var(--section-gap) 0;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  cursor: pointer;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 24px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--grey);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 24px 16px;
  color: var(--navy);
  line-height: 1.6;
}

/* ============================================
   ABOUT
   ============================================ */
.about-description {
  padding: var(--section-gap) 0;
}

.about-text {
  max-width: 640px;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 16px;
}

.about-team {
  padding: var(--section-gap) 0;
}

.founder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 800px;
}

.founder-photo img {
  width: 280px;
  height: auto;
  border-radius: 4px;
}

.founder-card {
  max-width: 640px;
}

.founder-card h3 {
  margin-bottom: 4px;
}

.founder-role {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 16px;
}

.founder-bio {
  line-height: 1.7;
}

.founder-bio p {
  margin-bottom: 12px;
}

.about-values {
  padding: var(--section-gap) 0;
}

/* ============================================
   SERVICES LISTING
   ============================================ */
.services-full {
  padding: var(--section-gap) 0;
}

.services-full h2 {
  margin-bottom: 24px;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-full-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.service-full-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.service-full-card p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
  flex: 1;
}

/* ============================================
   TIER CARDS
   ============================================ */
.tier-section {
  padding: var(--section-gap) 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier-card {
  text-align: center;
  padding: 32px 24px;
}

.tier-card h3 {
  margin-bottom: 8px;
}

.tier-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.tier-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
}

.tier-features {
  list-style: none;
  margin-bottom: 24px;
}

.tier-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-card-highlight {
  background: var(--surface);
  border-color: var(--indigo);
  border-width: 2px;
}

/* ============================================
   WORKSHOPS
   ============================================ */
.workshops-formats {
  padding: var(--section-gap) 0;
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.workshop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workshop-card ul {
  list-style: none;
  padding: 0;
}

.workshop-card li {
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.workshop-card li:last-child {
  border-bottom: none;
}

.workshops-takeaways {
  padding: var(--section-gap) 0;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.takeaway-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaway-item p {
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   QUIZ
   ============================================ */
.quiz-section {
  padding: var(--section-gap) 0;
}

.quiz-container {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-question h4 {
  margin-bottom: 16px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.quiz-option:hover {
  background: var(--surface);
}

.quiz-option:has(input:checked) {
  border-color: var(--indigo);
  background: var(--indigo-subtle);
}

.quiz-option input[type="radio"] {
  accent-color: var(--indigo);
}

.quiz-result {
  max-width: 640px;
  margin-top: 16px;
  background: var(--white);
  border: 2px solid var(--indigo);
}

.quiz-result h3 {
  margin-bottom: 8px;
}

.quiz-result p {
  color: var(--grey);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ============================================
   UTILITY PAGES (404, thank you)
   ============================================ */
.utility-page {
  padding: 120px 0;
}

.utility-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.utility-inner h1 {
  margin-bottom: 12px;
}

.utility-inner p {
  color: var(--grey);
  font-size: 16px;
  margin-bottom: 28px;
}

.utility-inner .hero-buttons {
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .services-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .takeaways-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-gap: 56px; }

  h1 { font-size: 28px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }

  .container { padding: 0 16px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    z-index: 100;
  }
  .nav-hamburger { display: block; }

  /* Hero: headline first, card below */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-sub { font-size: 16px; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-buttons .btn { justify-content: center; }

  /* Before/after card */
  .before-after { grid-template-columns: 1fr; }
  .before-after-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Grids to single column */
  .problems-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-cards-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .workshop-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .takeaways-grid { grid-template-columns: 1fr; }

  /* Steps: vertical */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-connector {
    width: 1px;
    height: 24px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-subscribe-form { flex-direction: column; }

  /* Founder */
  .founder-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .founder-photo img {
    width: 200px;
    height: auto;
  }

  /* Page elements */
  .page-sub { font-size: 16px; }
  .section-heading { margin-bottom: 32px; }
  .cta-inner h2 { font-size: 24px; }

  /* Calculator */
  .calc-select { width: 100%; }

  /* Tier cards */
  .tier-card { padding: 24px 16px; }
  .tier-price { font-size: 28px; }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Utility pages */
  .utility-page { padding: 80px 0; }
}

/* Small phones */
@media (max-width: 380px) {
  h1 { font-size: 24px; }
  .nav-logo { font-size: 18px; }
  .nav-logo-icon { width: 24px; height: 24px; }
}
