/* ══════════════════════════════════════════════════════════════
   MerchantUp Redesign — editorial design system
   Fonts loaded via <link> in each page <head> (non-blocking).
   Legacy pages still use shared/styles.css; this file is opt-in.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  /* Surfaces */
  --ink:          #12110F;
  --ink-soft:     #1B1916;
  --paper:        #FCFBF8;
  --paper-2:      #F3F0E9;
  --paper-3:      #F7F4ED;
  --chip:         #EFEBE3;
  --slot:         #E8E4DA;

  /* Accents */
  --accent:       #2E5CE6;
  --accent-hover: #1B3FB8;
  --accent-light: #6C8BFF;
  --green:        #0F7A54;
  --green-light:  #7FE3B6;
  --gold:         #E0A100;

  /* Text on light */
  --text-body:    #5C574E;
  --text-muted:   #6B665D;
  --text-faint:   #8A8377;
  --text-fainter: #B0A899;

  /* Hairlines on light */
  --line:         rgba(18,17,15,.08);
  --line-card:    rgba(18,17,15,.1);
  --line-btn:     rgba(18,17,15,.16);
  --line-outline: rgba(18,17,15,.2);

  /* On dark */
  --on-dark-1:    rgba(252,251,248,.72);
  --on-dark-2:    rgba(252,251,248,.62);
  --on-dark-3:    rgba(252,251,248,.5);
  --on-dark-4:    rgba(252,251,248,.45);
  --on-dark-5:    rgba(252,251,248,.35);
  --line-dark:    rgba(252,251,248,.12);

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape */
  --max: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
  --pad-y: clamp(64px, 7vw, 110px);
  --card-pad: clamp(26px, 2.6vw, 38px);

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Shadows */
  --sh-card:   0 20px 50px rgba(18,17,15,.14);
  --sh-btn:    0 10px 24px rgba(18,17,15,.24);
  --sh-accent: 0 12px 30px rgba(46,92,230,.34);
  --sh-float:  0 16px 40px rgba(18,17,15,.28);
  --sh-badge:  0 12px 34px rgba(18,17,15,.14);
  --sh-mock:   0 3px 10px rgba(18,17,15,.07), 0 30px 70px rgba(18,17,15,.16);
  --sh-price:  0 24px 60px rgba(18,17,15,.24);
  --sh-form:   0 24px 60px rgba(18,17,15,.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Skip link — keyboard users land past the sticky header */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 9px 0;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--paper); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ── LAYOUT ─────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; }
.sect { padding: var(--pad-y) var(--pad-x); }
.sect--dark { background: var(--ink); color: var(--paper); }
.sect--alt  { background: var(--paper-2); }

/* ── TYPE PRIMITIVES ────────────────────────────────────── */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.eyebrow--mint { color: var(--green-light); }

.h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.025em;
}
.h1--home { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; }
.h1--contact { font-size: clamp(40px, 5.4vw, 72px); }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.022em;
}
.h2--cta { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.025em; }
.h2--case { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }

/* One emphasised word per headline */
.em { font-style: italic; color: var(--accent); }
.em--mint { font-style: italic; color: var(--green-light); }

.lead {
  font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.68; color: var(--text-body);
}
.lead--dark { color: var(--on-dark-2); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 15px 26px; border-radius: 9px; border: 1.4px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-accent); }

.btn-outline { background: transparent; border-color: var(--line-btn); color: var(--ink); }
.btn-outline:hover { background: var(--paper-2); border-color: rgba(18,17,15,.34); color: var(--ink); transform: translateY(-2px); }

.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); transform: translateY(-2px); box-shadow: var(--sh-btn); }

.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-btn); }

