/* ============================================================
   Shanc 2.0 — redesign styles
   Type: Caslon Ionic (display serif) + Favorit Pro (text sans)
   Palette: cream paper, signal red, deep red, gold on red
   Reference frame width: 1920px (1vw = 19.2px)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Caslon Ionic';
  src: url('fonts/CaslonIonic-Regular.woff2') format('woff2'),
       url('fonts/CaslonIonic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Favorit Pro';
  src: url('fonts/FavoritPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Favorit Pro';
  src: url('fonts/FavoritPro-Book.otf') format('opentype');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Favorit Pro';
  src: url('fonts/FavoritPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Favorit Pro';
  src: url('fonts/FavoritPro-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Favorit Pro';
  src: url('fonts/FavoritPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fff4ee;
  --red: #d40012;
  --red-deep: #a9121f;
  --gold: #feda9b;
  --peach: #f3e2d8;
  --grey-warm: #e4d8d1; /* warm grey — chat header, quiet accents */
  --grey-rose: #d0b7bc; /* greyish rose — secondary text on deep red */
  --taupe: #b6a49a;     /* muted taupe — de-emphasised table columns */
  --ink: #000000;
  --hero-bg: #fff4ee;    /* same warm cream as the rest of the site */
  --hero-stroke: #9a8574; /* warm taupe accent (labels, footer sub) */

  --serif: 'Caslon Ionic', Georgia, serif;
  --sans: 'Favorit Pro', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* side margin: 82px @1920 */
  --gutter: clamp(20px, 4.27vw, 82px);

  /* type scale @1920: 80 / 40 / 38 / 36 / 32 / 24 */
  --fs-hero: clamp(38px, 4.17vw, 80px);
  --fs-display: clamp(38px, 4.17vw, 80px);
  --fs-label: clamp(22px, 1.98vw, 38px); /* serif labels: Orders, why-rows… */
  --fs-sub: clamp(18px, 1.88vw, 36px);
  --fs-title: clamp(23px, 2.1vw, 40px);
  --fs-btn: clamp(20px, 2.08vw, 40px);
  --fs-body-lg: clamp(17px, 1.67vw, 32px);
  --fs-body: clamp(15px, 1.25vw, 24px);

}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff; /* flat white — the art carries the texture */
  padding: clamp(10px, 0.89vw, 17px) var(--gutter) clamp(32px, 3.96vw, 76px);
  overflow: hidden;
}
/* the Shanc figure with data rings — right of centre, vertically centred
   (674px wide, centre at 50%+440px @1920); a video will replace it */
