/* ==========================================================================
   Hernia Lounge · Sales page
   Brand: navy #092330 · cream #F5E8E0 · sand #E9D5BA · teal #8AC7C2
   ========================================================================== */

:root {
  --ink: #061820;
  --navy: #092330;
  --navy-2: #0c2b3a;
  --navy-3: #113646;
  --cream: #f5e8e0;
  --paper: #f5eee5;
  --paper-2: #ece2d4;
  --sand: #e9d5ba;
  --sand-hi: #f3e4cd;
  --sand-deep: #cfb38e;
  --teal: #8ac7c2;
  --teal-deep: #2c6a67;

  --text: var(--cream);
  --text-2: rgba(245, 232, 224, 0.74);
  --text-3: rgba(245, 232, 224, 0.52);
  --line: rgba(245, 232, 224, 0.12);
  --line-2: rgba(245, 232, 224, 0.22);

  --ink-text: #0b2230;
  --ink-text-2: #44585f;
  --ink-line: rgba(11, 34, 48, 0.14);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--cream); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--sand); color: var(--navy); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Typographic system ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.kicker--ink { color: var(--teal-deep); }

.section-title {
  font: 300 clamp(2.1rem, 4.4vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.section-title em { color: var(--teal); font-weight: 300; }
.section--paper .section-title em { color: var(--teal-deep); }

.section-sub { color: var(--text-2); max-width: 34ch; }
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--text-2); }

.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

.section--paper { background: var(--paper); color: var(--ink-text); }
.section--paper strong { color: var(--ink-text); }

/* ---------- Buttons ---------- */

.btn {
  --h: 64px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--h);
  padding: 10px 10px 10px 26px;
  border-radius: 999px;
  font: 600 15.5px/1.15 var(--sans);
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn__label { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.btn__label small { font-weight: 500; font-size: 13px; letter-spacing: 0.02em; opacity: 0.72; }
.btn__icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: transform 0.35s var(--ease);
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__icon { transform: rotate(45deg); }

.btn--primary { background: var(--sand); color: var(--navy); box-shadow: 0 14px 40px -18px rgba(233, 213, 186, 0.6); }
.btn--primary .btn__icon { background: var(--navy); color: var(--sand); }
.btn--primary:hover { background: var(--sand-hi); box-shadow: 0 18px 48px -16px rgba(233, 213, 186, 0.7); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--cream); background: rgba(245, 232, 224, 0.03); }
.btn--ghost .btn__icon { border: 1px solid var(--line-2); color: var(--teal); }
.btn--ghost:hover { border-color: var(--teal); background: rgba(138, 199, 194, 0.07); }

.btn--block { width: 100%; }

.cta-pair { display: flex; flex-wrap: wrap; gap: 14px; }

.assure {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px;
  font-size: 14.5px; color: var(--text-2);
}
.assure svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(6, 24, 32, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo img { width: 128px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav__links a { position: relative; transition: color 0.25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover { background: var(--sand); color: var(--navy); border-color: var(--sand); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(112px, 12vw, 140px);
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(138, 199, 194, 0.12), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(233, 213, 186, 0.07), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  overflow: hidden;
}
.hero__inner { text-align: center; padding-bottom: clamp(64px, 8vw, 96px); }
.hero .eyebrow { justify-content: center; }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-bottom: 24px;
  font: 600 12.5px/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow em {
  font: italic 400 17px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text-2);
}
.eyebrow__ring { width: 22px; height: 22px; margin-right: 4px; }
.eyebrow__sep { color: var(--text-3); }

.hero__title {
  max-width: 960px; margin: 0 auto;
  font: 300 clamp(2.5rem, 5vw, 4.4rem)/1 var(--serif);
  letter-spacing: -0.028em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.hero__title em { color: var(--sand); font-weight: 300; }

/* Intro video */
.vsl {
  position: relative; isolation: isolate;
  max-width: 920px; margin: clamp(32px, 4vw, 48px) auto 0;
}
.vsl::before {
  content: ""; position: absolute; z-index: -1; inset: -6% -4%;
  background:
    radial-gradient(45% 60% at 22% 55%, rgba(233, 213, 186, 0.16), transparent 70%),
    radial-gradient(45% 60% at 78% 45%, rgba(138, 199, 194, 0.2), transparent 70%);
  filter: blur(24px);
}
.vsl__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 26px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2);
}
.vsl__video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }

