/* ============================================================
   SEO STUDIO — design system
   White ground, black type, soft grey secondary.
   Four-colour accent is reserved for hairlines, small marks,
   hover states, dividers and interface details only.
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────── */
:root {
  /* Brand accents */
  --blue:   #4285F4;
  --red:    #EA4335;
  --yellow: #FBBC05;
  --green:  #34A853;

  /* Ground & ink */
  --paper:  #FFFFFF;
  --paper-2:#FAFAFA;
  --ink:    #000000;
  --ink-70: rgba(0,0,0,.70);
  --grey:   #6E6E73;   /* soft grey secondary text */
  --grey-2: #97979D;   /* tertiary / captions */
  --line:   #E6E6E9;   /* hairline */
  --line-2: #F0F0F2;

  /* The four-colour sweep. Used at 1–2px, never as a field. */
  --g4: linear-gradient(90deg, var(--blue) 0%, var(--red) 34%, var(--yellow) 67%, var(--green) 100%);
  --g4-v: linear-gradient(180deg, var(--blue) 0%, var(--red) 34%, var(--yellow) 67%, var(--green) 100%);

  --shell: 1240px;
  --gut: 28px;
  --nav-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .45s var(--ease);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.03; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(66,133,244,.16); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-size: 14px; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ── Layout ───────────────────────────────────────────── */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell--tight { max-width: 880px; }
.section { padding-block: clamp(72px, 11vw, 152px); }
.section--flush { padding-top: 0; }
.section--sm { padding-block: clamp(56px, 7vw, 96px); }

/* ── Type ─────────────────────────────────────────────── */
.display {
  font-size: clamp(46px, 8.2vw, 104px);
  letter-spacing: -.045em;
  line-height: .96;
  font-weight: 700;
}
.h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.042em; line-height: 1.0; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.038em; line-height: 1.04; }
.h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.028em; line-height: 1.15; }
.h4 { font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }

/* very thin counterpoint to the bold black headings */
.thin { font-weight: 200; letter-spacing: -.03em; }
.lede {
  font-weight: 200;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
  letter-spacing: -.022em;
  color: var(--grey);
  max-width: 62ch;
}
.body-grey { color: var(--grey); }
.small { font-size: 15px; line-height: 1.55; color: var(--grey); }
.tiny { font-size: 13px; line-height: 1.5; color: var(--grey-2); }
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}
.measure { max-width: 68ch; }
.balance { text-wrap: balance; }

/* Small four-colour text accent: one word per hue, used sparingly. */
.accent-word { font-weight: 500; }
.accent-word.b { color: var(--blue); }
.accent-word.r { color: var(--red); }
.accent-word.y { color: #D9A100; } /* darkened yellow for AA contrast on white */
.accent-word.g { color: var(--green); }

/* ── Eyebrow with four-colour tick ────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--grey); margin-bottom: 26px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--g4);
}
.eyebrow--plain::before { display: none; }

.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--red); }
.dots i:nth-child(3) { background: var(--yellow); }
.dots i:nth-child(4) { background: var(--green); }

/* ── Rules & dividers ─────────────────────────────────── */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--g4 { background: var(--g4); opacity: .9; }
.rule--fade {
  background: linear-gradient(90deg, var(--blue), var(--red) 34%, var(--yellow) 67%, var(--green));
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 500; letter-spacing: -.012em;
  cursor: pointer; transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arw { transition: transform var(--t); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
/* hover state is where the four colours are allowed to appear */
.btn--ghost::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--g4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.btn--ghost:hover::before { opacity: 1; }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* Text link with a four-colour underline that draws on hover */
.tlink {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; padding-bottom: 3px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--g4); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arw { transition: transform var(--t); }
.tlink:hover .arw { transform: translateX(3px); }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(255,255,255,.86); }
/* the four-colour hairline only asserts itself once the page is in motion */
.nav__hair {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--g4); opacity: 0; transition: opacity var(--t);
}
.nav.is-stuck .nav__hair { opacity: .85; }

.nav__in {
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__link {
  position: relative; font-size: 14.5px; color: var(--ink-70); font-weight: 400;
  padding-block: 6px; transition: color var(--t);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--g4); transform: scaleX(0); transform-origin: center; transition: transform var(--t);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 4px; }

/* ============================================================
   LOGO AREA
   Reserved, empty slot — top-left of the nav and in the footer.
   To use the official logo, drop the file into public/assets/
   and replace the <span class="logo-slot__ph"> inside the anchor with:
       <img src="/assets/logo.svg" alt="SEO Studio">
   Nothing else needs to change; the slot sizes any image to fit.
   ============================================================ */
.logo-slot {
  display: inline-flex; align-items: center; justify-content: flex-start;
  width: 148px; height: 34px; flex: 0 0 auto;
}
/* When a real logo file is present the slot is sized by height only, so any
   aspect ratio — square mark, wide lockup — renders at its true proportions. */
.logo-slot--img { width: auto; max-width: 200px; height: 40px; }
.logo-slot img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; object-position: left center;
}
.logo-slot__ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--grey-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color var(--t), color var(--t);
}
.logo-slot:hover .logo-slot__ph { border-color: var(--grey-2); color: var(--grey); }
.logo-slot--footer { width: 148px; height: 34px; }
/* With a real file, the footer mark is sized by height too, one step down
   from the nav. Must come after --footer to win the cascade. */
