/* ============================================================
   MaiKa — "Threshold" design system
   Concept: the doorway, not the drawing. Deep indigo ground,
   porcelain light, a jade action colour, and an arch motif that
   carries from the hero signature into the cards themselves.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --deep:        #1E1836;   /* base dark, indigo-black */
  --dusk:        #2E2552;   /* raised dark surfaces */
  --dusk-line:   #453A73;   /* borders on dark */
  --porcelain:   #F2F0F7;   /* cool light ground */
  --shell:       #FFFFFF;   /* raised light surfaces */
  --jade:        #0F7A5F;   /* primary action */
  --jade-deep:   #0B6650;
  --aqua:        #7FE3D0;   /* luminous accent, dark sections only */
  --slate:       #56506B;   /* muted body text on light */
  --slate-soft:  #8A849E;
  --line:        #DEDAE9;   /* borders on light */

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --arch: 140px 140px var(--r-lg) var(--r-lg);

  /* Depth */
  --lift-1: 0 2px 6px rgba(30, 24, 54, 0.05);
  --lift-2: 0 14px 34px rgba(30, 24, 54, 0.11);
  --lift-3: 0 24px 60px rgba(30, 24, 54, 0.16);

  --pad-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--deep);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: 4px;
}
.surface-deep :focus-visible { outline-color: var(--aqua); }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Surfaces ---------- */
section { padding-block: var(--pad-section); }
.surface-deep      { background: var(--deep); color: #EDEAF6; }
.surface-porcelain { background: var(--porcelain); }
.surface-shell     { background: var(--shell); }
.surface-deep h1, .surface-deep h2, .surface-deep h3 { color: #FFFFFF; }
.surface-deep a { color: var(--aqua); }

/* ---------- Eyebrow + section head ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.9rem;
}
.surface-deep .eyebrow { color: var(--aqua); }

.section-head { max-width: 60ch; margin-bottom: 3.2rem; }
.section-head p { color: var(--slate); margin-top: 1rem; font-size: var(--step-1); }
.surface-deep .section-head p { color: #B7B0CE; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--jade); color: #FFFFFF; box-shadow: var(--lift-1); }
.btn-primary:hover { background: var(--jade-deep); box-shadow: var(--lift-2); }
.btn-ghost { border-color: var(--line); color: var(--deep); background: transparent; }
.btn-ghost:hover { border-color: var(--deep); }
.surface-deep .btn-ghost { border-color: var(--dusk-line); color: #FFFFFF; }
.surface-deep .btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 240, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--deep); margin-right: auto;
}
.brand-mark { width: 26px; height: 26px; color: var(--jade); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--slate); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.site-nav a:hover { color: var(--deep); }
.site-nav a.is-active { color: var(--deep); border-bottom-color: var(--jade); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--deep); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   SIGNATURE — The Threshold
   Nested arches that illuminate outward-in as you arrive.
   ============================================================ */
.threshold { width: 100%; max-width: 420px; margin-inline: auto; position: relative; }
.threshold::after {
  /* light spilling through the opening */
  content: "";
  position: absolute; left: 50%; bottom: 4%;
  width: 62%; height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(127, 227, 208, 0.34), transparent 68%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 1.1s ease 0.9s;
  pointer-events: none;
}
.threshold.is-open::after { opacity: 1; }

.threshold .arc {
  fill: none;
  stroke: var(--dusk-line);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.45;
  transition: stroke 0.7s ease, opacity 0.7s ease, stroke-width 0.7s ease;
}
.threshold .arc-1 { transition-delay: 0.05s; }
.threshold .arc-2 { transition-delay: 0.3s; }
.threshold .arc-3 { transition-delay: 0.55s; }
.threshold .arc-4 { transition-delay: 0.8s; }
.threshold.is-open .arc { stroke: var(--aqua); opacity: 1; }
.threshold.is-open .arc-4 { stroke-width: 2.2; }

.threshold .sill {
  stroke: var(--dusk-line);
  stroke-width: 1.4;
  opacity: 0.5;
  transition: stroke 0.7s ease 0.95s, opacity 0.7s ease 0.95s;
}
.threshold.is-open .sill { stroke: var(--aqua); opacity: 0.85; }

.threshold .key-dot {
  fill: var(--aqua);
  opacity: 0;
  transition: opacity 0.6s ease 1.15s;
}
.threshold.is-open .key-dot { opacity: 1; }

/* Arch motif reused on light surfaces */
.threshold--ink .arc { stroke: var(--line); opacity: 0.8; }
.threshold--ink.is-open .arc { stroke: var(--jade); }
.threshold--ink .sill { stroke: var(--line); }
.threshold--ink.is-open .sill { stroke: var(--jade); }
.threshold--ink .key-dot { fill: var(--jade); }
.threshold--ink.is-open::after {
  background: radial-gradient(ellipse at 50% 100%, rgba(15, 122, 95, 0.16), transparent 68%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 2rem + 8vw, 7.5rem); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -60% 30%;
  height: 90%; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 37, 82, 0.85), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero h1 { margin-block: 0.6rem 1.5rem; }
.hero h1 em { font-style: italic; color: var(--aqua); }
.hero .lede { font-size: var(--step-1); color: #B7B0CE; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--dusk-line);
}
.hero-proof span {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: #B7B0CE;
}
.hero-proof span::before { content: "✓"; color: var(--aqua); margin-right: 0.5rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; }
}

/* ---------- Stage cards (arch-topped, the motif at work) ---------- */
.stage-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.stage-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--arch);
  padding: 3.7rem 1.9rem 2rem;
  text-align: center;
  box-shadow: var(--lift-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lift-3);
  border-color: rgba(15, 122, 95, 0.4);
}
.stage-num {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--jade);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(15, 122, 95, 0.28);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.stage-card h3 { margin-bottom: 0.7rem; }
.stage-card > p { color: var(--slate); font-size: 0.96rem; }
.stage-list { list-style: none; padding: 0; margin-top: 1.5rem; text-align: left; }
.stage-list li {
  position: relative; padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: 0.92rem; color: var(--slate);
  border-top: 1px solid var(--line);
}
.stage-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade); opacity: 0.55;
}

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.offer-card {
  background: var(--dusk);
  border: 1px solid var(--dusk-line);
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.offer-card:hover { transform: translateY(-5px); border-color: var(--aqua); }
.offer-card h3 { margin-bottom: 0.7rem; }
.offer-card p { color: #B7B0CE; font-size: 0.95rem; flex-grow: 1; }
.offer-link {
  margin-top: 1.5rem; font-weight: 600; font-size: 0.9rem;
  color: var(--aqua); text-decoration: none;
}
.offer-link:hover { text-decoration: underline; }

/* ---------- Resource cards ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.resource-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift-2);
  border-color: rgba(15, 122, 95, 0.4);
}
.tag {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--jade);
  background: rgba(15, 122, 95, 0.08);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.tag--tool { color: #7A4BC4; background: rgba(122, 75, 196, 0.1); }
.resource-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.resource-card p { color: var(--slate); font-size: 0.93rem; flex-grow: 1; }
.resource-card .more {
  margin-top: 1.3rem; font-weight: 600; font-size: 0.88rem; color: var(--jade);
}

/* ---------- Resources hub controls ---------- */
.hub-controls {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.hub-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.hub-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--shell);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hub-search input:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 122, 95, 0.12);
}
.hub-search svg {
  position: absolute; left: 0.95rem; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--slate-soft);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--shell);
  color: var(--slate);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.chip:hover { border-color: var(--jade); color: var(--deep); }
