/* Piles Treatment by Dr Sulaiman, hub styles, v2 (bold editorial direction).
   Palette: warm peach cream, deep teal ink, coral accent. Brand motifs:
   the grade line (I to IV) and the coral hand-underline. */

:root {
  --paper: #FFEFE9;
  --paper-2: #FFE4D9;
  --card: #FFFBF6;
  --ink: #1A4A48;
  --ink-soft: #52706D;
  --accent: #E85A3C;
  --accent-deep: #C94A2E;
  --accent-text: #B23F25; /* coral for small text, 5.17:1 on paper */
  --pink: #F4A8A8;
  --orange: #E87A3C;
  --dark: #123B39;
  --dark-2: #0E302E;
  --hairline: #E9CFC2;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-deep); color: #fff; }

section[id], article[id] { scroll-margin-top: 116px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
header.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
header.site.scrolled {
  background: rgba(255, 239, 233, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.lockup { text-decoration: none; color: var(--ink); display: inline-block; }
.lockup .lbl {
  display: block;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3.4px;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.lockup .rule { display: block; height: 1px; background: var(--hairline); margin: 5px 0 6px; position: relative; }
.lockup .rule::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.lockup .nm { display: block; font-family: var(--serif); font-size: 27px; letter-spacing: -0.3px; line-height: 1.05; }

nav.site { display: flex; align-items: center; gap: 30px; }
nav.site a.navlink {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transition: color 0.25s;
}
nav.site a.navlink:hover { color: var(--accent-text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  background: var(--accent-deep);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 10px 30px -12px rgba(232, 90, 60, 0.55);
}
.btn:hover { background: var(--accent-text); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 12px 24px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero .watermark {
  position: absolute;
  right: -2vw;
  bottom: 2vh;
  font-family: var(--serif);
  font-size: 24vw;
  line-height: 0.8;
  letter-spacing: -1vw;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26, 74, 72, 0.14);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.hero .grade-line {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: center;
}
.hero .grade-line span {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.hero .grade-line i { width: 1px; height: 44px; background: var(--hairline); display: block; }
.hero .grade-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; width: 100%; }
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 26px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}
h1 .line { display: block; overflow: hidden; padding-bottom: 0.26em; margin-bottom: -0.26em; }
h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { h1 .line > span { transform: none; animation: none; } }

/* the coral hand-underline, the signature mark of this page */
.u-swash { position: relative; white-space: nowrap; }
.u-swash svg {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.36em;
  overflow: visible;
}
.u-swash svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: swash 1s var(--ease) 0.9s forwards;
}
@keyframes swash { to { stroke-dashoffset: 0; } }

.hero .the-answer {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
  margin-top: 34px;
}
.hero .the-answer strong { color: var(--ink); font-weight: 600; }
.hero-ctas { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 30px; font-size: 14.5px; color: var(--ink-soft); max-width: 500px; }
.hero-meta { margin-top: 56px; font-size: 12.5px; letter-spacing: 0.4px; color: var(--ink-soft); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  height: auto;
  max-width: 460px;
  margin-left: auto;
  display: block;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 42px; background: var(--ink-soft); animation: hint 2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- reassurance band ---------- */
.band { background: var(--paper-2); border-block: 1px solid var(--hairline); }
.band .wrap {
  display: flex;
  justify-content: center;
  gap: 54px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}
.band span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 54px;
}
.band span + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- generic section ---------- */
section.block { padding: 130px 0; position: relative; }
.sec-head { max-width: 780px; margin-bottom: 60px; }
.sec-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent-text);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 18px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -1px;
}
.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 620px; margin-top: 22px; line-height: 1.65; }
.prose { max-width: 660px; }
.prose p + p { margin-top: 16px; }
.prose a { color: var(--accent-text); text-decoration-color: rgba(232, 90, 60, 0.4); text-underline-offset: 3px; }

/* ---------- contents: a route map across the page, never a side column ---------- */
.body { max-width: 840px; }
nav.route { margin-bottom: 110px; }
nav.route .route-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
nav.route .route-t {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  margin: 10px 0 40px;
  max-width: 620px;
}
nav.route ol { list-style: none; }
nav.route .legs {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 3fr 2.4fr 2.4fr;
  gap: 28px;
  padding-top: 34px;
}
nav.route .legs::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 70%, var(--pink) 100%);
}
nav.route .leg { position: relative; }
nav.route .leg::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
  box-sizing: border-box;
}
nav.route .leg-name {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}
nav.route .stops a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.4;
  transition: color 0.25s;
}
nav.route .stops i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent-text);
  flex: none;
}
nav.route .stops a:hover { color: var(--ink); }
@media (max-width: 1060px) {
  nav.route .legs { grid-template-columns: 1fr 1fr; row-gap: 44px; padding-top: 10px; }
  nav.route .legs::before { display: none; }
  nav.route .leg { border-top: 3px solid var(--accent); padding-top: 22px; }
  nav.route .leg::before { top: -10px; }
}
@media (max-width: 640px) {
  nav.route { margin-bottom: 80px; }
  nav.route .legs { grid-template-columns: 1fr; row-gap: 26px; padding-top: 0; padding-left: 34px; }
  nav.route .legs::before { display: block; top: 4px; bottom: 4px; left: 7px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 70%, var(--pink) 100%); }
  nav.route .leg { border-top: 0; padding-top: 0; }
  nav.route .leg::before { top: 3px; left: -34px; }
}

