/*
Theme Name: Asprin
Theme URI: https://asprin.sg
Author: Asprin Pte Ltd
Description: Block theme for Asprin — Singapore work passes, incorporation, and corporate secretarial.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: asprin
*/

/* =========================================================
   Asprin — Theme Stylesheet
   Tokens, components and patterns from the v2 mockups.
   Manrope (display) + Inter (body). Brand blue #0056D2.
   ========================================================= */

:root[data-theme="light"], :root {
  --bg: #FAFAF7;
  --surface: #ECEAE4;
  --surface-alt: #D4DCD0;
  --ink: #1A1A1A;
  --ink-2: #2A2A28;
  --muted: #4A4A48;
  --border: #D9D6CE;
  --rule: #D9D6CE;
  --primary: #0056D2;
  --primary-hover: #003F9C;
  --primary-tint: #7DA8EA;
  --primary-ink: #FAFAF7;
  --link: #0056D2;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, .04), 0 1px 1px rgba(26, 26, 26, .03);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, .06), 0 2px 6px rgba(26, 26, 26, .04);
  --shadow-btn: 0 1px 0 rgba(26, 26, 26, .06), 0 4px 12px rgba(0, 86, 210, .18);
  --shadow-btn-hover: 0 1px 0 rgba(26, 26, 26, .08), 0 8px 20px rgba(0, 86, 210, .28);
  --dot-color: rgba(26, 26, 26, .12);
  --header-border: rgba(0, 86, 210, .18);
  --content-size: 800px;
  --wide-size: 1280px;
}

:root[data-theme="dark"] {
  --bg: #1F1D1A;
  --surface: #2A2823;
  --surface-alt: #3A4239;
  --ink: #F2EFE8;
  --ink-2: #E2DED4;
  --muted: #B5B0A4;
  --border: #3A3833;
  --rule: #3A3833;
  --primary: #0056D2;
  --primary-hover: #1F6FE0;
  --primary-tint: #7DA8EA;
  --primary-ink: #F2EFE8;
  --link: #7DA8EA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-btn: 0 1px 0 rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 86, 210, .25);
  --shadow-btn-hover: 0 1px 0 rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 86, 210, .40);
  --dot-color: rgba(242, 239, 232, .10);
  --header-border: rgba(125, 168, 234, .32);
}

/* ----- Reset ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

/* Footer reset */
.wp-site-blocks > footer { margin-block-start: 0; }

