/* meLink Agency — hybrid scroll + A4 print pamphlet
   Visual system aligned with meLink Book landing (brand.ts / melink.ai) */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --blue: #009ace;
  --primary: #006f8f;
  --surface: #f4fafd;
  --surface-message: #eaf6fb;
  --text: #0f2a33;
  --highlight: #102946;
  --white: #ffffff;
  --muted: rgba(15, 42, 51, 0.62);
  --on-brand: #ffffff;
  --on-brand-muted: rgba(255, 255, 255, 0.88);
  --border: rgba(15, 42, 51, 0.1);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(244, 250, 253, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--highlight);
  white-space:nowrap;
}

.nav-brand span {
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--highlight);
  color: var(--white) !important;
}

/* ——— Shared section chrome ——— */
.sheet {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem;
}

.sheet-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.sheet.blue .kicker,
.sheet.ink .kicker,
.sheet.cover .kicker {
  color: rgba(255, 255, 255, 0.75);
}

h1,
h2.display {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--highlight);
}

.sheet.blue h1,
.sheet.blue h2.display,
.sheet.ink h1,
.sheet.ink h2.display,
.sheet.cover h1 {
  color: var(--white);
}

.lead {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.sheet.blue .lead,
.sheet.ink .lead,
.sheet.cover .lead {
  color: var(--on-brand-muted);
}

.band-white {
  background: var(--white);
}

.band-surface {
  background: var(--surface);
}

.band-message {
  background: var(--surface-message);
}

.sheet.blue {
  background: var(--blue);
  color: var(--white);
}

.sheet.ink {
  background: var(--highlight);
  color: var(--white);
}

/* Atmosphere orbs */
.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: 6%;
  left: -14%;
  background: rgba(255, 255, 255, 0.2);
  animation: drift-a 22s var(--ease) infinite alternate;
}

.orb-b {
  width: 440px;
  height: 440px;
  bottom: 0;
  right: -20%;
  background: rgba(0, 70, 100, 0.42);
  animation: drift-b 26s var(--ease) infinite alternate;
}

.orb-c {
  width: 280px;
  height: 280px;
  top: 38%;
  right: 12%;
  background: rgba(140, 220, 238, 0.32);
  animation: drift-c 20s var(--ease) infinite alternate;
}

.orb-soft-a {
  width: 300px;
  height: 300px;
  top: -8%;
  right: -10%;
  background: rgba(255, 255, 255, 0.14);
  animation: drift-a 24s var(--ease) infinite alternate;
}

.orb-soft-b {
  width: 360px;
  height: 360px;
  bottom: -12%;
  left: -14%;
  background: rgba(0, 70, 100, 0.28);
  animation: drift-b 28s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, 18px);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-30px, -16px);
  }
}

@keyframes drift-c {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-12px, 22px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Cover is above the fold — never wait for IO */
.cover .reveal {
  opacity: 1;
  transform: none;
}

/* ——— Cover ——— */
.cover {
  min-height: calc(100dvh - 56px);
  display: flex;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 2rem;
}

.wordmark em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

.cover h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  max-width: 14ch;
}

.cover .lead {
  font-size: 1.15rem;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--white);
  color: var(--primary);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.cta:hover {
  transform: translateY(-1px);
  background: var(--surface-message);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-brand-muted);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cta-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-dark {
  background: var(--primary);
  color: var(--white);
}

.cta-dark:hover {
  background: var(--highlight);
  color: var(--white);
}

.cta-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 111, 143, 0.35);
}

.cta-outline:hover {
  background: var(--surface-message);
}

/* ——— Problem / two-column ——— */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .split-copy {
    max-width: 28rem;
  }
}

.sheet h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
}