.hero-art {
  position: absolute;
  top: 50%;
  left: 72.9%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 35.1vw, 674px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* no filter here: iOS Safari ignores CSS filters on playing video, so the
     encode bakes the bg to super-white luma (Y245) that every decoder clips
     to pure page white */
}
.hero-top, .hero-lead, .hero-cta { position: relative; z-index: 1; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  text-decoration: none;
  line-height: 1;
}
.brand img {
  width: clamp(130px, 10.42vw, 200px);
  height: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 1.5vw, 28px);
}
.nav-links a {
  font-family: var(--sans);
  font-size: clamp(14px, 0.94vw, 18px);
  color: var(--red);
  text-decoration: none;
}
.nav-links a.active { text-decoration: underline; text-underline-offset: 3px; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero-lead {
  margin-top: clamp(48px, 4.74vw, 91px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.h-hero {
  margin: 0;
  max-width: 9.7em; /* 773px @1920 — breaks after "superpowers" */
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-sub {
  margin: clamp(16px, 2.14vw, 41px) 0 0;
  max-width: 21.5em; /* 773px @1920 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.3;
  color: var(--red);
}
.hero-cta {
  margin-top: auto;
  padding-top: 32px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.04vw, 20px) clamp(24px, 2.6vw, 50px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-btn);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-primary:hover { transform: translateX(2px); background: #222; }
.btn-ghost:hover { transform: translateX(2px); background: var(--peach); }

/* content sits above the figure videos (z 0). .stage and .try-main are
   excluded so they don't isolate their nested figure videos; their own
   children are raised individually below */
.section-connect > :not(.stage),
.section-why > *,
.section-does > *,
.sec-pricing > *,
.sec-numbers > *,
.sec-who > *,
.sec-try > :not(.try-main) {
  position: relative;
  z-index: 2;
}
.try-main { position: relative; }
.try-main > :not(.figure-loop) {
  position: relative;
  z-index: 2;
}
.stage-sources {
  position: relative;
  z-index: 2;
}

/* ---------- Screen 2: Connect your dwh ---------- */
.section-connect {
  /* transparent: the body paper shows through */
  background: transparent;
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 3.49vw, 67px) var(--gutter) clamp(60px, 5.47vw, 105px);
}
.section-connect .h-display {
  margin: 0 0 clamp(48px, 6.35vw, 122px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red);
  max-width: 14.1em; /* 1123px @1920 — two lines */
}

.stage {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(24px, 2.5vw, 48px);
  min-height: clamp(430px, 32.6vw, 626px);
}
.stage-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 3.33vw, 64px);
  font-family: var(--serif);
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  flex: 0 0 auto;
}
.stage-monk {
  margin: 0;
  /* dead-centre of the stage */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.9vw, 18px);
  z-index: 0;
}
.monk-img {
  position: relative;
  overflow: hidden;
  width: clamp(180px, 16.8vw, 323px);
  aspect-ratio: 323 / 271;
}
.monk-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stage-monk figcaption {
  font-family: var(--serif);
  font-size: var(--fs-title);
  color: var(--ink);
  text-align: center;
}

/* straight vector connector lines (exported from the frame) */
.stage .line {
  position: absolute;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.line-orders    { left: 8.88%;  top: 18.05%; width: 35.48%; }
.line-users     { left: 7.20%;  top: 34.42%; width: 37.15%; }
.line-events    { left: 9.78%;  top: 50.24%; width: 34.57%; }
.line-github    { left: 9.22%;  top: 50.24%; width: 35.14%; }
.line-querylogs { left: 12.79%; top: 50.24%; width: 31.57%; }
.line-to-agent  { left: 57.63%; top: 50.00%; width: 6.98%;  }

/* the agent chat card */
.stage-agent {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(320px, 32.5vw, 624px);
}
.stage-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(430px, 32.6vw, 626px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.chat-head {
  background: var(--grey-warm);
  padding: 10px;
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--ink);
}
.chat-log {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.25;
}
.chat-log p { margin: 0; }
.chat-log p + p { margin-top: 0.55em; }
.msg-user { color: var(--ink); }
.msg-shanc { color: var(--red); }
.chat-foot { padding: 0 10px 10px; }
.chat-input {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 7px 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--red);
  white-space: nowrap;
  overflow: hidden;
}
.chat-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  background: var(--red);
  vertical-align: text-bottom;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chat-caret { animation: none; }
}

/* ---------- Screen 3: Why teams need Shanc ---------- */
.section-why {
  background-color: var(--red-deep);
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 3.66vw, 70px) var(--gutter) clamp(66px, 6.88vw, 132px);
}
.section-why .h-display {
  margin: 0 auto clamp(48px, 5.2vw, 100px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: normal;
  color: #fff;
  text-align: center;
}
.why-table {
  /* frame indents: 258px each side @1920 */
  width: min(1464px, 76.25%);
  margin: 0 auto;
}
.why-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6.25vw, 120px);
  margin-bottom: clamp(28px, 3.1vw, 60px);
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1;
  color: var(--grey-rose);
}
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6.25vw, 120px);
  align-items: start;
}
.why-row + .why-row { margin-top: clamp(28px, 3.1vw, 60px); }
.why-row h3,
.why-sol h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.why-num {
  display: block;
  margin-bottom: clamp(12px, 1.15vw, 22px);
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1;
  color: var(--grey-rose);
}
.why-prob p,
.why-sol p {
  margin: clamp(10px, 1.04vw, 20px) 0 0;
  font-family: var(--sans);
  font-weight: 350;
  font-size: var(--fs-body);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--grey-rose);
}
.why-prob p strong,
.why-sol p strong {
  font-weight: 500;
  color: #fff;
}

