/* Logitelia — design system v2 */

:root {
  /* Palette */
  --ink: #0A1226;
  --ink-2: #131D38;
  --ink-3: #1E2A4A;
  --cream: #F5EFE3;
  --cream-2: #EFE7D4;
  --paper: #FAF6EE;
  --white: #FFFFFF;

  --mint: #6FE3C2;
  --mint-2: #2BB48E;
  --mint-3: #0E8E6E;
  --mint-glow: rgba(111, 227, 194, 0.28);
  --mint-soft: rgba(111, 227, 194, 0.06);

  --violet: #8B7FE6;
  --violet-2: #6B5FD6;
  --violet-glow: rgba(139, 127, 230, 0.22);

  --coral: #FF7E5F;
  --rose: #E58E73;
  --gold: #C9A961;
  --mist: #DCE0E7;
  --line: rgba(11, 18, 38, 0.10);
  --line-strong: rgba(11, 18, 38, 0.22);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-strong: rgba(255, 255, 255, 0.18);

  --grad-hero: radial-gradient(60% 80% at 20% 10%, rgba(111, 227, 194, 0.18) 0%, transparent 60%),
               radial-gradient(50% 70% at 85% 90%, rgba(139, 127, 230, 0.16) 0%, transparent 60%),
               radial-gradient(40% 50% at 50% 50%, rgba(43, 180, 142, 0.08) 0%, transparent 70%),
               linear-gradient(180deg, #0A1226 0%, #131D38 100%);
  --grad-accent: linear-gradient(135deg, #6FE3C2 0%, #8B7FE6 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(111, 227, 194, 0.18) 0%, rgba(139, 127, 230, 0.18) 100%);
  --grad-cta: linear-gradient(135deg, #0A1226 0%, #1E2A4A 100%);
  --grad-mint: linear-gradient(135deg, #6FE3C2 0%, #2BB48E 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sizing */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 4px 16px -8px rgba(11, 18, 38, 0.18);
  --shadow: 0 18px 50px -22px rgba(11, 18, 38, 0.28);
  --shadow-lg: 0 32px 80px -28px rgba(11, 18, 38, 0.42);

  --container: 1280px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-feature-settings: "ss01", "ss02";
  /* Long Ukrainian/German compound words must wrap, not overflow the
     viewport. hyphens: auto works because the i18n engine sets <html lang>. */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-size: 1.05rem; }

.display {
  font-size: clamp(2.3rem, 7.5vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* On very narrow phones, hyphenation can still leave a long word tight —
   nudge the display heading down a touch more so it never clips. */
@media (max-width: 400px) {
  .display { font-size: clamp(2rem, 9vw, 2.6rem); }
}

p { margin: 0 0 1em; color: rgba(11, 18, 38, 0.72); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-2);
  margin-bottom: 22px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--mint-2);
}
.on-dark .eyebrow { color: var(--mint); }
.on-dark .eyebrow::before { background: var(--mint); }

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn--mint {
  background: var(--grad-mint);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 28px -10px var(--mint-glow);
}
.btn--mint:hover { box-shadow: 0 14px 36px -8px var(--mint-glow); }

.btn--light {
  background: var(--cream);
  color: var(--ink);
  border-color: transparent;
}
.btn--light:hover { background: var(--white); }

.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-dark-strong);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); }

/* ───────── Header ───────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.on-dark { color: var(--cream); }
.site-header.on-dark a { color: var(--cream); }
.site-header.on-dark .btn--ghost { color: var(--cream); border-color: var(--line-dark-strong); }
.site-header.on-dark .lang-switch__btn { color: var(--cream); border-color: var(--line-dark-strong); }

.site-header.is-scrolled {
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header.is-scrolled a { color: var(--ink); }
.site-header.is-scrolled .brand__dot { background: var(--mint-2); }
.site-header.is-scrolled .lang-switch__btn { color: var(--ink); border-color: var(--line-strong); }
.site-header.is-scrolled .btn--ghost { color: var(--ink); border-color: var(--line-strong); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

/* Replace the dot of each "i" with a mint accent.
   Markup uses dotless ı (U+0131) inside .brand__i and overlays a pseudo-element dot.
   Accessible name is preserved via aria-label="Logitelia" on the <a>. */
.brand__i {
  position: relative;
  display: inline-block;
}
.brand__i::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 50%;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--mint);
  transform: translateX(-50%);
}
.is-scrolled .brand__i::before,
:not(.on-dark) .brand__i::before { background: var(--mint-2); }

.brand--footer { font-size: 1.7rem; }
.brand--footer .brand__i::before { background: var(--mint); }

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.95rem;
}