/* ---------- grade explorer ---------- */
.explorer { margin-top: 10px; }
.grade-tabs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.grade-tab {
  border: 1.5px solid var(--hairline);
  background: var(--card);
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: all 0.3s var(--ease);
}
.grade-tab small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--ink-soft); text-transform: uppercase; }
.grade-tab:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.grade-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grade-tab[aria-selected="true"] small { color: var(--pink); }

.grade-panel {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.grade-visual {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.grade-visual::before, .grade-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hairline);
}
.grade-visual::before { inset: 18%; }
.grade-visual::after { inset: 34%; }
.grade-dot {
  border-radius: 50%;
  background: var(--accent);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
  box-shadow: 0 16px 34px -12px rgba(232, 90, 60, 0.6);
}
.grade-body h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.5px; margin-bottom: 6px; }
.grade-body .what { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 22px; }
.grade-body .managed {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 16.5px;
}
.grade-body .managed b { display: block; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.grade-body .fade { animation: fadeSwap 0.5s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grade-foot { margin-top: 26px; font-size: 15px; color: var(--ink-soft); max-width: 600px; }

/* ---------- urgent panel ---------- */
.urgent {
  border-left: 5px solid var(--accent);
  background: var(--card);
  border-radius: 0 16px 16px 0;
  padding: 34px 40px;
  max-width: 760px;
  margin-top: 40px;
  box-shadow: 0 24px 50px -30px rgba(26, 74, 72, 0.25);
}
.urgent .t {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.urgent p { font-size: 16.5px; }

/* ---------- comparison rows ---------- */
.compare { margin-top: 20px; max-width: 860px; }
.compare .row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.compare .row:last-child { border-bottom: 1px solid var(--hairline); }
.compare .idx { font-family: var(--serif); font-size: 34px; color: var(--accent); }
.compare .name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.3px; }
.compare .name small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0; }
.compare .feel { color: var(--ink-soft); font-size: 16px; }

/* ---------- treatment ladder (sticky stacking cards) ---------- */
.ladder { margin-top: 20px; }
.rung { position: sticky; top: calc(110px + var(--i) * 16px); margin-bottom: 16vh; }
.rung:last-child { margin-bottom: 0; }
.rung .card {
  border-radius: 24px;
  padding: 46px 54px;
  display: grid;
  grid-template-columns: 130px 1fr 260px;
  gap: 40px;
  align-items: center;
  box-shadow: 0 -18px 50px -30px rgba(26, 74, 72, 0.35);
  border: 1px solid rgba(26, 74, 72, 0.08);
}
.rung .num { font-family: var(--serif); font-size: 84px; line-height: 1; opacity: 0.9; }
.rung h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.5px; margin-bottom: 10px; }
.rung .what { font-size: 16.5px; max-width: 460px; }
.rung .suits { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; line-height: 1.7; }
.rung .suits b { display: block; font-size: 11px; letter-spacing: 2.6px; opacity: 0.65; margin-bottom: 8px; }
.rung a.more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