.vsl__play { display: none; }
.js .vsl__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgba(6, 24, 32, 0.05), rgba(6, 24, 32, 0.4));
  font: inherit; color: var(--cream);
  transition: opacity 0.4s var(--ease), background-color 0.4s;
}
.vsl__pill {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 26px 10px 10px; border-radius: 999px;
  background: rgba(6, 24, 32, 0.62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.vsl__play:hover .vsl__pill { transform: scale(1.04); background: rgba(6, 24, 32, 0.78); }
.vsl__icon {
  position: relative;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--sand); color: var(--navy);
}
.vsl__icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(233, 213, 186, 0.6);
  animation: pulse 2.2s var(--ease) infinite;
}
.vsl__icon svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.vsl__text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.vsl__text strong { font-size: 16px; font-weight: 600; }
.vsl__text small { font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-2); }
.vsl.is-playing .vsl__play { opacity: 0; pointer-events: none; }

.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px; align-items: center;
  max-width: 920px; margin: clamp(36px, 4.5vw, 52px) auto 0;
  text-align: left;
}
.hero__lead { max-width: 56ch; color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.12rem); }
.hero__actions .assure { margin-top: 16px; }

.faculty-chip {
  position: absolute; z-index: 2;
  left: clamp(-28px, -2.4vw, -12px); bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  background: rgba(6, 24, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  font-size: 14px; line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.faculty-chip__avatars { display: flex; }
.faculty-chip__avatars img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 2px solid var(--navy);
}
.faculty-chip__avatars img + img { margin-left: -10px; }
.faculty-chip__text { display: flex; flex-direction: column; }
.faculty-chip__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.dim { color: var(--text-3); }

/* Ticker */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 48s linear infinite;
  font: italic 300 clamp(1.25rem, 2vw, 1.6rem)/1 var(--serif);
  color: var(--text-2);
  white-space: nowrap;
}
.ticker__track i {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(90deg, var(--sand) 50%, var(--teal) 50%);
  opacity: 0.8;
}

/* ---------- The gap ---------- */

.gap {
  background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  --p: 0;
}
.gap__grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 110px); align-items: center;
}
.gap__visual { display: grid; place-items: center; }
.gap__ring { position: relative; width: min(100%, 380px); aspect-ratio: 1; }
.gap__arc { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.12s linear; }
.gap__arc--l { transform: translateX(calc((1 - var(--p)) * -54px)) rotate(calc((1 - var(--p)) * -10deg)); }
.gap__arc--r { transform: translateX(calc((1 - var(--p)) * 54px)) rotate(calc((1 - var(--p)) * 10deg)); }
.gap__core {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 199, 194, 0.35), rgba(233, 213, 186, 0.08) 55%, transparent 72%);
  opacity: calc(0.15 + var(--p) * 0.85);
  transform: scale(calc(0.7 + var(--p) * 0.3));
  filter: blur(6px);
}

.statement {
  font: 300 clamp(1.75rem, 3.2vw, 2.7rem)/1.18 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin-bottom: 44px;
}

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.versus__item {
  padding: 24px 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 15.5px;
}
.versus__tag {
  font: 600 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px; color: var(--text-3);
}
.versus__item--on {
  color: var(--text);
  border-color: rgba(138, 199, 194, 0.4);
  background: linear-gradient(160deg, rgba(138, 199, 194, 0.12), rgba(138, 199, 194, 0.02));
}
.versus__item--on .versus__tag { color: var(--teal); }

/* ---------- Faculty ---------- */

