@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: #6b6e66;
  --line: #dfe1d8;
  --line-strong: #c7cabf;
  --page: #f3f4ef;
  --surface: #fafbf7;
  --white: #ffffff;
  --lime: #c9f64b;
  --lime-dark: #9acb19;
  --lime-soft: #edf9ca;
  --blue-soft: #e9f0ff;
  --warning: #fff4cd;
  --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;
}

body.dialog-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

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

: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 {
  min-width: 138px;
  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: 780px;
}

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

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

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

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

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

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

.server-summary-title {
  margin: 6px 0 22px;
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.server-specs {
  margin: 0;
}

.server-specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.server-specs dt {
  color: var(--muted);
}

.server-specs dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

.server-price {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line-strong);
}

.server-price span {
  color: var(--muted);
}

.server-price strong {
  white-space: nowrap;
}

.fine-print {
  margin: 12px 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: 580;
  line-height: 1.15;
  text-decoration: none;
}

.step-navigation a span {
  color: #9a9d94;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.step-navigation a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

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

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

.guide {
  min-width: 0;
}

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

.step:first-child {
  padding-top: 58px;
}

.step-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  margin-bottom: 18px;
}

.step-heading > span {
  color: #7d8177;
  font-size: 14px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.step h2,
.faq h2,
.done h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.1vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.step h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.step-copy,
.step-intro {
  max-width: 720px;
  margin-left: 52px;
}

.step-copy p,
.step-intro {
  margin-top: 0;
  margin-bottom: 8px;
  color: #4f524c;
  font-size: 18px;
}

.text-link,
.renewal-note a {
  font-weight: 680;
  text-decoration-color: var(--lime-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.figure-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.figure-meta span:last-child {
  color: #4f670c;
}

.screenshot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  cursor: zoom-in;
}

.screenshot img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 24, 22, 0.14);
  border-radius: 15px;
}

.screenshot:hover img {
  border-color: rgba(23, 24, 22, 0.34);
}

.guide-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.figure-system {
  max-width: 860px;
}

.tariff-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(36px, 7vw, 76px);
  align-items: start;
  margin-top: 56px;
}

.tariff-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding-top: 34px;
}

.tariff-copy h3 {
  margin: 8px 0 20px;
  font-size: 42px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #6d9209;
  font-weight: 800;
  content: "✓";
}

.figure-portrait {
  width: 100%;
  max-width: 520px;
  margin-top: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(350px, 1.05fr);
  gap: clamp(40px, 7vw, 76px);
  align-items: start;
  margin-top: 34px;
}

.payment-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.action-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: actions;
}

.action-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.action-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 13px;
  font-weight: 750;
}

.action-list p {
  margin: 1px 0 0;
}

.note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid #759d09;
  border-radius: 0 10px 10px 0;
  background: var(--lime-soft);
  font-size: 15px;
}

.figure-payment {
  max-width: 500px;
  margin: 0 0 0 auto;
}

.renewal-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid #e3c85f;
  border-radius: 16px;
  background: var(--warning);
}

.renewal-note > div:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c4a62f;
  border-radius: 50%;
  font-size: 21px;
}

.renewal-note h3 {
  font-size: 19px;
}

.renewal-note p {
  margin: 7px 0 9px;
  font-size: 15px;
}

.handoff-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  align-items: start;
  margin-top: 44px;
}

.handoff-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.copy-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--white);
}

.copy-card pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font: 580 15px/1.7 "Onest", system-ui, sans-serif;
  white-space: pre-wrap;
}

.copy-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: #bdef31;
}

.security-note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid #b8c8ec;
  border-radius: 14px;
  background: var(--blue-soft);
  font-size: 15px;
}

.done {
  margin: 80px 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #a7ca3c;
  border-radius: var(--radius);
  background: var(--lime);
}

.done .eyebrow {
  color: #4b6500;
}

.done h2 {
  max-width: 700px;
}

.done > p:last-child {
  margin: 16px 0 0;
}

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

.faq h2 {
  margin-bottom: 30px;
}

.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: 21px 48px 21px 0;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 18px;
  right: 8px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  content: "+";
}

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

.faq details p {
  max-width: 740px;
  margin: -6px 0 22px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0 0 4px;
  text-align: right;
}