.logo-slot--img.logo-slot--footer { width: auto; max-width: 200px; height: 34px; }

/* Mobile menu */
.nav__burger {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none;
  align-items: center; justify-content: center; cursor: pointer; border-radius: 999px;
}
.nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: var(--t); }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: var(--t);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--paper);
  padding: 20px var(--gut) 40px;
  display: none; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { display: flex; }
.drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 26px; font-weight: 300; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
}
.drawer a:nth-child(4n+1) { border-image: var(--g4) 1; }
.drawer .btn { margin-top: 32px; align-self: flex-start; }
body.is-locked { overflow: hidden; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(48px, 6vw, 84px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; }
.hero__meta li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--grey); }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.hero__meta li:nth-child(1)::before { background: var(--blue); }
.hero__meta li:nth-child(2)::before { background: var(--red); }
.hero__meta li:nth-child(3)::before { background: var(--yellow); }
.hero__meta li:nth-child(4)::before { background: var(--green); }

/* ── Stat strip ───────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats__item { padding: 34px 26px 34px 0; position: relative; }
.stats__item + .stats__item { padding-left: 26px; border-left: 1px solid var(--line); }
.stats__item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.stats__item:nth-child(1)::before { background: var(--blue); }
.stats__item:nth-child(2)::before { background: var(--red); }
.stats__item:nth-child(3)::before { background: var(--yellow); }
.stats__item:nth-child(4)::before { background: var(--green); }
.stats.in-view .stats__item::before { transform: scaleX(1); }
.stats.in-view .stats__item:nth-child(2)::before { transition-delay: .1s; }
.stats.in-view .stats__item:nth-child(3)::before { transition-delay: .2s; }
.stats.in-view .stats__item:nth-child(4)::before { transition-delay: .3s; }
.stats__n { font-size: clamp(34px, 4vw, 52px); font-weight: 200; letter-spacing: -.05em; line-height: 1; }
.stats__l { margin-top: 12px; font-size: 14px; color: var(--grey); line-height: 1.4; }

/* ── Section head ─────────────────────────────────────── */
.shead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.shead--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.shead__aside { padding-bottom: 6px; }

/* ── Numbered service list ────────────────────────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 84px minmax(0,1.05fr) minmax(0,1.15fr) 42px;
  gap: 32px; align-items: start;
  padding: 34px 0; position: relative;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t);
}
.row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--g4); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row:hover { padding-left: 10px; }
.row__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--grey-2); padding-top: 7px; transition: color var(--t); }
.row:nth-child(4n+1):hover .row__n { color: var(--blue); }
.row:nth-child(4n+2):hover .row__n { color: var(--red); }
.row:nth-child(4n+3):hover .row__n { color: #D9A100; }
.row:nth-child(4n+4):hover .row__n { color: var(--green); }
.row__t { font-size: clamp(21px, 2.1vw, 28px); font-weight: 600; letter-spacing: -.032em; line-height: 1.1; }
.row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--grey);
}
.row__arw { align-self: center; justify-self: end; color: var(--grey-2); transition: transform var(--t), color var(--t); }
.row:hover .row__arw { transform: translateX(5px); color: var(--ink); }

/* ── Cards ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px; background: var(--paper);
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--g4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -28px rgba(0,0,0,.32); }
a.card:hover::after, .card--hover:hover::after { opacity: 1; }
.card__k { margin-bottom: 18px; color: var(--grey-2); }
.card__t { font-size: 20px; font-weight: 600; letter-spacing: -.028em; line-height: 1.2; }
.card__p { margin-top: 12px; color: var(--grey); font-size: 15.5px; }
.card__foot { margin-top: auto; padding-top: 24px; }

/* card with a single top hairline in one hue */
.card--topline { padding-top: 29px; }
.card--topline::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: var(--ink);
}
.card--topline.c-b::before { background: var(--blue); }
.card--topline.c-r::before { background: var(--red); }
.card--topline.c-y::before { background: var(--yellow); }
.card--topline.c-g::before { background: var(--green); }