.btn-ghost-dark { background: transparent; border-color: rgba(252,251,248,.24); color: var(--paper); }
.btn-ghost-dark:hover { background: rgba(252,251,248,.08); color: var(--paper); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── CHIPS ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: var(--chip); border-radius: 6px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60; height: 72px;
  background: rgba(252,251,248,.86); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; color: var(--paper);
  padding-bottom: 2px; /* optical centering of the serif M */
}
/* Real mark, when assets/brand/logo-mark.svg exists. A failed load removes the
   <img> (inline onerror), so the CSS letter underneath comes back and the
   header never renders empty. */
.logo-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo-mark img + .logo-mark-letter { visibility: hidden; }
/* For marks that carry their own background or should not sit in the dark tile. */
.logo-mark--bare { background: none; padding-bottom: 0; border-radius: 0; }
.logo-text {
  font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ink);
  letter-spacing: -.01em;
}
.logo-text i { font-style: italic; color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.header-cta {
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.header-cta:hover { color: var(--paper); transform: translateY(-2px); box-shadow: var(--sh-btn); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 34px; height: 34px; padding: 6px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 1.7px; background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.85px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.85px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: sticky; top: 72px; z-index: 59;
  background: rgba(252,251,248,.98); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 6px var(--pad-x) 14px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; width: 100%; padding: 12px 0;
  font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────
   Scoped to .js so content stays visible if JS never runs. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── HOME · HERO ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 104px) var(--pad-x) clamp(48px, 6vw, 88px);
}
.hero::before {
  content: ''; position: absolute; top: -140px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(46,92,230,.13), transparent 68%);
}
.hero-grid {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: center;
}

.pill-avail {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid rgba(18,17,15,.12);
  border-radius: 99px; padding: 6px 14px 6px 10px;
  font-size: 12px; font-weight: 600; color: #4A463E; margin-bottom: 22px;
}
.dot-avail {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 480px; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 30px; }

.trust-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13.5px; color: var(--text-muted);
}
.trust-row strong { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.trust-div { width: 1px; height: 34px; background: var(--line-card); }
/* The divider only separates two items on one line — hide it once they wrap. */
@media (max-width: 620px) { .trust-div { display: none; } }

/* Browser mock */
.mock { position: relative; }
.mock-window {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-card); background: var(--paper);
  box-shadow: var(--sh-mock);
}
.mock-chrome {
  height: 34px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #D8D2C6; }
.mock-url { margin-left: 8px; font-size: 10.5px; color: var(--text-faint); }
.mock-body { aspect-ratio: 16 / 11; background: var(--slot); }

.float-card {
  position: absolute; border-radius: 13px; padding: 14px 18px;
  animation: float-y 6s ease-in-out infinite;
}
.float-card--dark {
  left: -18px; bottom: -24px;
  background: var(--ink); color: var(--paper); box-shadow: var(--sh-float);
}
.float-card--light {
  right: -18px; top: -24px; animation-duration: 7.5s;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-card); box-shadow: var(--sh-badge);
}
.float-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-4); margin-bottom: 4px;
}
.float-card--light .float-label { color: var(--text-faint); }
.float-value { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--green-light); }
.float-card--light .float-value { color: var(--ink); }
.float-value small { font-size: 15px; color: var(--text-faint); }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 560px) {
  .float-card--dark { left: 8px; bottom: -18px; }
  .float-card--light { right: 8px; top: -18px; }
}

/* ── HOME · MARQUEE ─────────────────────────────────────── */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.marquee-track {
  display: flex; width: max-content; gap: 52px; align-items: center;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: 23px; color: var(--text-faint); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HOME · STATS ───────────────────────────────────────── */
.stats {
  background: var(--ink); color: var(--paper);
  padding: clamp(52px, 5vw, 76px) var(--pad-x);
}
.stats-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.stat-num {
  font-family: var(--serif); font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 10px;
}
.stat-label { font-size: 13.5px; line-height: 1.55; color: var(--on-dark-3); }

/* ── SECTION HEADER (two-column) ────────────────────────── */
.sect-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(38px, 4vw, 56px);
}
.sect-head .lead { max-width: 460px; }
@media (min-width: 860px) {
  .sect-head--split .lead { margin-left: auto; text-align: right; }
}
.sect-head--center { display: block; text-align: center; max-width: 680px; margin-inline: auto; }
.sect-head--center .lead { margin-inline: auto; }