.audience-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.audience-list li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 1.15rem;
  position: relative;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.not-for {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.not-for h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.not-for p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ——— Leverage diagram ——— */
.leverage {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .leverage {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.model-card {
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.model-card.light {
  background: var(--white);
  border-color: var(--border);
}

.model-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.model-card.light .model-label {
  color: var(--primary);
  opacity: 1;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.flow-step {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.flow-arrow {
  font-size: 0.85rem;
  opacity: 0.55;
  font-weight: 600;
  padding-left: 0.15rem;
}

.model-card.light .flow-step {
  color: var(--highlight);
}

.model-card.light .flow-arrow {
  color: var(--muted);
}

.caveat {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-brand-muted);
  max-width: 40rem;
  line-height: 1.5;
}

.caveat.dark {
  color: var(--muted);
}

/* ——— Pricing equation ——— */
.equation {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}

.eq-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.eq-line strong {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.eq-total {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(15, 42, 51, 0.15);
}

.eq-total strong {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--primary);
}

.price-note {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.55;
}

.headcount-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .headcount-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.headcount-strip span {
  display: block;
  padding: 1rem 0.9rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--highlight);
  text-align: center;
}

/* ——— Payment models ——— */
.pay-models {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.pay-models-intro h2 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--highlight);
  margin-bottom: 0.65rem;
}

.pay-models-intro .lead {
  margin-top: 0;
  max-width: 40rem;
}

.pay-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .pay-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.pay-card {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
}

.pay-card.accent {
  background: var(--highlight);
  border-color: transparent;
  color: var(--white);
}

.pay-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.pay-card.accent .pay-tag {
  color: rgba(255, 255, 255, 0.7);
}

.pay-card h3 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.03em;
  color: var(--highlight);
  line-height: 1.15;
}

.pay-card.accent h3 {
  color: var(--white);
}

.pay-rate {
  margin: 0.85rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.pay-card.accent .pay-rate {
  color: rgba(255, 255, 255, 0.92);
}

.pay-rate strong {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.pay-card.accent .pay-rate strong {
  color: #7ad4ef;
}

.pay-card > p:not(.pay-tag):not(.pay-rate) {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.pay-card.accent > p:not(.pay-tag):not(.pay-rate) {
  color: rgba(255, 255, 255, 0.78);
}

.pay-card ul {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.pay-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--highlight);
  line-height: 1.4;
}

.pay-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--blue);
}

.pay-card.accent li {
  color: rgba(255, 255, 255, 0.9);
}

.pay-card.accent li::before {
  background: #7ad4ef;
}

/* ——— What you get ——— */
.pillars {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.pillar {
  padding: 1.25rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pillar h3 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-brand-muted);
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  max-width: 26rem;
}

.stack-block {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.stack-block + .stack-arrow {
  text-align: center;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  opacity: 0.55;
  font-weight: 700;
}

.stack-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.45rem;
}

.stack-items {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.stack-note {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-brand-muted);
}

/* ——— Categories ——— */
.categories {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
}

.cat h3 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.cat ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.cat li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.categories.on-dark {
  margin-top: 0.75rem;
}

.categories.on-dark .cat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.categories.on-dark .cat h3 {
  color: #7ec8de;
}

.categories.on-dark .cat li {
  color: var(--on-brand-muted);
}

/* ——— Week strip ——— */
.week {
  display: grid;
  gap: 0.65rem;
  margin-top: 2.25rem;
}

.week-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}

.week-day {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.week-task {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--highlight);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 2rem;
  align-items: center;
}

.chain span {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-message);
  color: var(--primary);
}

.chain i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ——— Data ——— */
.principles {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}

.principles li {
  list-style: none;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 600;
}

.triad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.25rem;
}

.triad span {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* ——— Backlog ——— */
.backlog-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

.backlog-list li {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.backlog-list li:last-child {
  border-bottom: none;
}

.backlog-cta {
  margin-top: 2.5rem;
}

.backlog-cta h2 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

/* ——— Comparison table ——— */
.compare-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare th,
.compare td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

.compare th:last-child {
  color: var(--primary);
}

.compare td:last-child {
  font-weight: 700;
  color: var(--highlight);
}

.compare tr:last-child td {
  border-bottom: none;
}

.compare td:first-child {
  color: var(--muted);
  font-weight: 500;
}

/* ——— Close + calculator ——— */
.close-block h1 {
  max-width: 16ch;
}

.promise {
  margin-top: 2rem;
  max-width: 32rem;
}

.promise p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-brand-muted);
  line-height: 1.55;
}

.promise-strong {
  margin-top: 1.5rem;
}