/* ── Case study card ──────────────────────────────────── */
.case { display: flex; flex-direction: column; }
.case__vis { border-bottom: 1px solid var(--line); margin: -30px -30px 26px; padding: 30px; border-radius: 14px 14px 0 0; background: var(--paper-2); }
.case__sector { color: var(--grey-2); }
.case__t { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; line-height: 1.15; }
.case__metrics { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.case__metric b { display: block; font-size: 27px; font-weight: 200; letter-spacing: -.04em; line-height: 1; }
.case__metric span { display: block; font-size: 12.5px; color: var(--grey); margin-top: 7px; }
.up { color: var(--green); }
.down { color: var(--blue); }

/* ── Interface details (the “technical” blocks) ───────── */
.panel {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
}
.panel__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.panel__bar .mono { color: var(--grey); }
.panel__hair { height: 1px; background: var(--g4); }
.panel__body { padding: 26px; }

/* SERP mock */
.serp { display: grid; gap: 22px; }
.serp__item { display: grid; gap: 5px; }
.serp__crumb { font-size: 12.5px; color: var(--grey); font-family: var(--mono); letter-spacing: .04em; }
.serp__title { font-size: 19px; color: #1a0dab; font-weight: 400; letter-spacing: -.018em; }
.serp__item--ours .serp__title { color: var(--blue); font-weight: 500; }
.serp__desc { font-size: 14px; color: var(--grey); line-height: 1.5; }
.serp__item--ours {
  position: relative; padding: 16px 16px 16px 20px; margin: -16px -16px -16px 0; border-radius: 10px; background: var(--paper-2);
}
.serp__item--ours::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--g4-v);
}
.serp__rank {
  position: absolute; right: 14px; top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--green);
}

