:root {
  --surface: #f9f7f4;
  --panel: #f0e8e0;
  --ink: #010101;
  --max: 1380px;
  --gutter: clamp(20px, 4vw, 72px);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow: 0 26px 90px rgb(1 1 1 / 0.08);
  --line: rgb(1 1 1 / 0.14);
  --line-strong: rgb(1 1 1 / 0.28);
  --muted: rgb(1 1 1 / 0.68);

  /* Emil Kowalski easing curves — never use plain `ease` for UI */
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);      /* strong ease-out: snappy, premium */
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);   /* strong ease-in-out: on-screen motion */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);  /* iOS drawer curve: slide-in panels */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button, input, textarea, select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 96px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  transition: background 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 76px;
  background: rgb(249 247 244 / 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: clamp(140px, 15vw, 214px);
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  font-size: 15px;
  font-weight: 600;
}

.nav a,
.header-cta,
.button,
.mini-plan a,
.plan-detail a {
  transition: transform 0.18s var(--ease-ui), opacity 0.18s var(--ease-ui), background 0.18s var(--ease-ui), color 0.18s var(--ease-ui), border-color 0.18s var(--ease-ui);
}

/* Emil: buttons must feel responsive on press */
.button:active,
.header-cta:active,
.mini-plan a:active,
.plan-detail a:active,
.slider-button:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.nav a:hover,
.header-cta:hover,
.button:hover,
.mini-plan a:hover {
  transform: translateY(-2px);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--surface);
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 12px;
  width: 48px;
  height: 48px;
  place-items: center;
  gap: 7px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transform-origin: center;
  transition: transform 0.22s var(--ease-move);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 122px var(--gutter) 46px;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-inner {
  width: min(100%, var(--max));
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: clamp(26px, 3vw, 48px);
  justify-items: center;
}

.hero-mark,
.section-mark,
.dark-mark {
  position: absolute;
  display: block;
  background: var(--ink);
  opacity: 0.08;
  -webkit-mask: url("assets/outgrow-o-mark.svg?v=4") center / contain no-repeat;
  mask: url("assets/outgrow-o-mark.svg?v=4") center / contain no-repeat;
  pointer-events: none;
}

.hero-mark-left {
  width: 620px;
  height: 620px;
  left: -450px;
  top: 20%;
}

.hero-mark-right {
  width: 620px;
  height: 620px;
  right: -440px;
  top: 10%;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-card h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(54px, 7vw, 118px);
  max-width: 840px;
}

.hero h1 em {
  font-style: italic;
  letter-spacing: -0.065em;
}

.hero-subtitle {
  margin: 34px auto 0;
  max-width: 600px;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}

.hero-actions,
.final-actions {
  margin-top: 42px;
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-dark {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.button-ghost:hover {
  background: var(--panel);
}

.system-strip {
  width: min(100%, 980px);
  background: rgb(240 232 224 / 0.52);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  box-shadow: 0 16px 60px rgb(1 1 1 / 0.04);
}

.system-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  min-height: 102px;
}

.system-item + .system-item {
  border-left: 1px solid var(--line);
}

.icon-box {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgb(249 247 244 / 0.48);
  transition: transform 0.22s var(--ease-ui), background 0.22s var(--ease-ui), color 0.22s var(--ease-ui);
}

/* Taste: numbered labels replace generic icon-box in the system-strip */
.system-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--muted);
  user-select: none;
  min-width: 40px;
}

.icon-box svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-item h3,
.system-item p,
.mini-plan h3,
.mini-plan p,
.mini-plan strong {
  margin: 0;
}

.system-item h3 {
  font-size: 14px;
  font-weight: 800;
}

.system-item p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.hero-plans {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0;
  margin-top: -4px;
}

.mini-plan {
  position: relative;
  min-height: 290px;
  padding: 46px 54px 38px;
  background: rgb(240 232 224 / 0.58);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s var(--ease-ui), box-shadow 0.22s var(--ease-ui), border-color 0.22s var(--ease-ui);
}

.mini-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink);
}

.mini-plan-side:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.mini-plan-side:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mini-plan-featured {
  min-height: 330px;
  margin: 0 -1px;
  border-radius: var(--radius-md);
  border-color: var(--ink);
  z-index: 2;
  background: var(--panel);
}

