/* Accel Design
   Brand colors come from the proposal template and earlier site (purple, lavender, teal, navy).
   Navy carries the text, purple is for brand moments and actions, teal is the accent. */
/* Self-hosted fonts (Latin subset, variable weight). Served from this site, so no
   third-party requests to Google and one less origin to connect to before text renders. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-v23-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-v19-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --purple: #6e5084;
  --purple-dark: #573f6a;
  --purple-ink: #4a3560;
  --lavender: #f7f1fc;
  --lavender-card: #ede5f7;
  --lavender-line: #ddd0ec;
  --navy: #1e2245;
  --navy-2: #2b2f5c;
  --teal: #226663;
  --teal-bright: #37a69b;
  --teal-light: #e0f2ef;
  --periwinkle: #7c80e8;
  --white: #ffffff;

  /* Roles */
  --ink: var(--navy);           /* headings */
  --text: #3f4262;              /* body copy, 9:1 on white */
  --muted: #5f6280;             /* secondary copy, 5.9:1 on white */
  --surface: var(--white);
  --page: #fdfbff;
  --line: #e8e1f1;

  --radius-pill: 999px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(30, 34, 69, 0.06), 0 2px 8px rgba(30, 34, 69, 0.04);
  --shadow: 0 1px 2px rgba(30, 34, 69, 0.05), 0 12px 32px -8px rgba(74, 53, 96, 0.18);
  --shadow-lg: 0 2px 4px rgba(30, 34, 69, 0.04), 0 28px 60px -16px rgba(74, 53, 96, 0.30);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Scale the fallback font to the web font's x-height so text doesn't jump when the font swaps in */
  font-size-adjust: from-font;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--ink); }
