/* ==========================================================================
   JuteWise — brand stylesheet
   Palette, type and voice per the Content Bible §1.
   Jute Gold #C08A2E · Loom Green #1B3A2C · Linen #F7F2E8
   Terracotta #B85C38 · Ink Charcoal #2A241B
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --jute-gold: #c08a2e;
  --loom-green: #1b3a2c;
  --linen: #f7f2e8;
  --terracotta: #b85c38;
  --ink-charcoal: #2a241b;

  /* Derived surfaces */
  --linen-deep: #efe7d6;
  --paper: #fffcf6;
  --green-deep: #142b21;
  --green-mid: #27523d;
  --gold-deep: #a4741f;
  --terracotta-deep: #9c4a2b;

  /* Tints */
  --ink-06: rgba(42, 36, 27, 0.06);
  --ink-12: rgba(42, 36, 27, 0.12);
  --ink-24: rgba(42, 36, 27, 0.24);
  --ink-48: rgba(42, 36, 27, 0.48);
  --ink-64: rgba(42, 36, 27, 0.64);
  --linen-16: rgba(247, 242, 232, 0.16);
  --linen-32: rgba(247, 242, 232, 0.32);
  --linen-72: rgba(247, 242, 232, 0.72);
  --gold-tint: rgba(192, 138, 46, 0.14);
  --green-tint: rgba(27, 58, 44, 0.07);
  --terracotta-tint: rgba(184, 92, 56, 0.12);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial,
    sans-serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.075rem);
  --step-1: clamp(1.13rem, 1.07rem + 0.28vw, 1.3rem);
  --step-2: clamp(1.32rem, 1.2rem + 0.55vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.36rem + 1vw, 2.15rem);
  --step-4: clamp(1.95rem, 1.55rem + 1.7vw, 2.9rem);
  --step-5: clamp(2.4rem, 1.75rem + 2.9vw, 4.2rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7vw, 6.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(42, 36, 27, 0.05);
  --shadow: 0 1px 2px rgba(42, 36, 27, 0.04), 0 14px 30px -20px rgba(42, 36, 27, 0.35);
  --shadow-lg: 0 2px 4px rgba(42, 36, 27, 0.05), 0 28px 60px -28px rgba(42, 36, 27, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-charcoal);
  background-color: var(--linen);
  /* Faint warp threads running down the page. */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(42, 36, 27, 0.026) 0 1px,
    transparent 1px 40px
  );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--ink-24);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

a:hover {
  color: var(--terracotta);
  text-decoration-color: currentColor;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.band-dark :focus-visible {
  outline-color: var(--jute-gold);
}

::selection {
  background: var(--gold-tint);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.15rem;
  background: var(--loom-green);
  color: var(--linen);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--linen);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 812px;
}

.section {
  padding-block: var(--section-y);
}

.band-dark {
  position: relative;
  isolation: isolate;
  background: var(--loom-green);
  color: var(--linen);
  overflow: hidden;
}

.band-dark h1,
.band-dark h2,
.band-dark h3 {
  color: var(--linen);
}

.band-dark a:hover {
  color: var(--jute-gold);
}

.band-muted {
  background: var(--linen-deep);
}

.weave-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.75;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: var(--step-4);
}

.section-lead {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--ink-64);
}

.band-dark .section-lead {
  color: var(--linen-72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow a {
  text-decoration: none;
}

.eyebrow-light,
.band-dark .eyebrow {
  color: var(--jute-gold);
}

/* Placeholder marker — impossible to publish by accident. */
.ph {
  border-radius: 4px;
  padding: 0.04em 0.2em;
  margin-inline: -0.02em;
  background: var(--terracotta-tint);
  box-shadow: inset 0 0 0 1px rgba(184, 92, 56, 0.34);
  text-decoration: underline dotted rgba(184, 92, 56, 0.55);
  text-underline-offset: 3px;
}

.band-dark .ph {
  background: rgba(224, 140, 100, 0.16);
  box-shadow: inset 0 0 0 1px rgba(224, 140, 100, 0.4);
  color: #f0c9b4;
}

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--linen);
  box-shadow: 0 10px 22px -14px rgba(184, 92, 56, 0.9);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  color: var(--linen);
}