.nav a { opacity: 0.78; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cloned drawer CTA — only visible on mobile (cloned by JS) */
.nav__cta { display: none; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(11, 18, 38, 0.08); }
.on-dark .nav-toggle {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.on-dark .nav-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.is-scrolled .nav-toggle,
:not(.on-dark) .nav-toggle { color: var(--ink); border-color: var(--line-strong); background: rgba(0, 0, 0, 0.02); }

.nav-toggle__icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.nav-toggle__icon .b1,
.nav-toggle__icon .b2,
.nav-toggle__icon .b3 {
  transition: transform .22s ease, opacity .15s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .b1 {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .b2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .b3 {
  transform: translateY(-6px) rotate(-45deg);
}

.lang-switch { position: relative; }

.lang-switch__btn {
  font: inherit;
  font-size: 0.88rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, border-color .15s ease;
}
.lang-switch__btn:hover { background: rgba(11, 18, 38, 0.05); }
.on-dark .lang-switch__btn:hover { background: rgba(255, 255, 255, 0.08); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}

.lang-switch.open .lang-switch__menu { display: block; }

.lang-switch__menu a,
.site-header.on-dark .lang-switch__menu a,
.site-header.is-scrolled .lang-switch__menu a {
  display: flex;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.lang-switch__menu a:hover,
.site-header.on-dark .lang-switch__menu a:hover,
.site-header.is-scrolled .lang-switch__menu a:hover { background: var(--cream); color: var(--ink); }
.lang-switch__menu a[aria-current="true"],
.site-header.on-dark .lang-switch__menu a[aria-current="true"],
.site-header.is-scrolled .lang-switch__menu a[aria-current="true"] { color: var(--mint-2); font-weight: 500; }

/* Header height spacer */
body { padding-top: 84px; }

/* ============================================================
   Contact page CRO: trust strip, testimonial, lead magnet
   ============================================================ */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px;
  margin: 0 0 36px 0;
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 16px;
  border-left: 1px solid var(--line);
}
.trust-strip__item:first-child { border-left: 0; padding-left: 4px; }
.trust-strip__num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.trust-strip__lab {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
@media (max-width: 880px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .trust-strip__item:nth-child(3) { border-left: 0; padding-left: 4px; }
}
@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip__item { border-left: 0; padding-left: 4px; }
}

/* ============================================================
   Pricing page
   ============================================================ */

.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pricing-toggle__btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle__btn.is-active {
  background: var(--ink);
  color: var(--cream);
}
.pricing-toggle__save {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--mint-2);
}
.pricing-toggle__btn.is-active .pricing-toggle__save { color: var(--mint-2); }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 880px) { .pricing-cards { grid-template-columns: 1fr; } }

.pricing-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.pricing-card--featured {
  border-color: var(--mint-2);
  border-width: 2px;
  box-shadow: 0 8px 30px rgba(76, 230, 168, 0.12);
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--mint-2);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.pricing-card__name {
  font-size: 1.3rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pricing-card__amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-card__per { color: var(--muted); font-size: 0.95rem; }
.pricing-card__annual-note {
  font-size: 0.82rem;
  color: var(--mint-2);
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', monospace;
}
.pricing-card__tagline {
  color: var(--muted);
  margin: 8px 0 20px;
  font-size: 0.98rem;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pricing-card__features li {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.4;
  padding-left: 24px;
  position: relative;
}
.pricing-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--mint-2);
  font-weight: 700;
}
.pricing-card__cta { width: 100%; justify-content: center; }

.pricing-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 32px;
  line-height: 1.6;
}
.pricing-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mint-2); }

.pricing-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
@media (max-width: 760px) { .pricing-includes { grid-template-columns: 1fr; } }
.pricing-includes > div { display: flex; flex-direction: column; gap: 4px; }
.pricing-includes strong { color: var(--ink); font-size: 1rem; }
.pricing-includes span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ============================================================
   Exit-intent popup
   ============================================================ */

.exit-pop { position: fixed; inset: 0; z-index: 1100; display: none; }
.exit-pop.is-open { display: block; }
body.exit-pop-open { overflow: hidden; }
.exit-pop__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 38, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: var(--exit-anim, exit-fade .2s ease-out);
}
@keyframes exit-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes exit-rise {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.exit-pop__panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--paper);
  border-radius: 20px;
  padding: 40px 38px 30px;
  box-shadow: 0 24px 80px rgba(10, 18, 38, 0.4);
  animation: var(--exit-anim, exit-rise .24s cubic-bezier(0.2, 0.8, 0.2, 1));
}
.exit-pop__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer;
  border-radius: 8px;
}
.exit-pop__close:hover { background: var(--cream); color: var(--ink); }
.exit-pop__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.exit-pop__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 12px;
}
.exit-pop__body {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
  font-size: 1rem;
}
.exit-pop__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.exit-pop__actions .btn { width: 100%; justify-content: center; }
.exit-pop__secondary {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  align-self: center;
}
.exit-pop__secondary:hover { color: var(--mint-2); }
.exit-pop__dismiss {
  display: block;
  margin: 18px auto 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exit-pop__dismiss:hover { color: var(--ink); }
@media (max-width: 480px) {
  .exit-pop__panel { padding: 32px 24px 24px; }
}

/* ============================================================
   Pricing calculator
   ============================================================ */

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 880px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px 0;
}
.calc-help { color: var(--muted); margin: 0 0 16px 0; line-height: 1.5; font-size: 0.95rem; }

.calc-teams { display: flex; flex-direction: column; gap: 10px; }
.calc-team {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.calc-team:hover { border-color: var(--ink); }
.calc-team input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mint-2);
  cursor: pointer;
}
.calc-team input[type="checkbox"]:checked + div strong { color: var(--mint-2); }
.calc-team:has(input:checked) {
  border-color: var(--mint-2);
  background: rgba(76, 230, 168, 0.06);
}
.calc-team div { display: flex; flex-direction: column; gap: 2px; }
.calc-team strong { color: var(--ink); font-weight: 500; font-size: 1rem; }
.calc-team span { color: var(--muted); font-size: 0.86rem; }
.calc-team__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}

