/* ============================================
   Cambridge Webworks — Main Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --navy: #1e293b;
  --navy-dark: #0f172a;
  --navy-mid: #334155;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef3c7;
  --white: #ffffff;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-700: #334155;
  --text: #1e293b;
  --text-muted: #64748b;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 10px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

  --container: 1100px;
  --section-v: 5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--section-v) 0;
}

.section--grey {
  background: var(--grey-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy-dark {
  background: var(--navy-dark);
  color: var(--white);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 58ch;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header p {
  margin-top: 0.75rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-200);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--grey-50);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: all 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--navy);
  background: var(--grey-100);
}

.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.nav__hamburger:hover {
  background: var(--grey-100);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--grey-700);
  font-size: 0.95rem;
  transition: all 0.15s;
}

.nav__mobile a:hover,
.nav__mobile a.active {
  background: var(--grey-50);
  color: var(--navy);
}

.nav__mobile .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  color: var(--grey-400);
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--amber);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__logo-mark svg {
  width: 16px;
  height: 16px;
}

.footer__nav h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav a {
  color: var(--grey-400);
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

.footer__contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1rem;
}

.footer__contact p {
  color: var(--grey-400);
  font-size: 0.9rem;
  max-width: none;
}

.footer__contact a {
  color: var(--amber);
}

.footer__contact a:hover {
  color: var(--amber-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  color: var(--grey-400);
  font-size: 0.8rem;
  max-width: none;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Geometric background shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: var(--amber);
  top: -200px;
  right: -100px;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--white);
  bottom: -100px;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--amber);
  top: 60%;
  right: 20%;
  opacity: 0.04;
}

/* Grid lines overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--amber);
}

.hero .lead {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.15);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Pain Point Section
   ============================================ */
.pain {
  background: var(--white);
}

.pain__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.pain__visual {
  display: flex;
  justify-content: center;
}

.pain__graphic {
  width: 280px;
  height: 280px;
  position: relative;
  flex-shrink: 0;
}

.pain__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.pain__ring--1 {
  inset: 0;
  border-color: var(--grey-200);
}

.pain__ring--2 {
  inset: 30px;
  border-color: var(--grey-200);
}

.pain__ring--3 {
  inset: 60px;
  border-color: var(--amber);
  border-style: dashed;
  animation: spin 20s linear infinite;
}