.chip.is-active { background: var(--deep); border-color: var(--deep); color: #FFFFFF; }
.hub-count { font-size: 0.85rem; color: var(--slate-soft); margin-bottom: 1.4rem; }
.hub-empty {
  display: none;
  text-align: center; padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: var(--shell);
}
.hub-empty h3 { margin-bottom: 0.5rem; }
.hub-empty p { color: var(--slate); }
.hub-empty.is-shown { display: block; }
.resource-card.is-hidden { display: none; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.quote {
  background: var(--dusk);
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  border: 1px solid var(--dusk-line);
}
.quote p { color: #DAD5EA; font-size: 1.02rem; }
.quote footer {
  margin-top: 1.3rem; padding-top: 1rem;
  border-top: 1px solid var(--dusk-line);
  font-size: 0.82rem; letter-spacing: 0.05em; color: var(--aqua);
}

/* ---------- Values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.value-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--slate); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta {
  background: var(--deep);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: 50%; top: -55%;
  width: 340px; height: 340px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 227, 208, 0.2), transparent 68%);
  pointer-events: none;
}
.cta h2 { position: relative; margin-bottom: 0.9rem; }
.cta p { position: relative; color: #B7B0CE; margin-bottom: 2rem; }
.cta .btn { position: relative; }

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--deep); color: #EDEAF6;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
}
.page-hero h1 { font-size: var(--step-3); }
.page-hero .lede {
  font-size: var(--step-1); color: #B7B0CE;
  max-width: 60ch; margin-top: 1.1rem;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.45rem; color: var(--deep);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--shell);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 122, 95, 0.12);
}
.field .hint { font-size: 0.8rem; color: var(--slate-soft); margin-top: 0.4rem; }
.form-status { font-size: 0.88rem; color: var(--jade); font-weight: 500; }

.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.newsletter-form input {
  flex: 1 1 200px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--dusk-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.newsletter-form input::placeholder { color: #8F88A9; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.split--narrow { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .split, .split--narrow { grid-template-columns: 1fr; } }

.panel {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.panel--sticky { position: sticky; top: 6rem; }
@media (max-width: 860px) { .panel--sticky { position: static; } }

/* ---------- Calculator results ---------- */
.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line);
}
.result-row:first-of-type { border-top: 0; }
.result-row dt { font-size: 0.88rem; color: var(--slate); }
.result-row dd {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--deep); text-align: right;
}
.result-empty { color: var(--slate-soft); font-size: 0.93rem; }
.disclaimer {
  font-size: 0.82rem; color: var(--slate-soft);
  line-height: 1.6; margin-top: 1.5rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill-row input { position: absolute; opacity: 0; pointer-events: none; }
.pill-row label {
  border: 1px solid var(--line); background: var(--shell);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  margin: 0; transition: all 0.16s ease;
}
.pill-row input:checked + label { background: var(--jade); border-color: var(--jade); color: #FFFFFF; }
.pill-row input:focus-visible + label { outline: 3px solid var(--jade); outline-offset: 3px; }

/* ---------- Articles ---------- */
.back-link {
  display: inline-block; font-size: 0.85rem; font-weight: 500;
  color: var(--aqua); text-decoration: none; margin-bottom: 1.5rem;
}
.back-link:hover { text-decoration: underline; }
.article-meta { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.1rem; }
.article-meta .tag { margin: 0; background: rgba(127, 227, 208, 0.12); color: var(--aqua); }
.article-readtime { font-size: 0.8rem; color: #8F88A9; letter-spacing: 0.05em; }

.article-body { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; }
.article-body h2 {
  font-size: var(--step-2); margin-top: 3rem; margin-bottom: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body p { margin-bottom: 1.25rem; color: #2C2748; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem; color: #2C2748; }
.article-body ul li::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.72rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--jade); opacity: 0.6;
}
.article-body ol { counter-reset: step; }
.article-body ol li { counter-increment: step; padding-left: 2.4rem; }
.article-body ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.15rem;
  width: 1.65rem; height: 1.65rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15, 122, 95, 0.1); color: var(--jade);
  font-size: 0.78rem; font-weight: 700;
}
.article-body strong { font-weight: 600; color: var(--deep); }
.callout {
  background: var(--shell);
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  border-radius: var(--r-md);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.callout .eyebrow { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }

.crosslinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.crosslink {
  display: block; text-decoration: none; color: inherit;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.crosslink:hover { border-color: var(--jade); transform: translateY(-3px); }
.crosslink span {
  display: block; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--jade); margin-bottom: 0.4rem;
}
.crosslink strong { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }

/* ---------- Tools ---------- */
.tool-bar .field { max-width: 320px; }
.tool-bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.4rem;
  margin-bottom: 2rem;
}
.progress-wrap { flex: 1 1 220px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--slate); margin-bottom: 0.45rem;
}
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--jade), #35A98A);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.check-group { margin-bottom: 2rem; }
.check-group > h3 {
  font-size: var(--step-1); margin-bottom: 0.3rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.check-group > p { color: var(--slate); font-size: 0.92rem; margin-bottom: 1rem; }
.check-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.2rem;
  margin-bottom: 0.6rem; cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.check-item:hover { border-color: var(--jade); }
.check-item input { margin-top: 0.28rem; width: 18px; height: 18px; accent-color: var(--jade); flex-shrink: 0; }
.check-item.is-done { background: rgba(15, 122, 95, 0.05); border-color: rgba(15, 122, 95, 0.3); }
.check-item.is-done .check-text strong { text-decoration: line-through; color: var(--slate-soft); }
.check-text strong { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.15rem; }
.check-text span { font-size: 0.87rem; color: var(--slate); }

.worksheet-table { width: 100%; border-collapse: collapse; }
.worksheet-table th {
  text-align: left; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-soft); padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.worksheet-table th:not(:first-child), .worksheet-table td:not(:first-child) { text-align: right; }
.worksheet-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.worksheet-table input {
  width: 110px; text-align: right;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--porcelain);
}
.worksheet-table input:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(15, 122, 95, 0.12);
}
.var-over { color: #B03A2E; font-weight: 600; }
.var-under { color: var(--jade); font-weight: 600; }
.worksheet-total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--deep); }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.download-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.4rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.download-card:hover { border-color: var(--jade); transform: translateY(-3px); box-shadow: var(--lift-2); }
.download-card svg { width: 26px; height: 26px; color: var(--jade); flex-shrink: 0; margin-top: 2px; }
.download-card strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.download-card span { font-size: 0.87rem; color: var(--slate); }
.download-card em { font-style: normal; font-size: 0.75rem; color: var(--slate-soft); letter-spacing: 0.06em; }

