/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Palette */
  --clr-forest:       #1e4d2b;
  --clr-forest-mid:   #2d6a3f;
  --clr-forest-accent:#3a8a50;
  --clr-forest-light: #e8f5ec;
  --clr-forest-pale:  #f3faf5;
  --clr-gold:         #c9a84c;

  /* Semantic Text */
  --txt-primary:   #1a2e1f;
  --txt-secondary: #3d5c44;
  --txt-muted:     #6b8a72;

  /* UI */
  --border-clr:    #d0e8d6;
  --border-subtle: #dde8de;

  /* Spacing scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 60px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 20px rgba(30, 77, 43, 0.10);
  --shadow-toc: 4px 0 24px rgba(0, 0, 0, 0.12);

  /* Type */
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--clr-forest-pale);
  color: var(--txt-primary);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


.cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: var(--sp-3xl) 40px;
  text-align: center;
  background-color: var(--clr-forest);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(58, 138, 80, 0.40) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.15) 0%, transparent 50%);
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.02) 40px,
    rgba(255, 255, 255, 0.02) 41px
  );
  pointer-events: none;
}

.cover-badge {
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-lg);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  background: var(--clr-gold);
  color: var(--clr-forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}


.logo-text strong {
  font-weight: 700;
}

.cover h1 {
  position: relative;
  margin-bottom: var(--sp-md);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}

.cover p {
  position: relative;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 16px;
  font-weight: 300;
}

.cover-line {
  position: relative;
  width: 60px;
  height: 3px;
  margin: 20px auto;
  background: var(--clr-gold);
}


.page-wrapper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px var(--sp-lg) var(--sp-3xl);
}

.main {
  flex: 1;
  min-width: 0; /* prevent flex blowout */
}

.sidebar {
  display: none; 
}

.toc-wrapper {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: var(--sp-lg);
  height: auto;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.toc {
  padding: 20px 14px;
}

.toc-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-header-top {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: 10px;
}

.toc-header-top h2 {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1f5c27;
}

.toc-close {
  display: none;
  margin-left: auto;
  padding: 4px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.toc-close:hover {
  background: #f0f0f0;
  color: #333;
}

.toc-back {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: #2d7a36;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.toc-back:hover {
  background: #f0f8f1;
  border-color: #2d7a36;
}

.toc-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--sp-sm) 10px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  color: #444;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.toc-item:hover {
  background: #f0f8f1;
  color: #1f5c27;
}

.toc-item.active {
  background: #1f5c27;
  border-color: #1f5c27;
  color: #fff;
}

.toc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--border-subtle);
  color: #1f5c27;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.toc-item:hover .toc-num { background: #2d7a36; color: #fff; }
.toc-item.active .toc-num { background: #6fcf78; color: #1f5c27; }

.toc-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.toc-sub {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

.toc-item.active .toc-sub {
  color: rgba(255, 255, 255, 0.70);
}

.section {
  scroll-margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: var(--sp-xl);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--clr-forest-light);
}

.section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--clr-forest);
  color: white;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
}

.section-title-group h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-forest);
  line-height: 1.2;
}

.section-title-group p {
  margin-top: var(--sp-xs);
  color: var(--txt-muted);
  font-size: 14px;
}


.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: var(--sp-xl);
}

.step:last-child {
  padding-bottom: 0;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-forest-accent);
  box-shadow: 0 0 0 4px var(--clr-forest-light);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.step-line {
  flex: 1;
  width: 2px;
  margin-top: 6px;
  background: var(--border-clr);
}

.step:last-child .step-line {
  display: none;
}

.step-content {
  flex: 1;
  padding-top: 6px;
}

.step-content h3 {
  margin-bottom: 6px;
  color: var(--txt-primary);
  font-size: 17px;
  font-weight: 600;
}

.step-content p {
  margin-bottom: 12px;
  color: var(--txt-secondary);
  font-size: 14px;
  line-height: 1.7;
}


.screenshot {
  margin: var(--sp-md) 0;
  overflow: hidden;
  border: 1px solid var(--border-clr);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.screenshot img {
  width: 100%;
}

.screenshot-caption {
  padding: var(--sp-sm) 14px;
  background: var(--clr-forest);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}


.info-box {
  display: flex;
  gap: 14px;
  padding: var(--sp-md) 18px;
  margin: 14px 0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.info-box.tip       { background: #eaf7ee; border-left: 4px solid var(--clr-forest-accent); }
.info-box.warn      { background: #fef9ed; border-left: 4px solid var(--clr-gold); }
.info-box.important { background: #fff0f0; border-left: 4px solid #e05555; }

.info-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 18px;
}

.info-text strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}


.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--clr-forest-light);
  color: var(--txt-secondary);
  font-size: 14px;
}

.checklist li:last-child {
  border-bottom: none;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--clr-forest-accent);
  color: white;
  font-size: 11px;
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin: 20px 0;
}

.h-card {
  padding: 20px var(--sp-md);
  border: 1px solid var(--border-clr);
  border-radius: var(--radius-md);
  background: white;
  text-align: center;
}