.btn-gold {
  background: var(--jute-gold);
  color: var(--ink-charcoal);
  box-shadow: 0 10px 22px -14px rgba(192, 138, 46, 0.9);
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: var(--linen);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink-24);
  color: var(--ink-charcoal);
}

.btn-ghost:hover {
  border-color: var(--loom-green);
  background: var(--green-tint);
  color: var(--loom-green);
}

.btn-ghost-light {
  background: transparent;
  border-color: var(--linen-32);
  color: var(--linen);
}

.btn-ghost-light:hover {
  border-color: var(--jute-gold);
  color: var(--jute-gold);
  background: rgba(192, 138, 46, 0.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--loom-green);
  color: var(--loom-green);
}

.btn-outline:hover {
  background: var(--loom-green);
  color: var(--linen);
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.btn-row.is-centered {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--loom-green);
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--terracotta);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.band-dark .link-arrow {
  color: var(--jute-gold);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink-12);
  box-shadow: 0 10px 30px -26px rgba(42, 36, 27, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: inherit;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-charcoal);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-expanded='true'] {
  background: var(--green-tint);
  color: var(--loom-green);
}

.nav-link[aria-current] {
  color: var(--gold-deep);
}

.nav-chevron {
  transition: transform 0.2s var(--ease);
  opacity: 0.6;
}

.nav-link[aria-expanded='true'] .nav-chevron {
  transform: rotate(180deg);
}

.nav-item-has-menu {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(23rem, 80vw);
  padding: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: menu-in 0.16s var(--ease);
}

/* The panel sits 0.6rem below the trigger, and that gap is outside the menu's
   hover box — the pointer crossing it fired mouseleave and the panel vanished
   mid-reach. This bridges the gap with an invisible strip so the hover target
   is continuous, without closing up the visual space. */
.nav-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.7rem;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-menu a:hover {
  background: var(--linen-deep);
  color: inherit;
}

.nav-menu-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu-blurb {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-48);
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--ink-12);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--ink-12);
  background: var(--linen);
  padding-block: 1.25rem 1.75rem;
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list > li + li {
  margin-top: 1.15rem;
}

.mobile-nav-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-list ul {
  margin-top: 0.5rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ink-12);
}

.mobile-nav-list ul li + li {
  margin-top: 0.35rem;
}

.mobile-nav-list ul a {
  display: block;
  padding: 0.25rem 0;
  color: var(--ink-64);
  text-decoration: none;
}

.mobile-nav-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

@media (max-width: 61.99rem) {
  .primary-nav,
  .header-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 62rem) {
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-12) 20%, var(--ink-12) 80%, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: var(--step-5);
  font-weight: 600;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 1.35rem;
  font-size: var(--step-1);
  color: var(--ink-64);
  max-width: 46ch;
}

.hero-note {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--ink-48);
  max-width: 44ch;
}

.hero-art {
  width: 100%;
  height: auto;
}

.hero-strand,
.hero-node {
  animation: strand-settle 1.1s var(--ease) backwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}

@keyframes strand-settle {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@media (max-width: 55rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 26rem;
  }
  .hero-title {
    max-width: 18ch;
  }
}

/* --------------------------------------------------------------------------
   7. Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ink-12);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-hero-inner:not(:has(.page-hero-media)) {
  grid-template-columns: 1fr;
  max-width: 60rem;
}

.page-title {
  font-size: var(--step-4);
  max-width: 20ch;
}

.page-lead {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--ink-64);
  max-width: 60ch;
}

@media (max-width: 55rem) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-media {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Trust bar, claims, stats
   -------------------------------------------------------------------------- */

.trust-bar {
  padding-block: clamp(2.25rem, 4vw, 3rem);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 1.35rem;
}

.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  height: 3rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.band-note {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--linen-72);
  max-width: 68ch;
}

.claims {
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.claim-grid,
.stat-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.claim {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon label' '. detail';
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: center;
}

.claim-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(192, 138, 46, 0.16);
  color: var(--jute-gold);
}

