/* ==========================================================================
   FIX & FLIPPERS — DESIGN SYSTEM
   Direction: "The Blueprint" — editorial finance, architectural grid,
   deep navy ink, warm paper, signal yellow.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink: #081826;
  --navy: #0b2e4f;
  --navy-700: #0e3a63;
  --navy-500: #1b527f;
  --yellow: #fde428;
  --yellow-deep: #e6ce00;
  --blue: #6c98e1;
  --blue-100: #e8f0fc;
  --green: #1f7a5c;
  --red: #b42318;

  /* Surfaces */
  --paper: #f6f2e9;
  --paper-2: #efeade;
  --white: #ffffff;
  --line: #dcd6c8;
  --line-strong: #c8c0ae;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #1b2a38;
  --muted: #55636f;
  --muted-dark: #b9c6d2;
  --link: #235a9e;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.18rem + 0.65vw, 1.6rem);
  --step-3: clamp(1.65rem, 1.35rem + 1.2vw, 2.15rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  --step-5: clamp(2.75rem, 1.9rem + 3.9vw, 4.6rem);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(64px, 8.5vw, 112px);

  /* Shape */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(8, 24, 38, 0.06);
  --shadow: 0 12px 32px -12px rgba(8, 24, 38, 0.22);
  --shadow-lg: 0 28px 60px -24px rgba(8, 24, 38, 0.32);

  --header-h: 76px;
  --wrap: 1220px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
.hidden,
[hidden] {
  display: none !important;
}

/* ---------- Utilities ---------- */
.wrap {
  width: min(100% - clamp(40px, 7vw, 96px), var(--wrap));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - clamp(40px, 7vw, 96px), 860px);
  margin-inline: auto;
}
.section {
  padding-block: var(--section);
}
.section-sm {
  padding-block: clamp(40px, 5vw, 64px);
}
.section-tight {
  padding-block: clamp(48px, 6vw, 80px);
}
.bg-white {
  background: var(--white);
}
.bg-paper2 {
  background: var(--paper-2);
}
.bg-navy {
  background: var(--navy);
  color: var(--paper);
}
.bg-ink {
  background: var(--ink);
  color: var(--paper);
}
.stack > * + * {
  margin-top: var(--flow, 1.25rem);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, 12px);
  align-items: center;
}
.center {
  text-align: center;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.15s;
}
.skip-link:focus {
  top: 12px;
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow-deep);
}
.bg-navy .eyebrow,
.bg-ink .eyebrow {
  color: var(--yellow);
}
.bg-navy .eyebrow::before,
.bg-ink .eyebrow::before {
  background: var(--yellow);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h1 {
  font-size: var(--step-5);
}
.h2 {
  font-size: var(--step-4);
}
.h3 {
  font-size: var(--step-3);
}
.h4 {
  font-size: var(--step-2);
  line-height: 1.2;
}
.lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.bg-navy .lead,
.bg-ink .lead {
  color: var(--muted-dark);
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.highlight {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding-inline: 0.06em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.text-link svg {
  transition: transform 0.18s;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn svg {
  flex: none;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-light:hover {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row .btn {
  flex: 0 1 auto;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.badge-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-dark);
  color: var(--paper);
}

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.78rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar strong {
  color: var(--paper);
  font-weight: 500;
}
.topbar a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  padding-block: 4px;
}
.topbar a:hover {
  color: var(--yellow);
}
.topbar .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(8, 24, 38, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a,
.nav-menu > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.nav-menu > summary::-webkit-details-marker {
  display: none;
}
.site-nav a:hover,
.nav-menu > summary:hover,
.site-nav a[aria-current="page"] {
  background: rgba(8, 24, 38, 0.05);
}
.site-nav a[aria-current="page"] {
  font-weight: 600;
}
.nav-menu {
  position: relative;
}
.nav-menu[open] > summary {
  background: rgba(8, 24, 38, 0.06);
}
.nav-menu .menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 310px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav-menu .menu-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
}
.nav-menu .menu-panel a span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
}
.nav-menu .menu-panel a:hover {
  background: var(--paper);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--navy-500);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.header-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px);
  background:
    linear-gradient(180deg, rgba(253, 228, 40, 0.07), transparent 40%),
    var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 24, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 38, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5rem);
  max-width: 15ch;
}
.hero h1 .highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}
.hero .lead {
  margin-top: 22px;
  max-width: 54ch;
}
.hero .btn-row {
  margin-top: 30px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-note svg {
  color: var(--green);
  flex: none;
}

/* Deal snapshot card */
.snapshot {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(8, 24, 38, 0.14);
  overflow: hidden;
}
.snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
}
.snapshot-head .mono {
  color: var(--yellow);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(253, 228, 40, 0.18);
}
.snapshot-body {
  padding: 22px 20px 20px;
}
.snapshot-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.snapshot-body > p {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.snapshot form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.snapshot-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}
.snapshot-foot svg {
  flex: none;
  margin-top: 2px;
}