::selection { background: var(--lavender-card); color: var(--navy); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }
.nowrap { white-space: nowrap; }
.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; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight-top { padding-top: clamp(40px, 6vw, 72px); }
.section--lavender { background: var(--lavender); }
.section--white { background: var(--white); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split > * { min-width: 0; }
.split--reverse > :first-child { order: 2; }
.split--wide-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
@media (max-width: 860px) {
  .split, .split--wide-text { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .lead { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--text); }
.measure { max-width: 46rem; }
.note { color: var(--muted); }

/* Illustration frame: soft lavender disc behind transparent art */
.art { position: relative; isolation: isolate; }
.art::before {
  content: ""; position: absolute; z-index: -1;
  inset: 8% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 128, 232, 0.20), rgba(124, 128, 232, 0.08) 60%, transparent 100%);
}
.art--panel { background: var(--lavender); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 40px); }
.art--panel::before { display: none; }
.art img { margin: 0 auto; }
.art--narrow { width: min(100%, 420px); justify-self: center; }
.art--spaced { margin-top: 1.5rem; }
.check-list--spaced { margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn::after {
  content: ""; width: 1.05em; height: 1.05em; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.2s var(--ease);
}
.btn:hover { --btn-bg: var(--purple-dark); color: var(--btn-fg); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.btn--light:hover { --btn-bg: var(--lavender); --btn-fg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--purple); border-color: var(--lavender-line); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--lavender); --btn-fg: var(--purple-dark); border-color: var(--lavender-card); box-shadow: none; }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.95rem; }
.btn--sm::after { display: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-head); font-weight: 700; color: var(--purple);
  text-decoration: none;
}
.text-link::after {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.2s var(--ease);
}
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header--lavender { background: rgba(247, 241, 252, 0.82); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(30, 34, 69, 0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none; letter-spacing: -0.035em; white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo img { width: 32px; height: 32px; }
/* Wordmark: "accel" bold navy, "design" lighter purple, teal period (logo option 4c) */
.logo-soft { font-weight: 600; color: var(--purple); }
.logo-dot { color: var(--teal); }
.footer-brand .logo-soft { color: #c9b6ff; }
.footer-brand .logo-dot { color: #8fe0d6; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
  text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 0.97rem;
  transition: background-color 0.15s, color 0.15s;
}
.nav-links a:not(.btn):hover { background: var(--lavender-card); color: var(--navy); }
.nav-links a[aria-current] { color: var(--purple); background: var(--lavender-card); }
.nav-links .nav-app { margin-left: 0.75rem; }
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .btn { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--navy); border-radius: 10px; }
.nav-toggle svg { width: 28px; height: 28px; display: block; }
/* Tighter desktop nav just above the phone menu so both header buttons fit on one line */
@media (max-width: 1080px) {
  .nav-links a:not(.btn) { padding: 0.5rem 0.6rem; }
  .nav-links .nav-app { margin-left: 0.4rem; }
  .nav-links .nav-cta { margin-left: 0.4rem; }
}
/* Five nav links plus two buttons: shrink a little more on the narrowest desktop widths */
@media (min-width: 901px) and (max-width: 1020px) {
  .nav { gap: 0.5rem; }
  .logo { font-size: 1.15rem; gap: 0.45rem; }
  .logo img { width: 28px; height: 28px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.btn) { padding: 0.45rem 0.45rem; font-size: 0.9rem; }
  .nav-links .btn--sm { padding: 0.6em 0.85em; font-size: 0.88rem; }
  .nav-links .nav-app, .nav-links .nav-cta { margin-left: 0.3rem; }
}

@media (max-width: 900px) {
  .nav { height: 68px; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .logo { position: relative; z-index: 60; }
  .nav-links {
    display: none;
    position: fixed; inset: 0;
    height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 96px var(--gutter) 32px;
    background: var(--page);
    z-index: 55;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); padding: 0.5rem 0; background: none; border-radius: 0; border-bottom: 1px solid var(--line); display: block; }
  .nav-links a:not(.btn):hover, .nav-links a[aria-current] { background: none; color: var(--purple); }
  .nav-links .nav-app { margin: auto 0 0; }
  .nav-links .nav-cta { margin: 0.5rem 0 0; }
  .nav-links .nav-app .btn, .nav-links .nav-cta .btn { width: 100%; padding: 1.05em; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lavender);
  padding: clamp(28px, 4vw, 56px) 0 clamp(96px, 11vw, 150px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px);
}
.hero::before { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -8vw; top: -10vw; background: radial-gradient(closest-side, rgba(124, 128, 232, 0.26), transparent); }
.hero::after { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: -10vw; bottom: -12vw; background: radial-gradient(closest-side, rgba(55, 166, 155, 0.16), transparent); }
.hero .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 4vw, 64px); }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.15rem); margin-bottom: 0.4em; }
.hero .lead { max-width: 37rem; font-size: clamp(1.08rem, 1.35vw, 1.18rem); }
.hero img { width: 100%; }
.hl { color: var(--purple); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0.1em; bottom: 0.02em; height: 0.14em; z-index: -1;
  background: linear-gradient(90deg, var(--teal-bright), var(--periwinkle));
  border-radius: 999px; opacity: 0.55;
}
.hero-meta { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-meta li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8); color: var(--navy);
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius-pill);
  padding: 0.4em 0.95em 0.4em 0.6em; font-size: 0.93rem; font-weight: 600;
}
.hero-meta li::before {
  content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; flex-shrink: 0;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (max-width: 860px) {
  .hero .split { grid-template-columns: minmax(0, 1fr); }
  .hero img { max-width: 560px; }
}

/* Page hero for inner pages */
.page-hero { background: var(--lavender); padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; right: -10vw; top: -14vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 128, 232, 0.22), transparent); }
.page-hero .lead p:last-child { margin-bottom: 0; }