/* ── HOME · SERVICES GRID (hairline cells) ──────────────── */
/* 330px floor resolves to exactly 3 columns at the 1180px max-width, so the
   six cells fill two rows. A 290px floor gives 4 columns and leaves two empty
   slots showing the divider background as grey blocks. */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1px; background: var(--line-card);
  border: 1px solid var(--line-card); border-radius: 16px; overflow: hidden;
}
.svc-cell {
  background: var(--paper); padding: var(--card-pad);
  transition: background .3s var(--ease);
}
.svc-cell:hover { background: var(--paper-2); }
.svc-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.svc-no { font-family: var(--serif); font-size: 22px; color: var(--text-fainter); }
.svc-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}
.svc-cell h3 {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  line-height: 1.12; letter-spacing: -.015em; margin-bottom: 10px;
}
.svc-cell p { font-size: 14.5px; line-height: 1.7; color: var(--text-body); margin-bottom: 18px; }

/* ── WORK CARDS ─────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); }
.filter {
  padding: 9px 18px; border-radius: 99px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: var(--paper); color: var(--text-muted); border: 1px solid rgba(18,17,15,.14);
  transition: all .22s var(--ease);
}
.filter:hover { border-color: rgba(18,17,15,.34); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.work-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-card);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--sh-card); color: inherit; }
.work-card[hidden] { display: none; }
.work-shot { aspect-ratio: 16 / 10; background: var(--slot); }
.work-shot img, .mock-body img, .case-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
/* An image that has not been added yet collapses to the designed tan slot,
   with its filename shown, instead of a broken-image icon. */
img.img-missing { display: none; }
.img-slot-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-fainter);
}
.case-shot .img-slot-fallback { color: var(--on-dark-5); }
.work-body { padding: 22px 24px 0; display: flex; flex-direction: column; flex: 1; }
.work-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 9px;
}
.work-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1.1; letter-spacing: -.015em; margin-bottom: 9px;
}
.work-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-body); margin-bottom: 18px; flex: 1; }
.work-card .chips { margin-bottom: 18px; }
.work-metric {
  display: flex; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--line); padding: 16px 0; margin-top: auto;
}
.work-metric b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: var(--green); }
.work-metric span { font-size: 12.5px; color: var(--text-faint); }

/* ── HOME · PROCESS ─────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.step { border-top: 2px solid var(--ink); padding-top: 26px; }
.step-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step-no { font-family: var(--serif); font-size: 44px; line-height: 1; }
.step-when {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--text-body); }

/* ── HOME · REVIEWS ─────────────────────────────────────── */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px;
}
.review {
  background: var(--ink-soft); border: 1px solid rgba(252,251,248,.09);
  border-radius: 16px; padding: 28px;
  /* Column layout + margin-top:auto on the author row keeps the separator
     hairlines aligned across cards when quotes differ in length. */
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review:hover { transform: translateY(-4px); border-color: rgba(252,251,248,.24); }
.review blockquote {
  font-family: var(--serif); font-size: 20px; line-height: 1.42; letter-spacing: -.005em;
  margin: 14px 0 22px;
}
.review-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid rgba(252,251,248,.09); padding-top: 18px;
  margin-top: auto;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(252,251,248,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--on-dark-1);
}
.review-name { font-size: 14px; font-weight: 600; }
.review-role { font-size: 12.5px; color: var(--on-dark-3); }

/* ── HOME · PRICING ─────────────────────────────────────── */
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px; align-items: start;
}
.plan {
  position: relative; border-radius: 18px; padding: clamp(26px, 2.6vw, 36px);
  background: var(--paper); border: 1px solid rgba(18,17,15,.11);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-5px); }
