/* ────────────────────────────────────────────
   바이낸스 가입방법 - 공통 스타일
   ──────────────────────────────────────────── */

:root {
  --bg: #0b0e11;
  --panel: #151a21;
  --panel-2: #1e2329;
  --line: #2b3139;
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #eaecef;
  --muted: #a7b0bd;
  --muted-2: #848e9c;
  --yellow: #f0b90b;
  --yellow-2: #f8d33a;
  --yellow-soft: rgba(240, 185, 11, 0.12);
  --green: #1fcb7a;
  --red: #f6465d;
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 76px; /* 하단 sticky CTA 높이 보정 */
  background:
    radial-gradient(ellipse 60rem 30rem at 80% -10%, rgba(240, 185, 11, 0.18), transparent 60%),
    radial-gradient(ellipse 40rem 24rem at 0% 4%, rgba(240, 185, 11, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

code {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--yellow);
  font-size: 0.92em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ────────────────────────────────────────────
   Header
   ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(240, 185, 11, 0.12);
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0b0e11;
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-name {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-nav a,
.mobile-panel a {
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.top-nav a:hover,
.mobile-panel a:hover,
.top-nav a.active {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-panel {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 19;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 17, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-panel nav {
  display: grid;
  gap: 0.25rem;
}

/* ────────────────────────────────────────────
   Typography
   ──────────────────────────────────────────── */

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  font-weight: 800;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
}

h4 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.kicker {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-accent {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
  white-space: nowrap;
}

.button.small {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.button.primary {
  color: #0b0e11;
  background: var(--yellow);
}

.button.primary:hover {
  background: var(--yellow-2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(30, 35, 41, 0.7);
}

.button.secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────
   Hero (Index)
   ──────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 4.5rem 0 1.5rem;
}

.hero-text p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.6rem;
}

.hero-code-card {
  padding: 1.5rem;
  border: 1px solid rgba(240, 185, 11, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 185, 11, 0.18), transparent 60%),
    rgba(21, 26, 33, 0.85);
  box-shadow: var(--shadow-lg);
}

.hero-code-card.inline {
  margin-top: 1.5rem;
  max-width: 460px;
}

.hero-code-card .kicker {
  display: block;
  margin-bottom: 0.85rem;
}

.hero-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border: 1px dashed rgba(240, 185, 11, 0.45);
  border-radius: 8px;
  background: rgba(11, 14, 17, 0.55);
}

.hero-code-row strong {
  color: var(--yellow);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.hero-code-card p {
  margin: 1rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-code-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-code-link:hover {
  color: var(--yellow-2);
}

/* ────────────────────────────────────────────
   Page Hero (sub pages)
   ──────────────────────────────────────────── */

.page-hero {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  text-align: left;
}

.page-hero h1 {
  margin-bottom: 1.25rem;
}

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

/* ────────────────────────────────────────────
   Trust Bar (index)
   ──────────────────────────────────────────── */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, 92vw);
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(21, 26, 33, 0.6);
  overflow: hidden;
}

.trust-bar li {
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
}

.trust-bar li:last-child {
  border-right: none;
}

.trust-bar li > span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.trust-bar strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

/* ────────────────────────────────────────────
   Section
   ──────────────────────────────────────────── */

.section {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 4rem 0 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 720px;
}

.section-head .kicker {
  margin-bottom: 0.55rem;
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ────────────────────────────────────────────
   Step Groups (PART 1 / 2 / 3)
   ──────────────────────────────────────────── */

.step-group {
  margin-top: 3rem;
}

.step-group:first-of-type {
  margin-top: 0;
}

.step-group-head {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(240, 185, 11, 0.12), rgba(240, 185, 11, 0.02)),
    rgba(21, 26, 33, 0.5);
}

.step-group-head .kicker {
  display: block;
  margin-bottom: 0.6rem;
}

.step-group-head h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ────────────────────────────────────────────
   Steps (index)
   ──────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(21, 26, 33, 0.7);
  transition: border-color 0.2s;
}

.step-body {
  min-width: 0;
}

.step:hover {
  border-color: rgba(240, 185, 11, 0.3);
}

.step.featured {
  border-color: rgba(240, 185, 11, 0.55);
  background:
    linear-gradient(135deg, rgba(240, 185, 11, 0.1), rgba(240, 185, 11, 0.02)),
    rgba(21, 26, 33, 0.7);
}

.step-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-size: 1.7rem;
  font-weight: 900;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.step.featured .step-number {
  box-shadow: 0 0 0 6px rgba(240, 185, 11, 0.18);
}

.step-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  color: var(--text);
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #0b0e11;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-body > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.step-body strong {
  color: var(--text);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ────────────────────────────────────────────
   Bullet list / Numbered list
   ──────────────────────────────────────────── */

.bullet {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.bullet li {
  margin-bottom: 0.4rem;
}

.bullet li::marker {
  color: var(--yellow);
}

.bullet strong {
  color: var(--text);
}

.numbered-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: numlist;
}

.numbered-list li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.6);
  counter-increment: numlist;
}

.numbered-list li::before {
  content: counter(numlist);
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-weight: 900;
  font-size: 0.88rem;
}

.numbered-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.numbered-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ────────────────────────────────────────────
   Step image placeholder
   ──────────────────────────────────────────── */

.step-cta-large {
  margin: 1.25rem 0;
}

.step-cta-large .button {
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(240, 185, 11, 0.25);
}

.step-cta-large .button:hover {
  box-shadow: 0 12px 32px rgba(240, 185, 11, 0.35);
}

.step-image {
  margin: 1.25rem 0;
}

.step-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 14, 17, 0.5);
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.step-image img:hover {
  opacity: 0.92;
}

/* ────────────────────────────────────────────
   Lightbox (이미지 확대 보기)
   ──────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.94);
  cursor: zoom-out;
  animation: lightbox-fade 0.18s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ────────────────────────────────────────────
   하단 고정 CTA 바
   ──────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--yellow);
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.92), rgba(11, 14, 17, 0.98)),
    radial-gradient(ellipse at 50% 0%, rgba(240, 185, 11, 0.18), transparent 60%);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 -2px 0 rgba(240, 185, 11, 0.15);
  animation: sticky-cta-slide-up 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) 0.4s backwards;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.sticky-cta-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.sticky-cta-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sticky-cta-label strong {
  color: var(--yellow);
  font-weight: 900;
}

.sticky-cta-code {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px dashed rgba(240, 185, 11, 0.55);
  border-radius: 6px;
  background: rgba(240, 185, 11, 0.12);
  color: var(--yellow);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sticky-cta-button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: var(--yellow);
  color: #0b0e11;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(240, 185, 11, 0.4);
}

.sticky-cta-button:hover {
  background: var(--yellow-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.5);
}

@keyframes sticky-cta-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 모바일 컴팩트 */
@media (max-width: 520px) {
  .sticky-cta {
    padding: 0.65rem 0.75rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
  }

  .sticky-cta-inner {
    gap: 0.6rem;
  }

  .sticky-cta-label {
    font-size: 0.82rem;
  }

  .sticky-cta-code {
    font-size: 0.88rem;
    padding: 0.3rem 0.55rem;
  }

  .sticky-cta-button {
    min-height: 42px;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
  }

  body {
    padding-bottom: 70px;
  }
}

/* 라이트박스가 떠 있을 때 sticky CTA 가리기 */
body.lightbox-open .sticky-cta {
  display: none;
}

.image-placeholder {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.018) 12px,
      transparent 12px,
      transparent 24px
    ),
    rgba(11, 14, 17, 0.5);
  color: var(--muted-2);
  text-align: center;
}