/* ---------- Screen 4: What Shanc does ---------- */
.section-does {
  background: transparent;
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 7.73vw, 149px) var(--gutter) clamp(66px, 6.88vw, 132px);
}
.section-does .h-display {
  margin: 0 auto clamp(40px, 4.5vw, 86px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: normal;
  color: var(--red);
  text-align: center;
}
.does-board {
  max-width: 1450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.does-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.does-card {
  background: #fff;
  padding: clamp(12px, 1.04vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.78vw, 15px);
}
/* image slot (Figma frames 48/110–114) */
.does-ph {
  position: relative;
  width: 100%;
  height: clamp(150px, 15.6vw, 300px);
  background: #f6f6f6;
  overflow: hidden;
}
/* screenshot slots: pre-cropped to the Figma view, whites knocked back to #f6f6f6 */
.does-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.does-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f6f6f6;
  mix-blend-mode: multiply;
}
/* centred stage that keeps the 436.67x300 design proportions when the slot doesn't */
.does-fig {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  aspect-ratio: 436.67 / 300;
  max-width: 100%;
}
/* fewer-tokens bar chart, drawn in CSS */
.tok-bar {
  position: absolute;
  left: 16.18%;
  top: 13%;
  width: 24.5%;
  height: 66.67%;
  background: var(--grey-warm);
}
.tok-line {
  position: absolute;
  left: 59.92%;
  top: 79%;
  width: 24.5%;
  height: 2px;
  background: var(--red);
}
.tok-callout {
  position: absolute;
  left: 72.06%;
  top: 62.67%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  white-space: nowrap;
}
.tok-label {
  position: absolute;
  top: 86.67%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: clamp(9px, 0.573vw, 11px);
  line-height: normal;
  color: var(--ink);
  white-space: nowrap;
}
.tok-a { left: 28.32%; }
.tok-b { left: 72.06%; }
/* governed-multiplayer overlapping chart shots */
.does-charts .does-fig img {
  position: absolute;
  width: 64.58%;
  height: auto;
  border-radius: 8px;
}
.chart-a { left: 2.6%; top: 4%; }
.chart-b { left: 32.37%; top: 39.33%; }
/* any-agent terminal mock */
.does-term {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dterm {
  height: min(82.7%, 248px);
  aspect-ratio: 247 / 248;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: clamp(9px, 0.573vw, 11px);
  line-height: normal;
  color: var(--ink);
}
.dterm-bar {
  background: var(--grey-warm);
  padding: 4px;
}
.dterm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
/* outrank the later .does-card p rule (24px red) for terminal lines */
.does-card .dterm p {
  margin: 0;
  font-size: inherit;
  color: var(--ink);
}
.does-card .dterm p.dt-red { color: var(--red); }
.dterm-input { padding: 0 4px 4px; }
.dterm-input span {
  display: block;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 3px 0;
  font-size: 0.86em;
  color: var(--red);
}
.does-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.does-card p {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--red);
}
/* the small centred afterthought under the board */
.does-byok {
  margin: clamp(80px, 12.65vw, 243px) auto 0;
  max-width: 569px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.04vw, 20px);
  text-align: center;
}
.does-byok h3 {
  margin: 0 auto;
  max-width: 12.6em; /* 477px @1920 — two centred lines */
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.does-byok p {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--red);
}

/* ============================================================
   Reskinned lower sections (Figma frames 48–57)
   ============================================================ */
.sec-pricing, .sec-security, .sec-numbers, .sec-demo,
.sec-cases, .sec-compare, .sec-faq {
  position: relative;
  overflow: hidden;
  padding: clamp(31px, 2.57vw, 50px) var(--gutter) clamp(66px, 5.72vw, 110px);
}
/* base display heading for the reskinned sections (old sections scope their own) */
.h-display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--red);
}
.sec-lead {
  margin: clamp(12px, 1.15vw, 22px) 0 0;
  max-width: 24.9em; /* 797px @1920 */
  font-family: var(--sans);
  font-size: clamp(16px, 1.67vw, 32px);
  line-height: 1.3;
  color: var(--red);
}

/* ---------- Pricing ---------- */
/* figure loop videos live on the background layer; content stacks above */
.figure-loop {
  position: relative;
  display: block;
  z-index: 0;
}
.figure-loop video {
  display: block;
  width: 100%;
  height: auto;
}
/* the encodes' paper bg decodes a few steps off cream; #cream-clip (inline
   SVG in index.html) clamps it to exactly var(--cream) */