.faculty { overflow: hidden; }
.doc {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.doc + .doc { margin-top: clamp(80px, 10vw, 140px); }
.doc--flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.doc--flip .doc__media { order: 2; }

.doc__media { position: relative; }
.doc__media picture { display: block; position: relative; z-index: 1; }
.doc__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 40px 80px -40px rgba(11, 34, 48, 0.55);
}
/* Each doctor carries one half of the logo ring */
.doc__media::before {
  content: ""; position: absolute; z-index: 0;
  inset: -18px; border-radius: 999px 999px 40px 40px;
  border: 2px solid transparent;
}
.doc__media--sand::before { border-left-color: var(--sand-deep); border-top-color: var(--sand-deep); transform: translate(-10px, -6px); }
.doc__media--teal::before { border-right-color: var(--teal); border-top-color: var(--teal); transform: translate(10px, -6px); }

.doc__place {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-text-2); margin-bottom: 18px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--sand { background: var(--sand-deep); }
.dot--teal { background: var(--teal); }
.doc__name {
  font: 300 clamp(2.3rem, 4.4vw, 3.6rem)/1 var(--serif);
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.doc__role {
  font: italic 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.4 var(--serif);
  color: var(--teal-deep); margin-bottom: 26px;
  padding-bottom: 26px; border-bottom: 1px solid var(--ink-line);
}
.doc__bio { color: var(--ink-text-2); font-size: 16.5px; line-height: 1.75; margin-bottom: 28px; max-width: 62ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ink-line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-text);
}

/* ---------- What is inside ---------- */

.inside {
  background:
    radial-gradient(45% 50% at 100% 0%, rgba(138, 199, 194, 0.08), transparent 70%),
    var(--navy);
}
.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  counter-reset: f;
}
.feature {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px) clamp(32px, 3.4vw, 44px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease);
}
.feature:hover { background: rgba(245, 232, 224, 0.03); }
.feature__num {
  position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(24px, 2.6vw, 36px);
  font: italic 300 15px/1 var(--serif); color: var(--text-3);
}
.feature__icon {
  width: 34px; height: 34px; margin-bottom: 30px;
  fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease), stroke 0.4s;
}
.feature:hover .feature__icon { transform: translateY(-3px); stroke: var(--sand); }
.feature h3 { font: 400 1.5rem/1.15 var(--serif); letter-spacing: -0.01em; margin-bottom: 12px; }
.feature p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- Case group ---------- */

.cases { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); overflow: hidden; padding-top: clamp(24px, 4vw, 48px); }
.cases__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px); align-items: center;
}
.cases .section-title { margin-bottom: 26px; }
.pull {
  margin: 38px 0 0; padding-left: 26px;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--sand) 50%, var(--teal) 50%) 1;
  font: italic 300 clamp(1.35rem, 2.1vw, 1.75rem)/1.35 var(--serif);
  color: var(--cream);
}