.pill {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  padding: 7px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-ring {
  width: 42px;
  height: 42px;
  display: block;
  border: 8px solid var(--ink);
  border-left-color: transparent;
  border-radius: 50%;
  margin-bottom: 24px;
}

.mini-plan h3,
.plan-card h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.mini-plan p {
  margin-top: 14px;
  min-height: 52px;
  font-size: 15px;
  color: var(--muted);
}

.mini-plan strong {
  margin-top: 28px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 44px;
  letter-spacing: -0.08em;
  font-weight: 400;
}

.mini-plan strong span,
.plan-card strong span,
.plan-detail strong span {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
}

.mini-plan a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}

.trust-strip {
  width: min(100%, 990px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.trust-strip > span {
  height: 1px;
  background: var(--line);
}

.trust-strip p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

/* Trust badges */
.trust-badges {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgb(240 232 224 / 0.3);
}

.trust-badge {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.trust-badge + .trust-badge {
  border-left: 1px solid var(--line);
}

.trust-badge svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.section {
  position: relative;
  padding: clamp(84px, 9vw, 150px) var(--gutter);
  background: var(--surface);
  overflow: hidden;

  /* ─── Section stacking: each section overlaps the one before it ─── */
  border-radius: 28px 28px 0 0;
  margin-top: -32px;
  box-shadow: 0 -18px 60px rgb(1 1 1 / 0.055);
}

/* Z-index stacking order — each section sits above the previous */
.section.how        { z-index: 2; }
.section.included   { z-index: 3; }
.section.plans      { z-index: 4; }
.section.proof      { z-index: 5; }
.section.industries { z-index: 6; }
.section.comparison { z-index: 7; }
.section.stories    { z-index: 8; }
.section.faq        { z-index: 9; }
.section.final-cta  { z-index: 10; }

/* Dark section floats as a complete elevated card */
.section.proof.dark {
  border-radius: 28px;
  margin-left: clamp(12px, 3vw, 48px);
  margin-right: clamp(12px, 3vw, 48px);
  box-shadow: 0 0 80px rgb(1 1 1 / 0.22), 0 -18px 60px rgb(1 1 1 / 0.1);
}

.section-heading {
  width: min(100%, 820px);
  margin: 0 auto 58px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-heading-left {
  text-align: left;
  margin-left: 0;
}

.section h2,
.final-card h2 {
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.02;
}

.section-heading p:not(.eyebrow),
.final-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  margin: 22px 0 0;
}

.card-symbol svg,
.stat-icon svg,
.industry-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  /* GSAP scrubs each card individually — no stagger class needed */
}

.step-card,
.industry-card,
.included-card,
.plan-card,
.detail-panel,
.story-card,
.comparison-shell,
.final-card {
  background: rgb(240 232 224 / 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.interactive-card {
  transition: transform 0.22s var(--ease-ui), border-color 0.22s var(--ease-ui), box-shadow 0.22s var(--ease-ui), background 0.22s var(--ease-ui);
}

/* Emil: hover lifts should be subtle — big jumps look amateurish */
.interactive-card:hover,
.interactive-card.is-selected,
.included-card.is-active {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.step-card {
  padding: 34px;
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.card-symbol {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.22s var(--ease-ui), background 0.22s var(--ease-ui), color 0.22s var(--ease-ui);
}

.step-card:hover .card-symbol,
.industry-card:hover .industry-icon,
.included-card:hover .icon-box,
.system-item:hover .icon-box {
  transform: translateY(-3px) scale(1.04);
  background: var(--ink);
  color: var(--surface);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.step-card h3,
.industry-card h3,
.detail-panel h3,
.plan-detail h3,
.story-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.step-card p,
.industry-card p,
.detail-panel p,
.plan-detail li,
.story-card p {
  color: var(--muted);
}

.split-section,
.proof-grid,
.plan-layout,
.comparison-shell,
.final-card,
.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.detail-panel {
  padding: 28px;
  margin-top: 38px;
}

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

.included-card {
  min-height: 238px;
  text-align: left;
  padding: 26px;
  color: var(--ink);
  cursor: pointer;
}

.included-card .icon-box {
  margin-bottom: 26px;
}

.included-card strong,
.included-card small {
  display: block;
}

.included-card strong {
  font-size: 18px;
}

.included-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.plans {
  background: linear-gradient(180deg, var(--surface), var(--panel));
}

.section-mark {
  width: 760px;
  height: 760px;
  right: -310px;
  top: 8%;
}

.section-mark.small {
  width: 380px;
  height: 380px;
  right: -140px;
  top: -140px;
}

.plan-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan-card {
  position: relative;
  padding: 34px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.plan-card .plan-ring {
  width: 34px;
  height: 34px;
  border-width: 7px;
  margin-bottom: 28px;
}

.plan-card h3,
.plan-card p,
.plan-card strong,
.plan-card small {
  display: block;
  margin: 0;
}

.plan-card p {
  min-height: 52px;
  margin-top: 18px;
  color: var(--muted);
}

.plan-card strong,
.plan-detail strong {
  margin-top: 28px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: -0.08em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
}

.plan-card small {
  margin-top: 24px;
  color: var(--muted);
}

.plan-detail {
  padding: clamp(34px, 4vw, 56px);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  min-height: 100%;
}

.plan-detail .eyebrow,
.dark .eyebrow,
.site-footer h3 {
  color: var(--surface);
}

.plan-detail ul {
  list-style: none;
  padding: 0;
  margin: 34px 0;
  display: grid;
  gap: 18px;
}

.plan-detail li {
  color: rgb(249 247 244 / 0.82);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-detail li svg {
  flex: 0 0 auto;
  opacity: 0.9;
}

.plan-detail .button-dark {
  background: var(--surface);
  color: var(--ink);
}

.dark {
  background: var(--ink);
  color: var(--surface);
}

.dark .section-heading p:not(.eyebrow) {
  color: rgb(249 247 244 / 0.72);
}

.dark-mark {
  width: 900px;
  height: 900px;
  right: -360px;
  bottom: -420px;
  background: var(--surface);
  opacity: 0.08;
}

.proof-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

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

.stats article {
  min-height: 210px;
  padding: 34px;
  background: rgb(249 247 244 / 0.08);
  border: 1px solid rgb(249 247 244 / 0.18);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgb(249 247 244 / 0.2);
  display: grid;
  place-items: center;
  color: var(--surface);
  background: rgb(249 247 244 / 0.07);
}

.stats strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 400;
  line-height: 0.9;
}

.stats span {
  color: rgb(249 247 244 / 0.72);
  font-weight: 700;
}

.industry-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}


.industry-card {
  padding: 30px;
  min-height: 250px;
}

.industry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}

.industry-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.22s var(--ease-ui), background 0.22s var(--ease-ui), color 0.22s var(--ease-ui);
}

.industry-card .industry-index {
  display: block;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.comparison {
  background: var(--panel);
}

.comparison-shell {
  padding: clamp(34px, 5vw, 70px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.comparison-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
}

.comparison-table [role="row"] span {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.comparison-table [role="row"]:not(.table-head) span:nth-child(2),
.comparison-table [role="row"]:not(.table-head) span:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-table [role="row"]:not(.table-head) span:nth-child(2)::before,
.comparison-table [role="row"]:not(.table-head) span:nth-child(3)::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.comparison-table [role="row"]:not(.table-head) span:nth-child(2)::before {
  content: "✓";
  background: var(--ink);
  color: var(--surface);
}

.comparison-table [role="row"]:not(.table-head) span:nth-child(3)::before {
  content: "×";
  border: 1px solid var(--line);
  color: var(--muted);
}

.comparison-table [role="row"] span + span {
  border-left: 1px solid var(--line);
}

.comparison-table [role="row"]:last-child span {
  border-bottom: 0;
}

.table-head {
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.story-slider {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 18px;
}

.slider-button {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-button:hover {
  transform: translateY(-2px);
  background: var(--panel);
}

.story-card {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(34px, 5vw, 60px);
  min-height: 300px;
  display: none;
}

.story-card.is-visible {
  display: block;
  animation: fadeUp 0.28s var(--ease-ui) both;
}

.story-card p {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}

.story-card footer {
  margin-top: 38px;
  font-weight: 800;
}

.story-card footer span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.faq-list {
  width: min(100%, 960px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(240 232 224 / 0.52);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 28px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

/* Emil: @starting-style animates elements the moment they become visible */
.faq-list details[open] p {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .faq-list details[open] p {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.faq-list p {
  margin: 0;
  padding: 0 28px 26px;
  color: var(--muted);
  transition: opacity 0.2s var(--ease-ui), transform 0.2s var(--ease-ui);
}

.final-cta {
  padding-top: 20px;
}

.final-card {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
}

.final-card > *:not(.section-mark) {
  position: relative;
  z-index: 2;
}

.final-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  padding: 80px var(--gutter) 30px;
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -220px;
  bottom: -270px;
  width: 560px;
  height: 560px;
  background: var(--surface);
  opacity: 0.07;
  -webkit-mask: url("assets/outgrow-o-mark.svg?v=4") center / contain no-repeat;
  mask: url("assets/outgrow-o-mark.svg?v=4") center / contain no-repeat;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 42px;
}

.footer-logo {
  display: block;
  width: 180px;
  height: 42px;
  background: var(--surface);
  -webkit-mask: url("assets/outgrow-logo.png") left center / contain no-repeat;
  mask: url("assets/outgrow-logo.png") left center / contain no-repeat;
  margin-bottom: 18px;
}

.site-footer p,
.site-footer a {
  color: rgb(249 247 244 / 0.72);
}

.site-footer h3 {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.copyright {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgb(249 247 244 / 0.18);
  font-size: 14px;
}

/* ─── Scroll progress bar ─── */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  z-index: 200;
  transition: width 0.1s linear;
  transform-origin: left;
}

/* ─── Hero entrance (CSS animation — fires on load, no observer needed) ─── */
/* Why animation not transition: IntersectionObserver fires before first paint     */
/* on in-viewport elements, causing the transition to be skipped entirely.         */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero .eyebrow    { animation: heroEnter 0.7s var(--ease-ui) 0.2s  both; }
.hero h1          { animation: heroEnter 1.0s var(--ease-ui) 0.35s both; }
.hero-subtitle    { animation: heroEnter 0.7s var(--ease-ui) 0.6s  both; }
.hero-actions     { animation: heroEnter 0.7s var(--ease-ui) 0.75s both; }
.system-strip     { animation: heroEnter 0.6s var(--ease-ui) 0.92s both; }
.hero-plans       { animation: heroEnter 0.6s var(--ease-ui) 1.08s both; }
.trust-strip      { animation: heroEnter 0.6s var(--ease-ui) 1.22s both; }

/* ─── Scroll reveals — bigger distance, actually visible at normal scroll speed ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-ui), transform 0.7s var(--ease-ui);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section heading compound reveal ─── */
/* Eyebrow slides from left while parent fades; h2 rises on a slight delay        */
/* Creates a layered, editorial choreography on each section heading               */
.section-heading .eyebrow {
  transform: translateX(-14px);
  transition: transform 0.65s var(--ease-ui);
}
.section-heading.is-visible .eyebrow {
  transform: translateX(0);
}

.section-heading h2 {
  /* Simple clean state — no clip-path animation */
}

/* ─── Dark section cursor spotlight ─── */
.dark.proof {
  background: radial-gradient(
    circle 700px at var(--cx, 80%) var(--cy, 40%),
    #1c1c1c 0%,
    var(--ink) 65%
  );
  transition: background 0.4s ease;
}


/* ─── Nav: underline wipe replaces translateY on hover ─── */
.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s var(--ease-ui);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav a:hover {
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ─── Nav context inversion as dark section enters ─── */
body.in-dark-section .site-header.is-scrolled {
  background: rgb(1 1 1 / 0.90);
  border-bottom-color: rgb(249 247 244 / 0.12);
}
body.in-dark-section .site-header .nav a {
  color: var(--surface);
}
body.in-dark-section .site-header .nav a::after {
  background: var(--surface);
}
body.in-dark-section .site-header .header-cta {
  background: var(--surface);
  color: var(--ink);
}
body.in-dark-section .site-header .brand img {
  filter: invert(1);
}
.site-header .brand img,
.site-header .nav a,
.site-header .header-cta {
  transition: filter 0.45s var(--ease-ui), color 0.45s var(--ease-ui),
              background 0.45s var(--ease-ui);
}


/* ─── Stagger system (Emil: children should never all appear at once) ─── */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-ui), transform 0.6s var(--ease-ui);
}

[data-stagger] > *.is-stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Trust strip names: fade only, no Y shift (preserves border grid layout) */
.trust-strip ul[data-stagger] > * {
  transform: none;
  transition: opacity 0.4s var(--ease-ui);
}

/* ─── Impeccable polish: comparison table alternating rows ─── */
.comparison-table [role="row"]:not(.table-head):nth-child(even) {
  background: rgb(240 232 224 / 0.35);
}

/* ─── Impeccable polish: plan-ring subtle spin on card hover ─── */
.mini-plan:hover .plan-ring,
.plan-card:hover .plan-ring,
.interactive-card.is-selected .plan-ring {
  animation: ring-spin 1.2s var(--ease-ui) forwards;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Impeccable typeset: tighten eyebrow spacing, improve body rhythm ─── */
.eyebrow {
  letter-spacing: 0.22em;
}

/* ─── Impeccable polish: step/industry card headings — more expressive ─── */
.step-card h3,
.industry-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ─── Impeccable polish: slider button center SVG ─── */
.slider-button {
  display: grid;
  place-items: center;
}

/* ─── Emil: reduced motion — keep opacity, remove all positional movement ─── */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-subtitle,
  .hero-actions, .system-strip, .hero-plans, .trust-strip {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .section-heading .eyebrow {
    transform: none;
    transition: opacity 0.4s var(--ease-ui);
  }
  .section-heading h2 {
    clip-path: none !important;
  }
  .word-reveal {
    opacity: 1 !important;
  }
  .reveal {
    transform: none;
    transition: opacity 0.4s var(--ease-ui);
  }
  [data-stagger] > * {
    transform: none;
    transition: opacity 0.4s var(--ease-ui);
  }
  .interactive-card,
  .mini-plan,
  .card-symbol,
  .icon-box,
  .industry-icon {
    transition: opacity 0.18s var(--ease-ui), border-color 0.18s var(--ease-ui), background 0.18s var(--ease-ui);
  }
  .interactive-card:hover,
  .interactive-card.is-selected,
  .included-card.is-active,
  .mini-plan:hover {
    transform: none;
  }
  .story-card.is-visible {
    animation: none;
    opacity: 1;
  }
  .marquee-track {
    animation: none;
  }
  .mini-plan:hover .plan-ring,
  .plan-card:hover .plan-ring,
  .interactive-card.is-selected .plan-ring {
    animation: none;
  }
  @starting-style {
    .faq-list details[open] p {
      opacity: 0;
      transform: none;
    }
  }
}

@media (max-width: 900px) {
  /* Reduce section overlap on mobile */
  .section {
    margin-top: -16px;
    border-radius: 18px 18px 0 0;
  }
  .section.proof.dark {
    border-radius: 18px;
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .system-strip,
  .hero-plans {
    width: min(100%, 920px);
  }

  .split-section,
  .plan-layout,
  .proof-grid,
  .comparison-shell,
  .final-card {
    grid-template-columns: 1fr;
  }

  .section-heading-left {
    text-align: center;
    margin-left: auto;
  }

  .section-heading-left .section-icon {
    margin-left: auto;
  }

  .plan-detail,
  .final-actions {
    justify-self: stretch;
  }

  .final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 78px;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease-drawer), visibility 0.22s var(--ease-drawer), transform 0.22s var(--ease-drawer);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 16px;
    border-radius: var(--radius-sm);
  }

  .nav a:hover {
    background: var(--panel);
  }

  .hero {
    padding-top: 110px;
  }

  .system-strip,
  .hero-plans,
  .steps,
  .included-grid,
  .plan-list,
  .industry-grid,
  .faq-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .system-item + .system-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-badges {
    flex-direction: column;
  }
  .trust-badge {
    justify-content: flex-start;
    border-left: none !important;
    border-top: 1px solid var(--line);
    padding: 16px 20px;
  }
  .trust-badge:first-child {
    border-top: none;
  }

  .hero-plans {
    gap: 14px;
  }

  .mini-plan,
  .mini-plan-featured,
  .mini-plan-side:first-child,
  .mini-plan-side:last-child {
    min-height: auto;
    border-radius: var(--radius-md);
    margin: 0;
  }

  .trust-strip ul {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

  .comparison-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .comparison-table [role="row"] span + span {
    border-left: 0;
  }

  .story-slider {
    grid-template-columns: 1fr 1fr;
  }

  .story-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .slider-button {
    grid-row: 2;
  }

  .slider-button[data-next] {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 136px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-actions,
  .final-actions {
    width: 100%;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .system-item {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .mini-plan,
  .step-card,
  .plan-card,
  .included-card,
  .industry-card,
  .comparison-shell,
  .final-card {
    padding: 26px;
  }

  .card-symbol,
  .industry-icon {
    width: 52px;
    height: 52px;
  }

  .trust-strip {
    gap: 14px;
  }

  .trust-strip p {
    font-size: 10px;
  }
}