/* ---------- Accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.3rem 0; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--jade); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.3rem; color: var(--slate); max-width: 65ch; }

/* ---------- Placeholder box ---------- */
.placeholder {
  border: 1px dashed var(--slate-soft);
  border-radius: var(--r-md);
  padding: 1.6rem;
  background: rgba(86, 80, 107, 0.04);
}
.placeholder .eyebrow { color: var(--slate-soft); }
.placeholder p { color: var(--slate); font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #B7B0CE; padding-block: 4rem 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--dusk-line);
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #FFFFFF; display: block; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.92rem; max-width: 42ch; }
.footer-col h3 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF; margin-bottom: 1rem;
}
.footer-col a { display: block; color: #B7B0CE; text-decoration: none; font-size: 0.92rem; padding-block: 0.35rem; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; padding-top: 1.8rem;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: #B7B0CE; text-decoration: none; }
.footer-legal a:hover { color: var(--aqua); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .threshold .arc, .threshold .sill, .threshold .key-dot, .threshold::after { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta, .tool-bar .btn, .nav-toggle { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  section { padding-block: 1rem; }
  .check-item, .panel, .worksheet-table input { border-color: #999999; }
  a { color: #000000; text-decoration: none; }
}

/* ---------- Free guides questionnaire ---------- */
.guide-choice { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.js-guides .guide-step { display: none; }
.js-guides .guide-step.is-current { display: block; }
.js-guides .guide-step .check-item { cursor: default; padding: 1.4rem 1.4rem; }
.js-guides .guide-step .check-item:hover { border-color: var(--line); }
.js-guides .guide-step .check-item input { position: absolute; opacity: 0; pointer-events: none; }
.js-guides .guide-step .check-text strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.js-guides #guideDetails { display: none; }
.js-guides.is-details #guideTopics { display: none; }
.js-guides.is-details #guideDetails { display: block; }
.js-guides.is-details #guideDetailsHeading { margin-top: 0; }
.download-card[hidden], .guide-choice[hidden], [hidden] { display: none !important; }

/* ---------- Logo: the key ---------- */
.brand-mark { width: 44px; height: 27px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand .footer-logo .brand-name { display: inline; margin: 0; color: #FFFFFF; }

/* ---------- Harleen ---------- */
.founder-sign {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 1.6rem; text-align: left;
  font-size: 0.92rem; color: var(--slate); line-height: 1.4;
}
.founder-sign img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.founder-sign strong { color: var(--deep); font-weight: 600; }
.founder-photo { margin: 0; }
.founder-photo img {
  width: 100%; max-width: 420px; height: auto; display: block;
  border-radius: 140px 140px var(--r-lg) var(--r-lg);
  box-shadow: var(--lift-2);
}
.founder-photo figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--slate-soft); }

/* ---------- Information form ---------- */
.form-section {
  font-size: var(--step-1); margin: 2rem 0 1.1rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.field label.choice, label.choice {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-weight: 500; font-size: 0.92rem; margin: 0 0 0.45rem;
}
label.choice input { width: auto; margin-top: 0.3rem; accent-color: var(--jade); flex-shrink: 0; }
.next-steps { counter-reset: n; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.next-steps li { counter-increment: n; position: relative; padding: 0 0 1rem 2.4rem; font-size: 0.93rem; color: var(--slate); }
.next-steps li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 1.65rem; height: 1.65rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 122, 95, 0.1); color: var(--jade);
  font-size: 0.78rem; font-weight: 700;
}
.next-steps strong { color: var(--deep); }
label.choice > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.field-row > .field, .choice-grid > * { min-width: 0; }
/* Hidden radio inputs in pill selectors: anchor them and give them a real size,
   so the general .field input { width: 100% } rule can never stretch them. */
.pill-row { position: relative; }
.pill-row input { width: 1px !important; height: 1px; margin: 0; padding: 0; border: 0; }
