@font-face {
  font-family: "Onest";
  src: url("assets/Onest-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171816;
  --muted: #666a62;
  --line: #dfe1d8;
  --line-strong: #c7cabf;
  --page: #f3f4ef;
  --surface: #fafbf7;
  --white: #ffffff;
  --lime: #c9f64b;
  --lime-dark: #89b807;
  --lime-soft: #eef9cf;
  --blue-soft: #eaf0ff;
  --warning: #fff2ca;
  --radius-small: 12px;
  --radius: 20px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid #141414;
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(199, 202, 191, 0.78);
  background: rgba(243, 244, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img,
.site-footer img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  border-color: var(--line-strong);
}

.button-primary {
  background: var(--lime);
}

main,
.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 9vw, 128px);
}

.hero-copy {
  max-width: 800px;
}

.eyebrow,
.substep-label {
  margin: 0 0 14px;
  color: #5f7d08;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 5.25vw, 4.7rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 34px;
  color: #4f524c;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-link {
  font-weight: 650;
  text-decoration-color: #88b000;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-timing {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-summary {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.summary-label {
  margin: 0;
  color: #5f7d08;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-title {
  margin: 6px 0 22px;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.plan-summary dl {
  margin: 0;
}

.plan-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.plan-summary dt {
  color: var(--muted);
}

.plan-summary dd {
  margin: 0;
  font-weight: 660;
  text-align: right;
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mobile-steps {
  display: none;
}

.guide-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 976px);
  gap: clamp(40px, 6vw, 80px);
  justify-content: center;
  align-items: start;
  border-top: 1px solid var(--line-strong);
}

.step-navigation {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-top: 58px;
}

.step-navigation > p {
  margin: 0 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-navigation nav {
  display: grid;
  gap: 3px;
}

.step-navigation a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 590;
  line-height: 1.15;
  text-decoration: none;
}

.step-navigation a span:first-child {
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.step-navigation a:hover,
.step-navigation a[aria-current="step"] {
  color: var(--ink);
  background: var(--white);
}

.step-navigation a[aria-current="step"] span:first-child {
  color: #5f7d08;
}

.guide-content {
  min-width: 0;
}

.step {
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding: clamp(68px, 7vw, 104px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.step-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.step-heading > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 15px;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
}

.step-heading h2,
.faq > h2,
.done h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.step-copy {
  max-width: 790px;
  margin: 0 0 34px 74px;
  color: #4d504a;
  font-size: 19px;
}

.step-copy p {
  margin: 0;
}

.plain-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.step-copy a {
  text-decoration-color: #88b000;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.fast-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 32px 0 24px;
  padding: 24px 26px;
  border: 1px solid #a6c94b;
  border-radius: var(--radius);
  background: var(--lime-soft);
}

.fast-path h3 {
  margin: 0 0 5px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.fast-path p:not(.substep-label) {
  margin: 0;
  color: #54574f;
}

.fast-path .substep-label {
  margin-bottom: 4px;
}

.comparison-details {
  margin: 24px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.comparison-details > summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  cursor: pointer;
  font-weight: 690;
  list-style: none;
}

.comparison-details > summary::-webkit-details-marker {
  display: none;
}

.comparison-details > summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 28px;
  font-weight: 420;
}

.comparison-details[open] > summary::after {
  content: "−";
}

.comparison-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.comparison-details .mode-grid {
  margin: 20px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 24px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.mode-card.is-recommended {
  border-color: #a6c94b;
  background: var(--lime-soft);
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.mode-icon {
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
}

.recommend-badge,
.mode-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid #accd55;
  border-radius: 999px;
  color: #4d6800;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.mode-tag {
  border-color: var(--line);
  color: var(--muted);
}

.mode-card h3,
.purchase-card h3,
.test-card h3 {
  margin: 26px 0 12px;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.mode-card p {
  margin: 0;
  color: #54574f;
}

.mode-card strong {
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.35;
}

.purchase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: end;
  margin: 24px 0;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
}

.purchase-card h3 {
  margin-top: 0;
}

.purchase-card p {
  margin: 10px 0 0;
  color: #4e514b;
}

.purchase-card a,
.faq a {
  text-decoration-color: #88b000;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.purchase-checks {
  display: grid;
  gap: 8px;
}

.purchase-checks span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 620;
}

.security-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #d5a525;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--warning);
  color: #5e4a14;
  font-size: 15px;
}

.guide-figure {
  margin: 36px 0;
}

.figure-wide {
  width: 100%;
}

.figure-narrow {
  width: min(620px, 100%);
  margin-inline: auto;
}

.figure-medium {
  width: min(780px, 100%);
  margin-inline: auto;
}

.figure-portrait {
  width: min(520px, 100%);
  margin-inline: auto;
}

.guide-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-figure figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.result-line,
.switch-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: var(--lime-soft);
}