.pain__center {
  position: absolute;
  inset: 90px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain__center svg {
  width: 40px;
  height: 40px;
  color: var(--amber);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .pain__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Services Tiles
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--grey-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap 0.15s;
}

.service-card__link:hover {
  gap: 0.6rem;
  color: var(--amber-dark);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   How It Works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.steps::before {
  display: none;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step__number {
  width: 52px;
  height: 52px;
  background: var(--amber);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

.step__content h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step__content p {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
}

/* ============================================
   Why Us
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-item {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.why-item h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.why-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.why-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-item__icon svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Bottom CTA
   ============================================ */
.cta-section {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
}

.cta-section--dark {
  background: var(--navy);
  border-top: none;
  color: var(--white);
}

.cta-section--dark h2 {
  color: var(--white);
}

.cta-section--dark p {
  color: rgba(255,255,255,0.7);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 0.75rem;
}

.cta-inner p {
  margin: 0 auto 2rem;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.pricing-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--amber);
  background: var(--navy);
  color: var(--white);
}

.pricing-card--featured:hover {
  border-color: var(--amber-dark);
}

.pricing-card--featured h3,
.pricing-card--featured .pricing-card__price {
  color: var(--white);
}

.pricing-card--featured .pricing-card__hosting,
.pricing-card--featured .pricing-card__body,
.pricing-card--featured .pricing-card__feature {
  color: rgba(255,255,255,0.75);
}

.pricing-card--featured .pricing-card__feature::before {
  color: var(--amber);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 0.75rem 0 0.25rem;
  letter-spacing: -0.03em;
}

.pricing-card__hosting {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 1rem;
}

.pricing-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-200);
}

.pricing-card--featured .pricing-card__body {
  border-bottom-color: rgba(255,255,255,0.12);
}

.pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--amber-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-card__best {
  font-size: 0.8rem;
  color: var(--grey-500);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.pricing-card--featured .pricing-card__best {
  color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Objection Section
   ============================================ */
.objection {
  background: var(--grey-50);
}

.objection__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.objection__points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.objection__point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.objection__point-icon {
  width: 38px;
  height: 38px;
  background: var(--amber-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.objection__point-icon svg {
  width: 18px;
  height: 18px;
  color: var(--amber-dark);
}

.objection__point h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.objection__point p {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .objection__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   AI Page — Feature Sections
   ============================================ */
.feature-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-section--reverse {
  direction: ltr;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-graphic {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  position: relative;
}

/* AI Visual */
.ai-visual {
  background: var(--grey-50);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
  width: 100%;
}

.ai-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ai-message--right {
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.ai-avatar--bot {
  background: var(--navy);
  color: var(--amber);
}

.ai-avatar--human {
  background: var(--grey-200);
  color: var(--grey-700);
}

.ai-bubble {
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 75%;
}

.ai-bubble--bot {
  background: var(--navy);
  color: var(--white);
}

.ai-bubble--human {
  background: var(--grey-200);
  color: var(--text);
}

.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 0.9rem;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-400);
  animation: bounce 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Workflow Visual */
.workflow-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 340px;
  width: 100%;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  position: relative;
}

.workflow-step + .workflow-step {
  margin-top: -1px;
}

.workflow-step:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.workflow-step:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.workflow-arrow {
  text-align: center;
  color: var(--amber);
  font-size: 1.2rem;
  line-height: 1;
  margin: 0;
  padding: 0.25rem 0;
  background: var(--white);
  border-left: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  font-weight: 700;
}

.workflow-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.workflow-step__dot--green { background: #22c55e; }
.workflow-step__dot--blue { background: #3b82f6; }
.workflow-step__dot--amber { background: var(--amber); }
.workflow-step__dot--purple { background: #a855f7; }

.workflow-step__text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .feature-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Examples Grid (Apps page)
   ============================================ */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.example-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
}

.example-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.example-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.example-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.example-card p {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .examples-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Process Steps (Apps page)
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.process-step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.process-step h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Pricing Note Box
   ============================================ */
.pricing-note {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.pricing-note h2 {
  margin-bottom: 0.75rem;
}

.pricing-note__tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.pricing-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.9rem;
}

.pricing-tier-row:last-child {
  border-bottom: none;
}

.pricing-tier-row span:first-child {
  color: var(--navy);
  font-weight: 500;
}

.pricing-tier-row span:last-child {
  color: var(--grey-500);
}

/* ============================================
   Discovery Section
   ============================================ */
.discovery-box {
  background: var(--amber-light);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.discovery-box h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.discovery-box h3 {
  color: var(--amber-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.discovery-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.discovery-box li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--navy);
  align-items: flex-start;
}

.discovery-box li::before {
  content: '→';
  color: var(--amber-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.discovery-box .deduction {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--grey-700);
  margin-top: 0.5rem;
}

/* ============================================
   Reassurance Box
   ============================================ */
.reassurance {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.reassurance h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.reassurance p {
  color: rgba(255,255,255,0.75);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.discovery-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.discovery-card h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.discovery-card .price-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  margin: 0.5rem 0 1rem;
}

.discovery-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.discovery-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.discovery-card li::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}

.discovery-card .deduction-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.direct-contact {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.direct-contact h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.contact-detail__icon {
  width: 34px;
  height: 34px;
  background: var(--grey-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

.contact-detail p {
  font-size: 0.875rem;
  margin: 0;
}

.contact-detail a {
  color: var(--amber-dark);
  font-weight: 600;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--amber-dark);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,41,59,0.08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-top: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 500px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Success message */
.form-success {
  display: none;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* ============================================
   Page Intro (inner page hero)
   ============================================ */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  background: linear-gradient(135deg, transparent 0%, rgba(245,158,11,0.06) 100%);
  pointer-events: none;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero .lead {
  color: rgba(255,255,255,0.75);
  position: relative;
  max-width: 60ch;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.85);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.breadcrumb strong {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ============================================
   Stat Strip
   ============================================ */
.stat-strip {
  background: var(--amber);
  padding: 1.5rem 0;
}

.stat-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-item__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8rem;
  color: rgba(30,41,59,0.7);
  font-weight: 500;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }

/* Wide body text (no max-width) */
p.wide { max-width: none; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
  :root {
    --section-v: 3.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pain__ring--3 {
    animation: none;
  }

  .ai-typing span {
    animation: none;
  }
}