.thread { position: relative; padding: 0 8px; }
.thread__card {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(17, 54, 70, 0.95), rgba(9, 35, 48, 0.95));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.8);
  transform: rotate(-1.5deg);
}
.thread__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.thread__ring { width: 22px; height: 22px; }
.pill {
  margin-left: auto; padding: 6px 12px; border-radius: 999px;
  background: rgba(138, 199, 194, 0.14); color: var(--teal);
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.thread__scan { position: relative; margin-bottom: 14px; }
.scan { width: 100%; height: auto; border-radius: 14px; }
.thread__label, .thread__k {
  font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.thread__label {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 10px; border-radius: 999px; background: rgba(6, 24, 32, 0.6); color: var(--text-2);
}
.thread__row {
  display: grid; gap: 12px;
  padding: 16px 4px; border-top: 1px solid var(--line);
}
.bars { display: grid; gap: 8px; }
.bars i { display: block; height: 8px; width: var(--w); border-radius: 999px; background: rgba(245, 232, 224, 0.1); }
.thread__foot {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 4px 2px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.avatars { display: flex; align-items: center; }
.avatars img, .avatars__more {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 2px solid var(--navy-3);
}
.avatars > * + * { margin-left: -9px; }
.avatars__more {
  display: grid; place-items: center;
  background: var(--sand); color: var(--navy); font-weight: 700; font-size: 16px;
}
.thread__float {
  position: absolute; right: -4px; top: -18px;
  padding: 12px 18px 12px 38px; border-radius: 999px;
  background: var(--sand); color: var(--navy);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(3deg);
  animation: bob 6s ease-in-out infinite;
}
.thread__float::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--teal-deep);
  box-shadow: 0 0 0 0 rgba(44, 106, 103, 0.5);
  animation: ping 2.4s ease-out infinite;
}

/* ---------- How it works ---------- */

.how { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.step { position: relative; }
/* Connector from each step's circle to the next one */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 56px; right: -24px; height: 1px;
  background: linear-gradient(90deg, var(--sand-deep), var(--teal));
}
.step__n {
  position: relative;
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  font: 400 1.5rem/1 var(--serif); color: var(--ink-text);
}
.step:last-child .step__n { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.step p { color: var(--ink-text-2); font-size: 16px; line-height: 1.6; max-width: 24ch; }

/* ---------- Pricing ---------- */

.pricing {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(233, 213, 186, 0.08), transparent 70%),
    var(--navy);
}
.plans {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px; max-width: 980px; margin-inline: auto;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: 28px;
  background: rgba(245, 232, 224, 0.025);
  border: 1px solid var(--line-2);
}
.plan--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, var(--navy-3), var(--navy-2)) padding-box,
    linear-gradient(150deg, var(--sand), rgba(233, 213, 186, 0.15) 45%, var(--teal)) border-box;
  box-shadow: 0 50px 100px -50px rgba(233, 213, 186, 0.35);
}
.plan__badge {
  position: absolute; top: clamp(28px, 3.6vw, 44px); right: clamp(28px, 3.6vw, 44px);
  padding: 7px 13px; border-radius: 999px;
  background: var(--sand); color: var(--navy);
  font: 700 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.plan__name {
  font: 600 13px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
.plan__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px;
  font: 300 clamp(3.2rem, 6vw, 4.4rem)/1 var(--serif); letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.plan__cur { font-size: 0.5em; align-self: flex-start; margin-top: 0.3em; color: var(--text-2); }
.plan__per { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--text-3); margin-left: 10px; }
.plan__note {
  color: var(--text-2); font-size: 15.5px; min-height: 3.2em;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.plan__list { display: grid; gap: 14px; margin-bottom: 34px; flex: 1; }
.plan__list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-2); line-height: 1.45; }
.plan__list svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 1px; }

.guarantee {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 52px);
  max-width: 980px; margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 28px;
  border: 1px dashed var(--line-2);
}
.seal { width: clamp(130px, 15vw, 168px); }
.seal svg { width: 100%; height: auto; overflow: visible; }
.seal text { fill: var(--cream); }
.seal textPath { font: 600 13px var(--sans); letter-spacing: 0.1em; fill: var(--text-2); }
.seal__spin { transform-origin: 100px 100px; animation: spin 30s linear infinite; }
.seal__num { font: 300 56px/1 var(--serif); fill: var(--sand) !important; }
.seal__days { font: 700 10px/1 var(--sans); letter-spacing: 0.3em; fill: var(--teal) !important; }
.guarantee h3 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--serif); margin-bottom: 12px; }
.guarantee p { color: var(--text-2); }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__aside { margin-top: 22px; color: var(--ink-text-2); max-width: 32ch; }
.faq__list { border-top: 1px solid var(--ink-line); }
.qa { border-bottom: 1px solid var(--ink-line); }
.qa summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--serif);
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  background:
    linear-gradient(var(--ink-text), var(--ink-text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink-text), var(--ink-text)) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.qa[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sand);
}
.qa p { padding: 0 56px 28px 0; color: var(--ink-text-2); font-size: 16.5px; line-height: 1.7; }
.qa[open] p { animation: fadeDown 0.45s var(--ease); }