.image-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #eef0ea;
}

.image-dialog::backdrop {
  background: rgba(15, 16, 14, 0.72);
}

.dialog-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(52px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(250, 251, 247, 0.94);
  backdrop-filter: blur(14px);
}

.dialog-toolbar p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-controls button,
.dialog-close {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.zoom-controls button:first-child,
.zoom-controls button:last-of-type,
.dialog-close {
  padding: 0;
  font-size: 22px;
}

.zoom-value {
  min-width: 50px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dialog-close {
  justify-self: end;
  font-size: 27px;
  font-weight: 400;
}

.image-dialog-scroll {
  width: 100%;
  height: calc(100dvh - 68px);
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.image-dialog-scroll img {
  max-width: none;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(23, 24, 22, 0.16);
  border-radius: 10px;
  background: var(--white);
  user-select: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 16px;
  border-radius: 11px;
  color: var(--white);
  background: #1d201a;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .guide-layout {
    display: block;
    max-width: 976px;
    margin-inline: auto;
  }

  .step-navigation {
    display: none;
  }

  .mobile-steps {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 40;
    display: block;
    max-width: 976px;
    margin: 0 auto 8px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(250, 251, 247, 0.96);
    backdrop-filter: blur(16px);
  }

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

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

  .mobile-steps nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0 8px 8px;
  }

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

  .mobile-steps nav a[aria-current="step"] {
    color: var(--ink);
    background: var(--lime);
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

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

  .site-header {
    min-height: var(--header-height);
    padding: 10px 16px;
  }

  .brand img {
    height: 27px;
  }

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

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 54px 0 72px;
  }

  h1 {
    font-size: clamp(2.65rem, 10.8vw, 4rem);
  }

  .hero-lead {
    margin: 24px 0 28px;
  }

  .server-summary {
    padding: 22px;
  }

  .mobile-steps {
    top: calc(var(--header-height) + 8px);
  }

  .mobile-steps nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    padding: 58px 0;
    scroll-margin-top: calc(var(--header-height) + 72px);
  }

  .step:first-child {
    padding-top: 42px;
  }

  .step-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    margin-bottom: 16px;
  }

  .step h2,
  .faq h2,
  .done h2 {
    font-size: clamp(1.8rem, 8vw, 2.15rem);
  }

  .step-copy,
  .step-intro {
    margin-left: 44px;
  }

  .guide-figure {
    margin-top: 30px;
  }

  .tariff-detail,
  .payment-layout,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .tariff-copy,
  .payment-copy {
    position: static;
  }

  .tariff-copy {
    padding-top: 0;
  }

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

  .renewal-note {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .renewal-note > div:first-child {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .done {
    margin: 58px 0;
  }

  .faq {
    padding: 58px 0 80px;
  }

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

  .site-footer p {
    text-align: left;
  }

  .dialog-toolbar {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    padding: 8px 12px;
  }

  .dialog-toolbar > p {
    display: none;
  }

  .zoom-controls {
    min-width: 0;
    overflow-x: auto;
  }

  .zoom-controls button {
    flex: 0 0 auto;
  }

  .zoom-value {
    display: none;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: calc(100% - 24px);
  }

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

  .button-small {
    min-height: 38px;
    padding-inline: 13px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.2rem);
  }

  .hero-lead {
    font-size: 17px;
  }

  .server-summary {
    padding: 18px;
  }

  .server-price {
    flex-direction: column;
    gap: 2px;
  }

  .mobile-steps {
    border-radius: 12px;
  }

  .step-copy,
  .step-intro {
    margin-left: 0;
  }

  .step-copy p,
  .step-intro {
    font-size: 16px;
  }

  .figure-meta {
    font-size: 12px;
  }

  .figure-meta span:last-child {
    white-space: nowrap;
  }

  .tariff-detail {
    margin-top: 42px;
  }

  .handoff-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .copy-card pre {
    padding: 18px;
  }

  .image-dialog-scroll {
    padding: 10px;
  }

  .zoom-controls button[data-zoom-fit],
  .zoom-controls button[data-zoom-actual] {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .step-navigation a[aria-current="step"],
  .mobile-steps nav a[aria-current="step"],
  .copy-button,
  .button-primary,
  .done {
    border: 2px solid ButtonText;
  }
}