/* Content widths (custom utilities used in patterns) */
.wide-width { max-width: var(--wide-size); margin: 0 auto; padding: 0 clamp(20px, 4vw, 36px); }
.content-width { max-width: var(--content-size); margin: 0 auto; padding: 0 clamp(20px, 4vw, 36px); }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
}
h1, .wp-block-heading.is-style-h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
h6 { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
p { text-wrap: pretty; }

a.inline, .wp-block-paragraph a.inline {
  color: var(--link); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-thickness .2s ease;
}
a.inline:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
[data-theme="dark"] a.inline:hover { color: #A4C2F0; }

/* ----- Eyebrow ----- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
  position: relative; padding-bottom: 10px;
  display: inline-block;
}
[data-theme="dark"] .eyebrow { color: var(--link); }
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 2px; background: var(--primary);
}
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head p, .section-head p.sub { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--muted); max-width: 60ch; margin: 6px 0 0; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--header-border);
  transition: border-color .25s ease, background .25s ease;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(20px, 4vw, 36px);
  max-width: var(--wide-size); margin: 0 auto;
  min-height: 80px;
}
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; }
.site-header .brand img, .site-header .logo, .site-header .wp-block-image img { height: 52px; width: auto; display: block; max-width: none; }
.site-header .nav { display: flex; align-items: center; gap: 24px; }
.site-header .nav a, .site-header nav a, .site-header .wp-block-navigation a, .site-header .wp-block-navigation-item__content {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none; letter-spacing: .01em;
  transition: color .2s ease; position: relative; padding: 4px 0;
}
.site-header .nav a:hover, .site-header .wp-block-navigation a:hover { color: var(--primary); }
[data-theme="dark"] .site-header .nav a:hover, [data-theme="dark"] .site-header .wp-block-navigation a:hover { color: var(--link); }
.site-header .nav a.active, .site-header .current-menu-item a { color: var(--primary); }
[data-theme="dark"] .site-header .nav a.active, [data-theme="dark"] .site-header .current-menu-item a { color: var(--link); }
.site-header .nav a.active::after, .site-header .current-menu-item a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--primary);
}
[data-theme="dark"] .site-header .nav a.active::after, [data-theme="dark"] .site-header .current-menu-item a::after { background: var(--link); }
.site-header .header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 3px 0; }

/* Theme toggle */
.theme-toggle {
  appearance: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 14px; height: 14px; display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

/* ----- Buttons (custom) ----- */
.btn-row, .wp-block-buttons.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.btn, a.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14.5px;
  letter-spacing: .005em;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn-primary, a.btn-primary, button.btn-primary {
  background: var(--primary); color: var(--primary-ink);
  border-color: var(--primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); color: var(--primary-ink); }
.btn-primary .arrow { display: inline-block; transition: transform .18s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-secondary, a.btn-secondary {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); transform: translateY(-1px); color: var(--primary); }
[data-theme="dark"] .btn-secondary { color: var(--link); border-color: var(--link); }
[data-theme="dark"] .btn-secondary:hover { background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); }
.btn-text, a.btn-text {
  background: transparent; border: none; color: var(--ink); padding: 8px 0;
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s ease, color .2s ease; text-decoration: none;
}
.btn-text .arrow { display: inline-block; transition: transform .2s ease; }
.btn-text:hover { color: var(--primary); gap: 14px; }
.btn-text:hover .arrow { transform: translateX(2px); }
[data-theme="dark"] .btn-text:hover { color: var(--link); }
.btn-sm, a.btn-sm { padding: 9px 14px; font-size: 13px; }

/* WordPress button blocks aliasing */
.wp-block-button.is-style-btn-primary > a, .wp-block-button.is-style-btn-primary .wp-block-button__link {
  background: var(--primary); color: var(--primary-ink); border: 1.5px solid var(--primary); border-radius: 7px;
  padding: 12px 20px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-btn);
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wp-block-button.is-style-btn-primary > a:hover, .wp-block-button.is-style-btn-primary .wp-block-button__link:hover {
  background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-btn-hover);
}
.wp-block-button.is-style-btn-secondary > a, .wp-block-button.is-style-btn-secondary .wp-block-button__link {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 7px;
  padding: 12px 20px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14.5px;
}
.wp-block-button.is-style-btn-secondary > a:hover, .wp-block-button.is-style-btn-secondary .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent); transform: translateY(-1px);
}