/* ---------- Credibility strip ---------- */
.cred { position: relative; z-index: 2; margin-top: clamp(-88px, -7vw, -56px); }
.cred__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.cred__item { display: flex; flex-direction: column; gap: 0.15rem; padding: clamp(18px, 2.4vw, 28px); }
.cred__item + .cred__item { border-left: 1px solid var(--line); }
.cred__item strong { font-family: var(--font-head); font-weight: 800; color: var(--purple); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -0.02em; }
.cred__item span { font-size: 0.93rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) {
  .cred__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred__item:nth-child(3) { border-left: 0; }
  .cred__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Pain list ---------- */
.pain-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.pain-list li {
  position: relative; padding: 1rem 1.15rem 1rem 3.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); line-height: 1.55;
}
.pain-list li::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--lavender-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e5084' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.closing {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--navy); margin: 1.75rem 0 0;
  padding-left: 1rem; border-left: 4px solid var(--teal-bright);
}

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: 0.75rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23226663' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.check-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; }
.check-list--grid li { margin: 0; }
@media (max-width: 700px) { .check-list--grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lavender-line); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text); font-size: 1rem; line-height: 1.65; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; margin-bottom: 1.1rem;
  background: var(--lavender-card); color: var(--purple);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card__icon--teal { background: var(--teal-light); color: var(--teal); }
.card__icon--peri { background: #e6e7fb; color: #4f53c4; }
.card--feature { padding: clamp(1.6rem, 3vw, 2.5rem); }
.card--feature h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.card--quiet { box-shadow: none; background: transparent; border-color: var(--lavender-line); }
.card--quiet:hover { background: var(--white); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--more { display: flex; flex-direction: column; border-style: dashed; }
.card--more p:last-child { margin-top: auto; padding-top: 0.75rem; }
@media (max-width: 1024px) { .card-grid--4, .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Packages (home) ---------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.package {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem); box-shadow: var(--shadow-sm);
}
.package__num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--lavender-card); color: var(--purple); font-family: var(--font-head); font-weight: 800; margin-bottom: 1rem;
}
.package h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 0.25rem; }
.package__length { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.package p:last-child { margin-bottom: 0; }
.package p { font-size: 1rem; }
.package--featured {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-ink) 100%);
  color: rgba(255, 255, 255, 0.9); border-color: transparent; box-shadow: var(--shadow-lg);
}
.package--featured h3 { color: var(--white); }
.package--featured .package__length { color: rgba(255, 255, 255, 0.78); }
.package--featured .package__num { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.package--featured .badge { position: absolute; top: clamp(1.5rem, 2.4vw, 2rem); right: clamp(1.5rem, 2.4vw, 2rem); }
@media (min-width: 961px) { .package--featured { transform: translateY(-12px); } }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr; max-width: 640px; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--teal-light); color: var(--teal);
  padding: 0.3em 0.75em; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 0.75rem; }
