/* ==========================================================================
   Effortless New Way
   Design system and site styles
   Brand blue: #152e99
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #152e99;
  --brand-600:    #1e3fc4;
  --brand-500:    #2f52e0;
  --brand-400:    #5171f0;
  --brand-200:    #b9c6fb;
  --brand-50:     #eef2ff;

  /* Deep navy scale for dark sections */
  --navy-900:     #050c26;
  --navy-800:     #091239;
  --navy-700:     #0d1b57;
  --navy-600:     #122578;

  /* Accent */
  --accent:       #2ad4f0;
  --accent-soft:  #8ae7f7;

  /* Neutrals */
  --ink:          #0c1230;
  --body:         #444e6b;
  --muted:        #737e9c;
  --line:         #e3e8f5;
  --line-soft:    #eef1f9;
  --surface:      #ffffff;
  --surface-2:    #f6f8fd;
  --surface-3:    #eff3fc;

  /* Type */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Space and shape */
  --container:    1160px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 2px rgba(12, 18, 48, .06), 0 2px 8px rgba(12, 18, 48, .04);
  --shadow:       0 4px 12px rgba(12, 18, 48, .06), 0 14px 34px rgba(12, 18, 48, .07);
  --shadow-lg:    0 8px 20px rgba(12, 18, 48, .08), 0 28px 60px rgba(12, 18, 48, .12);
  --shadow-brand: 0 10px 30px rgba(21, 46, 153, .28);

  --header-h:     76px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-400); }

strong, b { color: var(--ink); font-weight: 650; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li::marker { color: var(--brand-400); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--brand-200); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 800px; }
.container--mid    { max-width: 960px; }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line-soft); }

.stack > * + * { margin-top: 1.15em; }

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

/* Section headings */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p { font-size: 1.125rem; color: var(--muted); margin-bottom: 0; }
.section-head h2 { margin-bottom: .45em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--accent); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.7;
  color: var(--body);
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid > *, .split > *, .footer-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 1rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-500) 60%, var(--brand-400) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 38px rgba(21, 46, 153, .38); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d5dcf0;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand-200); color: var(--ink); }

.btn-light {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }

.btn-white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn-white:hover { color: var(--brand); }

.btn-sm { padding: .7rem 1.2rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--brand-600);
}
.arrow-link svg { transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 18px rgba(12, 18, 48, .07); }

/* Transparent header over a dark hero */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header--overlay .nav-link { color: rgba(255, 255, 255, .82); }
.site-header--overlay .nav-link:hover,
.site-header--overlay .nav-link.is-active { color: #fff; }
.site-header--overlay .brand-name { color: #fff; }
.site-header--overlay .brand-tag { color: rgba(255, 255, 255, .6); }
.site-header--overlay .nav-toggle span { background: #fff; }
.site-header--overlay.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header--overlay.is-scrolled .nav-link { color: var(--body); }
.site-header--overlay.is-scrolled .nav-link:hover,
.site-header--overlay.is-scrolled .nav-link.is-active { color: var(--brand-600); }
.site-header--overlay.is-scrolled .brand-name { color: var(--ink); }
.site-header--overlay.is-scrolled .brand-tag { color: var(--muted); }
.site-header--overlay.is-scrolled .nav-toggle span { background: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-400) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-tag {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: .5rem .78rem;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-weight: 550;
  color: var(--body);
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-600); font-weight: 650; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 21px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px auto;
  transition: transform .25s ease, opacity .2s 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: 460px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1rem; }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 26px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-header--overlay .nav-links .nav-link { color: var(--body); }
  .site-header--overlay .nav-links .nav-link.is-active { color: var(--brand-600); }
  .nav-link { padding: .8rem .9rem; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  padding: calc(var(--header-h) + clamp(72px, 9vw, 128px)) 0 clamp(72px, 9vw, 132px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 8%,  rgba(42, 212, 240, .20), transparent 62%),
    radial-gradient(760px 560px at 12% 96%, rgba(81, 113, 240, .30), transparent 64%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-700) 52%, var(--brand) 118%);
}
/* faint grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 32%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 5%, transparent 72%);
}

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-soft) 0%, var(--accent) 45%, var(--brand-200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-inner { max-width: 780px; }
.hero-lead {
  font-size: clamp(1.06rem, 1rem + .5vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .74);
  margin-bottom: 2.25rem;
  max-width: 640px;
}
.hero .btn-row { margin-bottom: 0; }

.hero--sub { padding: calc(var(--header-h) + clamp(48px, 6vw, 84px)) 0 clamp(52px, 6vw, 88px); }
.hero--sub h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); }

/* Breadcrumb-ish pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .42rem 1rem .42rem .68rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .82rem;
  font-weight: 550;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 212, 240, .2);
}

/* --------------------------------------------------------------------------
   7. Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { background: #fff; padding: 30px 26px; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .875rem; color: var(--muted); line-height: 1.5; }

.stats-float { margin-top: clamp(-70px, -5vw, -46px); position: relative; z-index: 5; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--body); font-size: .98rem; }

a.card { color: inherit; }
a.card:hover,
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
a.card:hover h3 { color: var(--brand-600); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--brand-50), #e3e9ff);
  color: var(--brand);
  flex-shrink: 0;
}
.card-icon svg { width: 23px; height: 23px; }

.card-foot { margin-top: auto; padding-top: 20px; }

/* Numbered card */
.card-num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand-400);
  margin-bottom: 14px;
}