/* ----- Doc frame ----- */
.doc-frame {
  position: relative;
  padding: 40px clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.doc-frame::before, .doc-frame::after,
.doc-frame > .corners::before, .doc-frame > .corners::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--primary); border-style: solid; border-width: 0;
  pointer-events: none;
}
.doc-frame::before { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.doc-frame::after { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.doc-frame > .corners::before { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.doc-frame > .corners::after { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.doc-frame .grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .55; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.doc-frame > .content { position: relative; z-index: 1; }

/* ----- Section + Hero ----- */
.page-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.hero { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.hero .inner { max-width: 880px; }
.hero h1 .em { color: var(--primary); font-weight: 800; }
[data-theme="dark"] .hero h1 .em { color: var(--primary-tint); }
.hero h1 .thin-rule { display: inline-block; width: 56px; height: 3px; background: var(--primary); vertical-align: middle; margin: 0 14px 8px 0; border-radius: 1px; }
.hero .lede, .hero p.lede {
  font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7;
  color: var(--ink-2); margin: 22px 0 24px; max-width: 56ch;
}
.hero .lede + .lede { margin-top: 0; margin-bottom: 12px; }
.hero p.sub { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin: 22px 0 0; max-width: 60ch; }

/* ----- Checklist (compliance/application) ----- */
.checklist { display: grid; gap: 12px; }
.checklist .head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.checklist .head .label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.checklist .head .ref { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--primary); }
[data-theme="dark"] .checklist .head .ref { color: var(--link); }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px; color: var(--ink-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .box { width: 16px; height: 16px; border: 1.5px solid var(--primary); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 8%, transparent); }
.checklist .box::after { content: ""; width: 8px; height: 4px;
  border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg) translate(1px, -1px); }
.checklist .meta { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.checklist .foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; letter-spacing: .04em; }

/* ----- Services overview (homepage 3 cards, no Get-package) ----- */
.services-overview { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.service-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 30px 28px; display: grid; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.service-card .ref {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11.5px;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 4px; background: color-mix(in srgb, var(--primary) 6%, transparent); justify-self: start;
}
[data-theme="dark"] .service-card .ref { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.service-card h3 { font-size: 22px; }
.service-card .summary, .service-card p.summary { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.service-card ul.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
  border-top: 1px solid var(--rule); padding-top: 14px; }
.service-card ul.pts li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.5; }
.service-card ul.pts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 1.5px; background: var(--primary); }
.service-card .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }

/* ----- Why / stats ----- */
.why { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.stat { border-left: 2px solid var(--primary); padding: 6px 0 6px 18px; }
.stat .num { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: clamp(32px, 3.6vw, 44px);
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.05; }
.stat .num small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.stat .label { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ----- Quotes / testimonials ----- */
.quotes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.quote { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 28px 26px; max-width: 720px; }
.quote .mark { font-family: 'Manrope', sans-serif; font-size: 48px; line-height: .6;
  color: var(--primary); font-weight: 800; display: block; margin-bottom: 4px; height: 22px; }
[data-theme="dark"] .quote .mark { color: var(--link); }
.quote p { font-size: 16.5px; color: var(--ink); margin: 0 0 18px; line-height: 1.6; }
.quote .who { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--rule); }
.quote .who strong { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.quote .who span { font-size: 13px; color: var(--muted); }

/* ----- AISEO Q&A ----- */
.qa-list { display: grid; gap: 20px; }
.qa-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 26px; transition: border-color .2s ease; }
.qa-item:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.qa-item h3 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.qa-item p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.65; }
.qa-item p strong { color: var(--ink); font-weight: 600; }

/* ----- FAQ accordion ----- */
.faq-list { display: grid; gap: 8px; max-width: 880px; }
.faq-item, details.faq-item {
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  transition: border-color .2s ease; overflow: hidden;
}
.faq-item:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 22px; height: 22px; position: relative; flex: 0 0 auto; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--primary); transition: transform .25s ease, opacity .25s ease;
}
.faq-item summary .plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-item summary .plus::after { top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item[open] summary .plus::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
[data-theme="dark"] .faq-item summary .plus::before, [data-theme="dark"] .faq-item summary .plus::after { background: var(--link); }
.faq-item .body { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.65; border-top: 1px solid var(--rule); padding-top: 16px; }
.faq-group { margin-top: 28px; }
.faq-group:first-child { margin-top: 0; }
.faq-group h3 { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--primary); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
[data-theme="dark"] .faq-group h3 { color: var(--link); }

/* ----- CTA strip ----- */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .4; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.cta-strip .inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.cta-strip h2 { margin: 0 0 8px; }
.cta-strip p { color: var(--muted); margin: 0; max-width: 56ch; }
.cta-strip .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ----- Footer ----- */
.site-foot { padding: 56px 0 32px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.foot-grid .col h6 { margin-bottom: 14px; }
.foot-grid .col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid .col a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
.foot-grid .col a:hover { color: var(--primary); }
[data-theme="dark"] .foot-grid .col a:hover { color: var(--link); }
.foot-grid .brand p { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.6; max-width: 34ch; }
.foot-grid .brand .brand-row { display: flex; align-items: center; gap: 10px; }
.foot-grid .brand .icon, .foot-grid .brand img.icon { height: 28px; width: 28px; display: block; }
.foot-grid .brand .wordmark { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.foot-grid .brand address { font-style: normal; font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); gap: 16px; flex-wrap: wrap; }
.foot-bottom .brand-color { color: var(--primary); }
[data-theme="dark"] .foot-bottom .brand-color { color: var(--link); }

/* ----- Pass detail frames (work-passes page) ----- */
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pass-frame {
  position: relative; padding: 28px 28px 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pass-frame::before, .pass-frame::after,
.pass-frame > .corners::before, .pass-frame > .corners::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--primary);
  border-style: solid; border-width: 0; pointer-events: none;
}
.pass-frame::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.pass-frame::after { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.pass-frame > .corners::before { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.pass-frame > .corners::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.pass-frame:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.pass-frame .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pass-frame .ref-tag {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11.5px;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
[data-theme="dark"] .pass-frame .ref-tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.pass-frame .pill {
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding: 4px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
}
.pass-frame h3 { margin: 0 0 6px; font-size: 22px; }
.pass-frame .summary, .pass-frame p.summary { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.6; }
.pass-frame h6 { margin: 16px 0 8px; }
.pass-frame ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px;
  border-top: 1px solid var(--rule); padding-top: 12px; }
.pass-frame ul li { font-size: 14px; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.55; }
.pass-frame ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: 12px; height: 1.5px; background: var(--primary); }

/* ----- 2026 Updates callout ----- */
.updates-callout {
  position: relative; padding: 32px clamp(22px, 4vw, 40px); background: var(--surface-alt);
  border: 1.5px solid var(--primary); border-radius: 10px; overflow: hidden;
}
[data-theme="dark"] .updates-callout { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); border-color: var(--link); }
.updates-callout .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
[data-theme="dark"] .updates-callout .label { color: var(--link); }
.updates-callout .label::before { content: ""; width: 24px; height: 1.5px; background: var(--primary); }
[data-theme="dark"] .updates-callout .label::before { background: var(--link); }
.updates-callout h3 { margin-bottom: 12px; }
.updates-callout ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.updates-callout ul li { font-size: 15px; color: var(--ink-2); padding-left: 24px; position: relative; line-height: 1.6; }
.updates-callout ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 14px; height: 1.5px; background: var(--primary); }
[data-theme="dark"] .updates-callout ul li::before { background: var(--link); }
.updates-callout strong { color: var(--ink); font-weight: 600; }