.rung.c1 .card { background: var(--card); color: var(--ink); }
.rung.c2 .card { background: var(--paper-2); color: var(--ink); }
.rung.c3 .card { background: var(--pink); color: var(--ink); }
.rung.c4 .card { background: var(--orange); color: #0E2A29; }
.rung.c5 .card { background: var(--dark); color: #FDF3EE; }
.rung.c5 a.more { color: var(--pink); }
.rung.c1 a.more, .rung.c2 a.more { color: var(--accent-text); }
.rung.c3 a.more { color: var(--ink); }

/* ---------- dark sections (cost, contact) ---------- */
section.dark { background: var(--dark); color: #FDF3EE; }
section.dark h2 { color: #FDF3EE; }
section.dark .lede { color: #B9CEC9; }
section.dark .sec-num { color: var(--pink); }
section.dark .prose { color: #B9CEC9; }
section.dark .prose a { color: var(--pink); }

table.data { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
table.data caption { text-align: left; font-size: 13.5px; color: #8FA9A4; margin-bottom: 14px; }
table.data th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #8FA9A4;
  padding: 14px 18px 14px 0;
  border-bottom: 1.5px solid rgba(253, 243, 238, 0.5);
}
table.data td { padding: 18px 18px 18px 0; border-bottom: 1px solid rgba(253, 243, 238, 0.14); vertical-align: top; }
table.data td:first-child { font-family: var(--serif); font-size: 19px; white-space: nowrap; }

.verify {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}
section:not(.dark) .verify { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- recovery ---------- */
.reco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.reco .cell {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 40px 34px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.reco .cell:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(26, 74, 72, 0.3); }
.reco .time { font-family: var(--serif); font-size: clamp(34px, 3vw, 46px); letter-spacing: -1px; color: var(--accent); }
.reco .what { font-weight: 700; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; margin: 14px 0 10px; }
.reco p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- doctor ---------- */
.doctor-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 36px;
  max-width: 720px;
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  align-items: center;
}
.doctor-card .photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 44px;
}
.doctor-card .name { font-family: var(--serif); font-size: 28px; letter-spacing: -0.5px; }
.doctor-card .role { font-size: 14px; color: var(--ink-soft); margin: 4px 0 12px; }
.doctor-card p.bio { font-size: 15.5px; color: var(--ink-soft); }
.doctor-card a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin-top: 10px; }
.faq .item { border-top: 1px solid var(--hairline); }
.faq .item:last-child { border-bottom: 1px solid var(--hairline); }
.faq button.q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  padding: 28px 60px 28px 0;
  cursor: pointer;
  position: relative;
  letter-spacing: -0.3px;
  transition: color 0.25s;
}
.faq button.q:hover { color: var(--accent-text); }
.faq button.q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.faq .item.open button.q::after { transform: translateY(-30%) rotate(225deg); }
.faq .a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq .item.open .a { grid-template-rows: 1fr; }
.faq .a > div { overflow: hidden; }
.faq .a p { max-width: 640px; color: var(--ink-soft); font-size: 16.5px; padding-bottom: 30px; }

/* ---------- video placeholder ---------- */
.video-slot {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FDF3EE;
}
.video-slot img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.video-slot .inner { position: relative; max-width: 460px; padding: 30px; }
.video-slot .play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 243, 238, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.video-slot .play::after {
  content: "";
  border-left: 20px solid var(--pink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}
.video-slot .t { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.video-slot .d { font-size: 13.5px; color: #B9CEC9; }

/* ---------- contact gate ---------- */
.gate { max-width: 560px; margin-top: 44px; }
.gate label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #8FA9A4;
  margin: 26px 0 10px;
}
.gate input, .gate select {
  width: 100%;
  background: rgba(253, 243, 238, 0.06);
  border: 1px solid rgba(253, 243, 238, 0.25);
  border-radius: 12px;
  color: #FDF3EE;
  font-family: var(--sans);
  font-size: 16.5px;
  padding: 16px 18px;
  transition: border-color 0.25s;
}
.gate input:focus, .gate select:focus { outline: none; border-color: var(--accent-text); }
.gate select option { color: var(--ink); }
.gate .btn { margin-top: 36px; }
.gate .privacy { margin-top: 20px; font-size: 13.5px; color: #8FA9A4; }
.gate .privacy a { color: #B9CEC9; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--hairline); padding: 60px 0 80px; font-size: 13.5px; color: var(--ink-soft); }
footer.site .lines { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 20px; }
footer.site a { color: var(--ink); }
footer.site .disc { max-width: 720px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 48px; }
  .scroll-hint { display: none; }
  .hero-art img { max-width: 300px; margin: 0 auto; aspect-ratio: 1 / 1.1; object-fit: cover; }
  .hero .grade-line { display: none; }
  .rung .card { grid-template-columns: 90px 1fr; }
  .rung .suits { grid-column: 2; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  section.block { padding: 84px 0; }
  nav.site a.navlink { display: none; }
  .hero { padding-top: 130px; min-height: auto; }
  .grade-panel { grid-template-columns: 1fr; gap: 30px; }
  .grade-visual { max-width: 300px; }
  .compare .row { grid-template-columns: 1fr; gap: 8px; }
  .compare .idx { font-size: 26px; }
  .rung { position: static; margin-bottom: 22px; }
  .rung .card { grid-template-columns: 1fr; gap: 18px; padding: 34px 28px; }
  .rung .num { font-size: 56px; }
  .reco { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; text-align: left; padding: 30px; }
  table.data td:first-child { white-space: normal; }
  .lockup .nm { font-size: 22px; }
  .lockup .lbl { font-size: 8.5px; letter-spacing: 2.2px; white-space: nowrap; }
}

/* ---------- sub-page (spoke) patterns ---------- */
.crumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 34px; }
.crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.crumb a:hover { color: var(--accent-text); }
.crumb .sep { margin: 0 10px; color: var(--hairline); }

.hero-sub { padding: 160px 0 90px; position: relative; overflow: hidden; }
.hero-sub .grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero-sub h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero-sub .art { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(26, 74, 72, 0.4); }
.hero-sub .art img { display: block; width: 100%; height: auto; }
@media (max-width: 1060px) {
  .hero-sub { padding: 140px 0 70px; }
  .hero-sub .grid { grid-template-columns: 1fr; }
  .hero-sub .art { max-width: 520px; }
}

/* per-grade deep blocks */
.gblock { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 54px 0; border-top: 1px solid var(--hairline); align-items: start; }
.gblock:last-of-type { border-bottom: 1px solid var(--hairline); }
.gblock .gnum { font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--accent); }
.gblock h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.5px; margin-bottom: 10px; }
.gblock .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 18px; }
.gblock .cols2 h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.gblock .cols2 p { font-size: 16px; color: var(--ink); }
@media (max-width: 700px) {
  .gblock { grid-template-columns: 1fr; gap: 12px; }
  .gblock .gnum { font-size: 52px; }
  .gblock .cols2 { grid-template-columns: 1fr; }
}

/* consult steps */
.steps { counter-reset: step; margin-top: 10px; max-width: 760px; }
.steps .step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--hairline); }
.steps .step:last-child { border-bottom: 1px solid var(--hairline); }
.steps .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent-text);
}
.steps .step b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 6px; letter-spacing: -0.2px; }
.steps .step p { font-size: 16px; color: var(--ink-soft); }