/* Soft tinted card */
.card--soft { background: var(--surface-2); border-color: transparent; }
.card--dark {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700) 70%, var(--brand));
  border-color: transparent;
  color: rgba(255, 255, 255, .76);
}
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   9. Feature rows (image/text split)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--top { align-items: start; }

/* Decorative panel used instead of photography */
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--brand) 130%);
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 88% 4%, rgba(42, 212, 240, .22), transparent 60%);
  pointer-events: none;
}
.panel h3, .panel h4 { color: #fff; }
.panel-list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.panel-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin: 0;
  font-size: .97rem;
}
.panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-list li:first-child { padding-top: 0; }
.panel-list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(42, 212, 240, .16);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.panel-list .tick svg { width: 12px; height: 12px; }
.panel-list b { color: #fff; }

/* --------------------------------------------------------------------------
   10. Long-form article content
   -------------------------------------------------------------------------- */
.prose { font-size: 1.0625rem; }
.prose h2 {
  margin-top: 2.4em;
  padding-top: .2em;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }
.prose h4 { margin-top: 1.8em; margin-bottom: .45em; color: var(--ink); }
.prose > p:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: 1.4em; }
.prose li { padding-left: .2em; }
.prose .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.prose .grid-3 .card { padding: 24px; }
.prose .grid-2 .card { padding: 26px; }

/* Definition list style used for term/meaning pairs */
.deflist { display: grid; gap: 0; margin: 1.6em 0; }
.deflist-item {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.deflist-item:last-child { border-bottom: 1px solid var(--line-soft); }
.deflist-term {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.deflist-def { color: var(--body); font-size: .98rem; }
.deflist-def p { margin-bottom: 0; }
@media (max-width: 620px) {
  .deflist-item { grid-template-columns: 1fr; gap: 6px; }
}

/* Callout box */
.callout {
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--brand-50);
  border: 1px solid #dbe3ff;
  margin: 2em 0;
  font-size: .99rem;
}
.callout h4 { margin-top: 0; margin-bottom: .5em; color: var(--brand); }
.callout--warn { background: #fff8ed; border-color: #fae4c0; }
.callout--warn h4 { color: #8a5a12; }
.callout--quiet { background: var(--surface-2); border-color: var(--line); }
.callout--quiet h4 { color: var(--ink); }

/* Sentiment scale */
.scale { display: grid; gap: 12px; margin: 1.8em 0; }
.scale-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.scale-band {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: -0.01em;
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  text-align: center;
  white-space: nowrap;
}
.band-0  { background: #fde8e8; color: #a02222; }
.band-25 { background: #fdf0e0; color: #97600f; }
.band-50 { background: #e6f6ec; color: #1c6b3c; }
.band-75 { background: #e2f2fd; color: #12557f; }
.scale-row p { font-size: .96rem; margin: 0; }
.scale-row .scale-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); display: block; margin-bottom: .2em; font-size: 1rem; }
@media (max-width: 620px) {
  .scale-row { grid-template-columns: 1fr; gap: 12px; }
  .scale-band { justify-self: start; }
}

/* Formula display */
.formula {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, .92rem + .5vw, 1.2rem);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  margin: 1.6em 0;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   11. In-page sticky contents nav
   -------------------------------------------------------------------------- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  align-self: start;
}
.toc-title {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: .5rem 0 .5rem 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}
.toc a:hover { color: var(--brand-600); }
.toc a.is-active {
  color: var(--brand-600);
  border-left-color: var(--brand);
  font-weight: 600;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 940px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* --------------------------------------------------------------------------
   12. Newsletter block
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .76);
  padding: clamp(60px, 7vw, 92px) 0;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 420px at 82% 12%, rgba(42, 212, 240, .18), transparent 62%),
    radial-gradient(640px 460px at 8% 92%, rgba(81, 113, 240, .28), transparent 64%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700) 62%, var(--brand) 128%);
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .74); }

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 28px auto 14px;
}
.signup-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.signup-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 4px rgba(42, 212, 240, .16);
}
.form-note { font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------------------
   13. Forms (contact)
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req { color: var(--brand-500); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(81, 113, 240, .14);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field-help { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  margin-bottom: 22px;
}
.form-msg--ok   { background: #e6f6ec; color: #1c6b3c; border: 1px solid #bfe6cd; }
.form-msg--err  { background: #fde8e8; color: #a02222; border: 1px solid #f5c9c9; }

/* Contact detail list */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-ico svg { width: 19px; height: 19px; }
.contact-list h4 { margin: 0 0 2px; font-size: .95rem; }
.contact-list p { margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  padding: clamp(52px, 6vw, 76px) 0 32px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255, 255, 255, .45); }
.footer-about { margin-top: 18px; max-width: 340px; line-height: 1.7; color: rgba(255, 255, 255, .58); }

.footer-title {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .6); }
.footer-links a:hover { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.social {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social:hover { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: transparent; }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Small print / disclaimer block */
.smallprint {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}
.smallprint ul { padding-left: 1.15em; }
.smallprint li { margin-bottom: .6em; }

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.no-wrap { white-space: nowrap; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Print */
@media print {
  .site-header, .newsletter, .site-footer, .toc, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { background: none !important; color: #000; padding: 0 0 20pt; }
  .hero h1, .hero h1 .grad { color: #000 !important; -webkit-text-fill-color: #000; }
}