/* ----- Scenarios ----- */
.scenarios-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.scenario {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; display: grid; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.scenario:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.scenario .tag {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent); justify-self: start;
}
[data-theme="dark"] .scenario .tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.scenario h4 { font-size: 17px; }
.scenario p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ----- Process steps (4-up) ----- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative; padding: 26px 22px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step::before, .step::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border-color: var(--primary); border-style: solid; border-width: 0; pointer-events: none;
}
.step::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.step::after { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 36px;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
[data-theme="dark"] .step .num { color: var(--primary-tint); }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ----- Package cards (dual CTA) ----- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pkg-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 26px 26px; display: grid; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.pkg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.pkg-card.recommended { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: var(--shadow-md); }
.pkg-card.recommended::after {
  content: "Recommended"; position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-ink); background: var(--primary); padding: 4px 8px; border-radius: 999px;
  font-family: 'Inter', sans-serif;
}
.pkg-card .tag {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11.5px;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent); justify-self: start;
}
[data-theme="dark"] .pkg-card .tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.pkg-card h3 { font-size: 22px; }
.pkg-card .price {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 30px;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.pkg-card .price .unit {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-left: 6px;
}
.pkg-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px;
  border-top: 1px solid var(--rule); padding-top: 16px; }
.pkg-card li { font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.55; }
.pkg-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 1.5px; background: var(--primary); }
.pkg-card .card-cta { margin-top: 6px; display: grid; gap: 10px; }
.pkg-card .card-cta .btn, .pkg-card .card-cta a.btn { width: 100%; justify-content: center; }

/* ----- Receipt / quote sidebar ----- */
.receipt { display: grid; gap: 12px; }
.receipt .head { display: flex; justify-content: space-between; padding-bottom: 12px;
  border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.receipt .head .label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.receipt .head .ref { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--primary); }
[data-theme="dark"] .receipt .head .ref { color: var(--link); }
.receipt .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed var(--rule); font-size: 14.5px; color: var(--ink-2); }
.receipt .row:last-child { border-bottom: 0; }
.receipt .row .price { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--ink); }
.receipt .total { display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding-top: 12px; border-top: 1.5px solid var(--primary); margin-top: 4px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.receipt .total .label { font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); align-self: center; }

/* ----- Filing calendar (corp sec hero) ----- */
.filing-card { display: grid; gap: 12px; }
.filing-card .head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.filing-card .head .label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.filing-card .head .ref { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--primary); }
[data-theme="dark"] .filing-card .head .ref { color: var(--link); }
.filing-card .row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; color: var(--ink-2); }
.filing-card .row:last-child { border-bottom: 0; }
.filing-card .row .month { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .filing-card .row .month { color: var(--link); }
.filing-card .row .task { color: var(--ink); font-weight: 500; font-size: 14px; }
.filing-card .row .task small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.filing-card .row .ref-tag {
  font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--primary);
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
[data-theme="dark"] .filing-card .row .ref-tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }

/* ----- Compare table ----- */
.compare-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; }
.compare thead { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.compare th { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: left; padding: 14px 20px; border-bottom: 1.5px solid var(--primary); letter-spacing: -0.005em; }
.compare th:not(:first-child) { text-align: center; }
[data-theme="dark"] .compare th { border-bottom-color: var(--link); }
.compare td { padding: 12px 20px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.compare td:first-child { font-weight: 500; color: var(--ink); }
.compare td:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare tr:hover { background: color-mix(in srgb, var(--primary) 3%, transparent); }
.compare .tick { display: inline-block; width: 16px; height: 16px; position: relative; }
.compare .tick::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 9px; height: 5px;
  border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(-45deg);
}
[data-theme="dark"] .compare .tick::after { border-color: var(--link); }
.compare .dash { display: inline-block; width: 14px; height: 1.5px; background: var(--muted); opacity: .6; vertical-align: middle; }

/* ----- Timeline (incorporation) ----- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tl-step {
  position: relative; padding: 28px 22px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tl-step::before, .tl-step::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--primary);
  border-style: solid; border-width: 0; pointer-events: none;
}
.tl-step::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tl-step::after { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tl-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tl-step .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
[data-theme="dark"] .tl-step .num { color: var(--primary-tint); }
.tl-step .day { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.tl-step h4 { font-size: 17px; margin-bottom: 6px; }
.tl-step p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ----- Add-ons (incorporation) ----- */
.addons-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.addon {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 24px; display: grid; gap: 8px; grid-template-rows: 1fr auto;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.addon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.addon h4 { font-size: 17px; margin: 0; }
.addon p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.55; }
.addon .price { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.012em; }
.addon .price small { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-left: 6px; }

/* ----- Promises (corp sec) ----- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.promise h4 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.promise p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ----- Glossary ----- */
.glossary { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 30px clamp(22px, 4vw, 38px); }
.glossary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin: 0; }
.glossary dt { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink);
  letter-spacing: -0.005em; padding-bottom: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.glossary dt .ab { color: var(--primary); font-weight: 700; margin-right: 6px; }