.figure-loop video,
.monk-img video {
  filter: url(#cream-clip);
}
/* > .class beats the section stacking rule that sets position:relative */
.sec-pricing > .pricing-monk {
  position: absolute;
  z-index: 0;
  top: clamp(20px, 2.96vw, 57px);
  right: calc(var(--gutter) + 1%);
  width: clamp(108px, 17.6vw, 339px);
  height: auto;
}
.sec-pricing { padding-top: clamp(60px, 6.67vw, 128px); }
.plans {
  margin-top: clamp(48px, 10.1vw, 194px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.plan {
  background: #fff;
  padding: clamp(14px, 1.04vw, 20px);
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 26vw, 500px);
}
.plan-featured { border: 2px solid var(--ink); }
.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-price {
  margin-top: 5px;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1;
}
.plan-desc {
  margin: clamp(16px, 1.56vw, 30px) 0 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.2;
  color: var(--red);
}
.plan ul {
  margin: clamp(16px, 1.56vw, 30px) 0 0;
  padding-left: 1.1em;
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.2;
  color: var(--red);
}
.plan ul li + li { margin-top: 0.35em; }
.plan ul { margin-bottom: clamp(16px, 1.56vw, 30px); }
.plan .plan-lead-li { list-style: none; margin-left: -1.1em; }
.plan .btn {
  margin-top: auto;
  align-self: flex-start;
  min-width: min(100%, clamp(180px, 13.96vw, 268px));
  font-size: clamp(16px, 1.25vw, 24px);
}
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { transform: translateX(2px); background: var(--peach); }

/* ---------- How Shanc builds the layer ---------- */
.sec-builds {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: clamp(40px, 4.17vw, 80px) var(--gutter) clamp(66px, 6.35vw, 122px);
}
.sec-builds .h-display { margin: 0; letter-spacing: -0.01em; }
/* the pipeline, laid out as a ruled table on cream */
.builds-table {
  width: min(1450px, 100%);
  margin: clamp(40px, 4.32vw, 83px) auto 0;
  border-collapse: collapse;
  background: var(--cream);
}
.builds-table th,
.builds-table td {
  padding: clamp(15px, 1.56vw, 30px) clamp(16px, 2.08vw, 40px) clamp(15px, 1.56vw, 30px) 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--red);
}
.builds-table th:first-child,
.builds-table td:first-child { padding-left: clamp(12px, 1.04vw, 20px); }
.builds-table th:last-child,
.builds-table td:last-child { padding-right: clamp(12px, 1.04vw, 20px); }
.builds-table thead th {
  padding-top: clamp(12px, 1.04vw, 20px);
  padding-bottom: clamp(21px, 2.19vw, 42px); /* 30px gap + the 12px rule */
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1;
  text-transform: uppercase;
  /* triple rule under the header: 2px line, 3px gap, ×3 */
  border-bottom: none;
  background:
    linear-gradient(to bottom, var(--red) 0 2px, transparent 2px 5px, var(--red) 5px 7px, transparent 7px 10px, var(--red) 10px 12px)
    bottom / 100% 12px no-repeat;
}
.builds-table td {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.67vw, 32px);
  line-height: 1.19;
  color: var(--ink);
}
/* column proportions @1920: 240 / 471 / 699 of 1410 */
.builds-table th:nth-child(1), .builds-table td:nth-child(1) { width: 17%; }
.builds-table th:nth-child(2), .builds-table td:nth-child(2) { width: 33.4%; }

/* ---------- Security & compliance ---------- */
.sec-security { padding-top: clamp(45px, 4.74vw, 91px); }
.sec-security .h-display { letter-spacing: -0.01em; }
.sec-card {
  width: min(1450px, 100%);
  margin: clamp(40px, 4.43vw, 85px) auto 0;
  background: #fff;
  border-radius: 10px 4px 4px 4px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.56vw, 30px);
  align-items: start;
}
/* the audit, replayed — static terminal on a cream panel */
.sec-terminal {
  align-self: stretch;
  background: var(--cream);
  border-radius: 8px 2px 2px 2px;
  padding: clamp(16px, 1.56vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
}
.sec-terminal pre {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(12px, 1.09vw, 21px);
  line-height: 1.7;
  color: var(--ink);
}
.t-mut { color: var(--taupe); }
.t-red { color: var(--red); }
.t-caret { color: var(--red); animation: caret-blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .t-caret { animation: none; } }
.sec-feats {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 50px);
  padding: clamp(12px, 1.04vw, 20px) clamp(6px, 0.52vw, 10px) clamp(12px, 1.04vw, 20px) 0;
}
.sec-feat h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-feat h3 img {
  flex: 0 0 auto;
  width: clamp(22px, 1.67vw, 32px);
  height: auto;
}
.sec-feat p {
  margin: clamp(10px, 0.89vw, 17px) 0 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.17;
  color: var(--red);
}

/* ---------- Shanc in numbers ---------- */
.numbers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(24px, 2.08vw, 40px);
  align-items: start;
}
.numbers-grid .h-display { max-width: 6.5em; }
/* centred in the empty left half, beside the stats column */
.sec-numbers > .numbers-monk {
  position: absolute;
  z-index: 0;
  left: 25%;
  top: 42.5%;
  transform: translateX(-50%);
  width: clamp(105px, 12.6vw, 242px);
  height: auto;
}
.stat-n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 11.93vw, 229px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--red);
}
.stat p {
  margin: clamp(8px, 0.68vw, 13px) 0 0;
  max-width: 22em;
  font-family: var(--sans);
  font-size: clamp(16px, 1.67vw, 32px);
  line-height: 1.2;
  color: var(--ink);
}
.stats hr {
  border: none;
  border-top: 2px solid var(--red);
  margin: clamp(24px, 2.6vw, 50px) 0;
}

