:root {
  color-scheme: light;
  --ink: #171717;
  --body: #3d3d3d;
  --muted: #727272;
  --line: #e4e0d8;
  --surface: #ffffff;
  --surface-soft: #f5f1ea;
  --surface-warm: #fbf8f2;
  --dark: #111111;
  --dark-soft: #1c1c1c;
  --green: #16835f;
  --green-dark: #0e5f46;
  --amber: #d77a33;
  --blue: #2f6f9f;
  --shadow: 0 24px 70px rgba(23, 23, 23, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--surface);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
p,
dd {
  overflow-wrap: anywhere;
}

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

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 44px;
  color: rgba(255, 255, 255, .82);
  background: rgba(12, 12, 12, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
}

.navbar-wordmark {
  width: 224px;
  height: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.navbar-nav a {
  padding: 21px 0;
  color: rgba(255, 255, 255, .74);
  transition: color .16s ease;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: #fff;
}

.lang-toggle {
  min-width: 40px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 108px 0 88px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 36%, rgba(22, 131, 95, .22), transparent 42%),
    radial-gradient(ellipse at 22% 72%, rgba(215, 122, 51, .08), transparent 34%),
    linear-gradient(135deg, #0b0f0d 0%, #111111 52%, #10291f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px),
    radial-gradient(circle at 14% 30%, rgba(215, 122, 51, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 42%, rgba(22, 131, 95, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 34%, rgba(215, 122, 51, .18) 0 2px, transparent 3px),
    linear-gradient(120deg, transparent 0 10%, rgba(22, 131, 95, .12) 10.2% 10.5%, transparent 10.7% 100%);
  background-size: 76px 76px, 76px 76px, auto, auto, auto, auto;
  opacity: .7;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .48) 48%, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, .72) 0%, rgba(8, 10, 9, .42) 46%, rgba(8, 10, 9, .14) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, .1) 0%, rgba(17, 17, 17, .08) 52%, rgba(17, 17, 17, .72) 100%);
  pointer-events: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  gap: 56px;
  align-items: center;
}

.hero-content {
  width: min(720px, 100%);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-kicker {
  color: rgba(255, 255, 255, .78);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 19px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.hero-result-card {
  width: min(100%, 460px);
  border-color: rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 34%),
    rgba(17, 17, 17, .9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .48);
  backdrop-filter: blur(14px);
}

.hero-result-card .score-display strong {
  font-size: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, .68);
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

.store-note {
  min-height: 22px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.store-note.is-active {
  color: #fff;
  font-weight: 700;
}

.affiliate-disclosure {
  max-width: 680px;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.55;
}

.affiliate-disclosure a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.module {
  padding: 96px 0;
  background: var(--surface);
}

.module-problem,
.module-guide {
  background: var(--surface-warm);
}

.module-result {
  background: var(--surface-soft);
}

.module-formula {
  background: var(--surface);
}

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

.module-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.module h2,
.section-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: 0;
}

.module-dark h2,
.module-dark h3 {
  color: #fff;
}

.module-header p:last-child,
.section-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.module-dark .module-header p:last-child,
.module-dark .step-item p {
  color: rgba(255, 255, 255, .68);
}

.two-column,
.result-layout,
.formula-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.problem-list {
  display: grid;
  gap: 16px;
}

.problem-list article,
.info-card,
.feature-item,
.result-card,
.formula-card,
.guide-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.problem-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 18px;
  padding: 22px;
}

.problem-list span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #efe7d9;
  color: #8b5522;
  font-size: 13px;
  font-weight: 850;
}

.problem-list h3,
.step-item h3,
.info-card h3,
.feature-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0;
}

.problem-list p,
.step-item p,
.info-card p,
.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.module-dark .step-item h3 {
  color: #fff;
}

.result-card {
  padding: 28px;
  color: #fff;
  background: #171717;
  border-color: #292929;
  box-shadow: var(--shadow);
}

.result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.result-card-head p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.result-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.result-card-head span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 131, 95, .2);
  color: #55d89f;
  font-size: 12px;
  font-weight: 800;
}

.score-display {
  display: grid;
  gap: 4px;
  padding: 24px 0;
}

.score-display strong {
  color: #58e69e;
  font-size: 38px;
  line-height: 1;
}