.plan--featured {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
  box-shadow: var(--sh-price);
}
.plan-badge {
  position: absolute; top: 18px; right: 18px;
  background: #0B2B1E; color: var(--green-light);
  border-radius: 99px; padding: 5px 11px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.plan-name {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px;
}
.plan--featured .plan-name { color: var(--on-dark-3); }
.plan-price { font-family: var(--serif); font-size: clamp(46px, 4.6vw, 60px); line-height: 1; letter-spacing: -.02em; }
.plan-price span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-faint); margin-left: 8px; }
.plan--featured .plan-price span { color: var(--on-dark-3); }
.plan-timeline { font-size: 13px; color: var(--text-faint); margin: 10px 0 18px; }
.plan--featured .plan-timeline { color: var(--on-dark-3); }
.plan-for {
  font-size: 14.5px; line-height: 1.65; color: var(--text-body);
  border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px;
}
.plan--featured .plan-for { color: var(--on-dark-1); border-color: rgba(252,251,248,.12); }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.6; color: var(--text-body);
}
.plan--featured .plan-list li { color: var(--on-dark-1); }
.plan-list li::before {
  content: '✓'; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--green); line-height: 1.5;
}
.plan--featured .plan-list li::before { color: var(--green-light); }
.plan .btn { width: 100%; }
.price-note { text-align: center; font-size: 14.5px; color: var(--text-body); margin-top: 34px; }

/* ── HOME · FAQ ─────────────────────────────────────────── */
.faq-layout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 16.5px; font-weight: 600; color: var(--ink);
  padding: 22px 0;
}
.faq-icon {
  flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
  transition: transform .4s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { font-size: 15px; line-height: 1.72; color: var(--text-body); padding-bottom: 24px; }
.faq-item.open .faq-a { max-height: 260px; }

/* ── FINAL CTA ──────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--paper);
  padding: clamp(70px, 8vw, 120px) var(--pad-x);
}
.cta::before {
  content: ''; position: absolute; bottom: -160px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(46,92,230,.3), transparent 70%);
}
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta .lead { margin: 22px auto 32px; max-width: 560px; }
.cta .btn-row { justify-content: center; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: var(--paper);
  border-top: 1px solid rgba(252,251,248,.08);
  padding: clamp(48px, 5vw, 72px) var(--pad-x) 28px;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(30px, 4vw, 56px);
}
.footer-brand p {
  font-size: 14px; line-height: 1.7; color: var(--on-dark-3);
  max-width: 280px; margin-top: 16px;
}
.footer-brand .logo-mark { width: 28px; height: 28px; background: var(--paper); color: var(--ink); font-size: 18px; }
.footer-brand .logo-text { color: var(--paper); }
.footer-brand .logo-text i { color: var(--accent-light); }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-5); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--on-dark-2); text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  max-width: var(--max); margin: clamp(40px, 5vw, 60px) auto 0;
  border-top: 1px solid rgba(252,251,248,.08); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--on-dark-5); }
.footer-bottom a { color: var(--accent-light); text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: var(--paper); }

/* ── WORK PAGE ──────────────────────────────────────────── */
.page-hero { padding: clamp(56px, 6vw, 92px) var(--pad-x) clamp(40px, 4vw, 60px); }
.page-hero .wrap { max-width: 820px; }
.page-hero .lead { margin-top: 22px; max-width: 620px; }

.case-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.case-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px;
}
.case-metric b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--green-light); }
.case-metric span { display: block; font-size: 12.5px; color: var(--on-dark-3); margin-top: 6px; }
.case-shot {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-dark); background: rgba(252,251,248,.06);
}