.calc-current label { display: block; }
.calc-current span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-current input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.calc-current input:focus {
  outline: none;
  border-color: var(--mint-2);
}

.calc-result {
  position: sticky;
  top: 110px;
}
.calc-result__inner {
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 8px 30px rgba(10, 18, 38, 0.16);
}
.calc-result__tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.55);
  margin-bottom: 4px;
}
.calc-result__tier {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--mint-2);
  margin-bottom: 22px;
}
.calc-result__price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.14);
  margin-bottom: 20px;
}
.calc-result__label {
  font-size: 0.78rem;
  color: rgba(243, 238, 228, 0.55);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.calc-result__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  color: var(--cream);
}
.calc-result__price--sub {
  font-size: 1.15rem;
  color: rgba(243, 238, 228, 0.85);
}
.calc-result__compare {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.14);
  margin-bottom: 20px;
}
.calc-result__savings {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  margin: 4px 0 6px 0;
}
.calc-result__savings.is-positive { color: var(--mint-2); }
.calc-result__savings.is-negative { color: #f6c177; }
.calc-result__note { font-size: 0.85rem; color: rgba(243, 238, 228, 0.7); line-height: 1.5; }
.calc-result__teams-summary { margin-bottom: 22px; }
.calc-result__teams-summary ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-result__teams-summary li {
  font-size: 0.92rem;
  color: var(--cream);
  padding: 4px 0;
}
.calc-result__teams-summary li.calc-empty {
  color: rgba(243, 238, 228, 0.45);
  font-style: italic;
}
.calc-result__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.calc-result__pdf {
  color: rgba(243, 238, 228, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(243, 238, 228, 0.3);
  display: inline-block;
  padding-bottom: 2px;
  align-self: flex-start;
}
.calc-result__pdf:hover { color: var(--mint-2); border-bottom-color: var(--mint-2); }
.calc-result__fineprint small {
  color: rgba(243, 238, 228, 0.5);
  font-size: 0.78rem;
  line-height: 1.45;
}

.calc-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 880px) { .calc-tiers { grid-template-columns: 1fr; } }
.calc-tier {
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.calc-tier strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.calc-tier__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--mint-2);
  margin-bottom: 14px;
}
.calc-tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.calc-tier li { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.calc-tier li::before { content: "· "; color: var(--mint-2); }

.cal-embed-section { padding-top: 0; }
.cal-embed-intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.cal-embed-intro h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin: 8px 0 12px;
}
.cal-embed-intro p { color: var(--muted); font-size: 1.05rem; }
.cal-embed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 18, 38, 0.06);
}
.cal-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 780px;
}
@media (max-width: 880px) {
  .cal-embed iframe { min-height: 900px; }
}

.lead-magnet {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.lead-magnet:hover {
  background: #142048;
  transform: translateY(-1px);
}
.lead-magnet__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.lead-magnet__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lead-magnet__body strong {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.98rem;
}
.lead-magnet__body span {
  color: rgba(243, 238, 228, 0.7);
  font-size: 0.85rem;
}

/* ============================================================
   Solutions page: outcome-focused card grid
   ============================================================ */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

.solution-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.solution-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.solution-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.solution-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.solution-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}
.solution-card .link-arrow {
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .15s ease;
}
.solution-card .link-arrow:hover { color: var(--mint-2); }

/* ============================================================
   Partner recommendation callout (used in journal articles)
   ============================================================ */

.partner-rec {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--cream);
  border-left: 3px solid var(--mint-2);
  border-radius: 0 14px 14px 0;
}
.partner-rec strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.partner-rec p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}
.partner-rec a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--mint-2);
  text-decoration: none;
}
.partner-rec a:hover {
  color: var(--mint-2);
}

/* ============================================================
   Journal: Featured pillar buyer's guides
   ============================================================ */

.pillar-feature {
  margin-bottom: 56px;
  padding: 36px 36px 32px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.pillar-feature::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at top right, rgba(76, 230, 168, 0.18), transparent 70%);
  pointer-events: none;
}
.pillar-feature__eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-2);
  margin-bottom: 12px;
}
.pillar-feature__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cream);
  margin: 0 0 28px 0;
  max-width: 720px;
}
.pillar-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .pillar-feature { padding: 26px 22px; }
  .pillar-feature__grid { grid-template-columns: 1fr; }
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.pillar-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--mint-2);
  transform: translateY(-2px);
}
.pillar-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--mint-2);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.pillar-card__tag {
  font-size: 0.78rem;
  color: rgba(243, 238, 228, 0.55);
  margin-bottom: 6px;
}
.pillar-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--cream);
  margin: 0 0 8px 0;
}
.pillar-card p {
  margin: 0 0 14px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(243, 238, 228, 0.75);
}
.pillar-card__more {
  margin-top: auto;
  color: var(--mint-2);
  font-weight: 500;
  font-size: 0.92rem;
}

