/* ==========================================================================
   EqualFrame — shared stylesheet
   Design concept: "The Frame" — structure and architecture around fair pay.
   A deep, saturated forest-ink + warm parchment + a vivid burnt-orange
   accent (the Dutch national colour, deepened for legal gravity rather than
   festive brightness). Spectral (editorial serif, legal/journalistic
   authority) pairs with IBM Plex Sans (precise, technical, fintech-grade).
   Corner-bracket frame motif and real architectural photography reinforce
   "the frame" without ever using stock people-photography.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* Color */
  --bg: #F8EFDC;
  --bg-raised: #F0E1BF;
  --bg-card: #FFFBF2;
  --ink: #0F2A1F;
  --ink-soft: #23483A;
  --ink-04: rgba(15,42,31,.04);
  --ink-08: rgba(15,42,31,.08);
  --ink-14: rgba(15,42,31,.14);
  --ink-28: rgba(15,42,31,.28);
  --ink-45: rgba(15,42,31,.5);
  --ink-66: rgba(15,42,31,.66);
  --accent: #C94A12;
  --accent-dark: #963A0E;
  --accent-tint: #FBE1C9;
  --gold: #A47A1E;
  --white: #FFFFFF;
  --danger-bg: #F7DCC2;

  /* Type */
  --font-display: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-5: clamp(2.7rem, 2.1rem + 3vw, 4.3rem);

  /* Space (8px baseline) */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --container: 1220px;
  --border: 1px solid var(--ink-14);
  --shadow-card: 0 1px 2px rgba(18,36,29,.05), 0 12px 28px -18px rgba(18,36,29,.35);
  --shadow-pop: 0 20px 50px -20px rgba(18,36,29,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 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; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background-color: var(--bg);
  /* Faint paper-grain texture — reads as printed/editorial rather than flat
     digital colour. Pure CSS, no image request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }
main{ display: block; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; left: var(--sp-3); top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-s); transition: top .15s var(--ease);
}
.skip-link:focus{ top: var(--sp-3); }

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

.container{ max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 640px){ .container{ padding-inline: var(--sp-5); } }

.section{ padding-block: var(--sp-7); }
.section--tight{ padding-block: var(--sp-6); }
.section--ink{ background: var(--ink); color: var(--bg); }
.section--raised{ background: var(--bg-raised); }

.eyebrow{
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .11em; text-transform: uppercase; color: var(--accent-dark);
}
.section--ink .eyebrow{ color: #F2966A; }
.eyebrow::before{ content: ''; width: 22px; height: 2px; background: currentColor; display: inline-block; }

.section-head{ max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head h2{ font-size: var(--step-3); margin-top: var(--sp-2); }
.section-head p{ margin-top: var(--sp-3); color: var(--ink-66); font-size: var(--step-1); }
.section--ink .section-head p{ color: rgba(245,240,228,.72); }

/* ---------- Frame motif ---------- */
.framed{ position: relative; }
.framed::before, .framed::after{
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: currentColor; opacity: .55;
}
.framed::before{ top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.framed::after{ bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.grid-veil{
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, var(--ink-08) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.section--ink .grid-veil{
  background-image:
    linear-gradient(to right, rgba(245,240,228,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,240,228,.07) 1px, transparent 1px);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: var(--radius-s); font-weight: 600;
  font-size: var(--step--1); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  border: 1.5px solid transparent; cursor: pointer;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color: var(--white); }
.btn-primary:hover{ background: var(--accent-dark); }
.btn-secondary{ background: transparent; color: var(--ink); border-color: var(--ink-28); }
.btn-secondary:hover{ border-color: var(--ink); background: var(--ink-04); }
.section--ink .btn-secondary{ color: var(--bg); border-color: rgba(245,240,228,.35); }
.section--ink .btn-secondary:hover{ border-color: var(--bg); background: rgba(245,240,228,.08); }
.btn-ghost{ background: transparent; color: var(--accent-dark); padding-inline: 0; }
.btn-ghost:hover{ color: var(--accent); }
.btn svg{ width: 1.05em; height: 1.05em; flex: none; }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: .55; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100; background: rgba(245,240,228,.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-14);
}
.header-inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 76px; }

.wordmark{ display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; }
.wordmark-mark{ width: 30px; height: 30px; color: var(--accent); flex: none; }
.wordmark-text{ font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--ink); }
.wordmark-text em{ font-style: normal; color: var(--accent-dark); }

.nav-toggle{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-s); flex: none;
}
.nav-toggle:hover{ background: var(--ink-08); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after{
  width: 20px; height: 2px; background: var(--ink); display: block; position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars::before, .nav-toggle-bars::after{ content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{ top: 0; transform: rotate(-45deg); }

.primary-nav{ display: flex; align-items: center; gap: var(--sp-5); }
.nav-list{ display: flex; align-items: center; gap: var(--sp-4); }
.nav-list > li > a, .dropdown-toggle{
  display: inline-flex; align-items: center; gap: .35em; padding: .5rem .1rem;
  font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list > li > a:hover, .dropdown-toggle:hover{ color: var(--ink); }
.nav-list > li > a[aria-current="page"]{ color: var(--accent-dark); border-color: var(--accent); }
.dropdown-toggle svg{ width: 13px; height: 13px; transition: transform .18s var(--ease); }
.has-dropdown{ position: relative; }
.has-dropdown.open .dropdown-toggle svg{ transform: rotate(180deg); }

.dropdown-menu{
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 300px; background: var(--bg-card); border: 1px solid var(--ink-14);
  border-radius: var(--radius-m); box-shadow: var(--shadow-pop); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-dropdown.open .dropdown-menu{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li a{
  display: block; padding: .65rem .8rem; border-radius: var(--radius-s);
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.dropdown-menu li a:hover, .dropdown-menu li a:focus-visible{ background: var(--accent-tint); color: var(--accent-dark); }

.nav-cta{ flex: none; }

@media (max-width: 959px){
  .nav-toggle{ display: inline-flex; }
  .primary-nav{
    /* Fixed, not inset-stretched: .site-header's backdrop-filter makes it a
       containing block for fixed descendants, so a bottom:0 offset resolves
       against the ~76px header box instead of the viewport. An explicit
       height in vh sidesteps that, since vh always resolves off the
       viewport regardless of containing block. */
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px);
    background: var(--bg); flex-direction: column;
    align-items: stretch; gap: 0; padding: var(--sp-4); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .primary-nav.open{ opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-list{ flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li{ border-bottom: 1px solid var(--ink-14); }
  .nav-list > li > a, .dropdown-toggle{ width: 100%; padding: 1rem .2rem; justify-content: space-between; border-bottom: 0; }
  .dropdown-menu{
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0;
    background: var(--ink-04); opacity: 1; visibility: visible; display: none; padding: .25rem .5rem 1rem;
  }
  .has-dropdown.open .dropdown-menu{ display: block; transform: none; }
  .nav-cta{ margin-top: var(--sp-4); width: 100%; }
}
@media (min-width: 960px){
  .primary-nav{ display: flex !important; }
  .nav-toggle{ display: none; }
}

/* ---------- Hero ---------- */
.hero{ position: relative; padding-block: var(--sp-8) var(--sp-7); overflow: clip; }
.hero-inner{ position: relative; max-width: 46rem; }
.hero h1{ font-size: var(--step-5); margin-top: var(--sp-3); }
.hero .lede{ margin-top: var(--sp-4); font-size: var(--step-1); color: var(--ink-66); max-width: 42rem; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
/* Hero visual: a real photograph set inside a hairline frame, offset from
   the grid like a print pinned slightly askew — the literal "Frame" pun. */
.hero-visual{
  position: absolute; right: -2%; top: 2%; width: min(340px, 30vw);
  display: none; transform: rotate(1.4deg);
}
.hero-visual-frame{
  position: relative; border: 1.5px solid var(--ink-28); border-radius: var(--radius-l);
  padding: 14px; background: var(--bg-card); box-shadow: var(--shadow-pop);
}
.hero-visual-frame::after{
  content: ''; position: absolute; inset: 14px; border: 1.5px solid var(--accent);
  border-radius: calc(var(--radius-m) - 2px); opacity: .6; pointer-events: none;
}
.hero-visual img{ border-radius: calc(var(--radius-m) - 2px); aspect-ratio: 2/3; object-fit: cover; width: 100%; height: auto; }
.hero-visual-caption{
  margin-top: .6rem; font-size: .68rem; letter-spacing: .04em; color: var(--ink-45);
  text-align: center;
}
@media (min-width: 900px){ .hero-visual{ display: block; } }

/* ---------- Rules comparison block ---------- */
.rules-grid{ display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 860px){ .rules-grid{ grid-template-columns: repeat(3, 1fr); } }
.rules-card{
  background: var(--bg-card); border: 1px solid var(--ink-14); border-radius: var(--radius-l);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4);
  text-decoration: none; color: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rules-card:hover{ border-color: var(--ink-28); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.rules-card.is-risk{ background: var(--danger-bg); }
.rules-card-index{ font-family: var(--font-display); font-size: var(--step--1); color: var(--accent-dark); font-weight: 600; }
.rules-card h3{ font-size: var(--step-2); }
.rules-card ul{ display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.rules-card li{ display: flex; gap: .65rem; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.rules-card li svg{ flex: none; width: 17px; height: 17px; margin-top: .2em; color: var(--accent-dark); }
.rules-card-cta{ font-weight: 700; font-size: var(--step--1); color: var(--accent-dark); display: inline-flex; align-items: center; gap: .4em; }
.rules-note{ text-align: center; margin-top: var(--sp-5); font-size: var(--step-0); }
.rules-note a{ font-weight: 700; color: var(--accent-dark); text-underline-offset: 3px; }

/* ---------- Company size strip ---------- */
.tiers{ display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px){ .tiers{ grid-template-columns: repeat(4, 1fr); } }
.tier-card{
  display: block; text-decoration: none; color: inherit; padding: var(--sp-4);
  background: var(--bg-card); border: 1px solid var(--ink-14); border-radius: var(--radius-m);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.tier-card:hover{ border-color: var(--accent); transform: translateY(-2px); }
.tier-label{ font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }
.tier-count{ font-family: var(--font-display); font-size: var(--step-2); margin-top: .3rem; }
.tier-note{ margin-top: .5rem; font-size: var(--step--1); color: var(--ink-66); }

/* ---------- Services grid ---------- */
.services-grid{ display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 700px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .services-grid{ grid-template-columns: repeat(4, 1fr); } }
.service-card{
  display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: inherit;
  padding: var(--sp-4); border: 1px solid var(--ink-14); border-radius: var(--radius-m); background: var(--bg-card);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.service-card:hover{ border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.service-num{ font-family: var(--font-display); color: var(--accent-dark); font-size: var(--step-0); }
.service-card h3{ font-size: var(--step-1); }
.service-card p{ font-size: var(--step--1); color: var(--ink-66); }

/* ---------- Why us summary ---------- */
.why-grid{ display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 760px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } }
.why-item{ display: flex; gap: var(--sp-3); }
.why-item-mark{
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--accent-dark); font-size: 1.05rem;
}
.why-item h3{ font-size: var(--step-1); margin-bottom: .35rem; }
.why-item p{ color: var(--ink-66); font-size: var(--step--1); }

/* ---------- CTA band ---------- */
/* A real glass-facade photograph, not a flat fill — a moody architectural
   grid behind the call to action, on every page that uses this band. */
.cta-band{
  border-radius: var(--radius-l); color: var(--bg); padding: var(--sp-6) var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  position: relative; overflow: clip;
  background:
    linear-gradient(155deg, rgba(15,42,31,.92), rgba(15,20,14,.88)),
    url("assets/images/glass-facade-wide.jpg") center 30% / cover no-repeat;
}
.cta-band h2{ font-size: var(--step-3); max-width: 28rem; }
.cta-band-actions{ display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Full-bleed photo banner (why-us hero, etc.) ---------- */
.photo-banner{
  position: relative; padding-block: var(--sp-8) var(--sp-7); color: var(--bg); overflow: clip;
  background: linear-gradient(100deg, rgba(9,17,13,.88) 0%, rgba(9,17,13,.62) 55%, rgba(9,17,13,.3) 100%);
}
.photo-banner-media{ position: absolute; inset: 0; z-index: -1; }
.photo-banner-media img{ width: 100%; height: 100%; object-fit: cover; }
/* Higher specificity than .page-hero .eyebrow/.lede (defined later in this
   file) so the light-on-dark banner text always wins over the generic
   page-hero color, regardless of source order. */
.photo-banner .page-hero .eyebrow, .photo-banner .eyebrow{ color: #F2966A; }
.photo-banner .page-hero .lede, .photo-banner .lede{ color: rgba(248,239,220,.82); }
.photo-banner .page-hero h1{ color: var(--bg); }
.photo-banner-caption{
  position: absolute; right: var(--sp-4); bottom: var(--sp-3); font-size: .68rem;
  letter-spacing: .04em; color: rgba(248,239,220,.55); z-index: 1;
}

/* ---------- Media-split service section (image + text) ---------- */
.service-section-split{ display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 860px){ .service-section-split{ grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.service-section-split .media-figure{ order: -1; }
@media (min-width: 860px){
  .service-section-split .media-figure{ order: 2; }
  /* .reverse alternates the image to the left column on desktop, so the
     eight service sections don't all read image-right in lockstep. */
  .service-section-split.reverse .media-figure{ order: -1; }
}
.media-figure{ position: relative; }
.media-figure-frame{
  position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--ink-14);
  box-shadow: var(--shadow-card);
}
.media-figure-frame::after{
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.35);
  border-radius: calc(var(--radius-l) - 6px); pointer-events: none;
}
.media-figure img{ width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; }
.media-figure-caption{ margin-top: .5rem; font-size: .72rem; color: var(--ink-45); }

/* ---------- FAQ accordion ---------- */
.faq-list{ border-top: 1px solid var(--ink-14); }
.faq-item{ border-bottom: 1px solid var(--ink-14); }
.faq-q{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  text-align: left; padding: var(--sp-4) .25rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
}
.faq-q:hover{ color: var(--accent-dark); }
.faq-q svg{ flex: none; width: 20px; height: 20px; transition: transform .22s var(--ease); color: var(--accent-dark); }
.faq-item[data-open="true"] .faq-q svg{ transform: rotate(45deg); }
.faq-a{ overflow: hidden; height: 0; transition: height .22s var(--ease); }
.faq-a-inner{ padding: 0 .25rem var(--sp-4); max-width: 52rem; color: var(--ink-soft); }
.faq-a-inner a{ color: var(--accent-dark); font-weight: 600; }

/* ---------- Law reference band ---------- */
.law-ref{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  border: 1px solid var(--ink-14); border-radius: var(--radius-m); padding: var(--sp-5); background: var(--bg-card);
}
.law-ref p{ max-width: 34rem; color: var(--ink-66); }
.law-ref strong{ color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(245,240,228,.85); }
.footer-inner{
  padding-block: var(--sp-7) var(--sp-5); display: grid; gap: var(--sp-6);
  grid-template-columns: 1.3fr repeat(3, 1fr);
}
@media (max-width: 860px){ .footer-inner{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-inner{ grid-template-columns: 1fr; } }
.footer-brand .wordmark-text{ color: var(--bg); }
.footer-brand p{ margin-top: var(--sp-3); font-size: var(--step--1); max-width: 22rem; color: rgba(245,240,228,.68); }
.footer-links h2, .footer-contact h2{
  font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em;
  color: rgba(245,240,228,.5); margin-bottom: var(--sp-3); font-weight: 700;
}
.footer-links ul{ display: flex; flex-direction: column; gap: .6rem; }
.footer-links a, .footer-contact a{ font-size: var(--step--1); text-decoration: none; color: rgba(245,240,228,.85); }
.footer-links a:hover, .footer-contact a:hover{ color: var(--bg); text-decoration: underline; }
.footer-contact p{ font-size: var(--step--1); margin-bottom: .6rem; }
.footer-contact .btn{ margin-top: var(--sp-2); }
.footer-bottom{
  border-top: 1px solid rgba(245,240,228,.14); padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2);
  font-size: var(--step--1); color: rgba(245,240,228,.6);
}
.legal-links{ display: flex; gap: var(--sp-4); }
.legal-links a{ text-decoration: none; color: rgba(245,240,228,.6); }
.legal-links a:hover{ color: var(--bg); }
.disclaimer-line{ font-size: .78rem; color: rgba(245,240,228,.48); padding-bottom: var(--sp-4); max-width: 60rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); z-index: 300;
  max-width: 640px; margin-inline: auto; background: var(--bg-card); border: 1px solid var(--ink-14);
  border-radius: var(--radius-m); padding: var(--sp-4); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transform: translateY(120%); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cookie-banner.visible{ transform: translateY(0); opacity: 1; }
.cookie-banner p{ font-size: var(--step--1); color: var(--ink-soft); }
.cookie-banner p a{ color: var(--accent-dark); font-weight: 600; }
.cookie-actions{ display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cookie-actions .btn{ flex: 1; }

/* ---------- Generic page header ---------- */
.page-hero{ padding-block: var(--sp-7) var(--sp-6); }
.page-hero .eyebrow{ margin-bottom: var(--sp-3); }
.page-hero h1{ font-size: var(--step-4); max-width: 42rem; }
.page-hero .lede{ margin-top: var(--sp-3); font-size: var(--step-1); color: var(--ink-66); max-width: 40rem; }
.breadcrumb{ display: flex; gap: .5rem; font-size: var(--step--1); color: var(--ink-45); margin-bottom: var(--sp-4); }
.breadcrumb a{ color: var(--ink-45); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Badges / states ---------- */
.badge{
  display: inline-flex; align-items: center; gap: .4em; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: .35em .7em; border-radius: 100px;
}
.badge-soon{ background: var(--accent-tint); color: var(--accent-dark); }
.badge-review{ background: #FCEFC7; color: #6B5309; border: 1px dashed #B99A2E; }
.badge-live{ background: #E1EBE3; color: #29563A; }

/* ---------- Services page ---------- */
.service-section{ padding-block: var(--sp-6); border-top: 1px solid var(--ink-14); scroll-margin-top: 100px; }
.service-section-head{ display: flex; gap: var(--sp-4); align-items: baseline; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.service-section-head .service-num{ font-size: var(--step-2); }
.service-section h2{ font-size: var(--step-2); }
.service-section .lede{ max-width: 42rem; color: var(--ink-soft); font-size: var(--step-0); }
.service-meta-list{ margin-top: var(--sp-4); display: grid; gap: .6rem; max-width: 40rem; }
.service-meta-list li{ display: flex; gap: .6rem; font-size: var(--step--1); color: var(--ink-66); }
.service-meta-list li svg{ flex: none; width: 16px; height: 16px; margin-top: .25em; color: var(--accent-dark); }
.review-note{
  margin-top: var(--sp-4); font-size: var(--step--1); background: #FCEFC7; border: 1px dashed #B99A2E;
  border-radius: var(--radius-s); padding: var(--sp-3) var(--sp-3); color: #4F3F07; max-width: 40rem;
}

/* ---------- Two column layout (why-us, generic) ---------- */
.compare-grid{ display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 780px){ .compare-grid{ grid-template-columns: 1fr 1fr; } }
.compare-card{ background: var(--bg-card); border: 1px solid var(--ink-14); border-radius: var(--radius-l); padding: var(--sp-5); }
.compare-card h3{ font-size: var(--step-2); margin-bottom: var(--sp-3); }
.compare-card ul{ display: flex; flex-direction: column; gap: var(--sp-3); }
.compare-card li{ font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: .6rem; }
.compare-card li svg{ flex: none; width: 16px; height: 16px; margin-top: .3em; color: var(--accent-dark); }

/* Three-way compare: EqualFrame is the visual answer, not a footnote below
   two boxed competitor cards. The featured card is elevated, dark and
   checked in the accent colour; the competitor cards are deliberately
   quieter — smaller heading, muted dash bullets, no accent anywhere — so
   the eye lands on "why EqualFrame" first, not on their feature lists. */
.compare-grid--three{ grid-template-columns: 1fr; align-items: start; }
@media (min-width: 780px){
  .compare-grid--three{ grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}
.compare-card--featured{
  background: var(--ink); border-color: transparent; color: var(--bg);
  position: relative; box-shadow: var(--shadow-pop);
}
@media (min-width: 780px){
  .compare-card--featured{ padding-block: calc(var(--sp-5) + var(--sp-3)) var(--sp-5); transform: translateY(-10px); }
}
.compare-card--featured h3{ color: var(--bg); font-size: var(--step-1); }
.compare-card--featured li{ color: rgba(248,239,220,.92); font-weight: 500; }
.compare-card--featured li svg{ color: var(--accent); background: rgba(201,74,18,.18); border-radius: 50%; padding: 2px; box-sizing: content-box; margin-top: .15em; }
.compare-tag{
  position: absolute; top: -13px; left: var(--sp-5); background: var(--accent); color: var(--white);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: .4em .9em; border-radius: 100px; box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.compare-card--muted{
  background: transparent; border-color: var(--ink-14); box-shadow: none;
}
.compare-card--muted h3{ font-size: var(--step-0); color: var(--ink-45); font-weight: 600; }
.compare-card--muted li{ color: var(--ink-45); }
.compare-card--muted li > span:first-child{ color: var(--ink-28); font-weight: 700; }

.approach-list{ display: grid; gap: var(--sp-4); }
.approach-item{ display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-3); padding-block: var(--sp-4); border-top: 1px solid var(--ink-14); }
.approach-item:first-child{ border-top: 0; }
.approach-item .idx{ font-family: var(--font-display); font-size: var(--step-2); color: var(--accent-dark); }
.approach-item h3{ font-size: var(--step-1); margin-bottom: .4rem; }
.approach-item p{ color: var(--ink-66); font-size: var(--step--1); max-width: 44rem; }

/* ---------- Team ---------- */
.team-grid{ display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 760px){ .team-grid{ grid-template-columns: repeat(3, 1fr); } }
.team-card{ display: flex; flex-direction: column; gap: var(--sp-3); }
.team-photo{
  aspect-ratio: 4/5; border-radius: var(--radius-m); background: linear-gradient(155deg, var(--ink-soft), var(--ink));
  position: relative; display: flex; align-items: center; justify-content: center; color: rgba(245,240,228,.6);
  font-family: var(--font-display); font-size: var(--step--1); overflow: hidden;
}
.team-photo::before{ content: ''; position: absolute; inset: 14px; border: 1px solid rgba(245,240,228,.28); border-radius: 6px; }
.team-card h3{ font-size: var(--step-1); }
.team-role{ font-size: var(--step--1); font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.team-bio{ font-size: var(--step--1); color: var(--ink-66); }

/* ---------- Blog / case studies ---------- */
.filter-row{ display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--sp-5); }
.filter-chip{
  padding: .5em 1.1em; border: 1px solid var(--ink-28); border-radius: 100px; font-size: var(--step--1); font-weight: 600;
}
.filter-chip[aria-pressed="true"]{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip:hover{ border-color: var(--ink); }
.card-grid{ display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 700px){ .card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px){ .card-grid{ grid-template-columns: repeat(3, 1fr); } }
.post-card, .case-card{
  border: 1px solid var(--ink-14); border-radius: var(--radius-m); background: var(--bg-card);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); position: relative;
}
.post-card-tag{ font-size: var(--step--1); font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.post-card h3, .case-card h3{ font-size: var(--step-1); }
.post-card p, .case-card p{ font-size: var(--step--1); color: var(--ink-66); }
.empty-state{
  text-align: center; padding: var(--sp-7) var(--sp-4); border: 1px dashed var(--ink-28); border-radius: var(--radius-l);
  color: var(--ink-66);
}
.empty-state h3{ font-size: var(--step-2); color: var(--ink); margin-bottom: var(--sp-2); }

/* ---------- Forms ---------- */
.form-grid{ display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 700px){ .form-grid.two-col{ grid-template-columns: 1fr 1fr; } }
.field{ display: flex; flex-direction: column; gap: .45rem; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: var(--step--1); font-weight: 700; }
.field .hint{ font-size: .8rem; color: var(--ink-45); font-weight: 400; }
.field input, .field select, .field textarea{
  padding: .8rem .9rem; border: 1.5px solid var(--ink-14); border-radius: var(--radius-s);
  background: var(--bg-card); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--accent); }
.field-check{ display: flex; align-items: flex-start; gap: .65rem; grid-column: 1/-1; }
.field-check input{ margin-top: .3rem; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.field-check label{ font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.form-note{
  margin-top: var(--sp-3); font-size: var(--step--1); background: var(--accent-tint); color: var(--accent-dark);
  padding: var(--sp-3); border-radius: var(--radius-s);
}
.form-status{ margin-top: var(--sp-3); font-size: var(--step--1); padding: var(--sp-3); border-radius: var(--radius-s); display: none; }
.form-status.visible{ display: block; }
.form-status.info{ background: var(--danger-bg); color: var(--accent-dark); }
.book-call-box{
  border: 1px solid var(--ink-14); border-radius: var(--radius-l); padding: var(--sp-5); background: var(--bg-card);
  display: flex; flex-direction: column; gap: var(--sp-3);
}

/* ---------- Timeline (resources) ---------- */
.timeline{ display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--ink-14); margin-left: .4rem; }
.timeline-item{ position: relative; padding: 0 0 var(--sp-6) var(--sp-5); }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: ''; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.timeline-item h3{ font-size: var(--step-1); }
.timeline-date{ font-size: var(--step--1); font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.timeline-item p{ margin-top: .5rem; color: var(--ink-66); font-size: var(--step--1); max-width: 40rem; }

.tier-table-wrap{ overflow-x: auto; border: 1px solid var(--ink-14); border-radius: var(--radius-m); }
table.tier-table{ width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-card); }
.tier-table th, .tier-table td{ text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--ink-14); font-size: var(--step--1); }
.tier-table th{ font-family: var(--font-display); font-weight: 600; background: var(--bg-raised); }
.tier-table tr:last-child td{ border-bottom: 0; }

.download-list{ display: flex; flex-direction: column; gap: var(--sp-3); }
.download-item{
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  border: 1px solid var(--ink-14); border-radius: var(--radius-m); padding: var(--sp-4); background: var(--bg-card);
}
.download-info{ display: flex; gap: var(--sp-3); align-items: center; }
.download-icon{ flex: none; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--accent-tint); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.download-info h3{ font-size: var(--step-0); }
.download-info p{ font-size: .82rem; color: var(--ink-45); }

/* ---------- Legal pages ---------- */
.prose{ max-width: 42rem; }
.prose h2{ font-size: var(--step-2); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h2:first-child{ margin-top: 0; }
.prose p{ margin-bottom: var(--sp-3); color: var(--ink-soft); }
.prose ul{ margin-bottom: var(--sp-3); display: flex; flex-direction: column; gap: .5rem; padding-left: 1.2rem; list-style: disc; color: var(--ink-soft); }
.prose li{ font-size: var(--step-0); }

/* ---------- Utility ---------- */
.stack-3{ display: flex; flex-direction: column; gap: var(--sp-3); }
.stack-4{ display: flex; flex-direction: column; gap: var(--sp-4); }
.mt-6{ margin-top: var(--sp-6); }
.center-text{ text-align: center; }
.max-prose{ max-width: 40rem; }