.score-display span {
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.result-metrics div {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
}

.result-metrics dt {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.result-metrics dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 780;
}

.result-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.text-link::after {
  content: "->";
  margin-left: 8px;
}

.formula-card {
  padding: 28px;
  background: var(--surface-warm);
}

.formula-label {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.formula-equation {
  padding: 20px;
  border-radius: 7px;
  background: #111111;
  color: #58e69e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.formula-example {
  margin: 18px 0 0;
}

.formula-example div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.formula-example dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.formula-example dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 780;
}

.formula-modes {
  margin-top: 18px;
}

.formula-modes-label {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.formula-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.formula-mode-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.formula-mode-grid strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.formula-mode-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.formula-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.formula-note strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.formula-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.step-grid,
.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-item {
  padding: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.step-item span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 850;
}

.info-card,
.feature-item {
  padding: 26px;
}

.card-token,
.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  margin-bottom: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf2ee;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.feature-mark {
  background: #eef3f7;
  color: var(--blue);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.guide-shot {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(23, 23, 23, .09);
}

.guide-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1908 / 878;
  object-fit: cover;
  object-position: top left;
  background: #ddd;
}

.guide-shot .shot-focus-right {
  object-position: top right;
}

.guide-shot .shot-focus-center {
  object-position: top center;
}

.guide-shot figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
}

.guide-shot strong {
  color: var(--ink);
  font-size: 16px;
}

.guide-shot span {
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  color: #fff;
  text-align: center;
  background: #10291f;
}

.final-inner {
  max-width: 780px;
}

.final-cta .section-kicker,
.final-cta h2 {
  color: #fff;
}

.final-cta p:not(.section-kicker):not(.affiliate-disclosure) {
  max-width: 620px;
  margin: 18px auto 30px;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
}

.final-cta .affiliate-disclosure {
  margin: 0 auto 22px;
  text-align: left;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 48px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 850;
}

.footer-link {
  color: var(--ink);
  font-weight: 800;
}

.footer-link:hover {
  color: var(--green-dark);
}

.policy-page {
  background: var(--surface-warm);
}

.policy-page .navbar {
  position: sticky;
  background: rgba(12, 12, 12, .96);
}

.policy-hero {
  padding: 86px 0 58px;
  color: #fff;
  background: var(--dark);
}

.policy-hero-inner {
  max-width: 860px;
}

.policy-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: 0;
}

.policy-hero p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
}

.policy-module {
  background: var(--surface-warm);
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.policy-summary,
.policy-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-summary {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.policy-summary h2,
.policy-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0;
}

.policy-summary p,
.policy-content p,
.policy-content li {
  color: var(--body);
  font-size: 16px;
}

.policy-summary p {
  margin: 14px 0 0;
}

.policy-content {
  padding: 34px 40px;
}

.policy-content section + section {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

#referral-links {
  scroll-margin-top: 88px;
}

.policy-content p {
  margin: 14px 0 0;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.policy-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.policy-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

@media (max-width: 980px) {
  .navbar {
    position: sticky;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: rgba(12, 12, 12, .96);
  }

  .navbar-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-top: 4px;
  }

  .navbar-nav a {
    padding: 6px 0;
  }

  #referral-links {
    scroll-margin-top: 136px;
  }

  .hero {
    min-height: 84vh;
    padding-top: 86px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-result-card {
    width: min(100%, 520px);
    transform: none;
  }

  .hero h1 {
    font-size: 46px;
  }

  .two-column,
  .result-layout,
  .formula-layout,
  .policy-layout,
  .step-grid,
  .card-grid,
  .feature-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-shot-wide {
    grid-column: auto;
  }

  .policy-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .navbar-wordmark {
    width: 184px;
  }

  .navbar-nav {
    font-size: 12px;
  }

  .hero {
    min-height: 82vh;
    padding: 72px 14px 64px;
  }

  .hero-shell {
    width: min(100%, 1160px);
  }

  .hero-visual {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .module {
    padding: 72px 0;
  }

  .module h2,
  .section-copy h2 {
    font-size: 27px;
  }

  .policy-hero {
    padding: 64px 0 42px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-content,
  .policy-summary {
    padding: 22px;
  }

  .problem-list article {
    grid-template-columns: 1fr;
  }

  .problem-list span {
    grid-row: auto;
  }

  .result-card {
    padding: 22px;
  }

  .result-card-head {
    display: grid;
  }

  .score-display strong {
    font-size: 30px;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .formula-mode-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 20px;
  }
}