[data-theme="dark"] .glossary dt .ab { color: var(--link); }
.glossary dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ----- Cross-links ----- */
.crosslinks { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px clamp(22px, 4vw, 36px); }
.crosslinks h3 { margin-bottom: 8px; }
.crosslinks p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.crosslinks .links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- About: Differentiators ----- */
.diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.diff-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px 26px; display: grid; gap: 12px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.diff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.diff-card .label { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .diff-card .label { color: var(--link); }
.diff-card h3 { font-size: 19px; }
.diff-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ----- Team ----- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.team-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px 24px; display: grid; gap: 8px; text-align: left; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.team-card .avatar {
  width: 60px; height: 60px; background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: 1.5px solid var(--primary); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
[data-theme="dark"] .team-card .avatar { color: var(--link); border-color: var(--link); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.team-card h4 { font-size: 18px; margin-top: 4px; }
.team-card .role { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.team-card .bio { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.6; }

/* ----- Credentials ----- */
.credentials-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cred {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px;
  display: grid; gap: 6px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cred:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.cred .label { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .cred .label { color: var(--link); }
.cred .name { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.cred .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ----- Values ----- */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.value {
  padding: 26px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  display: grid; gap: 12px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.value h3 { font-size: 20px; }
.value p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ----- Story (about) ----- */
.story { max-width: 780px; }
.story p { font-size: 17px; color: var(--ink-2); line-height: 1.75; margin: 0 0 22px; }
.story p strong { color: var(--ink); font-weight: 600; }

/* ----- Contact form ----- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 32px clamp(24px, 4vw, 40px); }
.contact-form h2 { font-size: 26px; }
.contact-form .intro { color: var(--ink-2); margin: 8px 0 22px; font-size: 15px; line-height: 1.6; max-width: 56ch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.form-row { display: grid; gap: 6px; }
.form-row.full { grid-column: span 2; }
.contact-form label { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.contact-form label .req { color: var(--primary); margin-left: 2px; }
[data-theme="dark"] .contact-form label .req { color: var(--link); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  padding: 11px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
  background: var(--bg);
}
[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.form-submit { margin-top: 22px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.form-meta { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ----- Info card ----- */
.info-card { display: grid; gap: 16px; }
.info-card .head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.info-card .head .label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info-card .head .ref { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--primary); }
[data-theme="dark"] .info-card .head .ref { color: var(--link); }
.info-row { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .k { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.info-row .v, .info-row .v-line { font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.info-row a.v { color: var(--link); transition: color .2s ease; }
.info-row a.v:hover { color: var(--primary-hover); }
[data-theme="dark"] .info-row a.v:hover { color: #A4C2F0; }
.whatsapp-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--primary); text-decoration: none; padding: 8px 0 0;
  transition: gap .2s ease, color .2s ease;
}
[data-theme="dark"] .whatsapp-link { color: var(--link); }
.whatsapp-link:hover { gap: 12px; color: var(--primary-hover); }

/* ----- SLA cards ----- */
.sla-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sla-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px 22px; display: grid; gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sla-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.sla-card .label { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .sla-card .label { color: var(--link); }
.sla-card .num { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; }
.sla-card .num small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: 4px; }
.sla-card p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.55; }

/* ----- Hours card ----- */
.hours-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 28px clamp(22px, 4vw, 32px); }
.hours-card h3 { margin-bottom: 14px; }
.hours-table { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; column-gap: 16px; font-size: 14.5px; align-items: baseline; }
.hours-table .day { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.hours-table .time { color: var(--ink-2); }
.hours-card .note { margin-top: 18px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--rule); line-height: 1.55; }

/* ----- Scope cards ----- */
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.scope-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px 24px; display: grid; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.scope-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.scope-card .tag {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent); justify-self: start;
}
[data-theme="dark"] .scope-card .tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.scope-card h3 { font-size: 18px; }
.scope-card ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.scope-card li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.5; }
.scope-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 10px; height: 1.5px; background: var(--primary); }
.scope-card .out { font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--rule); margin-top: 8px; }
.scope-card .out strong { color: var(--ink); font-weight: 600; }

/* ----- Next steps cards (contact) ----- */
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.next-step {
  position: relative; padding: 26px 22px 22px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.next-step::before, .next-step::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border-color: var(--primary); border-style: solid; border-width: 0; pointer-events: none;
}
.next-step::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.next-step::after { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.next-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.next-step .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 36px;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
[data-theme="dark"] .next-step .num { color: var(--primary-tint); }
.next-step h4 { font-size: 17px; margin-bottom: 6px; }
.next-step p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.55; }
.next-step .sla {
  display: inline-block; font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
[data-theme="dark"] .next-step .sla { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }

/* ----- Map placeholder ----- */
.map-frame {
  position: relative; height: 320px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-frame::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px);
  background-size: 18px 18px; opacity: .35; }
.map-overlay { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.map-overlay .addr { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -0.005em; line-height: 1.4; }
.map-overlay .addr small { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.map-overlay .ref-tag {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
[data-theme="dark"] .map-overlay .ref-tag { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.pin { position: absolute; top: 38%; left: 47%; width: 14px; height: 14px; }
.pin-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.pin-pulse {
  position: absolute; top: -5px; left: -5px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--primary); opacity: .25;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .35 } 100% { transform: scale(2.4); opacity: 0 } }

/* ----- Resources index ----- */
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: end; }
.featured-meta { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.featured-meta strong { color: var(--primary); font-weight: 700; margin-right: 8px; letter-spacing: .04em; }
[data-theme="dark"] .featured-meta strong { color: var(--link); }
.featured h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.featured .excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 18px; max-width: 56ch; }
.featured .read-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 600;
  color: var(--primary); text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
[data-theme="dark"] .featured .read-link { color: var(--link); }
.featured .read-link:hover { gap: 14px; }
.featured-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.featured-side .pill {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
}
.featured-side .pill.brand { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }

.category-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 22px;
  display: grid; gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
}
.cat-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.cat-block .ref { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 11px; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--primary) 6%, transparent); justify-self: start; }
[data-theme="dark"] .cat-block .ref { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.cat-block h3 { font-size: 17px; color: var(--ink); }
.cat-block p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.cat-block .count { font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--rule); margin-top: 4px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink-2); text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .chip:hover { color: var(--link); border-color: var(--link); }
.chip.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.article-thumb {
  height: 140px; background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-bottom: 1px solid var(--border); position: relative;
  display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.article-thumb .thumb-mark { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 38px; color: var(--primary); letter-spacing: -0.02em; opacity: .9; }
[data-theme="dark"] .article-thumb .thumb-mark { color: var(--primary-tint); }
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-body-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.article-meta .cat { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
[data-theme="dark"] .article-meta .cat { color: var(--link); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.article-card h3 { font-size: 19px; color: var(--ink); }
.article-card .excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.article-card .read-time { margin-top: auto; padding-top: 8px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.newsletter { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.newsletter p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.6; max-width: 56ch; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; font-family: 'Inter', sans-serif; font-size: 14.5px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }

/* ----- Single post ----- */
.crumbs { padding: 20px 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--primary); }
[data-theme="dark"] .crumbs a:hover { color: var(--link); }
.crumbs .sep { color: var(--muted); }
.crumbs .current { color: var(--ink); font-weight: 500; }

.article-head { max-width: 880px; margin: 0 auto; padding: 24px 0 28px; }
.cat-pill {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  display: inline-block; margin-bottom: 14px;
}
[data-theme="dark"] .cat-pill { color: var(--link); background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.article-head h1 { margin-bottom: 16px; }
.byline { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.hero-panel {
  position: relative; height: 280px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface-alt)) 0%, var(--surface-alt) 100%);
  margin: 0 auto 36px; max-width: 1080px;
}
.hero-panel::before, .hero-panel::after,
.hero-panel > .corners::before, .hero-panel > .corners::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--primary); border-style: solid; border-width: 0; pointer-events: none;
}
.hero-panel::before { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.hero-panel::after { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.hero-panel > .corners::before { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hero-panel > .corners::after { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hero-panel .grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .55;
}
.hero-panel .glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(60px, 8vw, 108px);
  color: var(--primary); letter-spacing: -0.04em; opacity: .85; z-index: 1;
}
[data-theme="dark"] .hero-panel .glyph { color: var(--primary-tint); }
.hero-panel .stamp {
  position: absolute; bottom: 22px; right: 22px;
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid var(--primary); border-radius: 999px; background: var(--bg); z-index: 2;
}
[data-theme="dark"] .hero-panel .stamp { color: var(--link); border-color: var(--link); }

.post-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 32px 0 64px; }
.post-article-body { font-size: 17px; line-height: 1.75; color: var(--ink); max-width: 720px; }
.post-article-body p { margin: 0 0 22px; color: var(--ink-2); }
.post-article-body p:first-of-type { font-size: 19px; line-height: 1.65; color: var(--ink); font-weight: 500; }
.post-article-body h2 { font-size: 24px; margin: 40px 0 14px; }
.post-article-body h3 { font-size: 19px; margin: 28px 0 10px; }
.post-article-body ol, .post-article-body ul { padding-left: 22px; margin: 0 0 24px; }
.post-article-body li { margin-bottom: 8px; color: var(--ink-2); line-height: 1.65; }
.post-article-body em { font-style: italic; color: var(--ink); }

.takeaways {
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  border: 1.5px solid var(--primary); border-radius: 10px;
  padding: 26px clamp(22px, 3vw, 32px); margin-bottom: 32px; position: relative;
}
[data-theme="dark"] .takeaways { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); border-color: var(--link); }
.takeaways h6 { color: var(--primary); margin-bottom: 12px; }
[data-theme="dark"] .takeaways h6 { color: var(--link); }
.takeaways h2 { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { font-size: 15px; color: var(--ink); padding-left: 26px; position: relative; line-height: 1.6; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 1.5px; background: var(--primary); }
[data-theme="dark"] .takeaways li::before { background: var(--link); }
.takeaways li strong { font-weight: 600; }

.callout {
  position: relative; padding: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; margin: 28px 0; overflow: hidden;
}
.callout::before, .callout::after,
.callout > .corners::before, .callout > .corners::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border-color: var(--primary); border-style: solid; border-width: 0; pointer-events: none;
}
.callout::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.callout::after { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.callout > .corners::before { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.callout > .corners::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.callout .label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
[data-theme="dark"] .callout .label { color: var(--link); }
.callout h4 { margin-bottom: 14px; font-size: 18px; }
.callout table { width: 100%; border-collapse: collapse; font-size: 14px; }
.callout thead { background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
.callout th, .callout td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
.callout th { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--ink); font-size: 12.5px; letter-spacing: -0.005em; }
.callout td { color: var(--ink-2); }
.callout tr:last-child td { border-bottom: 0; }
.callout td:first-child { font-weight: 500; color: var(--ink); }

.references {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px clamp(22px, 3vw, 30px); margin: 32px 0;
}
.references h2 { margin-top: 0 !important; font-size: 20px; margin-bottom: 14px; }
.references ol { padding-left: 22px; margin: 0; }
.references li { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; }
.references li a { color: var(--link); }

.article-side, .post-article-side {
  display: grid; gap: 22px;
  position: sticky; top: 100px; align-self: start;
}
.side-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.side-card h6 { margin-bottom: 12px; color: var(--muted); }
.side-card.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.side-card.toc a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none; line-height: 1.5;
  padding: 6px 0; border-bottom: 1px dashed var(--rule); display: block;
  transition: color .2s ease, padding-left .2s ease;
}
.side-card.toc li:last-child a { border-bottom: 0; }
.side-card.toc a:hover { color: var(--primary); padding-left: 4px; }
[data-theme="dark"] .side-card.toc a:hover { color: var(--link); }
.related-mini { display: grid; gap: 12px; }
.related-mini a { text-decoration: none; padding: 10px 0; border-top: 1px dashed var(--rule); display: block; transition: padding-left .2s ease; }
.related-mini a:first-child { border-top: 0; padding-top: 0; }
.related-mini a:hover { padding-left: 4px; }
.related-mini .cat { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600; color: var(--primary); letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .related-mini .cat { color: var(--link); }
.related-mini h5 { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.35; }

.side-cta {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 10px; padding: 22px;
}
[data-theme="dark"] .side-cta { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); border-color: color-mix(in srgb, var(--link) 40%, transparent); }
.side-cta h5 { font-size: 15px; margin-bottom: 6px; }
.side-cta p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; }

.related-row { padding: clamp(3rem, 6vw, 4rem) 0; }
.article-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ----- Heading scale (design patterns) ----- */
.heading-stack { display: grid; gap: 16px; }
.heading-stack .row { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: baseline; }
.heading-stack .row .tag {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 6px;
}

/* ----- Reveal / scroll-triggered ----- */
.reveal, .animate-on-scroll {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible, .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .30s; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .animate-on-scroll { opacity: 1 !important; transform: none !important; }
  .pin-pulse { animation: none !important; }
}

/* ----- Editor visibility ----- */
.editor-styles-wrapper .reveal,
.editor-styles-wrapper .animate-on-scroll {
  opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .services-overview { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .cta-strip .inner { grid-template-columns: 1fr; }
  .cta-strip .actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pass-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .glossary dl { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .addons-grid { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; gap: 18px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .credentials-row { grid-template-columns: 1fr 1fr; }
  .values-grid, .diff-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .sla-grid { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row.full { grid-column: span 1; }
  .featured { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; align-items: flex-start; }
  .category-blocks { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .post-article-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-article-side, .article-side { position: static; }
  .hero-panel { height: 220px; }
  .article-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-header .brand img, .site-header .logo { height: 42px; }
  .site-header .inner { min-height: 68px; }
}
@media (max-width: 720px) {
  .site-header .nav { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 18px clamp(20px, 4vw, 36px);
  }
  .site-header.menu-open .nav a.active::after { display: none; }
  .services-overview { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-header .inner { padding: 12px clamp(16px, 4vw, 24px); }
  .scenarios-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 10px 12px; font-size: 13px; }
  .timeline { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .credentials-row { grid-template-columns: 1fr; }
  .hours-table { grid-template-columns: 1fr; gap: 4px; }
  .hours-table .day { margin-top: 8px; }
  .map-frame { height: 240px; }
  .category-blocks { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .hero-panel { height: 180px; }
  .heading-stack .row { grid-template-columns: 1fr; gap: 4px; }
  .callout th, .callout td { padding: 7px 8px; font-size: 12.5px; }
}
@media (max-width: 380px) {
  .theme-toggle span:not(.dot) { display: none; }
  .theme-toggle { padding: 8px 10px; }
}

/* ----- Misc utility classes used in pages ----- */
.filter-heading { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