/* ---------- See Shanc in action ---------- */
.demo-monk {
  position: absolute;
  z-index: 0;
  left: 25%;
  top: 42%;
  transform: translateX(-50%);
  width: clamp(140px, 16.8vw, 323px);
  height: auto;
}
.demo-wrap {
  position: relative;
  margin-left: 50%;
  width: 47.3%;
  margin-top: clamp(24px, 3.96vw, 76px);
}
.demo-wrap .card-shadow {
  left: 2%;
  top: 5%;
  width: 99%;
  height: 97%;
}
/* product video: poster shows its full frame; ratio follows the preview image */
.video-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 2454 / 1330;
  background: #111;
}
.video-wrap.playing { aspect-ratio: 1988 / 1080; }
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.video-wrap.playing .demo-video { object-fit: contain; object-position: center; }
.video-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.04) 34%,
    rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0.55) 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.video-wrap.playing .video-cover { opacity: 0; visibility: hidden; }
.video-play {
  width: clamp(56px, 4.2vw, 80px);
  height: clamp(56px, 4.2vw, 80px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.video-play svg { width: 36%; height: 36%; margin-left: 9%; fill: var(--ink); }
.video-cover:hover .video-play { transform: scale(1.08); }
.vc-label {
  position: absolute;
  left: clamp(14px, 1.56vw, 30px);
  bottom: clamp(12px, 1.35vw, 26px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 24px);
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.vc-label svg { width: 0.66em; height: 0.66em; fill: #fff; }
.vc-badge {
  position: absolute;
  right: clamp(14px, 1.56vw, 30px);
  bottom: clamp(12px, 1.35vw, 26px);
  font-family: var(--sans);
  font-size: clamp(12px, 1.04vw, 20px);
  color: #fff;
  background: #000;
  padding: 5px 12px;
}

/* ---------- Who Shanc is for ---------- */
.sec-who {
  position: relative;
  overflow: hidden;
  background-color: var(--red-deep);
  padding: clamp(44px, 3.44vw, 66px) var(--gutter) clamp(66px, 7.81vw, 151px);
}
.who-statement {
  margin: 0 0 clamp(40px, 4.53vw, 87px);
  max-width: 18em; /* wraps like the frame: 3 lines */
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  color: #fff;
}
/* CLI-style level picker: caret column, then number + label */
.who-term { width: 100%; }
.who-prompt {
  margin: 0 0 10px clamp(0px, 13.44vw, 258px);
  padding-left: clamp(28px, 2.55vw, 49px); /* clears the caret column */
  font-family: var(--sans);
  font-size: clamp(18px, 1.67vw, 32px);
  line-height: 1.19;
  color: var(--grey-rose);
}
.who-menu {
  list-style: none;
  margin: 0 0 0 clamp(0px, 13.44vw, 258px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  outline: none;
}
.who-menu:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 6px; }
.who-option {
  display: grid;
  grid-template-columns: clamp(28px, 2.55vw, 49px) clamp(28px, 2.45vw, 47px) minmax(0, 1fr);
  align-items: baseline;
  font-family: var(--sans);
  font-size: clamp(18px, 1.67vw, 32px);
  line-height: 1.19;
  color: var(--grey-rose);
  cursor: pointer;
}
.who-option .who-caret { visibility: hidden; color: #fff; }
.who-option.is-selected .who-caret { visibility: visible; }
.who-option.is-selected .who-label { color: #fff; }
.who-option:hover .who-label { color: rgba(255, 255, 255, 0.85); }
.who-copy {
  margin: clamp(32px, 3.9vw, 75px) auto 0;
  width: min(1450px, 100%);
}
.who-copy p {
  display: none;
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 46px);
  line-height: 1.2;
  color: #fff;
}
.who-copy p.is-shown { display: block; }

/* ---------- Cases ---------- */
.h-cases {
  margin: clamp(24px, 3.9vw, 75px) 0 clamp(40px, 5.7vw, 110px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--red);
  text-align: center;
}
.cases-board {
  width: min(1450px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cases-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.case {
  background: #fff;
  padding: clamp(14px, 1.04vw, 20px);
  min-height: clamp(200px, 18.23vw, 350px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 1.56vw, 30px);
}
.case-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
}
.case-loc {
  display: block;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(13px, 1.25vw, 24px);
  line-height: 1;
}
.case p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1.2;
  color: var(--red);
}

/* ---------- Why not build it yourself ---------- */
/* same width as the FAQ list */
.cmp-scroll {
  overflow-x: auto;
  /* overflow-x:auto computes overflow-y:auto too; sub-pixel rounding then
     leaves ~1px of vertical overflow that traps the wheel on desktop */
  overflow-y: hidden;
  width: min(1450px, 100%);
  margin: clamp(24px, 3.44vw, 66px) auto 0;
}
.cmp-card {
  background: #fff;
  min-width: 860px;
  padding: clamp(14px, 1.04vw, 20px);
}
.sec-compare .sec-lead { color: var(--ink); }
.cmp-grid {
  display: grid;
  grid-template-columns: minmax(0, 232fr) minmax(0, 264fr) minmax(0, 244fr) minmax(0, 500fr);
  column-gap: clamp(16px, 2.1vw, 42px);
  align-items: stretch;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1.2;
}
.cmp-grid > span {
  display: flex;
  align-items: center;
  padding: clamp(13px, 1.1vw, 20px) 0;
  color: #6f635b; /* comparison columns: recessive but legible, no longer washed out */
}
.cmp-grid .cmp-rl { color: var(--ink); }
.cmp-header {
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1;
}
.cmp-header > span { color: var(--ink); }
/* red row dividers — comparison columns only, so the Shanc band stays unbroken */
.cmp-grid:not(.cmp-header) > span:not(.cmp-shanc) {
  border-top: 2px solid var(--red);
}
/* Shanc: a solid brand band that runs the height of the table and clearly wins */
.cmp-grid .cmp-shanc {
  background: var(--red-deep);
  color: #fff;
  font-weight: 500;
  padding-left: clamp(16px, 1.35vw, 26px);
  padding-right: clamp(16px, 1.35vw, 26px);
}
.cmp-header .cmp-shanc {
  font-weight: 600;
  padding-top: clamp(14px, 1.15vw, 22px);
  border-radius: 12px 12px 0 0;
}
.cmp-grid:last-child .cmp-shanc {
  padding-bottom: clamp(16px, 1.35vw, 24px);
  border-radius: 0 0 12px 12px;
}
/* swipe hint under the table — JS shows it only when the table overflows */
.cmp-hint {
  display: none;
  margin: 14px auto 0;
  width: min(1450px, 100%);
  font-family: var(--sans);
  font-size: 14px;
  color: #6f635b;
  text-align: center;
}
.cmp-hint.show { display: block; }

/* ---------- FAQ ---------- */
.faq-list {
  width: min(1450px, 100%);
  margin: clamp(24px, 2.6vw, 50px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item { background: #fff; padding: clamp(14px, 1.04vw, 20px); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
/* plus / minus drawn with 2px hairlines, per the frame's 52px icon */
.faq-q::after {
  content: '';
  flex: 0 0 auto;
  width: clamp(26px, 2.7vw, 52px);
  height: clamp(26px, 2.7vw, 52px);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.faq-item[open] .faq-q::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
}
.faq-a {
  margin: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .faq-a { transition: height 0.32s ease; }
}
.faq-a p { margin: 0; }
.faq-a > p:first-child { margin-top: clamp(12px, 1.04vw, 20px); }
.faq-a p + p { margin-top: 0.6em; }
.faq-a code { font-family: var(--mono); }

/* ---------- Final CTA + footer ---------- */
.sec-try {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(31px, 2.57vw, 50px) var(--gutter) clamp(20px, 1.56vw, 30px);
}
.try-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 50px);
  text-align: center;
}
.try-monk { width: clamp(160px, 16.8vw, 323px); height: auto; }
.try-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--ink);
}
.try-btns { justify-content: center; }
/* on the cream final section the ghost button is white, not cream */
.try-btns .btn-ghost { background: #fff; }
.try-btns .btn-ghost:hover { background: var(--peach); }
.site-foot {
  padding-top: clamp(40px, 9.38vw, 180px);
  font-family: var(--sans);
  font-size: var(--fs-body);
}
.site-foot a { color: var(--red); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* main row: brand block on the left, comparisons on the right (room to grow) */
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 469fr) minmax(0, 1262fr);
  gap: 27px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: clamp(12px, 1vw, 22px);
}
.foot-brand-col {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.42vw, 8px);
  color: var(--ink);
}
.foot-brand { color: var(--ink); }
.foot-city { color: var(--ink); }
.foot-social { align-self: flex-start; margin-top: clamp(4px, 0.42vw, 8px); }
.foot-agents { align-self: flex-start; margin-top: clamp(8px, 0.83vw, 16px); }
.foot-h { display: block; color: var(--ink); margin-bottom: clamp(12px, 1vw, 20px); }
/* two columns of comparison links; extra links flow into new rows */
.foot-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px clamp(28px, 3.6vw, 72px);
}
/* wordmark: kept, but smaller than the old full-width lockup */
.foot-logo {
  width: clamp(220px, 40%, 660px);
  height: auto;
  display: block;
  margin-top: clamp(32px, 4.5vw, 88px);
}
/* footer-in-footer: legal strip pinned to the very bottom */
.sub-foot {
  margin-top: clamp(24px, 3vw, 52px);
  border-top: 1px solid var(--red);
  padding-top: clamp(12px, 1vw, 20px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.sub-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 2.1vw, 40px);
}
.foot-designed { color: var(--ink); }

/* ---------- Scroll interactions (enabled by .js-anim on <html>) ---------- */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js-anim .reveal.in-view { opacity: 1; transform: none; }

.js-anim .bg-fade { transition: background-color 0.63s ease; }
.js-anim .bg-fade:not(.in-view) { background-color: var(--cream); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 200;
  max-width: 560px;
  margin-left: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: clamp(16px, 2vw, 24px);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.35;
  color: var(--ink);
}
.cookie-banner p a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn {
  font-family: var(--sans);
  font-size: clamp(15px, 1vw, 19px);
  padding: 10px 18px;
}
.cookie-actions .btn-ghost { background: var(--cream); }

/* ---------- Responsive ----------
   900–1919: everything scales fluidly via clamp()/vw — no rules needed,
     so a narrowed MacBook window keeps the full desktop layout.
   ≤899 (tablet): 4-up grids drop to 2-up, the connect stage stacks,
     the security card stacks terminal over features, side figures shrink
     or hide, the hero art moves into the flow.
   ≤860 (large phone): remaining multi-column grids go single-column,
     the why-table loses its header row and its problems column, the
     compare table scrolls.
   ≤560 (phone): plans single-column, buttons stretch full-width. */
@media (max-width: 899px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-grid { grid-template-columns: 1fr; }
  .pricing-monk, .numbers-monk, .demo-monk { display: none; }
  /* scroll reveals come sooner and snappier on small screens */
  .js-anim .reveal { transition-duration: 0.33s; }
  .js-anim .bg-fade { transition-duration: 0.45s; }
  .demo-wrap { margin-left: 0; width: 100%; }
  /* security: terminal above the feature list */
  .sec-card { grid-template-columns: 1fr; }
  .sec-feats { padding: clamp(12px, 1.04vw, 20px); }
  /* connect: headline centred, sources across the top, monk centred, chat below */
  .section-connect .h-display { text-align: center; margin-left: auto; margin-right: auto; }
  .stage { flex-direction: column; align-items: flex-start; min-height: 0; gap: 32px; }
  .stage .line { display: none; }
  .stage-sources { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; width: 100%; }
  .stage-monk { position: static; transform: none; align-self: center; }
  /* the phone cut is square — show its full frame */
  .monk-img { aspect-ratio: 1 / 1; }
  .stage-agent { align-self: center; width: min(100%, 624px); }
  /* hero: art joins the flow between copy and buttons */
  .hero-art {
    position: static;
    transform: none;
    order: 1;
    align-self: center;
    width: min(65vw, 420px);
    margin: clamp(20px, 4vw, 40px) 0;
  }
  .hero-cta { order: 2; }
  .cases-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* who-terminal: menu hugs the left edge */
  .who-prompt, .who-menu { margin-left: 0; }
}
@media (max-width: 860px) {
  .case { min-height: 0; }
  .section-why .h-display { text-align: left; }
  .why-table { width: 100%; }
  .why-cols { display: none; }
  /* phones: the problems column drops — only the solutions column runs */
  .why-prob { display: none; }
  .why-row { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 32px); }
  .why-row + .why-row { margin-top: clamp(32px, 6vw, 48px); }
  .does-row { grid-template-columns: 1fr; }
  .does-ph { height: clamp(150px, 40vw, 300px); }
  /* BYOK afterthought reads left-aligned on phones, with extra room below */
  .does-byok { text-align: left; }
  .does-byok h3 { margin: 0; max-width: none; }
  .section-does { padding-bottom: 96px; }
  /* footer: brand block stacks over the comparisons, smaller wordmark, then
     the legal footer-in-footer strip */
  .foot-main { grid-template-columns: 1fr; gap: clamp(28px, 8vw, 48px); }
  .foot-group { grid-template-columns: 1fr 1fr; }
  .foot-logo { width: 66%; margin-top: clamp(28px, 8vw, 48px); }
  .sub-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* comparison table keeps its four columns and scrolls sideways */
  .cmp-card { min-width: 720px; }
  .builds-table td, .builds-table th { font-size: clamp(14px, 2vw, 18px); }
}
@media (max-width: 560px) {
  .btns { width: 100%; }
  .btn { flex: 1; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
  .plan .btn { align-self: stretch; }
  .cases-row { grid-template-columns: 1fr; }
  .sec-terminal pre { font-size: 11px; }
  .who-copy p { font-size: clamp(18px, 5.2vw, 22px); }
  .cookie-banner { max-width: none; }
}

/* ============================================================
   Subpages — legal documents and comparison pages
   ============================================================ */
.subpage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(10px, 0.89vw, 17px) var(--gutter) 0;
}
.subpage-main {
  padding: clamp(40px, 4.58vw, 88px) var(--gutter) 0;
}
.subpage-main > .h-display {
  margin: 0 0 clamp(32px, 3.13vw, 60px);
  letter-spacing: -0.01em;
  max-width: 18em;
}
.subpage-foot { padding: 0 var(--gutter) clamp(20px, 1.56vw, 30px); }

/* legal documents: ink text on the paper, red accents */
.legal { max-width: 980px; }
.legal section + section { margin-top: clamp(28px, 2.6vw, 50px); }
.legal h2 {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.67vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal h3 {
  margin: 1.2em 0 0.5em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.15;
  color: var(--ink);
}
.legal p, .legal li {
  margin: 0 0 0.7em;
  font-family: var(--sans);
  font-size: clamp(15px, 1.04vw, 20px);
  line-height: 1.5;
  color: var(--ink);
}
.legal ul, .legal ol { margin: 0 0 0.7em; padding-left: 1.3em; }
.legal li { margin-bottom: 0.35em; }
.legal a { color: var(--red); text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--taupe); }
.legal-table-wrap { overflow-x: auto; overflow-y: hidden; margin: 1em 0 1.4em; }
.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--sans);
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.4;
}
.legal-table th, .legal-table td {
  padding: clamp(10px, 0.83vw, 16px);
  border-bottom: 2px solid var(--red);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(13px, 0.83vw, 16px);
  line-height: 1.1;
}