/* CTA band used at the foot of spokes */
.cta-band { background: var(--dark); border-radius: 28px; padding: 70px 60px; color: #FDF3EE; position: relative; overflow: hidden; }
.cta-band h2 { color: #FDF3EE; max-width: 16ch; }
.cta-band p { color: #B9CEC9; max-width: 520px; margin-top: 18px; font-size: 17.5px; }
.cta-band .btn { margin-top: 34px; }
.cta-band .ring {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 243, 238, 0.14);
}
.cta-band .ring::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: 40px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 700px) { .cta-band { padding: 48px 28px; } }

/* ---------- fix round 1, 2026-09-23 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.data { min-width: 100%; }
.doctor-card .photo { overflow: hidden; }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
footer.site .clinics { margin-bottom: 14px; color: var(--ink); }

/* ---------- build 2026-09-24: keyword line, pictures, contents list, sources, guides ---------- */
/* home H1 carries the search words as a small first line, above the three animated lines */
h1 .h1-pre {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 26px;
}
h1.has-pre .line:nth-child(2) > span { animation-delay: 0s; }
h1.has-pre .line:nth-child(3) > span { animation-delay: 0.12s; }
h1.has-pre .line:nth-child(4) > span { animation-delay: 0.24s; }

/* contents list on sub-pages */
nav.toc { max-width: 620px; margin-top: 34px; padding: 22px 26px; background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; }
nav.toc .t { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
nav.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
nav.toc li { counter-increment: toc; }
nav.toc a { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
nav.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); color: var(--accent-text); font-size: 13.5px; flex: none; }
nav.toc a:hover { color: var(--accent-text); }
@media (max-width: 700px) { nav.toc ol { grid-template-columns: 1fr; } nav.toc { padding: 20px; } }

/* hero whose picture is a wide diagram: text on top, diagram full width underneath */
.hero-sub.stacked .grid { grid-template-columns: 1fr; gap: 34px; }
.hero-sub.stacked .grid > div:first-child { max-width: 820px; }

/* photographs with a caption */
figure.pic { margin: 40px 0 0; max-width: 760px; }
figure.pic img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(26, 74, 72, 0.35); }
figure.pic figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); max-width: 640px; }
section.dark figure.pic figcaption { color: #B9CEC9; }
.pic-credit { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

/* close-up medical photos open blurred; a hidden checkbox and its label reveal them,
   so "Show the photo" works with JavaScript off */
figure.pic.sensitive { position: relative; }
.sens-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sens-frame { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(26, 74, 72, 0.35); }
figure.pic.sensitive img { box-shadow: none; border-radius: 0; filter: blur(26px) saturate(0.7); transform: scale(1.12); transition: filter 0.5s var(--ease), transform 0.5s var(--ease); }
.sens-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; cursor: pointer; background: rgba(18, 59, 57, 0.32); color: #FFFBF6; font-size: 14px; line-height: 1.4; }
.sens-cover b { background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 999px; }
.sens-toggle:focus-visible + .sens-frame .sens-cover b { outline: 3px solid var(--accent); outline-offset: 3px; }
.sens-toggle:checked + .sens-frame img { filter: none; transform: none; }
.sens-toggle:checked + .sens-frame .sens-cover { display: none; }
@media (prefers-reduced-motion: reduce) { figure.pic.sensitive img { transition: none; } }

/* diagrams: the drawing carries no words, the labels are set here in HTML */
figure.diagram { margin: 40px 0 0; max-width: 1000px; background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px 26px 20px; }
figure.diagram.two { max-width: 700px; }
figure.diagram img { display: block; width: 100%; height: auto; }
figure.diagram ol.dl { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; margin-top: 16px; }
figure.diagram ol.dl li { font-size: 14px; color: var(--ink); line-height: 1.45; }
figure.diagram ol.dl b { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--accent-text); margin-bottom: 2px; }
figure.diagram figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-soft); }
.hero-sub .art figure.diagram { margin: 0; box-shadow: none; }
.hero-sub .art:has(figure.diagram) { box-shadow: none; border-radius: 20px; overflow: visible; }
@media (max-width: 700px) {
  figure.diagram { padding: 16px 14px 14px; }
  figure.diagram ol.dl { gap: 10px; }
  figure.diagram ol.dl li { font-size: 12.5px; }
  figure.diagram ol.dl b { font-size: 15px; }
}