.claim-label {
  grid-area: label;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.claim-detail {
  grid-area: detail;
  font-size: var(--step--1);
  color: var(--linen-72);
}

.stats {
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.stat {
  display: grid;
  gap: 0.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--jute-gold);
}

.stat-label {
  font-size: var(--step--1);
  color: var(--linen-72);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   9. Pillars
   -------------------------------------------------------------------------- */

.pillar-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.pillar {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.pillar::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--jute-gold), var(--terracotta));
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-deep);
}

.pillar-label {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.pillar-body {
  color: var(--ink-64);
}

/* --------------------------------------------------------------------------
   10. Problem → solution
   -------------------------------------------------------------------------- */

.ps-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.ps-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-12);
}

.ps-problem {
  background: var(--linen-deep);
}

.ps-solution {
  background: var(--loom-green);
  color: var(--linen);
  border-color: transparent;
}

.ps-solution .ps-title {
  color: var(--linen);
}

.ps-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-problem .ps-tag {
  background: var(--terracotta-tint);
  color: var(--terracotta-deep);
}

.ps-solution .ps-tag {
  background: rgba(192, 138, 46, 0.2);
  color: var(--jute-gold);
}

.ps-title {
  font-size: var(--step-3);
  margin-bottom: 0.9rem;
}

.ps-problem p {
  color: var(--ink-64);
}

.ps-solution p {
  color: var(--linen-72);
}

/* --------------------------------------------------------------------------
   11. Service rows
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.service-row + .service-row {
  border-top: 1px solid var(--ink-12);
}

.service-row.is-reversed .service-row-media {
  order: 2;
}

.service-row-title {
  font-size: var(--step-3);
  margin-bottom: 0.85rem;
}

.service-row-copy p {
  color: var(--ink-64);
  max-width: 46ch;
}

.panel-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-12);
}

@media (max-width: 55rem) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .service-row.is-reversed .service-row-media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Tool CTA
   -------------------------------------------------------------------------- */

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(192, 138, 46, 0.16), rgba(184, 92, 56, 0.09));
  border: 1px solid rgba(192, 138, 46, 0.32);
}

.tool-card p {
  margin-top: 0.9rem;
  color: var(--ink-64);
  max-width: 46ch;
}

.tool-card .panel-art {
  border-color: rgba(192, 138, 46, 0.28);
}

@media (max-width: 55rem) {
  .tool-card {
    grid-template-columns: 1fr;
  }
  .tool-card-media {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */

.quote-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.quote-card {
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.quote-card figcaption {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink-12);
}

.quote-name {
  display: block;
  font-weight: 600;
}

.quote-meta {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-48);
}

.empty-slot {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  border: 1.5px dashed var(--ink-24);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.6);
  color: var(--ink-64);
}

.empty-slot-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink-charcoal);
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   14. Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--ink-12);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  background: var(--linen-deep);
}

.compare-table thead th.is-ours,
.compare-table td.is-ours {
  background: var(--gold-tint);
}

.compare-table thead th.is-ours {
  color: var(--loom-green);
  box-shadow: inset 0 3px 0 var(--jute-gold);
}

.compare-table tbody th {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-64);
  letter-spacing: 0.01em;
  width: 32%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 1.15rem;
  font-size: var(--step--1);
  color: var(--ink-48);
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Founder
   -------------------------------------------------------------------------- */

.founder-card {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-12);
  box-shadow: var(--shadow);
}

.portrait-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--step--1);
}

/* The portrait fills the card's height rather than assuming a ratio, so it
   stays balanced against however long the bio runs and whatever aspect ratio
   the photo happens to be. object-fit crops instead of stretching; the height
   declaration is required because the img's height attribute would otherwise
   win and leave aspect-ratio inert. */
.founder-portrait,
.founder-portrait img {
  height: 100%;
}

.founder-portrait img {
  display: block;
  width: 100%;
  min-height: 20rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--ink-12);
}

