/* =====================================================
   Rundown — bold-editorial marketing layer
   Sits on top of styles.css (tokens + components).
   New site uses .s-* classes; reuses .container, .btn,
   .critique, .compare, .price-card, .segment, .faq,
   .not-building, .site-nav, .site-footer from styles.css.
   ===================================================== */

/* Body adopts the design-system base size (16px) on marketing pages */
body { font-size: var(--fs-body); }

/* ---- Type scale (bold editorial, anchored to the system scale) ---- */
.s-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--brand); margin-bottom: 18px; }
.s-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 22px; }
.s-deck { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.36; color: var(--text-2); max-width: 34ch; margin: 0 0 30px; }
.s-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 14px; }
.s-lead { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 62ch; margin: 0; }
.s-pull { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }

/* ---- CMYK divider motif (the short bar) ---- */
.cmyk-div { display: flex; height: 4px; width: 72px; border-radius: 2px; overflow: hidden; }
.cmyk-div i { flex: 1; }
.cmyk-div i:nth-child(1) { background: #1AA6B7; }
.cmyk-div i:nth-child(2) { background: #D14C7A; }
.cmyk-div i:nth-child(3) { background: #E8B84A; }
.cmyk-div i:nth-child(4) { background: #1A1A1A; }
.cmyk-div.center { margin-left: auto; margin-right: auto; }
.cmyk-div.lg { width: 120px; }
.cmyk-div.mb { margin-bottom: 22px; }

/* ---- Section rhythm ---- */
.s-section { padding: 78px 0 6px; }
.s-section--tight { padding: 46px 0 6px; }

/* ---- Hero (B-led: product up front) ---- */
.s-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
.s-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.s-hero-meta { margin-top: 26px; font-size: 13px; color: var(--text-3); display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.s-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); display: inline-block; }
/* Hero main-graphic placeholder (right column) */
.s-hero-ph { aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 1px dashed var(--line); background: var(--bg-cream-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-3); }
.s-hero-ph svg { width: 40px; height: 40px; opacity: .5; }
.s-hero-ph span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .s-hero-ph { aspect-ratio: 16 / 9; } }

/* Active-section indicator in the nav — the margin-query mark as a little icon */
.site-nav-links a { display: inline-flex; align-items: center; }
.site-nav-links a.active { color: var(--text); }
.site-nav-links a.active::before {
  content: "";
  display: inline-block;
  width: 17px; height: 14px;
  margin-right: 7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='18 22 70 56'><line x1='44' y1='26' x2='44' y2='74' stroke='%231A1A1A' stroke-width='4' stroke-linecap='round'/><rect x='52' y='37' width='30' height='6' rx='3' fill='%231A1A1A'/><rect x='52' y='53' width='22' height='6' rx='3' fill='%231A1A1A' fill-opacity='0.45'/><path d='M24 33 L34 41 L24 49' fill='none' stroke='%23D14C7A' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* ---- Thesis as editorial art ---- */
.s-thesis { text-align: center; padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-thesis .s-pull { margin: 16px auto 0; max-width: 18ch; }
.s-thesis .s-pull em { font-style: italic; color: var(--accent-magenta); }
.s-stats { display: flex; gap: 54px; justify-content: center; flex-wrap: wrap; margin: 48px auto 0; max-width: 900px; }
.s-stat { max-width: 22ch; text-align: left; }
.s-stat .n { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--brand); line-height: 1; }
.s-stat p { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; line-height: 1.45; }
.s-more { display: inline-block; margin-top: 42px; font-size: 14px; font-weight: 600; }

/* ---- Product grid (Option B: single column, text left / image right) ---- */
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.s-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 190px; background: var(--bg-surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease; }
.s-card:hover { box-shadow: var(--shadow-md); }
.s-card-text { grid-column: 1; grid-row: 1; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.s-card-text .label { display: block; margin-bottom: 9px; }
.s-card-text h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -0.018em; line-height: 1.16; margin: 0 0 8px; }
.s-card-text p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }
.s-card-media { grid-column: 2; grid-row: 1; position: relative; border-left: 1px solid var(--line-soft); overflow: hidden; background: var(--bg); cursor: zoom-in; }
.s-card-media iframe { position: absolute; top: 0; left: -116px; width: 1300px; height: 820px; border: 0; transform: scale(0.5); transform-origin: top left; pointer-events: none; }
.s-expand { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 9px; background: rgba(251,249,244,0.92); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow-sm); transition: background .15s ease, transform .15s ease, color .15s ease; cursor: zoom-in; }
.s-card-media:hover .s-expand { background: var(--brand); color: var(--text-on-dark); border-color: var(--brand); transform: scale(1.06); }
.s-type { position: absolute; left: 12px; bottom: 12px; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600; color: var(--text-3); background: rgba(251,249,244,0.92); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 9px; }

/* ---- Lightbox (media-type-agnostic: screen now, video later) ---- */
.s-lightbox { border: 0; padding: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); max-width: 92vw; width: 1040px; overflow: hidden; }
.s-lightbox::backdrop { background: rgba(26,26,26,0.55); }
.s-lightbox-bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; background: var(--bg-cream-light); border-bottom: 1px solid var(--line-soft); }
.s-lb-close { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.s-lb-close:hover { background: var(--bg); color: var(--text); }
.s-lightbox-body { position: relative; width: 100%; height: 640px; overflow: hidden; background: var(--bg); }
.s-lightbox-body iframe { position: absolute; top: 0; left: 0; width: 1500px; height: 924px; border: 0; transform: scale(0.693); transform-origin: top left; }

/* ---- Galley-proof art (section breather) ---- */
.s-proof { position: relative; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 52px 60px 56px; overflow: hidden; }
.s-proof-body { font-family: var(--serif); font-size: 20px; line-height: 1.62; color: var(--text); max-width: 58ch; }
.s-proof-body p { margin: 0 0 16px; }
.s-strike { text-decoration: line-through; text-decoration-color: var(--accent-magenta); text-decoration-thickness: 2px; color: var(--text-3); }
.s-hl { background: linear-gradient(to bottom, transparent 0 58%, var(--accent-yellow-pale) 58% 96%, transparent 96%); padding: 0 2px; }
.s-proof .s-pull { margin: 6px 0 26px; max-width: 16ch; }
.s-proof .s-pull em { font-style: italic; color: var(--accent-magenta); }
.s-note { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--brand); border-left: 2px solid var(--brand-cyan); padding-left: 12px; margin: 20px 0; max-width: 40ch; }
.s-note span { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.s-ring { position: absolute; top: 44px; right: 52px; width: 90px; height: 90px; border-radius: 50%; border: 2.5px solid var(--brand); display: grid; place-items: center; text-align: center; background: var(--bg-surface); }
.s-ring .n { font-family: var(--serif); font-size: 29px; font-weight: 600; color: var(--brand); line-height: 1; }
.s-ring .l { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; font-weight: 600; }

/* ---- Pricing teaser (home) ---- */
.s-teaser { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; background: var(--bg-surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 40px 46px; box-shadow: var(--shadow-sm); margin-top: 32px; }
.s-teaser .price { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--text); line-height: 1; }
.s-teaser .price span { font-family: var(--sans); font-size: 18px; font-weight: 400; color: var(--text-3); }

/* ---- CTA band ---- */
.s-cta { text-align: center; padding: 84px 0 96px; }
.s-cta .s-h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.s-cta p { color: var(--text-2); font-size: 17px; max-width: 46ch; margin: 0 auto 26px; }
.s-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Subpage header ---- */
.s-page-head { padding: 52px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.s-page-head .s-h1 { max-width: 22ch; }
.s-back { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 20px; display: inline-block; }
.s-back:hover { color: var(--brand); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .s-hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 44px; }
  .s-grid { grid-template-columns: 1fr; }
  .s-teaser { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .s-stats { gap: 30px; }
  .s-proof { padding: 34px 26px; } .s-ring { display: none; }
}
@media (max-width: 600px) {
  .s-card { grid-template-columns: 1.4fr 1fr; min-height: 132px; }
  .s-card-text { padding: 18px 20px; }
  .s-card-text h3 { font-size: 18px; line-height: 1.14; margin-bottom: 6px; }
  .s-card-text p { font-size: 13px; }
}

/* ---- Footer: the CMYK bar is a system rule, not part of the logo (design system §04).
   Hide the old bar tucked under the wordmark; run it as a full-width footer rule instead. ---- */
.site-footer { position: relative; }
.site-footer .cmyk-rule { display: none; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--key) 75% 100%);
}

