@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&family=Inter:wght@400;500&display=swap');

/* ── Design tokens ── */
:root {
  --purple: #7B2FBE;
  --coral: #F4845F;
  --navy: #1A1A2E;
  --light-gray: #F5F5F7;
  --medium-gray: #E5E7EB;
  --mid-gray: #6B7280;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #7B2FBE 0%, #F4845F 100%);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --header-h: 72px;
  --max-w: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--gray { background: var(--light-gray); }
.section--navy { background: var(--navy); color: var(--white); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.display {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: clamp(30px, 4vw, 36px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 1.7; }
.label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--purple);
  color: var(--white);
}
.btn--primary:hover { background: #6824a8; }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn--outline-dark:hover { background: var(--purple); color: var(--white); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(26,26,46,0.08); }
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 36px; width: auto; }

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--purple); background: var(--light-gray); }
.nav-link.active { color: var(--purple); }
.nav-link:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--light-gray); }
.nav-toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--medium-gray);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(26,26,46,0.12);
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 16px;
  padding: 12px 16px;
}
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--white);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: var(--gradient);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { max-width: 680px; }
.hero .label { margin-bottom: 16px; }
.hero .display { margin-bottom: 20px; }
.hero .display em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subhead {
  font-size: 18px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner page hero */
.page-hero {
  background: var(--light-gray);
  padding: 64px 0 56px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .hero-subhead { margin-bottom: 0; }

/* ── Section labels + headings ── */
.section-header { margin-bottom: 48px; }
.section-header .label { margin-bottom: 10px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--mid-gray); max-width: 560px; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }

/* ── Service cards (3-up) ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 4px 24px rgba(123,47,190,0.1); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3E8FF;
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--purple);
}
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--mid-gray); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

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

/* ── Who it's for ── */
.who-band {
  background: var(--navy);
  padding: 72px 0;
  color: var(--white);
}
.who-inner { max-width: 680px; }
.who-band .label { color: rgba(255,255,255,0.5); }
.who-band h2 { color: var(--white); margin: 10px 0 16px; }
.who-band p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.82); }

/* ── Why Zaiflow ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
}
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--mid-gray); font-size: 15px; line-height: 1.65; }

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

/* ── Process steps ── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}
.process-step {
  display: flex;
  gap: 20px;
  padding-bottom: 40px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--medium-gray);
}
.process-step:last-child::after { display: none; }
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-content { padding-top: 6px; }
.step-content h3 { margin-bottom: 6px; }
.step-content p { color: var(--mid-gray); font-size: 15px; }

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .process-step { flex-direction: column; align-items: flex-start; padding-bottom: 0; padding-right: 32px; }
  .process-step::after {
    left: 48px; right: 0; top: 19px; bottom: auto;
    height: 2px; width: auto;
  }
}

/* ── Proof / Case studies ── */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.proof-card {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  padding: 36px;
}
.proof-card--primary { border-color: var(--purple); border-width: 2px; }
.proof-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #F3E8FF;
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.proof-card h3 { margin-bottom: 20px; }
.proof-row { margin-bottom: 16px; }
.proof-row .label { color: var(--mid-gray); margin-bottom: 4px; display: block; }
.proof-row p { color: var(--navy); font-size: 15px; line-height: 1.6; }
.proof-outcome {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--medium-gray);
}
.proof-outcome .outcome-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-outcome .outcome-label { color: var(--mid-gray); font-size: 14px; }
.proof-quote {
  margin-top: 20px;
  font-style: italic;
  color: var(--mid-gray);
  font-size: 15px;
  border-left: 3px solid var(--coral);
  padding-left: 16px;
  line-height: 1.65;
}
.proof-own-product {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 24px 32px;
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 1.65;
}
.proof-own-product strong { color: var(--navy); }

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

/* ── CTA band ── */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ── Discovery form ── */
.form-section { padding: 80px 0; }
.form-wrap { max-width: 620px; }
.form-section h2 { margin-bottom: 8px; }
.form-section .form-sub { color: var(--mid-gray); margin-bottom: 40px; font-size: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group label .optional {
  font-weight: 400;
  color: var(--mid-gray);
  margin-left: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,190,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-submit { margin-top: 8px; }
.form-success {
  display: none;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius);
  padding: 24px 28px;
}
.form-success.visible { display: block; }
.form-success h3 { color: #166534; margin-bottom: 8px; }
.form-success p { color: #166534; font-size: 15px; opacity: 0.85; }

/* ── Services page ── */
.service-blocks { display: flex; flex-direction: column; gap: 48px; }
.service-block { padding-bottom: 48px; border-bottom: 1px solid var(--medium-gray); }
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.service-block-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.service-block-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #F3E8FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.service-block-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-block h2 { margin: 0; font-size: 22px; }
.service-block p { color: var(--mid-gray); font-size: 16px; line-height: 1.7; margin-bottom: 12px; max-width: 640px; }
.good-fit {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--navy);
}
.good-fit::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--coral);
  border-radius: 50%;
  margin-top: 1px;
}

/* How we work */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--medium-gray);
}
.how-step {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.how-item h3 { font-size: 16px; margin-bottom: 6px; }
.how-item p { font-size: 13px; color: var(--mid-gray); }

/* Swim-lane band */
.swim-lane {
  background: #FFF7F4;
  border: 1px solid #FFD5C5;
  border-radius: var(--radius);
  padding: 32px 36px;
}
.swim-lane h3 { margin-bottom: 8px; font-size: 18px; }
.swim-lane p { color: var(--mid-gray); font-size: 15px; line-height: 1.7; }
.swim-lane a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.swim-lane a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 2px; }

/* ── About page ── */
.story-wrap { max-width: 680px; }
.story-wrap p {
  font-size: 17px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.story-wrap p:last-child { margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--light-gray);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.team-card h3 { font-size: 19px; margin-bottom: 2px; }
.team-role {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.team-card p { color: var(--mid-gray); font-size: 15px; }

.beliefs-list { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }
.belief { display: flex; gap: 16px; align-items: flex-start; }
.belief-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #F3E8FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.belief-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.belief p { font-size: 16px; color: var(--navy); line-height: 1.65; margin-top: 6px; }

.d4-relation { max-width: 640px; }
.d4-relation p {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.75;
}
.d4-relation a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { height: 32px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 260px; }
.footer-nav-col h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-nav-col a:hover { color: var(--white); }
.footer-nav-col a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 2px; }
.footer-swim {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}
.footer-swim a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-swim a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── Divider ── */
.divider { height: 1px; background: var(--medium-gray); margin: 0; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus ring global ── */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