.founder-name {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.founder-role {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.founder-copy {
  align-self: center;
}

.founder-copy p {
  margin-top: 0.9rem;
  color: var(--ink-64);
  max-width: 52ch;
}

@media (max-width: 48rem) {
  .founder-card {
    grid-template-columns: 1fr;
  }
  /* Stacked, there is no card height to fill, so fall back to a fixed crop. */
  .founder-portrait {
    max-width: 13rem;
    height: auto;
  }
  .founder-portrait img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* --------------------------------------------------------------------------
   16. Steps
   -------------------------------------------------------------------------- */

.step-list {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--loom-green);
  color: var(--jute-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.step-title {
  font-size: var(--step-1);
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--ink-64);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   17. Checklists & features
   -------------------------------------------------------------------------- */

.check-grid {
  display: grid;
  gap: 0.9rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.check-item,
.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-block: 0.55rem;
}

.check-grid .check-item {
  border-bottom: 1px solid var(--linen-16);
}

.check-mark {
  margin-top: 0.28rem;
  color: var(--jute-gold);
}

.check-list {
  margin-top: 1.5rem;
}

.check-list .check-mark {
  color: var(--gold-deep);
}

.feature-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.feature-card {
  padding: 1.75rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--loom-green);
}

.feature-title {
  font-size: var(--step-1);
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--ink-64);
  font-size: 0.97rem;
}

.feature-card .link-arrow {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--ink-12);
}

.faq-item {
  border-bottom: 1px solid var(--ink-12);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--linen-deep);
  color: var(--loom-green);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq-item[open] .faq-marker {
  transform: rotate(180deg);
  background: var(--gold-tint);
}

.faq-item summary:hover .faq-marker {
  background: var(--gold-tint);
}

.faq-answer {
  padding-bottom: 1.4rem;
  max-width: 68ch;
  color: var(--ink-64);
}

.faq-more {
  margin-top: 0.35rem;
}

.faq-more .link-arrow {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   19. Pricing
   -------------------------------------------------------------------------- */

.plan-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.plan-card.is-featured {
  border-color: var(--jute-gold);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--jute-gold);
  color: var(--ink-charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-name {
  font-size: var(--step-2);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.plan-unit {
  font-size: var(--step--1);
  color: var(--ink-48);
}

.plan-best {
  color: var(--ink-64);
  font-size: 0.97rem;
  flex-grow: 1;
}

.plan-card .btn {
  margin-top: 0.75rem;
}

.plan-includes {
  max-width: 60ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius);
  background: var(--linen-deep);
  border: 1px solid var(--ink-12);
}

.plan-includes-title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.plan-includes p {
  color: var(--ink-64);
}

/* --------------------------------------------------------------------------
   20. Notices
   -------------------------------------------------------------------------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--ink-12);
  background: var(--paper);
}

.notice.warn {
  border-color: rgba(184, 92, 56, 0.35);
  background: rgba(184, 92, 56, 0.07);
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--linen-deep);
  color: var(--loom-green);
}

.notice.warn .notice-icon {
  background: rgba(184, 92, 56, 0.14);
  color: var(--terracotta-deep);
}

.notice-title {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}

.notice p + p {
  margin-top: 0.75rem;
}

.notice p {
  color: var(--ink-64);
}

/* --------------------------------------------------------------------------
   21. Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  padding-block: clamp(3.25rem, 6vw, 5rem);
  text-align: center;
}

.final-cta-inner {
  max-width: 46rem;
  margin-inline: auto;
}

.final-cta-title {
  font-size: var(--step-4);
}

.final-cta-body {
  margin-top: 1rem;
  color: var(--linen-72);
  font-size: var(--step-1);
}

/* --------------------------------------------------------------------------
   22. Blog
   -------------------------------------------------------------------------- */

.post-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.post-card {
  display: flex;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 1.85rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.post-card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(192, 138, 46, 0.5);
  color: inherit;
}

.post-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.post-title {
  font-size: var(--step-2);
}

.post-excerpt {
  color: var(--ink-64);
  font-size: 0.97rem;
  flex-grow: 1;
}

.post-card-link .link-arrow {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.post-card.is-lead {
  grid-column: 1 / -1;
}

.post-card.is-lead .post-card-link {
  background: var(--loom-green);
  border-color: transparent;
  color: var(--linen);
  padding: clamp(2rem, 4vw, 2.75rem);
}

.post-card.is-lead .post-title {
  color: var(--linen);
  font-size: var(--step-3);
  max-width: 24ch;
}

.post-card.is-lead .post-excerpt {
  color: var(--linen-72);
  max-width: 60ch;
}

.post-card.is-lead .post-kicker,
.post-card.is-lead .link-arrow {
  color: var(--jute-gold);
}

.article-header {
  padding-block: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}

.article-title {
  font-size: var(--step-4);
  max-width: 22ch;
}

.article-standfirst {
  margin-top: 1.1rem;
  font-size: var(--step-1);
  color: var(--ink-64);
  max-width: 60ch;
}

.thread-rule-art {
  width: 100%;
  height: 12px;
  margin-top: 2rem;
}

.article-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.article-body-grid:not(:has(.article-toc)) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 812px;
  margin-inline: auto;
}

.article-toc {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  font-size: 0.92rem;
}

.toc-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-48);
  margin-bottom: 0.85rem;
}

.article-toc ol {
  display: grid;
  gap: 0.5rem;
  border-left: 2px solid var(--ink-12);
  padding-left: 1rem;
}

.article-toc a {
  color: var(--ink-64);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--terracotta);
}