.pillar-feature__pdf {
  display: inline-block;
  margin-top: 22px;
  color: rgba(243, 238, 228, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(243, 238, 228, 0.3);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.pillar-feature__pdf:hover {
  color: var(--mint-2);
  border-bottom-color: var(--mint-2);
}

/* Footer sister-brand mention — single small line, not in any list */
.footer-sister a {
  color: rgba(243, 238, 228, 0.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(243, 238, 228, 0.25);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.footer-sister a:hover {
  color: var(--mint-2);
  border-bottom-color: var(--mint-2);
}

/* "Different angle" cross-brand callout in journal articles */
.different-angle {
  margin: 18px 0 28px 0;
  padding: 16px 20px;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.different-angle strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.different-angle p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.different-angle a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(76, 230, 168, 0.5);
  text-underline-offset: 3px;
}
.different-angle a:hover {
  text-decoration-color: var(--mint-2);
}

/* ============================================================
   Search: button + overlay/modal
   ============================================================ */

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  margin-right: 4px;
}
.search-btn:hover { background: var(--cream); }
.search-btn svg { width: 18px; height: 18px; }
.site-header.on-dark .search-btn { color: var(--cream); border-color: rgba(243, 238, 228, 0.25); }
.site-header.on-dark .search-btn:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 680px) {
  .search-btn { width: 36px; height: 36px; }
}

body.search-open { overflow: hidden; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.search-overlay.is-open { display: block; }
.search-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 38, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: search-fade .15s ease-out;
}
@keyframes search-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes search-pop { from { opacity: 0; transform: translate(-50%, -54%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.search-overlay__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 80px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(10, 18, 38, 0.35), 0 4px 16px rgba(10, 18, 38, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: search-pop .18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-overlay__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.search-overlay__icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.search-overlay__input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 1.05rem;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
}
.search-overlay__input::placeholder { color: var(--muted); }
.search-overlay__esc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background .12s ease;
  border: 1px solid transparent;
}
.search-result.is-selected { background: var(--cream); border-color: var(--line); }
.search-result__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.search-result__badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mint-2);
  background: rgba(76, 230, 168, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}
.search-result__url {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-result__title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2px;
}
.search-result__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result mark {
  background: rgba(76, 230, 168, 0.28);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.search-overlay__hint {
  padding: 18px 14px;
}
.search-overlay__hint strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.search-overlay__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-overlay__suggest button {
  font: inherit;
  font-size: 0.88rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.search-overlay__suggest button:hover {
  background: var(--cream);
  border-color: var(--ink);
}

.search-overlay__none {
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-overlay__footer {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.search-overlay__footer kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 4px;
}

@media (max-width: 680px) {
  .search-overlay__panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 32px);
    top: 16px;
    left: 8px;
    transform: none;
    animation: none;
  }
  .search-overlay__footer { font-size: 0.72rem; gap: 12px; }
}

/* ============================================================
   /team — founder + team grid
   ============================================================ */

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  margin-bottom: 8px;
}
.team-card__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 500;
}
.team-card__body h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.team-card__body p, .team-card__body ul {
  margin: 0 0 8px 0;
  color: var(--ink);
  line-height: 1.6;
}
.team-card__body ul {
  padding-left: 20px;
}
.team-card__body li { margin-bottom: 6px; }
@media (max-width: 680px) {
  .team-card { padding: 24px 22px; }
  .team-card__head { grid-template-columns: 1fr; }
  .team-card__avatar { width: 80px; height: 80px; font-size: 1.4rem; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-stub {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.team-stub h3 {
  margin: 10px 0 10px 0;
  font-size: 1.15rem;
}
.team-stub p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

/* ============================================================
   /press — facts table + quotes
   ============================================================ */

.press-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 14px 0 28px;
}
.press-facts > div {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.press-facts > div:nth-child(odd) { border-left: 0; }
.press-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.press-facts strong {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.press-facts span { color: var(--ink); }
@media (max-width: 680px) {
  .press-facts { grid-template-columns: 1fr; }
  .press-facts > div { border-left: 0; }
  .press-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

.press-quote {
  margin: 14px 0 28px;
  padding: 20px 22px;
  background: var(--cream);
  border-left: 3px solid var(--mint-2);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.press-quote-card {
  margin: 18px 0;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.press-quote-card blockquote {
  margin: 0 0 10px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.press-quote-card figcaption {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============================================================
   /glossary — definition list with anchor links
   ============================================================ */

.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 36px;
}
.glossary-index a {
  font-size: 0.85rem;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.glossary-index a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.glossary {
  margin: 0;
}
.glossary dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 8px;
  scroll-margin-top: 100px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.glossary dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.glossary dt::before {
  content: "→ ";
  color: var(--mint-2);
}
.glossary dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}
.glossary dd a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(76, 230, 168, 0.5);
  text-underline-offset: 3px;
}
.glossary dd a:hover { text-decoration-color: var(--mint-2); }

/* ============================================================
   Article enhancements: breadcrumbs, reading time, ToC
   ============================================================ */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 12px 0 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-meta__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.article-meta__crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.article-meta__crumbs a:hover { color: var(--ink); }
.article-meta__crumbs span.sep { color: rgba(0,0,0,0.2); }
.article-meta__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}

.article-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  font-size: 0.88rem;
}
.article-toc h4 {
  margin: 0 0 10px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin: 0; }
.article-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color .12s ease, border-left-color .12s ease;
}
.article-toc a:hover { color: var(--mint-2); }
.article-toc a.is-active {
  border-left-color: var(--mint-2);
  color: var(--mint-2);
}
@media (max-width: 980px) {
  .article-toc { display: none; }
}
body.no-header-spacer { padding-top: 0; }

/* ───────── Sections ───────── */

section { padding: 110px 0; position: relative; }
section.tight { padding: 72px 0; }

.section--dark {
  background: var(--ink);
  color: var(--cream);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(255, 255, 255, 0.7); }

.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head p { font-size: 1.12rem; max-width: 60ch; }

/* ───────── Hero ───────── */

.hero-shell {
  margin-top: -84px;
  padding-top: 168px;
  padding-bottom: 120px;
  background: var(--grad-hero);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Three.js canvas container — must have explicit dimensions or three.js
   bails (it checks clientWidth/Height >= 100 in hero-anim.js). Absolute
   positioning fills the hero-shell so the canvas renders behind content
   without contributing to layout (no CLS). */
#hero-canvas-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  min-height: 400px;
}

/* Three.js canvas background — sits behind everything else in the hero */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-canvas.is-ready { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none !important; }
}

/* Typed.js cursor + accent on the rotating word */
.hero-typed-wrap {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.hero-typed {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-typed__caret {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--mint);
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: -0.05em;
  animation: typed-blink 0.9s steps(1) infinite;
}
/* Hide Typed.js's own appended cursor — we draw our own */
.typed-cursor { display: none !important; }
@keyframes typed-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-typed__caret { animation: none; opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-grid h1 { color: var(--cream); }
.hero-grid p { color: rgba(255, 255, 255, 0.78); font-size: 1.18rem; max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-tagline {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hero-tagline__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-tagline__lab { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }

/* Hero visual: animated SVG orbits */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.orbit-ring {
  fill: none;
  stroke: rgba(111, 227, 194, 0.25);
  stroke-width: 1;
}

.orbit-pulse {
  fill: var(--mint);
  filter: drop-shadow(0 0 8px var(--mint-glow));
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-group {
  transform-origin: center;
  transform-box: fill-box;
}

.orbit-group--1 { animation: orbit-rotate 18s linear infinite; }
.orbit-group--2 { animation: orbit-rotate 28s linear infinite reverse; }
.orbit-group--3 { animation: orbit-rotate 42s linear infinite; }

.orbit-core {
  fill: var(--mint);
}

.orbit-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ───────── Logo marquee ───────── */

.marquee {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

.marquee__head {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(11, 18, 38, 0.5);
  margin-bottom: 24px;
  font-weight: 500;
}

.marquee__track {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: rgba(11, 18, 38, 0.4);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee__item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: rgba(11, 18, 38, 0.18);
  border-radius: 50%;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───────── Bento services ───────── */

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.bento__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
}

.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.bento__card--feature {
  grid-row: span 2;
  background: var(--grad-cta);
  color: var(--cream);
  border-color: transparent;
}
.bento__card--feature h3 { color: var(--cream); font-size: 2rem; }
.bento__card--feature p { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; }
.bento__card--feature::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}

.bento__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: var(--mint-2);
  font-size: 1.5rem;
  font-weight: 500;
}
.bento__card--feature .bento__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
}

.bento__card h3 { margin: 8px 0 0; }
.bento__card p { margin: 0; font-size: 0.95rem; }
.bento__more {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--mint-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento__card--feature .bento__more { color: var(--mint); }

/* ───────── Industries grid ───────── */

.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.industry {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.industry:hover { transform: translateY(-3px); border-color: var(--mint-2); }

.industry__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(11, 18, 38, 0.4);
  letter-spacing: 0.12em;
}
.industry__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--mint-2);
}
.industry h3 { font-size: 1.3rem; margin: 6px 0; }
.industry p { font-size: 0.94rem; margin: 0; }

/* ───────── Stats banner ───────── */

.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 48px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.stats-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(50% 60% at 80% 20%, var(--mint-glow) 0%, transparent 60%);
  pointer-events: none;
}
.stat-item { position: relative; z-index: 1; }
.stat-item__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-item__num--mint { color: var(--mint); }
.stat-item__lab { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ───────── Feature blocks ───────── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row--reverse .feature-row__visual { order: -1; }

.feature-row__visual {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-row h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 16px; }
.feature-row p { font-size: 1.05rem; }

.feature-row__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.feature-row__list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
}
.feature-row__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 12px;
  border-left: 2px solid var(--mint-2);
  border-bottom: 2px solid var(--mint-2);
  transform: rotate(-45deg);
}

/* SVG canvas variants for feature visuals */
.visual-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pod meta (services page) */
.pod-meta {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pod-meta__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: baseline;
}
.pod-meta__label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.pod-meta__value {
  color: var(--ink);
  font-size: 0.98rem;
}
@media (max-width: 640px) {
  .pod-meta__item { grid-template-columns: 1fr; gap: 4px; }
}

.pod-capabilities-wrap {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pod-capabilities {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.pod-capabilities li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.4;
}
.pod-capabilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint-2);
}
@media (max-width: 640px) {
  .pod-capabilities { grid-template-columns: 1fr; }
}

/* ───────── Compare table (Agency vs Freelancer vs Logitelia) ───────── */

.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare__row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1.1fr;
  border-bottom: 1px solid var(--line);
}
.compare__row:last-child { border-bottom: 0; }

.compare__cell {
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

.compare__cell--label {
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
}

.compare__cell--head {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  background: var(--cream-2);
}

.compare__cell--us {
  background: var(--ink);
  color: var(--cream);
}
.compare__cell--us strong { color: var(--mint); font-weight: 500; }

.compare__row--head .compare__cell--label {
  background: var(--ink);
  color: var(--cream);
}
.compare__row--head .compare__cell--us {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.compare__row--head .compare__cell--us::after {
  content: " ★";
  color: var(--mint);
}

/* Mobile: each row becomes a stacked card with the metric as header
   and inline provider labels above each value. */
@media (max-width: 900px) {
  .compare {
    border-radius: var(--radius);
    border: 0;
    background: transparent;
  }
  .compare__row {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    margin-bottom: 14px;
    padding: 8px 0 14px;
    overflow: hidden;
  }
  .compare__row:last-child { margin-bottom: 0; }
  .compare__row--head { display: none; }

  .compare__cell {
    padding: 10px 18px;
    background: transparent;
    color: var(--ink);
  }
  .compare__cell--label {
    font-family: var(--serif);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
    padding: 14px 18px 10px;
    margin-bottom: 4px;
    background: transparent;
    border-bottom: 1px dashed var(--line);
  }
  .compare__cell:not(.compare__cell--label)::before {
    content: attr(data-prov);
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint-2);
    margin-bottom: 4px;
  }
  .compare__cell--us {
    background: var(--ink);
    color: var(--cream);
    margin: 8px 14px 0;
    border-radius: 10px;
    padding: 14px 18px;
  }
  .compare__cell--us::before { color: var(--mint) !important; }
}

/* ───────── Prose block (long-form SEO content) ───────── */

.prose {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose p { margin-bottom: 1.2em; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-size: 1.35rem;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  gap: 10px;
}
.prose ul li {
  position: relative;
  padding-left: 24px;
}
.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint-2);
  font-weight: 500;
}

/* ───────── Home FAQ — slightly tighter than services FAQ ───────── */

.faq--home { max-width: 100%; }
.faq--home details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq--home summary {
  font-size: 1.1rem;
}
.faq--home details[open] {
  border-color: var(--mint-2);
  box-shadow: var(--shadow-sm);
}

/* ───────── Cases preview ───────── */

.cases-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  background: var(--ink-2);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  transition: transform .25s ease;
  text-decoration: none;
}
.case-card:hover { transform: translateY(-4px); }
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(111, 227, 194, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.case-card > * { position: relative; z-index: 1; }
.case-card h3 { color: var(--cream); font-size: 1.5rem; }
.case-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.case-card__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.case-card__metric {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--mint);
}

/* ───────── Manifesto / dark section ───────── */

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.manifesto-grid h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
}
.manifesto-grid p { font-size: 1.12rem; }

.principle-stack {
  display: grid;
  gap: 0;
}
.principle-item {
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.principle-item:last-child { border-bottom: 1px solid var(--line-dark); }
.principle-item__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--mint);
  letter-spacing: 0.1em;
}
.principle-item h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 6px; }
.principle-item p { margin: 0; font-size: 0.98rem; }