/* comparison pages */
.vs-claim {
  margin: 0 0 clamp(16px, 1.56vw, 30px);
  max-width: 24em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.vs-intro {
  margin: 0 0 clamp(24px, 2.6vw, 50px);
  max-width: 33em;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--red);
}
.vs-cta { margin-bottom: clamp(40px, 4.17vw, 80px); }
.vs-cta .btn { font-size: clamp(16px, 1.25vw, 24px); }
.vs-sec-h {
  margin: 0 0 clamp(20px, 2.08vw, 40px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red);
}
.vs-scroll { overflow-x: auto; overflow-y: hidden; margin-bottom: clamp(40px, 4.17vw, 80px); }
.vs-card { background: #fff; padding: clamp(14px, 1.04vw, 20px); }
.vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 234fr) minmax(0, 500fr) minmax(0, 420fr);
  column-gap: clamp(20px, 2.6vw, 50px);
  padding: clamp(12px, 1.04vw, 20px) 0;
  align-items: center;
  font-family: var(--sans);
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.2;
  color: var(--taupe); /* the "other" column sits back */
}
.vs-grid .vs-rl, .vs-grid .vs-shanc { color: var(--ink); }
.vs-head-row {
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1;
  padding-bottom: clamp(8px, 0.9vw, 16px);
}
/* triple red rule under the table header, single rules between rows */
.vs-rule {
  height: 12px;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 10px / 100% 2px no-repeat;
}
.vs-card hr { border: none; border-top: 2px solid var(--red); margin: 0; }
.vs-diff { max-width: 980px; margin-bottom: clamp(40px, 4.17vw, 80px); }
.vs-diff h3 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.vs-diff h3 + p { margin-top: 0; }
.vs-diff > div + div { margin-top: clamp(24px, 2.6vw, 50px); }
.vs-diff p {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.3;
  color: var(--red);
}
.vs-explore { margin-bottom: clamp(20px, 2.08vw, 40px); }
.vs-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--sans);
  font-size: var(--fs-body);
}
.vs-explore-links a { color: var(--red); text-decoration: none; }
.vs-explore-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vs-explore-links .vs-current { color: var(--taupe); }

@media (max-width: 860px) {
  .vs-card { min-width: 640px; }
}