.article-body {
  max-width: 68ch;
}

@media (max-width: 62rem) {
  .article-body-grid {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
    padding: 1.25rem 1.4rem;
    background: var(--linen-deep);
    border-radius: var(--radius);
  }
  .article-toc ol {
    border-left-color: var(--ink-24);
  }
}

/* --------------------------------------------------------------------------
   23. Prose
   -------------------------------------------------------------------------- */

.prose {
  font-size: var(--step-0);
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.75rem;
  scroll-margin-top: 6.5rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-64);
}

.prose strong {
  color: var(--ink-charcoal);
  font-weight: 600;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.35rem;
}

.prose ul li {
  list-style: none;
  position: relative;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 0.65em;
  width: 12px;
  height: 2px;
  background: var(--jute-gold);
  border-radius: 2px;
}

.prose ol {
  list-style: decimal;
}

.prose ol li::marker {
  color: var(--gold-deep);
  font-weight: 600;
}

.prose blockquote {
  padding-left: 1.5rem;
  border-left: 3px solid var(--jute-gold);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-charcoal);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--linen-deep);
  font-size: 0.9em;
}

.prose hr,
hr.thread-rule {
  height: 1px;
  border: 0;
  margin-block: 2.5rem;
  background: var(--ink-12);
}

.prose a {
  color: var(--loom-green);
  font-weight: 500;
  text-decoration-color: var(--jute-gold);
  text-decoration-thickness: 2px;
}

.prose a:hover {
  color: var(--terracotta);
}

.prose > p:last-child strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
}

/* --------------------------------------------------------------------------
   24. Glossary
   -------------------------------------------------------------------------- */

.glossary-list {
  border-top: 1px solid var(--ink-12);
}

.glossary-item {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--ink-12);
  scroll-margin-top: 6.5rem;
}