/* ---- Header A: white surface that lifts off the cream page (stays sticky/frosted) ---- */
.site-nav { background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--line); box-shadow: 0 1px 10px rgba(26, 26, 26, 0.045); }
.site-nav-rule { display: none; } /* the CMYK bar leaves the header — it lives on the page edge now */

/* ---- CMYK pull tab: the press color-bar, pinned to the right margin like a trim strip ---- */
body::after {
  content: "";
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 168px;
  background: linear-gradient(180deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--key) 75% 100%);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 10px rgba(26, 26, 26, 0.18);
  z-index: 15;
  pointer-events: none;
}
@media (max-width: 600px) { body::after { height: 132px; width: 9px; } }

/* =====================================================================
   Content-loop direction — loop ring, mission beliefs, the seven stages
   ===================================================================== */

/* The loop ring */
.s-loop-wrap { max-width: 1040px; margin: 36px auto 0; }
.s-loop-wrap svg { width: 100%; height: auto; display: block; }
.s-loop-cap { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 16px; }

/* Mission — three beliefs */
.s-beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 42px; }
.s-belief .n { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.s-belief h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.18; }
.s-belief p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }

/* The seven stages */
.s-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.s-stage { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.s-stage.feature { border-color: var(--brand); }
.s-stage .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-cream-light); color: var(--brand); font-family: var(--font-serif); font-weight: 600; font-size: 14px; display: grid; place-items: center; margin-top: 2px; }
.s-stage.feature .num { background: var(--brand); color: var(--text-on-dark); }
.s-stage h3 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; letter-spacing: -0.015em; margin: 0 0 6px; }
.s-stage h3 .pin { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-cyan-pale); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.s-stage p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }

@media (max-width: 760px) {
  .s-beliefs { grid-template-columns: 1fr; gap: 24px; }
  .s-stages { grid-template-columns: 1fr; }
}

/* =====================================================================
   Feature grid — open 2-across: copy (icon + headline + text) on the left,
   an expandable framed thumbnail on the right. (After the Letterhead pattern.)
   ===================================================================== */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; margin-top: 44px; }
.feat-item { display: grid; grid-template-columns: 1fr minmax(170px, 230px); gap: 26px; align-items: center; }
.feat-badge { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-cyan-pale); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat-badge svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feat-copy h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; line-height: 1.18; margin: 0 0 7px; }
.feat-copy p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 40ch; }

.feat-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.feat-thumb-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--bg); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.feat-thumb-img iframe { position: absolute; top: 0; left: -116px; width: 1300px; height: 820px; border: 0; transform: scale(0.5); transform-origin: top left; pointer-events: none; }
.feat-thumb:hover .feat-thumb-img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.feat-thumb-cue { position: absolute; bottom: 9px; right: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--text); font-size: 11px; font-weight: 600; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; z-index: 2; }
.feat-thumb:hover .feat-thumb-cue, .feat-thumb:focus-visible .feat-thumb-cue { opacity: 1; transform: translateY(0); }
.feat-thumb-cue svg { width: 13px; height: 13px; }
/* Image placeholder — swap each for a <button class="feat-thumb">…<img>…</button> when real screenshots land */
.feat-thumb-img.feat-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: var(--bg-cream-light); border-style: dashed; box-shadow: none; color: var(--text-3); }
.feat-thumb-img.feat-ph svg { width: 26px; height: 26px; opacity: .6; }
.feat-thumb-img.feat-ph span { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
@media (hover: none) { .feat-thumb-cue { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .feat-grid { grid-template-columns: 1fr; gap: 30px; }
  .feat-item { grid-template-columns: 1fr; }
  .feat-thumb { max-width: 460px; }
}