.result-line > span,
.switch-hint > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 800;
}

.result-line p,
.switch-hint p {
  margin: 0;
  font-weight: 620;
}

.switch-hint {
  width: min(620px, 100%);
  margin: 28px auto;
  background: var(--blue-soft);
}

.switch-hint > span {
  background: #cbd8ff;
}

.recovery-note,
.evidence-note {
  margin: 20px 0;
  padding: 17px 19px;
  border: 1px solid #c7d1e8;
  border-radius: var(--radius-small);
  background: var(--blue-soft);
  color: #3f4b65;
  font-size: 15px;
}

.code-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.code-actions li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.62);
}

.code-actions li > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 13px;
  font-weight: 780;
}

.code-actions p {
  margin: 2px 0 0;
  font-size: 15px;
}

.test-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  margin: 34px 0 22px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.test-number {
  align-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: #526e00;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
  text-transform: uppercase;
}

.test-card h3 {
  margin: 0 0 8px;
}

.test-card p {
  margin: 0;
  color: #55584f;
}

.verification-steps {
  display: grid;
  gap: 11px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: #55584f;
}

.done {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 58px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--white);
}

.done-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 34px;
  font-weight: 800;
}

.done .eyebrow {
  color: var(--lime);
}

.done p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  color: #d7d9d2;
}

.faq {
  padding: clamp(72px, 8vw, 112px) 0;
}

.faq > h2 {
  margin-bottom: 34px;
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 680;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 8px;
  font-size: 28px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 800px;
  margin: -4px 0 24px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line-strong);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
  }

  .guide-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 38px;
  }

  .purchase-card {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  main,
  .site-footer {
    width: min(100% - 36px, 780px);
  }

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

  .plan-summary {
    max-width: 520px;
  }

  .mobile-steps {
    position: sticky;
    top: var(--header-height);
    z-index: 40;
    display: block;
    margin-inline: -18px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(250, 251, 247, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-steps summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 680;
    list-style: none;
  }

  .mobile-steps summary::-webkit-details-marker {
    display: none;
  }

  .mobile-steps nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 0 12px 12px;
  }

  .mobile-steps nav a {
    padding: 10px;
    border-radius: 9px;
    color: var(--muted);
    background: var(--page);
    font-size: 13px;
    text-decoration: none;
  }

  .guide-layout {
    display: block;
  }

  .step-navigation {
    display: none;
  }

  .step {
    scroll-margin-top: calc(var(--header-height) + 66px);
  }

  .purchase-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

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

  .site-header {
    padding-inline: 14px;
  }

  .site-header .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .brand img,
  .site-footer img {
    height: 25px;
  }

  main,
  .site-footer {
    width: calc(100% - 28px);
  }

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

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
    line-height: 0.98;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
    padding-block: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .plan-summary {
    padding: 22px;
  }

  .mobile-steps {
    margin-inline: -14px;
  }

  .mobile-steps nav {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 62px 0;
  }

  .step-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .step-heading > span {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .step-heading h2,
  .faq > h2,
  .done h2 {
    font-size: 2rem;
  }

  .step-copy {
    margin: 0 0 28px;
    font-size: 17px;
  }

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

  .fast-path {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .fast-path .button {
    width: 100%;
  }

  .comparison-details .mode-grid {
    margin: 14px;
  }

  .mode-card {
    min-height: 0;
    padding: 22px;
  }

  .mode-card strong {
    margin-top: 4px;
  }

  .purchase-card {
    padding: 22px;
  }

  .guide-figure {
    margin-block: 28px;
  }

  .code-actions {
    grid-template-columns: 1fr;
  }

  .test-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .test-number {
    justify-self: start;
  }

  .done {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .done-mark {
    width: 58px;
    height: 58px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