.h-card-icon {
  margin-bottom: 10px;
  font-size: 28px;
}

.h-card h4 {
  margin-bottom: 6px;
  color: var(--txt-primary);
  font-size: 14px;
  font-weight: 600;
}

.h-card p {
  color: var(--txt-muted);
  font-size: 12px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: var(--sp-md) 0;
}

.pay-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--sp-md);
  border: 1px solid var(--border-clr);
  border-radius: 10px;
  background: white;
}

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-forest-light);
  font-size: 20px;
}

.pay-info h4 {
  color: var(--txt-primary);
  font-size: 14px;
  font-weight: 600;
}

.pay-info p {
  margin-top: 2px;
  color: var(--txt-muted);
  font-size: 12px;
}


.divider {
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(to right, transparent, var(--border-clr), transparent);
}


.contact-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: var(--sp-xl);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--clr-forest);
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

.contact-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-pill .contact-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-transform: uppercase;
}

.contact-pill .contact-info {
  color: white;
  font-size: 15px;
  font-weight: 600;
}

footer {
  padding: 40px;
  background: var(--clr-forest);
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
  text-align: center;
}

footer strong {
  color: white;
}


/* ============================================================
   RESPONSIVE 1024px
   ============================================================ */
@media (max-width: 1024px) {
  /* Layout */
  .page-wrapper {
    flex-direction: column;
    padding: var(--sp-lg) var(--sp-md) var(--sp-3xl);
  }

  .main {
    padding: 40px 20px 100px;
    width: 100%;
  }

  .cover        { padding: 30px 15px; }
  .cover h1     { font-size: 38px; }
  .section-title-group h2 { font-size: 24px; }

  .highlight-cards { grid-template-columns: repeat(2, 1fr); }
  .payment-grid    { grid-template-columns: 1fr; }

  .toc-wrapper {
    position: fixed;
    inset: 0 auto 0 0;    
    width: min(300px, 85vw);
    border-radius: 0;
    border: none;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
    box-shadow: var(--shadow-toc);
  }

  .toc-wrapper.open { transform: translateX(0); }

  .toc-close { display: block; }

  .toc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    z-index: 149;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }

  .toc-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .toc-burger {
    display: flex;
    position: fixed;
    bottom: var(--sp-lg);
    right: var(--sp-lg);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #1f5c27;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(31, 92, 39, 0.35);
    transition: background 0.15s, transform 0.15s;
  }

  .toc-burger:hover           { background: #2d7a36; transform: scale(1.05); }

  .toc-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s, opacity 0.2s;
  }

  .toc-burger.open span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
  .toc-burger.open span:nth-child(2) { opacity: 0; }
  .toc-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ============================================================
   RESPONSIVE (768px)
   ============================================================ */
@media (max-width: 768px) {
  body { line-height: 1.6; }

  .cover        { min-height: auto; padding: 40px 18px; }
  .cover h1     { font-size: 32px; }
  .cover p      { font-size: 14px; }
  .logo-text    { font-size: 22px; }
  .cover-badge  { font-size: 10px; padding: 5px 14px; }

  .main    { padding: 30px var(--sp-md) 100px; }
  .section { margin-bottom: 50px; }

  .section-header         { flex-direction: column; gap: 12px; }
  .section-num            { width: 44px; height: 44px; font-size: 20px; }
  .section-title-group h2 { font-size: 22px; }

  .step         { gap: 14px; }
  .step-left    { width: 28px; }
  .step-dot     { width: 28px; height: 28px; font-size: 12px; }
  .step-content h3 { font-size: 16px; }
  .step-content p  { font-size: 13px; }

  .highlight-cards { grid-template-columns: 1fr; }
  .h-card          { padding: 18px; }
  .pay-card        { padding: 14px; }
  .pay-icon        { width: 36px; height: 36px; font-size: 18px; }

  .info-box    { padding: 14px; font-size: 13px; }
  .screenshot  { margin: 12px 0; }

  .contact-box  { padding: 22px 18px; gap: 14px; }
  .contact-pill { width: 100%; justify-content: center; }

  footer { padding: 28px var(--sp-md); font-size: 12px; }
}


/* ============================================================
   RESPONSIVE 600px
   ============================================================ */
@media (max-width: 600px) {
  .contact-box {
    flex-direction: column;
    gap: var(--sp-md);
    padding: 20px;
  }

  .contact-pill {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px var(--sp-md);
  }

  .contact-pill .contact-label { font-size: 10px; }
  .contact-pill .contact-info  { font-size: 14px; }
  .contact-pill span           { font-size: 18px; }

  .toc-wrapper { width: 100%; max-width: 300px; }
}


/* ============================================================
   RESPONSIVE 480px
   ============================================================ */
@media (max-width: 480px) {
  .cover h1               { font-size: 26px; }
  .logo-text              { font-size: 20px; }
  .section-title-group h2 { font-size: 20px; }
  .step-content h3        { font-size: 15px; }
}