/* "Is this you?" tiles: one symptom, one picture */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.moments a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.moments a:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(26, 74, 72, 0.35); }
.moments img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.moments img.fit { object-fit: contain; padding: 14px 10px; }
.moments p { padding: 16px 18px 20px; font-size: 15.5px; line-height: 1.5; }
.moments p small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; color: var(--accent-text); }
@media (max-width: 1060px) { .moments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .moments { grid-template-columns: 1fr; } }

/* sources under a section */
.sources { max-width: 760px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.sources .t { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.sources ol { padding-left: 20px; }
.sources li { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.55; }
.sources a { color: var(--accent-text); }
section.dark .sources { border-top-color: rgba(253, 243, 238, 0.18); }
section.dark .sources .t, section.dark .sources li { color: #B9CEC9; }
section.dark .sources a { color: var(--pink); }

/* data tables on light sections (the base table style is written for the dark cost band) */
section:not(.dark) table.data caption, section:not(.dark) table.data th { color: var(--ink-soft); }
section:not(.dark) table.data th { border-bottom-color: var(--ink); }
section:not(.dark) table.data td { border-bottom-color: var(--hairline); }
section:not(.dark) table.data a { color: var(--accent-text); }
section.dark table.data a { color: var(--pink); }

/* footer guides row: every guide linked from every page */
footer.site .guides { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
footer.site .guides .t { flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
footer.site .guides a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
footer.site .guides a:hover { color: var(--accent-text); }
.hero-sub .the-answer { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--ink-soft); max-width: 580px; margin-top: 30px; }
.hero-sub .the-answer strong { color: var(--ink); font-weight: 600; }

/* ---------- main menu: dropdowns on desktop, one list behind a button below 1060px ---------- */
.nav-links { display: flex; align-items: center; gap: 30px; }
.dd { position: relative; }
.dd-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; }
nav.site .dd-btn { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; transition: color 0.25s; }
nav.site .dd-btn:hover, nav.site .dd.open .dd-btn { color: var(--accent-text); }
nav.site .btn.small { gap: 0; }
nav.site .navlink.is-current { color: var(--accent-text); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease); }
.dd.open .chev, .dd:hover .chev { transform: translateY(1px) rotate(225deg); }
.dd-menu {
  list-style: none; position: absolute; top: calc(100% + 16px); left: -18px; min-width: 270px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px -18px rgba(26, 74, 72, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--paper); color: var(--accent-text); }
.dd-menu a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  nav.site { gap: 12px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
  header.site.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  header.site.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  header.site.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  header.site.menu-open { background: var(--paper); box-shadow: 0 1px 0 var(--hairline); }
  .nav-links {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h, 88px); bottom: 0; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    padding: 8px 40px 48px; border-top: 1px solid var(--hairline);
  }
  header.site.menu-open .nav-links { display: flex; }
  .dd-btn { pointer-events: none; padding: 22px 0 6px; color: var(--accent-text); }
  .chev { display: none; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0; }
  .dd-menu::before { display: none; }
  .dd-menu a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .dd-menu a:hover { background: none; }
  nav.site .dd-btn { color: var(--accent-text); font-size: 11.5px; }
  nav.site .nav-links a.navlink { display: block; padding: 12px 0; font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--hairline); }
  nav.site .nav-links > a.navlink:first-of-type { margin-top: 6px; }
  nav.site .nav-links a.navlink.is-current { color: var(--accent-text); font-weight: 600; }
  html.menu-lock { overflow: hidden; }
}
@media (max-width: 700px) {
  nav.site { gap: 8px; }
  .wa-long { display: none; }
  .nav-links { padding-left: 22px; padding-right: 22px; }
  nav.site .btn.small { padding: 11px 18px; }
}