/* ───────── Process / how it works ───────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.step__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--mint-2);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.94rem; }

/* ───────── Pricing ───────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.price--featured {
  background: var(--grad-cta);
  color: var(--cream);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.price--featured::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}
.price--featured h3 { color: var(--cream); }
.price--featured p, .price--featured li { color: rgba(255, 255, 255, 0.78); }
.price__amount {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
  margin: 18px 0 6px;
  letter-spacing: -0.02em;
}
.price__per { font-size: 0.92rem; opacity: 0.7; }
.price ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
}
.price ul li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.price ul li::before {
  content: "✓";
  color: var(--mint-2);
  font-weight: 600;
}
.price--featured ul li::before { color: var(--mint); }

/* ───────── FAQ ───────── */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--mint-2);
  font-size: 1.6rem;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; max-width: 70ch; }

/* ───────── Inline CTA (mid-page accent) ───────── */

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 32px 40px;
  margin: 56px 0 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-inline::before {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inline > * { position: relative; z-index: 1; }
.cta-inline__text {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  color: var(--cream);
  max-width: 38ch;
}
.cta-inline__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cta-inline--light {
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.cta-inline--light::before {
  background: radial-gradient(circle, rgba(43, 180, 142, 0.18) 0%, transparent 70%);
}
.cta-inline--light .cta-inline__text { color: var(--ink); }

@media (max-width: 720px) {
  .cta-inline {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
    margin: 40px 0 0;
  }
  .cta-inline__text { font-size: 1.2rem; }
  .cta-inline__actions { width: 100%; }
  .cta-inline__actions .btn { flex: 1; justify-content: center; }
}

/* ───────── CTA strip ───────── */

.cta-block {
  background: var(--grad-cta);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 72px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-block::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--cream); font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin: 0; }
.cta-block p { color: rgba(255, 255, 255, 0.75); margin: 12px 0 0; font-size: 1.05rem; }
.cta-block .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ───────── Contact split-layout (form in first viewport) ───────── */

.contact-hero {
  margin-top: -84px;
  padding: 132px 0 64px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(111, 227, 194, 0.08) 0%, transparent 60%),
    var(--paper);
  position: relative;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-split__intro h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
  max-width: 14ch;
}
.contact-split__intro p.lede {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 0 8px;
}