.image-placeholder-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.image-placeholder-label {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ────────────────────────────────────────────
   Callout
   ──────────────────────────────────────────── */

.callout {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: rgba(240, 185, 11, 0.06);
}

.callout.warning {
  border-left-color: var(--red);
  background: rgba(246, 70, 93, 0.07);
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.callout a {
  color: var(--yellow);
  font-weight: 700;
}

.callout a:hover {
  color: var(--yellow-2);
}

/* ────────────────────────────────────────────
   Inline referral code box
   ──────────────────────────────────────────── */

.inline-code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(240, 185, 11, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.16), rgba(240, 185, 11, 0.04));
}

.code-text {
  font-weight: 900;
  color: var(--yellow);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.copy-code {
  min-height: 38px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  color: #0b0e11;
  background: var(--yellow);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.copy-code:hover {
  background: var(--yellow-2);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────
   Checklist
   ──────────────────────────────────────────── */

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.checklist-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.7);
}

.checklist-card::before {
  content: "✓";
  position: absolute;
  top: 1.3rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-size: 0.78rem;
  font-weight: 900;
}

.checklist-card h3 {
  font-size: 1rem;
  color: var(--text);
}

.checklist-card p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-link {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.88rem;
}

.inline-link:hover {
  color: var(--yellow-2);
}

/* ────────────────────────────────────────────
   Calculator
   ──────────────────────────────────────────── */

.calculator-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(21, 26, 33, 0.7);
}

.calculator-card.large {
  padding: 2rem;
}

.calculator-input-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calculator-input-row label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.calculator-input-row input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  outline: none;
  transition: border-color 0.15s;
}

.calculator-input-row input:focus {
  border-color: var(--yellow);
}

.calculator-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.preset {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.preset:hover,
.preset.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-soft);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.calc-result {
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 14, 17, 0.5);
  text-align: center;
}

.calc-result span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.calc-result strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
}

.calc-result.highlight {
  border-color: rgba(240, 185, 11, 0.5);
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.16), rgba(240, 185, 11, 0.04));
}