/* ---------- Final call ---------- */

.final {
  background:
    radial-gradient(50% 60% at 25% 50%, rgba(138, 199, 194, 0.1), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  overflow: hidden;
}
.final__grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 100px); align-items: center;
}
.final__media { position: relative; margin: 0; }
.final__photo {
  position: relative; z-index: 1;
  border-radius: 28px; overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--line);
}
.final__photo img { width: 100%; height: 100%; object-fit: cover; }
.final__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 24, 32, 0.55) 100%);
}
.final__ring {
  position: absolute; z-index: 0;
  width: 124%; height: 124%; left: -12%; top: -12%;
  opacity: 0.55;
  animation: drift 60s linear infinite;
}
.final__title {
  font: 300 clamp(2rem, 3.8vw, 3.2rem)/1.08 var(--serif);
  letter-spacing: -0.022em; text-wrap: balance; margin-bottom: 24px;
}
.final__title em { color: var(--teal); }
.final__lead { max-width: 48ch; margin-bottom: 36px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { width: 120px; }
.footer__meta { font-size: 13.5px; color: var(--text-3); text-align: right; line-height: 1.7; }

/* ---------- Mobile sticky bar ---------- */

.sticky { display: none; }

/* ---------- Motion ---------- */

.load { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3n + 3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.steps .reveal:nth-child(5) { transition-delay: 0.32s; }
.plans .reveal:nth-child(2) { transition-delay: 0.1s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(44, 106, 103, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(44, 106, 103, 0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(0.92); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .step:not(:last-child)::after { left: 28px; right: auto; top: 56px; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--sand-deep), var(--teal)); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: center; padding-bottom: 26px; }
  .step:last-child { padding-bottom: 0; }
  .step__n { margin-bottom: 0; }
  .step p { max-width: none; }
}

@media (max-width: 900px) {
  .gap__grid, .cases__grid, .faq__grid, .final__grid, .hero__foot { grid-template-columns: 1fr; }
  .hero__actions { order: -1; }
  .final__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .gap__visual { order: -1; }
  .gap__ring { width: min(64vw, 280px); }
  .doc, .doc--flip { grid-template-columns: 1fr; }
  .doc--flip .doc__media { order: 0; }
  .doc__media { max-width: 420px; width: 88%; margin-inline: auto; }
  .faq .section-head { position: static; margin-bottom: 8px; }
  .thread { max-width: 520px; margin-inline: auto; width: 100%; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__inner { height: 64px; }
  .nav__logo img { width: 108px; }
  .nav__cta { padding: 9px 16px; font-size: 13px; }
  .eyebrow__sep { display: none; }
  .eyebrow em { flex-basis: 100%; }
  .vsl { margin-inline: -8px; }
  .vsl__frame { border-radius: 16px; }
  .vsl__pill { gap: 12px; padding: 7px 18px 7px 7px; }
  .vsl__icon { width: 44px; height: 44px; }
  .vsl__icon svg { width: 18px; height: 18px; }
  .vsl__text strong { font-size: 14.5px; }
  .vsl__text small { font-size: 11.5px; }
  .cta-pair { flex-direction: column; }
  .cta-pair .btn { width: 100%; }
  .faculty-chip { left: 12px; right: 12px; bottom: 12px; padding-right: 14px; font-size: 13px; }
  .versus { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan__note { min-height: 0; }
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .qa p { padding-right: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }
  .thread__float { right: 6px; top: -22px; }

  .sticky {
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 10px;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px;
    padding: 8px; border-radius: 22px;
    background: rgba(6, 24, 32, 0.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .sticky.is-on { transform: none; }
  .sticky__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 52px; border-radius: 15px;
    border: 1px solid var(--line-2);
    font-size: 14px; font-weight: 600; line-height: 1.2;
  }
  .sticky__btn span { font-size: 12px; font-weight: 500; opacity: 0.75; }
  .sticky__btn--primary { background: var(--sand); color: var(--navy); border-color: var(--sand); }
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .gap { --p: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