.contact-split__direct {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.contact-split__direct-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact-split__direct-row strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-2);
  font-weight: 500;
}
.contact-split__direct-row a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.contact-split__direct-row a:hover { color: var(--mint-2); border-bottom-color: var(--mint-2); }
.contact-split__direct-row span { color: var(--ink-2); }

.contact-split__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.contact-split__form form.contact { gap: 14px; }
.contact-split__form .field textarea { min-height: 110px; }

@media (max-width: 1024px) {
  .contact-split { grid-template-columns: 1fr; gap: 36px; }
  .contact-split__intro h1 { max-width: none; }
  .contact-split__form { padding: 24px; }
  .contact-split__direct { margin-top: 24px; padding-top: 20px; }
}

@media (max-width: 640px) {
  .contact-hero { padding: 110px 0 40px; }
  .contact-split { gap: 28px; }
  .contact-split__direct-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ───────── Contact (legacy grid, used elsewhere) ───────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 36px;
}
form.contact { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; color: rgba(11, 18, 38, 0.6); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--mint-2);
  box-shadow: 0 0 0 3px var(--mint-glow);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Required field error highlight */
.field--error label {
  color: #B85A38;
}
.field--error input,
.field--error textarea,
.field--error select {
  border-color: #B85A38 !important;
  box-shadow: 0 0 0 3px rgba(229, 142, 115, 0.20);
  background: rgba(229, 142, 115, 0.04);
}