/* cost at a glance (piles-cost): rows in the patient's order, then the cash-estimate card, then the
   full benchmark table folded. Tyler's rulings 2026-09-24. */
.costlist { margin-top: 36px; max-width: 860px; }
.costlist .cl-step { margin: 30px 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); }
.costlist .cl-step:first-child { margin-top: 0; }
.costlist .cl-row { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(253, 243, 238, 0.14); }
.costlist .cl-row p { margin: 0; }
.costlist .cl-k { color: #FDF3EE; font-weight: 600; }
.costlist .cl-k span { color: #B9CEC9; font-weight: 400; }
.costlist .cl-v { font-family: var(--serif); font-size: 22px; color: #FDF3EE; text-align: right; white-space: nowrap; }
.costlist .cl-d { grid-column: 1 / -1; font-size: 15px; line-height: 1.6; color: #B9CEC9; }
.cash-card { margin-top: 34px; max-width: 860px; padding: 26px 28px; background: var(--dark-2); border: 1px solid rgba(253, 243, 238, 0.18); border-radius: 18px; }
.cash-card p { margin: 0 0 14px; color: #B9CEC9; }
.cash-card .cash-h { font-family: var(--serif); font-size: 24px; color: #FDF3EE; margin-bottom: 8px; }
.cash-card .cash-fine { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: #8FA9A4; }
.fee-fold { margin-top: 34px; max-width: 860px; color: #B9CEC9; }
.fee-fold summary { cursor: pointer; color: var(--pink); font-weight: 600; padding: 10px 0; }
.fee-fold summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.fee-fold table.data { margin-top: 12px; }
.fee-fold p { margin-top: 18px; }
@media (max-width: 640px) {
  .costlist .cl-row { grid-template-columns: 1fr; }
  .costlist .cl-v { text-align: left; font-size: 20px; white-space: normal; }
  .cash-card { padding: 22px 18px; }
  .cash-card .btn { width: 100%; justify-content: center; text-align: center; }
}
