:root {
  --ink: #101821;
  --navy: #11233f;
  --navy-soft: #1b365d;
  --paper: #f6f1e8;
  --paper-deep: #eee5d7;
  --white: #fffdf9;
  --pink: #e83aa4;
  --pink-pale: #fde7f4;
  --green: #237d64;
  --orange: #d76525;
  --muted: #66707a;
  --line: #d9d1c3;
  --shadow: 0 24px 60px rgba(17, 35, 63, 0.12);
  --radius: 22px;
  --sans: "Segoe UI", Inter, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 58, 164, 0.08), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(217, 209, 195, 0.82);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 11px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -4px 0 var(--pink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 12px 28px rgba(232, 58, 164, 0.24);
}

.button-primary:hover {
  background: #d82e93;
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-dark {
  color: #fff;
  background: var(--navy);
}

.text-link {
  color: var(--navy);
  font-weight: 750;
}

button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 76px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -14vw;
  bottom: -15rem;
  width: 50vw;
  height: 50vw;
  max-width: 680px;
  max-height: 680px;
  border: 1px solid rgba(232, 58, 164, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.78fr);
  align-items: center;
  gap: 68px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--pink);
  border-radius: 3px;
}

.hero h1,
.page-hero h1,
.article-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 78px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #46515b;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.microcopy {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.signal-card {
  position: relative;
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  pointer-events: none;
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-head span:last-child {
  color: #ffb6df;
}

.signal-score {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-score strong {
  display: block;
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.signal-score span {
  display: block;
  margin-top: 7px;
  color: #cbd6e4;
  font-size: 14px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.signal-cell {
  min-height: 98px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
}

.signal-cell b {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-cell span {
  color: #cbd6e4;
  font-size: 13px;
  line-height: 1.45;
}

.signal-cell.stop b {
  color: #ff9a82;
}

.signal-cell.swap b {
  color: #ffc56d;
}

.signal-cell.watch b {
  color: #94d6c3;
}

.signal-cell.scale b {
  color: #83d5ab;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-dark .eyebrow,
.section-dark .section-intro,
.section-dark .formula-detail {
  color: #c9d4e2;
}

.section-dark .formula-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.formula-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.formula-label {
  display: block;
  margin-bottom: 16px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.formula {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.15;
}

.formula-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.decision-card {
  min-height: 230px;
  padding: 24px 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: 17px;
}

.decision-card.stop {
  border-top-color: #e35b43;
}

.decision-card.swap {
  border-top-color: #d99a21;
}

.decision-card.review {
  border-top-color: var(--navy-soft);
}

.decision-card.scale {
  border-top-color: var(--green);
}

.decision-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(17, 35, 63, 0.07);
}

.feature-copy {
  padding: clamp(28px, 5vw, 60px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.feature-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-card p {
  max-width: 610px;
  color: var(--muted);
}

.feature-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232, 58, 164, 0.16), transparent 55%),
    var(--paper-deep);
}

.feature-visual::before,
.feature-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.feature-visual::before {
  width: 280px;
  height: 280px;
  border: 28px solid var(--navy);
}

.feature-visual::after {
  width: 126px;
  height: 126px;
  background: var(--pink);
}

.feature-visual span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
}

.resource-panel {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.resource-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.resource-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.resource-panel p {
  max-width: 620px;
  color: var(--muted);
}

.resource-panel .button {
  margin-top: 12px;
}

.site-footer {
  padding: 54px 0 34px;
  color: #d5dce5;
  background: #0c1829;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 50px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--serif);
  font-size: 34px;
}

.footer-grid p {
  max-width: 560px;
  margin: 0;
  color: #aebaca;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  color: #d5dce5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8997aa;
  font-size: 13px;
}

.page-hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(44px, 6vw, 70px);
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.guide-list {
  display: grid;
  gap: 14px;
}

.guide-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.guide-row.planned {
  color: #717984;
  background: rgba(255, 253, 249, 0.52);
}

.guide-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 21px;
}

.guide-row.planned .guide-number {
  color: var(--muted);
  background: var(--paper-deep);
}

.guide-row h2,
.guide-row h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.guide-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-tag {
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-header {
  padding: 64px 0 44px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.article-title {
  max-width: 930px;
  font-size: clamp(44px, 6vw, 72px);
}

.article-deck {
  max-width: 800px;
  margin: 23px 0 0;
  color: #4d5762;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 270px;
  justify-content: space-between;
  gap: 60px;
  padding: 58px 0 86px;
}

.article-layout > * {
  min-width: 0;
}

.prose {
  min-width: 0;
  font-size: 18px;
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.2em 0 0.65em;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 21px;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin: 0.45em 0;
}

.prose a {
  color: var(--navy-soft);
  font-weight: 650;
}

.prose strong {
  color: #0d1827;
}

.prose blockquote {
  margin: 2em 0;
  padding: 22px 25px;
  color: var(--navy);
  background: #fff2d9;
  border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}

.article-table th {
  color: #fff;
  background: var(--navy);
  text-align: left;
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-table tr:nth-child(even) td {
  background: #fbf8f2;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin: 30px 0;
  padding: 24px;
  background: var(--pink-pale);
  border-radius: 16px;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.cta-panel {
  margin: 40px 0;
  padding: 30px;
  color: var(--white);
  background: var(--navy);
  border-radius: 22px;
}

.cta-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: 34px;
}

.cta-panel p {
  color: #c7d2df;
}

.cta-panel .button {
  margin-top: 7px;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.check-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.check-item span:first-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.check-item p {
  margin: 0;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.download-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.08;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 60px;
  padding: 62px 0 86px;
}

.about-grid h2 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 38px;
}

.about-aside {
  align-self: start;
  padding: 26px;
  color: var(--white);
  background: var(--navy);
  border-radius: 21px;
}

.about-aside p {
  color: #c5d0de;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(60px, 12vw, 130px);
  line-height: 1;
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-card,
  .resource-panel,
  .article-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 46px;
  }

  .signal-card {
    max-width: 600px;
    transform: none;
  }

  .decision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-visual {
    min-height: 280px;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    border-radius: 9px;
  }

  .site-nav a:hover {
    background: var(--paper);
  }

  .hero {
    padding: 54px 0 58px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 60px);
  }

  .hero-copy,
  .page-hero p {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .formula-grid,
  .decision-grid,
  .download-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .formula-card,
  .feature-copy,
  .resource-panel,
  .cta-panel {
    padding: 24px;
  }

  .decision-card {
    min-height: auto;
  }

  .guide-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .guide-number {
    width: 43px;
    height: 43px;
  }

  .guide-row > :last-child {
    grid-column: 2;
  }

  .article-header {
    padding: 48px 0 34px;
  }

  .article-title {
    font-size: clamp(40px, 12vw, 58px);
  }

  .article-deck {
    font-size: 19px;
  }

  .article-layout {
    padding: 38px 0 64px;
    gap: 32px;
  }

  .prose {
    font-size: 17px;
  }

  .prose h2 {
    font-size: 30px;
  }

  .download-card {
    gap: 26px;
    padding: 20px;
  }

  .resource-image {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