.promise-strong p {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.15;
}

.calculator {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator h2 {
  font-family: "Archivo Black", Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.calc-intro {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-brand-muted);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.calc-intro strong {
  color: var(--white);
  font-weight: 800;
}

.calc-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.calc-mode {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.calc-mode:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.calc-mode.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

.calc-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(16, 41, 70, 0.35);
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.field input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
}

.field-locked .field-static {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.field-locked .field-static span {
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.85rem;
}

.calc-results {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .calc-results {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-out {
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.calc-out .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.calc-out .value {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.calc-out .sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--on-brand-muted);
}

.calc-out.accent {
  background: rgba(255, 255, 255, 0.18);
}

.calc-timeline {
  margin-top: 1rem;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.calc-timeline-head .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.calc-timeline-start {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.tl-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr minmax(7.5rem, auto);
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.65rem;
}

.tl-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.tl-name.accent {
  color: #9be0f5;
}

.tl-track {
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(16, 41, 70, 0.45);
  overflow: hidden;
}

.tl-bar {
  height: 100%;
  border-radius: inherit;
  min-width: 0.5rem;
  transition: width 0.45s var(--ease);
}

.tl-bar.them {
  background: linear-gradient(90deg, #7aa8b8, #4d7a8a);
}

.tl-bar.melink {
  background: linear-gradient(90deg, #7ad4ef, #00b4e0);
}

.tl-end {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
  white-space: nowrap;
}

.tl-end.accent {
  color: #9be0f5;
  font-weight: 800;
}

.calc-timeline-punch {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .tl-row {
    grid-template-columns: 3.6rem 1fr;
  }

  .tl-end {
    grid-column: 2;
    text-align: left;
    margin-top: -0.25rem;
    margin-bottom: 0.35rem;
  }
}

.calc-disclaimer {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

/* ——— Value proposition charts ——— */
#value .lead {
  max-width: 40rem;
}

.value-metrics {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .value-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.value-metric {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
}

.value-metric .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.value-metric .value {
  margin-top: 0.55rem;
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--highlight);
}

.value-metric .sub {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.value-metric.accent {
  background: var(--primary);
  border-color: transparent;
}

.value-metric.accent .label,
.value-metric.accent .sub {
  color: rgba(255, 255, 255, 0.78);
}

.value-metric.accent .value {
  color: var(--white);
}

.value-charts {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .value-charts {
    grid-template-columns: 1fr 1fr;
  }
}

.chart-panel {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
}

.chart-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--highlight);
}

.chart-head p {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.bar-chart {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3.4rem;
  align-items: center;
  gap: 0.65rem;
}

.bar-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.bar-track {
  height: 1.55rem;
  border-radius: 999px;
  background: var(--surface-message);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--bar, 0%);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
}

.reveal.in .bar-fill {
  animation: bar-grow 1.1s var(--ease) both;
}

.bar-fill.traditional {
  background: linear-gradient(90deg, #7aa8b8, #4d7a8a);
}

.bar-fill.melink {
  background: linear-gradient(90deg, #00b4e0, var(--primary));
}

.bar-fig {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-align: right;
  color: var(--highlight);
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.value-split {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .value-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.effective-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.effective-card {
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.effective-card.highlight {
  background: var(--surface-message);
  border-color: rgba(0, 154, 206, 0.35);
}

.effective-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.effective-num {
  margin-top: 0.4rem;
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  letter-spacing: -0.04em;
  color: var(--highlight);
  line-height: 1;
}

.effective-card.highlight .effective-num {
  color: var(--primary);
}

.effective-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.effective-math {
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.effective-math strong {
  color: var(--primary);
  font-weight: 800;
}

.output-blocks {
  margin-top: 1.15rem;
  display: grid;
  gap: 1.15rem;
}

.block-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.blocks {
  display: grid;
  gap: 0.28rem;
}

.blocks.sparse {
  grid-template-columns: 2.2rem;
}

.blocks.sparse span {
  border-radius: 6px;
}

.blocks.dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.blocks span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #8fb6c4;
}

.blocks.dense span {
  background: var(--blue);
  opacity: 0;
  transform: scale(0.6);
}

.reveal.in .blocks.dense span {
  animation: block-pop 0.55s var(--ease) both;
}

.blocks.dense span:nth-child(1) { animation-delay: 0.02s; }
.blocks.dense span:nth-child(2) { animation-delay: 0.04s; }
.blocks.dense span:nth-child(3) { animation-delay: 0.06s; }
.blocks.dense span:nth-child(4) { animation-delay: 0.08s; }
.blocks.dense span:nth-child(5) { animation-delay: 0.1s; }
.blocks.dense span:nth-child(6) { animation-delay: 0.12s; }
.blocks.dense span:nth-child(7) { animation-delay: 0.14s; }
.blocks.dense span:nth-child(8) { animation-delay: 0.16s; }
.blocks.dense span:nth-child(9) { animation-delay: 0.18s; }
.blocks.dense span:nth-child(10) { animation-delay: 0.2s; }
.blocks.dense span:nth-child(11) { animation-delay: 0.22s; }
.blocks.dense span:nth-child(12) { animation-delay: 0.24s; }
.blocks.dense span:nth-child(13) { animation-delay: 0.26s; }
.blocks.dense span:nth-child(14) { animation-delay: 0.28s; }
.blocks.dense span:nth-child(15) { animation-delay: 0.3s; }
.blocks.dense span:nth-child(16) { animation-delay: 0.32s; }
.blocks.dense span:nth-child(17) { animation-delay: 0.34s; }
.blocks.dense span:nth-child(18) { animation-delay: 0.36s; }
.blocks.dense span:nth-child(19) { animation-delay: 0.38s; }
.blocks.dense span:nth-child(20) { animation-delay: 0.4s; }

@keyframes block-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.value-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  max-width: 46rem;
}

.value-disclaimer a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.25rem;
}

.value-disclaimer a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill,
  .blocks.dense span,
  .reveal.in .bar-fill,
  .reveal.in .blocks.dense span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.footer {
  padding: 1.5rem;
  background: var(--highlight);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer a {
  color: var(--white);
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

/* ——— Screen section titles ——— */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .sheet {
    padding: 3.5rem 1.15rem;
  }

  .cover {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}

/* ——— Print / PDF ——— */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    background: white !important;
  }

  .nav,
  .footer {
    display: none !important;
  }

  .orb {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    height: 297mm;
    margin: 0;
    padding: 16mm;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
  }

  .sheet:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  .sheet-inner {
    max-width: none;
  }

  .cover {
    min-height: 297mm;
    height: 297mm;
    display: flex;
    align-items: center;
  }

  .cover h1 {
    font-size: 42pt;
  }

  .sheet h1 {
    font-size: 28pt;
  }

  .cta:hover,
  .cta-ghost:hover {
    transform: none;
  }

  .field input {
    border-color: rgba(255, 255, 255, 0.4);
  }

  a {
    text-decoration: none !important;
  }

  /* Compact dense sheets so content fits one A4 */
  #hours .week {
    margin-top: 1.25rem;
    gap: 0.35rem;
  }

  #hours .week-row {
    padding: 0.55rem 0.85rem;
  }

  #hours .categories {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  #hours .cat {
    padding: 0.75rem 0.85rem;
  }

  #hours .cat ul {
    gap: 0.2rem;
  }

  #hours .cat li {
    font-size: 0.78rem;
  }

  #get .pillars {
    margin-top: 1.5rem;
    gap: 0.65rem;
  }

  #get .pillar {
    padding: 0.85rem 0.9rem;
  }

  #get .stack {
    margin-top: 1.5rem;
  }

  #cta .calculator {
    margin-top: 1.5rem;
    padding: 1.15rem 1.1rem;
  }

  #cta .calc-grid {
    gap: 0.65rem;
  }

  #cta .promise {
    margin-top: 1.15rem;
  }

  #cta .cta-row {
    margin-top: 1.15rem;
  }

  #value .value-metrics {
    margin-top: 1.25rem;
  }

  #value .chart-panel {
    padding: 1rem;
  }

  #value .bar-row {
    grid-template-columns: 4.5rem 1fr 3rem;
  }
}