.glossary-item dt {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

.glossary-item dd {
  margin: 0;
  color: var(--ink-64);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   25. Calculator & forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.calc-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.calc-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.calc-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-field input[type='text'],
.calc-field input[type='email'],
.calc-field input[type='number'],
.calc-field select,
.calc-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-24);
  border-radius: 10px;
  background: var(--linen);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.calc-field textarea {
  resize: vertical;
}

.calc-field input:focus,
.calc-field select:focus,
.calc-field textarea:focus {
  outline: none;
  border-color: var(--jute-gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.field-hint {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-48);
}

/* --- Savings calculator: three questions in, one number out --------------- */

.scalc {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 60rem;
  margin: 0 auto;
}

.scalc-controls {
  display: grid;
  /* A generous column gap: the three hints sit directly under each other and
     read as one run-on paragraph without it. */
  gap: 1.75rem 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.scalc-field {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.scalc-field > label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

/* The numbered chip keeps the two steps obviously sequential. */
.scalc-step {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--jute-gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.scalc-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  border: 1px solid var(--ink-24);
  border-radius: 10px;
  background: var(--linen);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.scalc-money-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--ink-24);
  border-radius: 10px;
  background: var(--linen);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.scalc-money-input:focus-within,
.scalc-field select:focus {
  outline: none;
  border-color: var(--jute-gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.scalc-currency {
  font-weight: 600;
  color: var(--ink-64);
}

.scalc-money-input input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scalc-money-input input:focus {
  outline: none;
}

.scalc-suffix {
  flex: none;
  font-size: 0.88rem;
  color: var(--ink-48);
}

.scalc-result {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--loom-green);
  color: var(--linen);
}

.scalc-columns {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.scalc-col-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--linen-72);
  line-height: 1.3;
  /* Two lines' worth, so both column totals sit on the same line when one
     label wraps and the other does not. */
  min-height: 2.6em;
}

.scalc-col-india .scalc-col-label {
  color: var(--jute-gold);
}

.scalc-col-total {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.scalc-col-monthly {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--linen-72);
  font-variant-numeric: tabular-nums;
}

.scalc-bar {
  height: 0.6rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--linen-16);
  overflow: hidden;
}

.scalc-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--linen-32);
  transition: width 0.35s var(--ease);
}

.scalc-col-india .scalc-bar-fill {
  background: var(--jute-gold);
}

.scalc-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linen-16);
  font-size: 0.9rem;
}

.scalc-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.scalc-lines dt {
  color: var(--linen-72);
}

.scalc-lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.scalc-line-nil dd {
  color: var(--jute-gold);
}

/* The payoff. Everything above it is the working. */
.scalc-saving {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 14px;
  background: rgba(192, 138, 46, 0.16);
  border: 1px solid rgba(192, 138, 46, 0.4);
  text-align: center;
}

.scalc-saving-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--jute-gold);
}

.scalc-saving-total {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  margin-top: 0.35rem;
  color: var(--linen);
  font-variant-numeric: tabular-nums;
}

.scalc-saving-sub {
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--linen-72);
}

.scalc-saving-sub strong {
  color: var(--linen);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scalc-saving-hires {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(192, 138, 46, 0.3);
  font-size: 0.94rem;
  color: var(--jute-gold);
  font-weight: 600;
}

.scalc-saving-hires:empty {
  display: none;
}

.scalc-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--linen-72);
}

.scalc-actions {
  margin-top: 1.35rem;
  justify-content: center;
}

/* btn-outline is loom-green on loom-green, i.e. invisible, inside the dark
   result panel. Fall back to the light-on-dark treatment there. */
.scalc-result .btn-outline {
  border-color: var(--linen-32);
  color: var(--linen);
}

.scalc-result .btn-outline:hover {
  background: rgba(192, 138, 46, 0.1);
  border-color: var(--jute-gold);
  color: var(--jute-gold);
}

@media (max-width: 40rem) {
  .scalc-col-label {
    min-height: 0;
  }
}


.scalc-fee-note {
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   26. Role cards, role savings band, and the rate card
   -------------------------------------------------------------------------- */

.role-grid-section.is-muted {
  background: var(--linen-deep);
}

.role-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.role-card {
  display: flex;
}

.role-card-link {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  width: 100%;
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.role-card-link:hover,
.role-card-link:focus-visible {
  border-color: var(--jute-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.role-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.role-card-saving {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.role-card-saving strong {
  font-weight: 700;
}

.role-card-vs {
  font-size: 0.85rem;
  color: var(--ink-48);
  font-variant-numeric: tabular-nums;
}

.role-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
}

.role-card-link:hover .role-card-cta svg {
  transform: translateX(3px);
}

.role-card-cta svg {
  transition: transform 0.18s var(--ease);
}

/* --- The per-role savings band ------------------------------------------- */

.role-savings-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.role-savings-total {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 4.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  margin-top: 0.4rem;
  color: var(--linen);
  font-variant-numeric: tabular-nums;
}

.role-savings-unit {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: var(--jute-gold);
  font-weight: 600;
}

.role-savings-year {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--linen-72);
  font-variant-numeric: tabular-nums;
}

.role-savings-split {
  display: grid;
  gap: 0.85rem;
}

.role-savings-split > div {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--linen-16);
}

.role-savings-split > div.is-ours {
  background: rgba(192, 138, 46, 0.16);
  border: 1px solid rgba(192, 138, 46, 0.4);
}

.role-savings-split dt {
  font-size: 0.85rem;
  color: var(--linen-72);
}

.role-savings-split dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.role-savings-split dd span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--linen-72);
}