.accordion details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.accordion details[open] { border-color: var(--lavender-line); box-shadow: var(--shadow); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--navy); letter-spacing: -0.015em; line-height: 1.35;
  border-radius: var(--radius-sm);
}
.accordion summary:hover { color: var(--purple); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e5084' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--lavender-card); }
.accordion .panel { padding: 0 1.25rem 1.25rem; max-width: 42rem; }
.accordion .panel p { margin: 0; }

/* ---------- Services tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem 2rem; box-shadow: var(--shadow-sm);
}
.tier > :not(.tier__media):not(.tier__flag) { margin-left: clamp(0.5rem, 1.2vw, 1rem); margin-right: clamp(0.5rem, 1.2vw, 1rem); }
.tier__media { background: var(--lavender); border-radius: calc(var(--radius) - 6px); padding: 1rem; margin-bottom: 1.5rem; }
.tier img { height: 200px; width: 100%; object-fit: contain; }
.tier h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 0.4rem; }
.tier__length { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--teal); margin: 0 0 0.9rem; }
.tier__desc { font-size: 1rem; color: var(--text); }
.tier__plus { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 0.95rem; margin: 0.5rem 0 0.6rem; }
.tier ul { list-style: none; margin-top: 0.25rem; margin-bottom: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.tier li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23226663' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.tier--featured { border: 2px solid var(--purple); box-shadow: var(--shadow-lg); }
.tier__flag {
  position: absolute; top: -0.9rem; left: 50%; transform: translateX(-50%); z-index: 1;
  background: var(--purple); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.35rem 0.95rem; border-radius: var(--radius-pill); white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(74, 53, 96, 0.6);
}
@media (min-width: 961px) { .tier--featured { transform: translateY(-14px); } }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; gap: 2rem; } }

/* ---------- Comparison table ---------- */
.compare { margin-top: clamp(64px, 8vw, 112px); }
.compare h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.compare__scroll { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; background: var(--white); vertical-align: bottom; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.compare thead th.is-featured { background: var(--purple); color: var(--white); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--text); width: 34%; }
.compare tbody td:nth-child(3) { background: var(--lavender); }
.compare tbody tr:hover th, .compare tbody tr:hover td { background-color: #f3eefa; }
.compare .yes { display: inline-block; width: 1.4rem; height: 1.4rem; vertical-align: middle; border-radius: 50%; background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23226663' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 100% no-repeat; }
.compare .no { display: inline-block; width: 0.9rem; height: 2px; vertical-align: middle; background: #b9b0c6; border-radius: 2px; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); }
.compare__hint { display: none; font-size: 0.9rem; margin: -0.25rem 0 0.75rem; color: var(--muted); }
@media (max-width: 700px) {
  .compare table { min-width: 560px; font-size: 0.9rem; }
  .compare tbody th { width: 150px; min-width: 150px; }
  .compare th, .compare td { padding: 0.7rem 0.6rem; }
  .compare__hint { display: block; }
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; position: relative; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.85rem); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 14px;
  background: linear-gradient(150deg, var(--purple), var(--purple-ink)); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 1.1rem;
  box-shadow: 0 8px 16px -8px rgba(74, 53, 96, 0.6);
}
.step:last-child::before { background: linear-gradient(150deg, var(--teal-bright), var(--teal)); }
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; font-size: 0.98rem; }
@media (min-width: 961px) {
  .steps::before { content: ""; position: absolute; top: calc(clamp(1.4rem, 2.2vw, 1.85rem) + 1.5rem); left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--lavender-line) 0 8px, transparent 8px 14px); z-index: 0; }
  .step { z-index: 1; }
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Dark CTA band ---------- */
.section--band { padding: clamp(24px, 4vw, 56px) 0; }
.band {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 clamp(8px, 2vw, 24px);
  border-radius: clamp(24px, 4vw, 44px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(56px, 7vw, 96px) 0;
}
.band::before, .band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.band::before { width: 60%; aspect-ratio: 1; right: -18%; top: -40%; background: radial-gradient(closest-side, rgba(124, 128, 232, 0.45), transparent); }
.band::after { width: 50%; aspect-ratio: 1; left: -16%; bottom: -50%; background: radial-gradient(closest-side, rgba(55, 166, 155, 0.35), transparent); }
.band h2, .band h3 { color: var(--white); }
.band .lead { color: rgba(255, 255, 255, 0.86); }
.band--teal { background: var(--teal); }
.band--teal::before { background: radial-gradient(closest-side, rgba(55, 166, 155, 0.6), transparent); }
.band--teal::after { background: radial-gradient(closest-side, rgba(30, 34, 69, 0.45), transparent); }
.band .check-list li::before { background-color: rgba(255, 255, 255, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }
.band__length { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--white); background: rgba(255, 255, 255, 0.14); border-radius: var(--radius-pill); padding: 0.3em 0.9em; font-size: 0.95rem; margin: 0 0 1.25rem; }
.band img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25)); }

/* ---------- Bio ---------- */
.portrait { position: relative; isolation: isolate; justify-self: center; width: min(100%, 460px); }
.portrait::before {
  content: ""; position: absolute; inset: 10% 4% 0; z-index: -1;
  border-radius: 40% 40% var(--radius-lg) var(--radius-lg);
  background: linear-gradient(170deg, var(--lavender-card), var(--lavender));
}
.bio-title { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--teal); background: var(--teal-light); border-radius: var(--radius-pill); padding: 0.3em 0.9em; font-size: 0.95rem; margin: -0.25rem 0 1.25rem; }

