/* stoneVEIL landing pages — shared design system.
   Palette and type tokens mirror src/index.css so landing pages feel
   like siblings of the homepage, not a foreign object. */

:root {
  --font-display: 'Cabinet Grotesk', 'Inter Tight', system-ui, sans-serif;
  --font-sans: 'Inter Tight', system-ui, sans-serif;

  --ink: #14161A;
  --ink-muted: #5C6169;
  --paper: #F6F4EF;
  --limestone: #EDE9E1;
  --hairline: #C9C4B8;
  --cobalt: #1B49C8;
  --cobalt-hover: #163CA6;
  --dusk: #1E232B;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--cobalt); color: #fff; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--limestone { background: var(--limestone); }
.section--ink { background: var(--ink); color: #fff; }

.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.hairline   { border: 1px solid var(--hairline); }
.section--ink .hairline-t,
.section--ink .hairline-b,
.section--ink .hairline { border-color: rgba(255, 255, 255, 0.10); }

/* ─── Site header (sticky, translucent paper) ──────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__cobalt { color: var(--cobalt); }
.brand__op {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
}
.header-cta {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
}
.header-cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--cobalt);
  transition: width 200ms ease-out;
}
.header-cta:hover { text-decoration: none; }
.header-cta:hover::after,
.header-cta:focus-visible::after { width: 100%; }

/* ─── Breadcrumbs ──────────────────────────────────────────────── */
.crumbs {
  font-size: 13px;
  color: var(--ink-muted);
  margin-block: 28px 16px;
}
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep {
  margin-inline: 8px;
  color: var(--hairline);
}

/* ─── Typography primitives ────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 16px;
}
.section--ink .eyebrow { color: rgba(255, 255, 255, 0.7); }

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--ink);
}
.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0 0 32px;
}
.body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
  margin: 0 0 16px;
}
.body-muted { color: var(--ink-muted); }
.fine {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 65ch;
  line-height: 1.55;
}
.section--ink .h1,
.section--ink .h2,
.section--ink .h3 { color: #fff; }
.section--ink .body { color: rgba(255, 255, 255, 0.80); }
.section--ink .fine { color: rgba(255, 255, 255, 0.55); }

/* ─── Buttons / CTAs ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease-out,
              background-color 150ms ease-out,
              color 150ms ease-out,
              border-color 150ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--dusk); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.section--ink .btn-primary { background: #fff; color: var(--ink); }
.section--ink .btn-primary:hover { background: rgba(255, 255, 255, 0.90); color: var(--ink); }
.section--ink .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.section--ink .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Corner-bracket viewfinder — matches homepage .cta-viewfinder */
.btn--viewfinder { position: relative; }
.btn--viewfinder::before,
.btn--viewfinder::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--cobalt);
  opacity: 0;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  pointer-events: none;
}
.btn--viewfinder::before {
  top: -5px; left: -5px;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translate(4px, 4px);
}
.btn--viewfinder::after {
  bottom: -5px; right: -5px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  transform: translate(-4px, -4px);
}
.btn--viewfinder:hover::before,
.btn--viewfinder:hover::after,
.btn--viewfinder:focus-visible::before,
.btn--viewfinder:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
.section--ink .btn--viewfinder::before,
.section--ink .btn--viewfinder::after { border-color: #fff; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 6vw, 88px) clamp(72px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.hero__content { max-width: 620px; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero__plate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 5;
  background: var(--limestone);
}
.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 899px) {
  .hero__plate { aspect-ratio: 16 / 10; }
}

/* ─── Figure grid (stats / cadence) ────────────────────────────── */
.figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .figures--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .figures--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 900px) {
  .figures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .figures--four  { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .figures--five  { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
}
.figure { padding-block: 4px; }
@media (min-width: 900px) {
  .figures--four  .figure + .figure,
  .figures--three .figure + .figure,
  .figures--five  .figure + .figure {
    padding-left: 24px;
    border-left: 1px solid var(--hairline);
  }
}
.figure__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.figure__caption {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
  max-width: 34ch;
}
.figure__source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--ink .figure__caption { color: #fff; }
.section--ink .figure__source { color: rgba(255, 255, 255, 0.55); }

/* ─── Prose sections ───────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose .h2 { margin-top: 0; }
.prose .body:last-child { margin-bottom: 0; }
.prose .h3 { margin-top: 24px; }
.prose + .prose { margin-top: 56px; }

/* Structural spacing between a section heading and its first block */
.section > .container > .h2 + .faq,
.section > .container > .h2 + .body-muted { margin-top: 8px; }
.section > .container > .h2 + .body-muted + .also { margin-top: 20px; }

/* ─── Two-column comparison (differentiator) ───────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--hairline);
  background: #fff;
}
@media (min-width: 720px) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare__col { padding: 24px 24px 28px; }
@media (min-width: 720px) {
  .compare__col + .compare__col { border-left: 1px solid var(--hairline); }
}
@media (max-width: 719px) {
  .compare__col + .compare__col { border-top: 1px solid var(--hairline); }
}
.compare__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.compare__col--not  .compare__label { color: var(--ink-muted); }
.compare__col--this .compare__label { color: var(--cobalt); }
.compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.compare__list li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

/* ─── FAQ (statically expanded, hairline dividers) ─────────────── */
.faq { max-width: 720px; }
.faq__item {
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
}
.faq__item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.faq__q::before {
  content: "+";
  color: var(--cobalt);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.faq__a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  padding-left: 26px;
  max-width: 62ch;
}

/* ─── Cross-links strip ────────────────────────────────────────── */
.also {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .also { grid-template-columns: 1fr 1fr; }
}
.also__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}
.also__card:hover,
.also__card:focus-visible {
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}
.also__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.also__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.also__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.also__arrow {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Dark CTA strip ───────────────────────────────────────────── */
.cta-strip { text-align: center; }
.cta-strip .h2 { color: #fff; max-width: 22ch; margin: 0 auto 12px; }
.cta-strip .body {
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  margin: 0 auto 28px;
}
.cta-strip__actions { display: inline-flex; }
.cta-strip .fine {
  color: rgba(255, 255, 255, 0.55);
  margin: 20px auto 0;
  max-width: 48ch;
}
.cta-strip .fine a { color: #fff; font-weight: 600; }

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-footer__legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}
.site-footer__links a { color: rgba(255, 255, 255, 0.72); }
.site-footer__links a:hover { color: #fff; text-decoration: none; }

/* ─── Motion (MOTION dial: 4). Scroll-driven fade-in for support,
       simple keyframe entry for hero, all gated by reduced-motion. ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero__content { animation: fadeInUp 0.55s ease-out 0.05s both; }
  .hero__plate   { animation: fadeInUp 0.55s ease-out 0.15s both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: fadeInUp linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}