.role-savings-note {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--linen-16);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--linen-72);
  max-width: 70ch;
}

/* --- Rate card ------------------------------------------------------------ */

.tier-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}

.tier-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem) 1.5rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  text-align: center;
}

.tier-card.is-featured {
  border-color: var(--jute-gold);
  box-shadow: var(--shadow-sm);
}

.tier-range {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-48);
}

.tier-price {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.tier-amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--loom-green);
  font-variant-numeric: tabular-nums;
}

.tier-unit {
  font-size: 0.88rem;
  color: var(--ink-48);
}

.tier-best {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink-12);
  font-size: 0.92rem;
  color: var(--ink-64);
}

/* --- What's included, under the rate card -------------------------------- */

.includes-block {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
}

.includes-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 600;
  text-align: center;
}

.includes-grid {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: clamp(1.35rem, 3vw, 2rem);
}

.includes-group-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-12);
}

.includes-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
  list-style: none;
}

.includes-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-64);
}

.includes-list .check-mark {
  margin-top: 0.16rem;
  color: var(--loom-green);
  flex: none;
}

/* The parity promise is the differentiator, not a feature — it gets its own
   band rather than a fourteenth identical bullet. */
.includes-parity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: clamp(1.35rem, 3vw, 2rem);
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--gold-tint);
  border: 1px solid rgba(192, 138, 46, 0.32);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-charcoal);
}

.includes-parity-icon {
  color: var(--gold-deep);
}

.tier-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-64);
}

@media (max-width: 52rem) {
  .role-savings-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Inline scheduler ----------------------------------------------------- */

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.booking-copy {
  position: sticky;
  top: 6.5rem;
}

.booking-copy p {
  margin-top: 1rem;
  color: var(--ink-64);
  max-width: 46ch;
}

.booking-widget {
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}

/* Calendly injects its own iframe; this just stops it overflowing the card. */
.calendly-inline-widget {
  width: 100%;
}

.booking-fallback {
  display: block;
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 52rem) {
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking-copy {
    position: static;
  }
}

.form-copy p {
  margin-top: 1rem;
  color: var(--ink-64);
  max-width: 46ch;
}

.form-contact {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.form-notice {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.75rem 0.9rem;
}

.form-notice code {
  font-size: 0.9em;
}

.form-fineprint {
  font-size: 0.83rem;
  color: var(--ink-48);
  text-align: center;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta-deep);
  text-align: center;
}

.form-status:empty {
  display: none;
}

@media (max-width: 55rem) {
  .calc,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .calc-result {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-deep);
  color: var(--linen);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.site-footer a {
  color: var(--linen-72);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--jute-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.logo-light .logo-word {
  color: var(--linen);
}

.footer-tagline {
  margin-top: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--linen-72);
  max-width: 34ch;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--linen-16);
  color: var(--linen-72);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

a.social-link:hover {
  border-color: var(--jute-gold);
  color: var(--jute-gold);
  background: rgba(192, 138, 46, 0.12);
}

.footer-columns {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--jute-gold);
  margin-bottom: 1rem;
}

.footer-column ul {
  display: grid;
  gap: 0.6rem;
  font-size: 0.93rem;
}

.footer-address {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--linen-72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.87rem;
  color: var(--linen-72);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer .thread-rule-art {
  margin: 0;
  opacity: 0.55;
}

@media (max-width: 55rem) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   27. Motion
   -------------------------------------------------------------------------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   28. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .final-cta,
  .btn-row,
  .article-toc {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .band-dark {
    background: #fff !important;
    color: #000 !important;
  }
}