/* ── SERVICES PAGE ──────────────────────────────────────── */
.svc-rows { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line-card); }
.svc-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  border-bottom: 1px solid var(--line-card);
  padding: clamp(32px, 3.4vw, 44px) clamp(0px, 1.4vw, 20px);
  transition: background .3s var(--ease);
}
.svc-row:hover { background: var(--paper-3); }
.svc-row h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -.02em;
  margin-top: 12px;
}
.svc-row p { font-size: 15px; line-height: 1.72; color: var(--text-body); margin-bottom: 18px; }
.svc-price-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.svc-price { font-family: var(--serif); font-size: 34px; line-height: 1; margin-bottom: 14px; }
.svc-quote {
  font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none;
  transition: color .2s var(--ease);
}
.svc-quote:hover { color: var(--accent-hover); }

.platform-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.platform-card { background: var(--paper-3); border-radius: 16px; padding: var(--card-pad); }
.platform-card h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px;
}
.platform-note { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin-top: 30px; max-width: 640px; }

/* ── CONTACT PAGE ───────────────────────────────────────── */
.contact-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.fact-table {
  background: var(--paper-3); border-radius: 16px; max-width: 440px;
  margin-top: 34px; overflow: hidden;
}
.fact-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { font-size: 13px; color: var(--text-faint); }
.fact-row dd { font-size: 14px; font-weight: 600; color: var(--ink); }

.form-panel {
  background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: clamp(28px, 3vw, 40px); box-shadow: var(--sh-form);
}
.form-panel h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.field > label, .field-label {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-4);
}
.field input, .field textarea {
  width: 100%; background: var(--ink-soft); color: var(--paper);
  border: 1px solid rgba(252,251,248,.14); border-radius: 9px;
  padding: 13px 15px; font-family: var(--sans); font-size: 15px;
  outline: none; transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-5); }
.field input:focus, .field textarea:focus { border-color: var(--accent-light); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E4664F; }

.choice-set { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  padding: 9px 15px; border-radius: 99px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: transparent; color: rgba(252,251,248,.7); border: 1px solid rgba(252,251,248,.18);
  transition: all .22s var(--ease);
}
.choice:hover { border-color: rgba(252,251,248,.4); color: var(--paper); }
.choice[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.field-error { font-size: 12.5px; color: #FF9E8A; }
.field-error[hidden] { display: none; }

.form-panel .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--on-dark-4); text-align: center; margin-top: 14px; }
.form-status { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.form-status--error { color: #FF9E8A; }
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 12px; }
.form-success p { font-size: 15px; line-height: 1.7; color: var(--on-dark-1); }

/* ── IMAGE SLOT PLACEHOLDER ─────────────────────────────
   Stands in until real screenshots land. Swap the whole
   element for <img src="…" alt="…"> — nothing else changes. */
.slot {
  width: 100%; height: 100%; background: var(--slot);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-fainter); text-align: center;
}
.case-shot .slot { background: rgba(252,251,248,.06); color: var(--on-dark-5); }

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .work-card:hover, .plan:hover, .review:hover { transform: none; }
}

/* Sticky-header offset for in-page anchors (spec: 80px) */
[id] { scroll-margin-top: 80px; }

/* ── SPECIALISM / INDUSTRY CARDS (services page) ─────────
   Keyword sections carried over from the pre-redesign page, rendered in the
   redesign's card language rather than the old two-column service rows. */
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.spec-card {
  background: var(--paper); border: 1px solid var(--line-card);
  border-radius: 16px; padding: var(--card-pad);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sect--alt .spec-card { background: var(--paper); }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--sh-card); }
.spec-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1.12; letter-spacing: -.015em; margin-bottom: 10px;
}
.spec-card > p { font-size: 14.5px; line-height: 1.68; color: var(--text-body); margin-bottom: 16px; }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.spec-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14px; line-height: 1.55; color: var(--text-muted);
}
.spec-list li::before { content: '✓'; flex-shrink: 0; color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.5; }
.spec-card .svc-quote { margin-top: auto; }