.calc-result.highlight strong {
  color: var(--yellow);
}

.calculator-breakdown {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(11, 14, 17, 0.4);
}

.calculator-breakdown h4 {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calculator-breakdown .bullet {
  margin: 0;
  font-size: 0.9rem;
}

.calculator-note {
  margin: 1rem 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.calculator-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

/* ────────────────────────────────────────────
   Benefits / How-to grid (fee page)
   ──────────────────────────────────────────── */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.benefit-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.7);
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(240, 185, 11, 0.4);
  transform: translateY(-2px);
}

.benefit-card.highlight {
  border-color: rgba(240, 185, 11, 0.5);
  background:
    linear-gradient(135deg, rgba(240, 185, 11, 0.16), rgba(240, 185, 11, 0.04)),
    rgba(21, 26, 33, 0.7);
}

.benefit-card h3 {
  color: var(--yellow);
  font-size: 1.1rem;
}

.benefit-card.highlight h3 {
  font-size: 1.25rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.howto-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.7);
}

.howto-card.good {
  border-color: rgba(31, 203, 122, 0.4);
}

.howto-card.bad {
  border-color: rgba(246, 70, 93, 0.4);
}

.howto-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.howto-card.good .howto-tag {
  color: var(--green);
  background: rgba(31, 203, 122, 0.12);
}

.howto-card.bad .howto-tag {
  color: var(--red);
  background: rgba(246, 70, 93, 0.12);
}

.howto-card h3 {
  font-size: 1.1rem;
}

.howto-card p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ────────────────────────────────────────────
   Fee table
   ──────────────────────────────────────────── */

.fee-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fee-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: rgba(21, 26, 33, 0.6);
}

.fee-table th,
.fee-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.fee-table thead th {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fee-table tbody th {
  color: var(--text);
  font-weight: 700;
}

.fee-table tbody td {
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.fee-table tr:last-child th,
.fee-table tr:last-child td {
  border-bottom: none;
}

.fee-table tr.highlight {
  background: rgba(240, 185, 11, 0.08);
}

.fee-table tr.highlight th,
.fee-table tr.highlight td {
  color: var(--yellow);
  font-weight: 800;
}

.fee-table tr.total-row {
  background: rgba(240, 185, 11, 0.16);
}

.fee-table tr.total-row th {
  font-size: 1.05rem;
}

.fee-table tr.total-row td strong {
  font-size: 1.15rem;
}

.table-note {
  margin: 0.85rem 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.7);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(240, 185, 11, 0.4);
}

.faq-item summary {
  position: relative;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  line-height: 1;
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ────────────────────────────────────────────
   Troubleshooting page
   ──────────────────────────────────────────── */

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 33, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.toc a:hover {
  border-color: rgba(240, 185, 11, 0.5);
  color: var(--yellow);
}

.toc a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.chapter {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 4rem 0 0;
  scroll-margin-top: 80px;
}

.chapter-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.chapter-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-weight: 900;
  font-size: 1rem;
}

.chapter-head h2 {
  margin-bottom: 0.5rem;
}

.chapter-head p {
  margin: 0;
  color: var(--muted);
}

.chapter h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--yellow);
  font-size: 1.15rem;
}

.solution {
  margin: 0.8rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 33, 0.6);
}

.solution h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.solution p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.solution .bullet {
  margin: 0;
}

/* ────────────────────────────────────────────
   CTA Band
   ──────────────────────────────────────────── */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  width: min(1180px, 92vw);
  margin: 4rem auto;
  padding: 2.25rem;
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(240, 185, 11, 0.2), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(240, 185, 11, 0.12), transparent 60%),
    rgba(21, 26, 33, 0.85);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0.55rem 0 0.85rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.cta-band .cta-actions {
  margin-top: 0;
}

/* ────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────── */

.site-footer {
  margin-top: 2rem;
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  background: #090b0e;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 0.25rem;
}

.site-footer p {
  max-width: 1100px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.footer-code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-disclaimer {
  margin-top: 1.5rem;
}

.footer-disclaimer p {
  margin: 0 0 0.55rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────── */

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

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-bar li:nth-child(2) {
    border-right: none;
  }

  .trust-bar li:nth-child(1),
  .trust-bar li:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .calculator-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 0 1rem;
  }

  .mobile-panel {
    inset: 62px 0 auto 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section,
  .page-hero {
    padding-top: 2.75rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 1.1rem;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .step-body h3 {
    font-size: 1.1rem;
  }

  .step-image {
    margin: 1rem -1.1rem;
  }

  .step-image img {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .step-image .image-placeholder {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-bar li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .trust-bar li:last-child {
    border-bottom: none;
  }

  .cta-band {
    margin: 3rem auto;
    padding: 1.5rem;
  }

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

  .calculator-card,
  .calculator-card.large {
    padding: 1.5rem;
  }

  .chapter {
    padding-top: 3rem;
  }
}