/* ---------- Contact block + forms ---------- */
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.4rem; }
.form .req { font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-left: 0.35rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  border: 1.5px solid #857599; /* 4:1 against the field, meets the 3:1 rule for form controls */ border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; background: var(--page);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.form input:hover, .form textarea:hover { border-color: var(--purple); }
/* Transparent outline keeps a visible focus ring in Windows high contrast mode, where box-shadow is dropped */
.form input:focus, .form textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 4px rgba(124, 128, 232, 0.25); }
.form textarea { min-height: 150px; resize: vertical; }
/* Error state only after someone has interacted with the field (not on page load) */
.form input:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
.form input:user-invalid:focus, .form textarea:user-invalid:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.18); }
.field-error { display: block; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #b3261e; }
.field-error:empty { display: none; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.95rem; margin: 0; color: var(--teal); font-weight: 600; }
.form-note:empty { display: none; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

.contact-aside .lead { margin-bottom: 1.5rem; }
.contact-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.85rem; }
.contact-points li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--navy); }
.contact-points svg { width: 1.25rem; height: 1.25rem; color: var(--purple); flex-shrink: 0; }

/* Booking calendar (Cal.com inline embed) */
.booking { margin-top: clamp(32px, 4vw, 48px); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px 0 16px; }
.booking__embed { width: 100%; min-height: 620px; overflow: auto; }
.booking__fallback { font-size: 0.93rem; margin: 1rem 0 0; text-align: center; color: var(--muted); padding: 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: clamp(64px, 8vw, 104px) 0 36px; }
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--white); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem 3rem; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.5rem); color: var(--white) !important; letter-spacing: -0.045em; line-height: 1; text-decoration: none; white-space: nowrap; }
.footer-email { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 2rem); text-decoration: none; letter-spacing: -0.02em; overflow-wrap: anywhere; background: linear-gradient(90deg, #c9b6ff, #8fe0d6); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.footer-email:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 28px; font-size: 0.93rem; }
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; letter-spacing: -0.06em; background: linear-gradient(135deg, var(--purple), var(--periwinkle)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.25rem; }
.not-found .actions { justify-content: center; }

/* ---------- Motion ---------- */
/* Reveal on scroll (only when JS is running, so content never stays hidden) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Gentle drift on illustrations as they pass through the viewport */
@supports (animation-timeline: view()) {
  .drift {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes drift {
    from { translate: 0 20px; }
    to { translate: 0 -20px; }
  }
}

/* Hero entrance: a small CSS-only lift on load. It never hides anything (no opacity change),
   so the headline and hero image count as painted right away. */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.hero-anim > * { animation: rise 0.9s var(--ease) both; }
.hero-anim > :nth-child(2) { animation-delay: 50ms; }
.hero-anim > :nth-child(3) { animation-delay: 100ms; }
.hero-anim > :nth-child(4) { animation-delay: 150ms; }
.hero-art { animation: rise 1.1s var(--ease) 80ms both; }

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

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 2em 0 0.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* ---------- Case study ---------- */
.cs-hero { padding-bottom: clamp(140px, 16vw, 220px); }
.cs-hero__text { max-width: 54rem; }
.cs-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.cs-eyebrow, .cs-step-label {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--teal); background: var(--teal-light); border-radius: var(--radius-pill); padding: 0.3em 0.9em; margin: 0 0 1.25rem;
}
.cs-step-label { margin-bottom: 0.9rem; font-size: 0.88rem; }
.cs-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.cs-facts li { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 0.98rem; line-height: 1.4; border-top: 2px solid var(--lavender-line); padding-top: 0.75rem; }
.cs-facts span { display: block; font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
@media (max-width: 860px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cs-feature { position: relative; z-index: 2; margin-top: clamp(-180px, -13vw, -96px); padding-bottom: clamp(48px, 6vw, 80px); }
.cs-media { margin: 0; }
.cs-media figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.98rem; text-align: center; }
.cs-note { margin: 1.25rem auto 0; max-width: 40rem; text-align: center; font-size: 0.93rem; color: var(--muted); }

/* Browser and phone frames around the walkthrough videos */
.browser {
  background: var(--white); border: 1px solid var(--line); border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.browser__bar { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; background: var(--navy); }
.browser__dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.browser__dots i:first-child { background: #8fe0d6; }
.browser__url {
  flex: 1; min-width: 0; max-width: 24rem; margin: 0 auto; text-align: center;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill); padding: 0.2em 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__url::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.45em; vertical-align: -0.05em; border: 1.5px solid currentColor; border-radius: 2px 2px 3px 3px; }
.phone {
  width: min(100%, 320px); margin: 0 auto; padding: 10px; background: var(--navy);
  border-radius: 44px; box-shadow: var(--shadow-lg);
}
.phone .cs-video { border-radius: 34px; overflow: hidden; }

.cs-video { position: relative; background: var(--lavender); }
.cs-video video { display: block; width: 100%; height: auto; }
.cs-video__toggle {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(30, 34, 69, 0.78); color: var(--white);
  display: grid; place-items: center; opacity: 0.85; transition: opacity 0.2s, transform 0.2s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cs-video__toggle:hover { opacity: 1; transform: scale(1.06); }
.cs-video__toggle::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--cs-icon) center / contain no-repeat; mask: var(--cs-icon) center / contain no-repeat; }
.cs-video__toggle { --cs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='4' width='5' height='16' rx='1.5'/%3E%3Crect x='14' y='4' width='5' height='16' rx='1.5'/%3E%3C/svg%3E"); }
.cs-video__toggle[data-state="paused"] { --cs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5z'/%3E%3C/svg%3E"); }
.cs-video__toggle[data-state="paused"]::before { margin-left: 3px; }

/* Research findings */
.cs-findings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: finding; }
.cs-findings li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.2vw, 1.85rem); box-shadow: var(--shadow-sm); }
.cs-findings li::before {
  counter-increment: finding; content: counter(finding);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; margin-bottom: 1rem;
  background: var(--lavender-card); color: var(--purple); font-family: var(--font-head); font-weight: 800;
}
.cs-findings h3 { font-size: 1.15rem; }
.cs-findings p { margin: 0; font-size: 0.98rem; }
@media (max-width: 1024px) { .cs-findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cs-findings { grid-template-columns: 1fr; } }

/* Decisions */
.cs-decision { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.cs-decision h3, .cs-show__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cs-decision--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .cs-decision { grid-template-columns: minmax(0, 1fr); }
  .cs-decision--reverse > :first-child { order: 0; }
}

.cs-split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.cs-split__side { background: var(--lavender); border: 1px solid var(--lavender-line); border-radius: var(--radius); padding: 1.4rem; }
.cs-split__side--client { background: var(--teal-light); border-color: #c4e6e0; }
.cs-split__title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; margin: 0 0 0.75rem; line-height: 1.3; }
.cs-split__title span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.cs-split__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.cs-split__side li { background: var(--white); border-radius: 10px; padding: 0.45rem 0.75rem; font-size: 0.95rem; line-height: 1.4; color: var(--navy); font-weight: 600; }
.cs-split__bridge { position: relative; display: grid; place-items: center; width: 5.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--purple) 0 6px, transparent 6px 11px); background-size: 22px 2px; }
.cs-split__bridge span { position: absolute; top: -2.1rem; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; color: var(--purple); background: var(--white); border: 1px solid var(--lavender-line); border-radius: var(--radius-pill); padding: 0.2em 0.7em; }
.cs-split__bridge::after { content: ""; position: absolute; right: -2px; width: 8px; height: 8px; border-top: 2px solid var(--purple); border-right: 2px solid var(--purple); transform: rotate(45deg); }
.cs-split.is-playing .cs-split__bridge { animation: cs-flow 0.9s linear infinite; }
@keyframes cs-flow { to { background-position: 22px 0; } }
@media (max-width: 600px) {
  .cs-split { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .cs-split__bridge { width: 2px; height: 4.5rem; justify-self: center; background: repeating-linear-gradient(180deg, var(--purple) 0 6px, transparent 6px 11px); background-size: 2px 22px; }
  .cs-split__bridge span { top: auto; left: 1rem; }
  .cs-split__bridge::after { right: auto; bottom: -2px; transform: rotate(135deg); }
  @keyframes cs-flow { to { background-position: 0 22px; } }
}

/* Animated project stepper */
.cs-stepper { list-style: none; padding: clamp(1.25rem, 2.4vw, 2rem); margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 0.5rem; counter-reset: cstep; }
.cs-stepper li { --d: 0s; position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.9rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: 14px; border: 2px solid transparent; background: var(--lavender); }
.cs-stepper li::before {
  counter-increment: cstep; content: counter(cstep);
  grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--lavender-line); background: var(--white); color: var(--purple);
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
}
.cs-stepper b { font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.cs-stepper span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.cs-stepper li:nth-child(-n+3)::before { content: ""; background: var(--teal-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 70% no-repeat; border-color: var(--teal-bright); }
.cs-stepper li.is-current { background: var(--lavender-card); border-color: var(--purple); }
.cs-stepper li.is-current::before { background: var(--purple); color: var(--white); border-color: var(--purple); }
.cs-stepper li:nth-child(n+5) { opacity: 0.72; }
.cs-stepper li:nth-child(2) { --d: 0.45s; }
.cs-stepper li:nth-child(3) { --d: 0.9s; }
.cs-stepper li:nth-child(4) { --d: 1.35s; }
/* When the stepper scrolls into view, the finished steps tick off one by one and the current step lights up */
.js .cs-stepper[data-animate] li:nth-child(-n+4)::before { transform: scale(0.6); opacity: 0.4; }
.js .cs-stepper[data-animate] li.is-current { border-color: transparent; background: var(--lavender); }
.js .cs-stepper.is-playing li:nth-child(-n+3)::before { animation: cs-tick 0.5s var(--ease) var(--d) both; }
.js .cs-stepper.is-playing li.is-current { animation: cs-current 0.6s var(--ease) var(--d) both; }
.js .cs-stepper.is-playing li.is-current::before { animation: cs-tick 0.5s var(--ease) var(--d) both, cs-pulse 2.4s ease-out calc(var(--d) + 0.6s) infinite; }
@keyframes cs-tick { from { transform: scale(0.6); opacity: 0.4; } 60% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes cs-current { from { border-color: transparent; background: var(--lavender); } to { border-color: var(--purple); background: var(--lavender-card); } }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 80, 132, 0.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(110, 80, 132, 0); } }

.cs-principles { margin-top: 0; }

/* Walkthroughs */
.cs-show { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.cs-show--reverse { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); }
.cs-show--reverse > .cs-media { order: 2; }
.cs-show:has(.cs-media--phone) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-show__text p:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .cs-show, .cs-show--reverse, .cs-show:has(.cs-media--phone) { grid-template-columns: minmax(0, 1fr); }
  .cs-show--reverse > .cs-media { order: 0; }
}
.cs-subhead { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.cs-band-link { color: var(--white); }
.cs-band-link:hover { color: var(--white); }

/* Case study teaser on Home and Services */
.cs-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 3rem); box-shadow: var(--shadow-sm);
}
.cs-teaser h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cs-teaser .browser { box-shadow: var(--shadow); transition: transform 0.4s var(--ease); }
.cs-teaser:hover .browser { transform: translateY(-4px); }
.cs-teaser img { width: 100%; }
@media (max-width: 860px) { .cs-teaser { grid-template-columns: minmax(0, 1fr); } }
.cs-teaser-section { padding-top: 0; }
.cs-teaser-wrap { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Case studies index ---------- */
.cs-teaser--link { color: inherit; text-decoration: none; transition: border-color 0.25s, box-shadow 0.25s var(--ease); }
.cs-teaser--link:hover { color: inherit; border-color: var(--lavender-line); box-shadow: var(--shadow); }
.cs-teaser--link:hover .text-link::after { transform: translateX(3px); }
.cs-teaser__title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
.cs-tags { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cs-tags li { font-size: 0.88rem; font-weight: 600; color: var(--purple-ink); background: var(--lavender); border: 1px solid var(--lavender-line); border-radius: var(--radius-pill); padding: 0.25em 0.8em; }
.cs-next { margin-top: 1.25rem; max-width: 34rem; }