/* Vitals meters */
.vitals { display: grid; gap: 20px; }
.vital__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vital__name { font-size: 14px; }
.vital__val { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.meter { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-top: 9px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1.1s var(--ease); }
.meter.in-view i { width: var(--w); }
.m-b i { background: var(--blue); }
.m-r i { background: var(--red); }
.m-y i { background: var(--yellow); }
.m-g i { background: var(--green); }

/* Keyword table */
/* Structured-data panel — the markup shown as itself. */
.codeblock {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 0; margin: 0;
}
.codeblock .ck { color: var(--ink); }
.codeblock .cp { color: var(--grey-2); }
.codeblock .cv { color: var(--blue); }

.ktable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ktable th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey-2); font-weight: 400;
  padding: 0 14px 12px 0; border-bottom: 1px solid var(--line);
}
.ktable td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-2); color: var(--grey); }
.ktable td:first-child { color: var(--ink); }
.ktable tr:last-child td { border-bottom: 0; }
.ktable .delta { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.ktable tbody tr { transition: background var(--t); }
.ktable tbody tr:hover { background: var(--paper-2); }

/* ── Process ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 26px 0 0; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; }
.step:nth-child(1)::before { background: var(--blue); }
.step:nth-child(2)::before { background: var(--red); }
.step:nth-child(3)::before { background: var(--yellow); }
.step:nth-child(4)::before { background: var(--green); }
.step__n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--grey-2); }
.step__t { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -.026em; }
.step__p { margin-top: 10px; font-size: 15px; color: var(--grey); }

/* ── Quote ────────────────────────────────────────────── */
.quote { max-width: 20ch; }
.quote__mark { width: 26px; height: 2px; background: var(--g4); margin-bottom: 30px; }
.quote__t {
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 200; letter-spacing: -.038em; line-height: 1.18;
  max-width: 22ch;
}
.quote__by { margin-top: 32px; font-size: 14.5px; color: var(--grey); }
.quote__by b { display: block; color: var(--ink); font-weight: 500; }

/* ── Accordion ────────────────────────────────────────── */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); position: relative; }
.acc__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--g4);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.acc__item.is-open::after { transform: scaleX(1); }
.acc__btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(17px, 1.7vw, 21px); font-weight: 400; letter-spacing: -.024em;
}
.acc__btn:hover { color: var(--ink); }
.acc__ico { position: relative; width: 13px; height: 13px; flex: 0 0 auto; }
.acc__ico::before, .acc__ico::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: var(--ink); transform: translateY(-50%);
  transition: transform var(--t), background var(--t);
}
.acc__ico::after { transform: translateY(-50%) rotate(90deg); }
.acc__item.is-open .acc__ico::after { transform: translateY(-50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 28px; color: var(--grey); max-width: 72ch; }

/* ── CTA band ─────────────────────────────────────────── */
.cta { border-top: 1px solid var(--line); position: relative; }
.cta::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--g4); }
.cta__in { padding-block: clamp(72px, 9vw, 124px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }

/* ── Form ─────────────────────────────────────────────── */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 9px; position: relative; }
.field > label { font-size: 13.5px; color: var(--grey); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 11px 0; font-size: 17px; font-weight: 300; letter-spacing: -.015em;
  border-radius: 0; transition: border-color var(--t);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--g4);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within > label { color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form__note { font-size: 13px; color: var(--grey-2); }

/* ── Article ──────────────────────────────────────────── */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.032em; margin-top: 56px; margin-bottom: 18px; }
.prose h3 { font-size: 20px; letter-spacing: -.024em; margin-top: 38px; margin-bottom: 12px; font-weight: 600; }
.prose p { margin-bottom: 20px; color: var(--ink-70); }
.prose p.lede { color: var(--grey); margin-bottom: 32px; }
.prose ul { margin: 0 0 24px; display: grid; gap: 11px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink-70); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--ink); }
.prose ul li:nth-child(4n+1)::before { background: var(--blue); }
.prose ul li:nth-child(4n+2)::before { background: var(--red); }
.prose ul li:nth-child(4n+3)::before { background: var(--yellow); }
.prose ul li:nth-child(4n+4)::before { background: var(--green); }
.prose blockquote {
  margin: 34px 0; padding-left: 24px; border-left: 1px solid var(--line);
  font-size: 21px; font-weight: 200; letter-spacing: -.026em; line-height: 1.4;
}
.prose blockquote { border-image: var(--g4-v) 1; }

.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--grey-2); }
.meta-line span { display: inline-flex; align-items: center; gap: 8px; }

/* ── Footer ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 64px 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr repeat(4, .82fr); gap: 36px; }
.foot__blurb { color: var(--grey); font-size: 15px; max-width: 34ch; margin-top: 22px; }
.foot__h { font-size: 12.5px; color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.foot__list { display: grid; gap: 11px; }
.foot__list a { font-size: 14.5px; color: var(--grey); transition: color var(--t); position: relative; }
.foot__list a:hover { color: var(--ink); }
.foot__bot {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
}
.foot__bot .tiny a:hover { color: var(--ink); }

/* ── Reveal ───────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .meter i { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .foot__top { grid-template-columns: 1.3fr repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; padding-top: 40px; }
  .step:nth-child(3)::before, .step:nth-child(4)::before { top: auto; }
  .step:nth-child(4) { padding-top: 40px; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gut: 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 26px 20px 26px 0; }
  .stats__item:nth-child(3), .stats__item:nth-child(4) { border-top: 1px solid var(--line); }
  .stats__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .row__arw { display: none; }
  .row__n { padding-top: 0; }
  .cta__in { grid-template-columns: 1fr; align-items: start; }
  .form__row { grid-template-columns: 1fr; }
  .case__vis { margin: -30px -30px 22px; }
  .quote__t { max-width: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; padding-top: 36px; }
  .foot__top { grid-template-columns: 1fr; gap: 34px; }
  .card { padding: 24px; }
  .case__vis { margin: -24px -24px 20px; padding: 24px; }
}