/* Form status messages */
.form-status {
  min-height: 1.4em;
  font-size: 0.94rem;
  line-height: 1.45;
  border-radius: 10px;
  padding: 0;
  transition: padding .15s ease, background .15s ease;
}
.form-status:empty { display: none; }
.form-status--info {
  padding: 12px 16px;
  background: var(--cream-2);
  color: var(--ink-2);
}
.form-status--success {
  padding: 12px 16px;
  background: rgba(43, 180, 142, 0.12);
  color: var(--mint-2);
  border: 1px solid rgba(43, 180, 142, 0.32);
}
.form-status--error {
  padding: 12px 16px;
  background: rgba(229, 142, 115, 0.12);
  color: #B85A38;
  border: 1px solid rgba(229, 142, 115, 0.38);
}
button[disabled] { opacity: 0.6; cursor: not-allowed; }

.contact-info {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { color: var(--cream); margin-top: 0; }
.contact-info p { color: rgba(255, 255, 255, 0.78); }
.contact-info a { color: var(--mint); }
.contact-info strong { color: var(--cream); }

/* ───────── Approach / principles ───────── */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.principle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.principle:hover { transform: translateY(-2px); border-color: var(--mint-2); }
.principle h3 { font-size: 1.3rem; margin-bottom: 10px; }
.principle p { margin: 0; font-size: 0.98rem; }

/* ───────── Cases page ───────── */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-full {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
}
.case-full__tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.case-full__result {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
}

/* ───────── Page hero (interior pages) ───────── */

.page-hero {
  margin-top: -84px;
  padding: 168px 0 88px;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(111, 227, 194, 0.08) 0%, transparent 60%),
    var(--paper);
  position: relative;
}

.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; }

/* ───────── Backward-compat aliases (interior pages) ───────── */

.hero {
  margin-top: -84px;
  padding: 168px 0 88px;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(111, 227, 194, 0.08) 0%, transparent 60%),
    var(--paper);
  position: relative;
}
@media (max-width: 700px) {
  .hero { margin-top: -72px; padding-top: 132px; }
}
.hero h1, .hero .hero__title { max-width: 18ch; }
.hero p, .hero .hero__sub { max-width: 60ch; font-size: 1.15rem; }

.cta-strip {
  background: var(--grad-cta);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--cream); font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; }
.cta-strip p { color: rgba(255, 255, 255, 0.75); margin: 8px 0 0; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 1024px) {
  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip .actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .cta-strip { padding: 32px; }
}

/* Legacy CSS var alias used by older inline styles */
:root { --cream-deep: var(--cream-2); }

/* ───────── Journal (blog) ───────── */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 1024px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .journal-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.post-card__meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.post-card__meta span + span { color: var(--ink-2); opacity: 0.6; }
.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 4px 0 6px;
}
.post-card p {
  font-size: 0.96rem;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}
.post-card__more {
  font-size: 0.85rem;
  color: var(--mint-2);
  font-weight: 500;
  margin-top: 6px;
}

.journal-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.journal-filter {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.journal-filter:hover { border-color: var(--mint-2); color: var(--mint-2); }
.journal-filter.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.journal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.journal-categories__chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.journal-categories__chip:hover {
  border-color: var(--mint-2);
  color: var(--mint-2);
  background: rgba(111, 227, 194, 0.05);
}

/* TL;DR callout used at top of each article body */
.post__tldr {
  background: rgba(111, 227, 194, 0.08);
  border-left: 3px solid var(--mint-2);
  padding: 18px 22px;
  margin: 0 0 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}
.post__tldr strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-2);
  font-weight: 500;
  display: inline-block;
  margin-right: 6px;
}

/* FAQ section with collapsible items inside articles */
.post__faq {
  margin: 12px 0 24px;
  display: grid;
  gap: 10px;
}
.post__faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  background: var(--white);
}
.post__faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  font-size: 1.02rem;
  line-height: 1.4;
  padding-right: 24px;
  position: relative;
}
.post__faq-item summary::-webkit-details-marker { display: none; }
.post__faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--mono);
  color: var(--mint-2);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s ease;
}
.post__faq-item[open] summary::after { content: "−"; }
.post__faq-item p {
  margin: 12px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.post__steps {
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
  margin: 18px 0 26px;
}
.post__steps li {
  counter-increment: steps;
  padding: 10px 0 10px 38px;
  position: relative;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.post__steps li:first-child { border-top: none; }
.post__steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mint-2);
}