/* ---------- Trust strip ---------- */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.trustbar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust-item:last-child {
  padding-right: 0;
}
.trust-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.trust-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head > div {
  max-width: 720px;
}
.section-head h2 {
  margin-top: 12px;
}
.section-head p {
  margin-top: 14px;
}
.section-head .text-link {
  flex: none;
  margin-bottom: 6px;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 42px;
  height: 3px;
  background: var(--yellow);
  transition: width 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
}
.product-card:hover::before {
  width: 76px;
}
.product-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
}
.product-icon svg {
  width: 22px;
  height: 22px;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.product-card p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-meta .arrow {
  color: var(--ink);
  transition: transform 0.18s;
}
.product-card:hover .product-meta .arrow {
  transform: translateX(4px);
}

/* ---------- Steps (dark) ---------- */
.steps-section {
  position: relative;
  overflow: hidden;
}
.steps-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.steps-section .wrap {
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 8px;
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.step p {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted-dark);
}

/* ---------- Split / term sheet ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.split h2 {
  margin-top: 12px;
}
.split .lead {
  margin-top: 18px;
}
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}
.checklist svg {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

/* Rate card / table */
.term-card {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(8, 24, 38, 0.1);
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--yellow);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.term-head span:last-child {
  opacity: 0.65;
}
.term-table {
  width: 100%;
  border-collapse: collapse;
}
.term-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.term-table th,
.term-table td {
  padding: 13px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.term-table tr:last-child th,
.term-table tr:last-child td {
  border-bottom: 0;
}
.term-table th {
  width: 44%;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.term-table td {
  font-weight: 500;
  color: var(--ink);
}
.term-foot {
  padding: 12px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
  color: var(--muted);
}

/* ---------- Audience / icon list ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.audience-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.audience-item svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--navy);
}
.audience-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}
.audience-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Quote / proof ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proof-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proof-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.proof-card figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.proof-note {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background-image: linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--yellow);
  border-color: var(--ink);
}
.faq-answer {
  padding: 0 44px 22px 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 70ch;
}
.faq-answer p + p {
  margin-top: 10px;
}

/* ---------- Journal cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-media img {
  transform: scale(1.03);
}
.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 24, 38, 0.55));
}
.post-cat {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
}
.post-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  flex: 1;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-card p {
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1;
}
.post-read {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  box-shadow: 8px 8px 0 rgba(8, 24, 38, 0.1);
}
.featured-post:hover {
  color: var(--text);
}
.featured-media {
  position: relative;
  min-height: 320px;
  background: var(--navy);
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-body {
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.featured-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  border-block: 1px solid var(--ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 24, 38, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 38, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.cta-band .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(40px, 5vw, 64px);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.cta-band p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: rgba(8, 24, 38, 0.72);
  max-width: 46ch;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}
.cta-phone {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.cta-phone:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.88rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-brand .brand {
  color: var(--paper);
}
.footer-brand .brand-name {
  color: var(--paper);
}
.footer-brand .brand-tag {
  color: var(--muted-dark);
}
.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-col ul {
  display: grid;
  gap: 5px;
}
.footer-col a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 0.86rem;
  padding-block: 6px;
}
.footer-col a:hover {
  color: var(--paper);
}
.footer-contact a {
  color: var(--paper);
}
.footer-contact .mono {
  color: var(--muted-dark);
  font-size: 0.62rem;
}
.footer-contact p {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
}
.footer-news {
  margin-top: 18px;
}
.footer-news label {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 6px;
  color: var(--muted-dark);
}
.news-row {
  display: flex;
  gap: 6px;
}
.news-row input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 0.82rem;
}
.news-row input::placeholder {
  color: #8fa1b1;
}
.news-row button {
  height: 40px;
  padding: 0 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px 28px;
}
.footer-bottom .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.75rem;
}
.footer-legal a {
  color: var(--muted-dark);
  text-decoration: none;
  padding-block: 4px;
}
.footer-legal a:hover {
  color: var(--paper);
}
.disclosure {
  max-width: 760px;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #8fa1b1;
}
.footer-copy {
  font-size: 0.7rem;
  color: #8fa1b1;
  white-space: nowrap;
}

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 5vw, 72px) clamp(40px, 5vw, 64px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 24, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 38, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 4px;
}
.breadcrumbs a:hover {
  color: var(--ink);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}
.page-hero h1 {
  max-width: 20ch;
}
.page-hero .lead {
  margin-top: 18px;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}
.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Article / prose ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
.prose {
  max-width: 70ch;
}
.prose > * + * {
  margin-top: 1.25em;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--yellow);
}
.prose h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 1.8em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: #33414e;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  font-weight: 500;
}
.prose blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.callout {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.callout p {
  margin-top: 8px;
  font-size: 0.92rem;
}
.callout-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.callout-dark h3 {
  color: var(--yellow);
}
.callout-dark p {
  color: var(--muted-dark);
}
.takeaways {
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 28px 0;
}
.takeaways h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.takeaways h2::before {
  display: none;
}
.takeaways ul {
  margin: 0;
  padding-left: 1.1em;
}
.takeaways li {
  font-size: 0.92rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}
.side-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-card-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.side-card.side-card-dark h2,
.side-card.side-card-dark strong {
  color: var(--paper);
}
.side-card.side-card-dark p {
  color: var(--muted-dark);
}
.side-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.side-card p {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.side-card .btn {
  margin-top: 16px;
}
.side-facts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.side-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.side-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.side-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.toc {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 12px 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 7px;
}
.toc a {
  font-size: 0.83rem;
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Author */
.author-box {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 40px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.author-box h2 {
  font-size: 0.95rem;
  color: var(--ink);
}
.author-box p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.author-box a {
  font-size: 0.8rem;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req {
  color: var(--red);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: #919ca6;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #a79e8a;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23081826' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-hint {
  font-size: 0.72rem;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
.form-note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-status {
  margin-top: 14px;
  padding: 14px 16px;
  background: #e7f4ee;
  border: 1px solid #b9ddcd;
  border-radius: var(--radius-sm);
  color: #145c44;
  font-size: 0.85rem;
}
.form-status:empty {
  display: none;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(8, 24, 38, 0.08);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-card form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}
.contact-aside {
  display: grid;
  gap: 16px;
}
.aside-block {
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-block h2 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-block .big-link {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.aside-block .big-link:hover {
  text-decoration: underline;
}
.aside-block p {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.aside-block ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.aside-block li {
  display: flex;
  gap: 8px;
}
.aside-block li::before {
  content: "—";
  color: var(--yellow-deep);
}

/* ---------- Misc page blocks ---------- */
.stat-band {
  border-block: 1px solid var(--line);
  background: var(--white);
}
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat:last-child {
  padding-right: 0;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-card .mono {
  color: var(--navy);
}
.value-card h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.value-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 4 / 3;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.team-body {
  padding: 20px;
}
.team-body h3 {
  font-size: 1rem;
  color: var(--ink);
}
.team-body .mono {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}
.team-body p {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.notice {
  padding: 16px 18px;
  background: #fff8d6;
  border: 1px solid #e6d27a;
  border-left: 4px solid var(--yellow-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: #5c4d00;
}
.notice strong {
  color: #3f3500;
}

/* ---------- Design system page ---------- */
.ds-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.ds-nav a {
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.ds-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}
.ds-section {
  padding-block: 44px;
  border-top: 1px solid var(--line);
}
.ds-section > h2 {
  margin-bottom: 8px;
}
.ds-section > p {
  max-width: 66ch;
  color: var(--muted);
  margin-bottom: 28px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.swatch-color {
  height: 84px;
}
.swatch-info {
  padding: 10px 12px;
}
.swatch-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
}
.swatch-info code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
}
.type-spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.type-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.type-row:last-child {
  border-bottom: 0;
}
.type-row .mono {
  flex: none;
  width: 74px;
  color: var(--muted);
}
.type-row > span:last-child {
  color: var(--ink);
}
.ds-components {
  display: grid;
  gap: 22px;
}
.ds-component {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ds-component > h3 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ds-bars {
  display: grid;
  gap: 8px;
}
.ds-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}
.ds-bar i {
  display: block;
  height: 10px;
  background: var(--navy);
  border-radius: 2px;
}
.ds-bar code {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  white-space: nowrap;
}
.ds-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ds-rule {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ds-rule strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
}
.ds-rule span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 76ch;
}
.legal-body h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal-body p,
.legal-body li {
  margin-top: 0.9em;
  font-size: 0.95rem;
  color: #33414e;
}
.legal-body ul {
  padding-left: 1.2em;
}
.legal-body .notice {
  margin-top: 24px;
}

/* ---------- Founder portrait ---------- */
.portrait {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 10px 10px 0 rgba(8, 24, 38, 0.1);
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.portrait figcaption {
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Blog index extras ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.filter-bar .mono {
  margin-right: 8px;
  color: var(--muted);
}
.filter-pill {
  min-height: 36px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.filter-pill:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.post-card.is-hidden {
  display: none;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.page-link:hover {
  border-color: var(--ink);
}
.page-link[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.page-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Service / related links ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
}
.related-card:hover {
  border-color: var(--ink);
  color: var(--text);
}
.related-card .mono {
  color: var(--navy);
  font-size: 0.6rem;
}
.related-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.related-card span {
  font-size: 0.8rem;
  color: var(--muted);
}
.service-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: end;
  margin-top: 24px;
}
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.prose .btn-row {
  margin-top: 1.6em;
}
.prose .notice {
  margin: 1.6em 0;
}
.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.prose .term-card {
  margin: 1.8em 0;
  box-shadow: none;
}
.prose .term-table th,
.prose .term-table td {
  font-size: 0.84rem;
}
.toc.toc-keep {
  display: block;
}
.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.contact-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 3px;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- Design system code + tables ---------- */
.ds-code {
  padding: 14px 16px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: #d7e3ee;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .ds-table {
  min-width: 600px;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}
.ds-table th,
.ds-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.ds-table th {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ds-table tr:last-child td {
  border-bottom: 0;
}
.ds-table code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.swatch-row {
  margin-top: 22px;
}

/* ---------- Reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav {
    gap: 0;
  }
  .site-nav a,
  .nav-menu > summary {
    padding-inline: 9px;
    font-size: 0.86rem;
  }
  .header-phone {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
  }
  .footer-contact h3 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .footer-news {
    margin-top: 0;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 68px;
  }
  .topbar .wrap {
    justify-content: center;
  }
  .topbar p:last-child {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px clamp(20px, 4vw, 40px) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a,
  .nav-menu > summary {
    padding: 12px 10px;
    font-size: 0.98rem;
  }
  .nav-menu .menu-panel {
    position: static;
    width: 100%;
    padding: 4px 0 4px 10px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-menu .menu-panel a {
    padding: 9px 10px;
  }
  .header-actions .btn {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .snapshot {
    max-width: 560px;
  }
  .product-grid,
  .post-grid,
  .proof-grid,
  .steps,
  .value-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .article-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .toc {
    display: none;
  }
  .toc.toc-keep {
    display: block;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-lead {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cta-band .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-contact {
    grid-template-columns: 1fr;
  }
  .footer-bottom .wrap {
    flex-direction: column;
  }
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .ds-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.97rem;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .hero {
    padding-block: 40px 48px;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 2rem + 4vw, 3.1rem);
  }
  .hero .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .btn-row .btn {
    width: 100%;
  }
  .trustbar .wrap,
  .stat-band .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item,
  .stat {
    padding: 18px 16px;
    border-left: 1px solid var(--line);
  }
  .trust-item:nth-child(odd),
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .trust-item:nth-child(-n + 2),
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .product-grid,
  .post-grid,
  .proof-grid,
  .steps,
  .value-grid,
  .team-grid,
  .audience-grid,
  .form-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 220px;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-contact {
    padding-top: 20px;
  }
  .swatches {
    grid-template-columns: 1fr;
  }
  .footer-copy {
    white-space: normal;
  }
  .article-layout {
    gap: 32px;
  }
  .prose h2 {
    margin-top: 1.9em;
  }
  .contact-card {
    padding: 22px 18px;
  }
  .author-box {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .cta-band,
  .sidebar,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .article-layout {
    display: block;
  }
  .prose {
    max-width: none;
  }
}

/* ---------- WordPress integration ---------- */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
.ff-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status.is-error {
  color: var(--red);
}
.footer-news-form {
  margin: 0;
}
.footer-news-note {
  margin-top: 6px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted-dark);
}
.footer-news-note a {
  color: var(--paper);
}
.footer-news .form-status {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--yellow);
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