/* ───────── Single article (/journal/<slug>.html) ───────── */

.post {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post__hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.post__cat {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.post__hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
  line-height: 1.1;
}
.post__lede {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.post__meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-2);
  opacity: 0.62;
  letter-spacing: 0.04em;
}
.post__body { padding: 8px 0 56px; }
.post__body p, .post__body ul, .post__body ol { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 1.2em; }
.post__body h2 {
  font-size: 1.6rem;
  margin: 1.8em 0 0.5em;
  letter-spacing: -0.015em;
}
.post__body h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.4em;
}
.post__body strong { color: var(--ink); font-weight: 600; }
.post__body a { color: var(--mint-2); border-bottom: 1px solid currentColor; }
.post__body ul, .post__body ol { padding-left: 24px; }
.post__body li { margin-bottom: 0.5em; }
.post__body blockquote {
  border-left: 3px solid var(--mint-2);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-style: normal;
}

.post__cta {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.post__cta p { color: var(--cream); margin: 0; font-family: var(--serif); font-size: 1.2rem; max-width: 36ch; }

.post__related {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 56px;
}
.post__related h3 {
  font-size: 0.82rem;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.post__related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.post__related a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  border-bottom: none;
}
.post__related a:hover { color: var(--mint-2); }

/* ───────── Footer ───────── */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  margin-top: 20px;
  padding: 80px 0 36px;
  font-size: 0.95rem;
}
/* When the page ends with a dark section, remove the 20px cream gap so the
   dark section flows seamlessly into the dark footer. Uses :has() — Chrome
   105+/Firefox 121+/Safari 15.4+, which covers >97% of 2026 traffic. */
body:has(main > section.section--dark:last-child) .site-footer,
body:has(main > section.on-dark:last-child) .site-footer {
  margin-top: 0;
}
.site-footer a { color: var(--cream); opacity: 0.78; }
.site-footer a:hover { opacity: 1; color: var(--mint); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.brand--footer { color: var(--cream); font-size: 1.7rem; }
.brand--footer .brand__dot { background: var(--mint); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  font-size: 0.88rem;
}

/* ───────── Scroll reveal ───────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── Responsive ───────── */

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--feature { grid-row: span 1; grid-column: span 2; }
  .industries, .pricing, .cases-preview, .cases-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .manifesto-grid, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__visual { order: 0; }
  .hero-visual { max-width: 360px; }
  .cta-block { grid-template-columns: 1fr; padding: 48px; }
  .cta-block .actions { justify-content: flex-start; }
}

@media (max-width: 880px) {
  /* Mobile nav: drawer instead of inline links */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 24px 32px;
    background: var(--paper);
    overflow-y: auto;
    z-index: 49;
    transform: translateX(100%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav a {
    width: 100%;
    padding: 18px 0;
    font-size: 1.4rem;
    color: var(--ink) !important;
    opacity: 1;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    letter-spacing: -0.01em;
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--mint-2) !important; }
  .nav__cta {
    display: inline-flex;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .nav-toggle { display: inline-flex !important; }

  /* The drawer (.nav) is position:fixed z-index 49 and is a sibling of the
     toggle inside .site-header__inner. A positioned element paints above a
     static one in the same stacking context, so the drawer was covering the
     hamburger/X — leaving no way to close the menu. Lift the brand + the
     right-side controls (search, lang, hamburger-X) above the drawer so the
     close button stays tappable and the header stays visible. */
  .brand { position: relative; z-index: 60; }
  .nav-tools { position: relative; z-index: 60; }

  /* Hide header CTA on mobile — moved into drawer */
  .nav-tools > .btn--mint { display: none; }

  body.nav-open { overflow: hidden; }

  /* CRITICAL: backdrop-filter on a parent creates a new containing block
     for position:fixed descendants — which would trap the drawer inside
     the header bounds. Disable it when drawer is open. */
  body.nav-open .site-header,
  body.nav-open .site-header.is-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--paper);
  }
}

@media (max-width: 700px) {
  section { padding: 72px 0; }
  .hero-shell { padding-top: 132px; padding-bottom: 80px; }
  .bento, .industries, .pricing, .cases-preview, .cases-grid, .steps, .principles { grid-template-columns: 1fr; }
  /* Reset the feature card's column span — the ≤1024px rule sets span 2,
     which forces an implicit 2nd column (and horizontal overflow) once the
     grid is single-column on phones. */
  .bento__card--feature { grid-column: span 1; grid-row: auto; }
  .stats-banner { grid-template-columns: 1fr; gap: 20px; padding: 32px; }
  .hero-tagline { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 32px; }
  body { padding-top: 72px; }
  .site-header__inner { padding: 16px 0; }
  .page-hero { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Data table (/llm-info quick-facts + pricing) ───────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 32px;
  font-size: 0.98rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.5;
  vertical-align: top;
}
.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: 0; }
.data-table thead th {
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.data-table tbody th[scope="row"] {
  width: 30%;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .data-table th,
  .data-table td { padding: 11px 13px; }
  .data-table tbody th[scope="row"] { white-space: normal; width: 38%; }
}
