/* ── HERO ── */
.hiw-hero {
  background: var(--charcoal);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hiw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(201, 168, 76, 0.05) 59px,
      rgba(201, 168, 76, 0.05) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(201, 168, 76, 0.05) 59px,
      rgba(201, 168, 76, 0.05) 60px
    );
}

.hiw-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #f5f0e8;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hiw-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hiw-hero .label {
  justify-content: center;
  color: var(--gold);
}

.hiw-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hiw-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hiw-hero p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ── QUICK STATS BAR ── */
.hiw-stats-bar {
  background: var(--ivory);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.hiw-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.hiw-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
}

.hiw-stat-pill:last-child {
  border-right: none;
}

.hiw-stat-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
}

.hiw-stat-lbl {
  font-size: 0.68rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── BODY ── */
.hiw-body {
  background: var(--cream);
  padding: 4rem 0 6rem;
}

.hiw-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── STEPS ── */
.hiw-steps {
  min-width: 0;
}

.step-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 2rem 2rem 2rem 2.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.step-card:hover::before {
  opacity: 1;
}

.step-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.3), transparent);
  margin-top: 8px;
}

.step-card:last-child .step-line {
  display: none;
}

.step-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.step-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.step-body p {
  font-size: 0.87rem;
  line-height: 1.9;
  color: #555;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  font-weight: 600;
  color: #333;
}

.step-highlight {
  background: rgba(201, 168, 76, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.1rem;
  margin-top: 0.8rem;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.8;
  font-weight: 300;
}

.step-highlight i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.step-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.05);
}

/* Important notes card */
.notes-card {
  background: var(--charcoal);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.notes-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(201, 168, 76, 0.08),
    transparent 60%
  );
}

.notes-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.notes-card-header .icon {
  width: 36px;
  height: 36px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
}

.notes-card-header h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.notes-list {
  list-style: none;
  position: relative;
}

.notes-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.7;
}

.notes-list li:last-child {
  border-bottom: none;
}

.notes-list li i {
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── SIDEBAR ── */
.hiw-sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Earnings calculator */
.calc-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.calc-card-head {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.calc-card-head i {
  font-size: 0.9rem;
}

.calc-body {
  padding: 1.5rem;
}

.calc-slider-row {
  margin-bottom: 1.4rem;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #888;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.calc-slider-label span:last-child {
  font-weight: 600;
  color: var(--gold-dark);
}

input[type="range"].gold-range {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    #c9a84c var(--pct, 50%),
    #e5e5e5 var(--pct, 50%)
  );
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"].gold-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
  cursor: pointer;
}

.calc-result {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 0.5rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-row .val {
  color: #fff;
  font-weight: 500;
}

.calc-result-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.calc-result-total .lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-result-total .total-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

/* Quick links card */
.qlinks-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.qlinks-title {
  background: var(--charcoal);
  padding: 1rem 1.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.qlinks-body {
  padding: 0.5rem 0;
}

.qlinks-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.25s;
}

.qlinks-body a:last-child {
  border-bottom: none;
}

.qlinks-body a:hover {
  background: rgba(201, 168, 76, 0.05);
  color: var(--gold-dark);
  padding-left: 1.8rem;
}

.qlinks-body a .left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qlinks-body a i.main-icon {
  color: var(--gold);
  font-size: 0.85rem;
  width: 16px;
}

.qlinks-body a i.arrow-icon {
  color: #ccc;
  font-size: 0.7rem;
}

/* CTA card */
.cta-side-card {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(201, 168, 76, 0.12),
    transparent 60%
  );
}

.cta-side-card > * {
  position: relative;
}

.cta-side-card .icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.cta-side-card h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.6rem;
}

.cta-side-card h4 em {
  font-style: italic;
  color: var(--gold-light);
}

.cta-side-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.cta-side-card a.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, #9e7a2a, #e8c97a);
  color: #111;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.cta-side-card a.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
}

/* ── EARN CAP BOX ── */
.earn-cap-box {
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0.9rem 0;
}

.earn-cap-row {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.earn-cap-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0.5rem;
}

.earn-cap-item i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.earn-cap-item > div {
  display: flex;
  flex-direction: column;
}

.cap-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}

.cap-lbl {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.earn-cap-divider {
  width: 1px;
  height: 40px;
  background: rgba(201, 168, 76, 0.2);
  flex-shrink: 0;
}

.highlight-cap .cap-val {
  color: var(--gold-dark);
}

.highlight-cap i {
  color: #c9a84c;
}

/* ── REFERRAL COMPARE BOX ── */
.ref-compare-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.ref-col {
  flex: 1;
  padding: 1rem 1.2rem;
}

.ref-col-gold {
  background: rgba(201, 168, 76, 0.05);
  border-left: 1px solid rgba(201, 168, 76, 0.2);
}

.ref-col-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ref-col-gold .ref-col-head {
  color: var(--gold-dark);
}

.ref-col-head i {
  font-size: 0.8rem;
}

.ref-col-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
  color: #777;
  font-weight: 300;
}

.ref-col-row:last-child {
  border-bottom: none;
}

.ref-col-row strong {
  font-weight: 600;
  color: #333;
  font-size: 0.82rem;
}

.cap-red {
  color: #c0392b !important;
}

.cap-green {
  color: #27ae60 !important;
}

.ref-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

/* ── CALC CAP NOTE ── */
.calc-cap-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.07);
  border-left: 3px solid #c0392b;
  border-radius: 0 6px 6px 0;
  padding: 0.4rem 0.8rem;
}

.calc-cap-note i {
  font-size: 0.7rem;
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 480px) {
  .earn-cap-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .earn-cap-divider {
    width: 100%;
    height: 1px;
  }

  .ref-compare-box {
    flex-direction: column;
  }

  .ref-col-gold {
    border-left: none;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
  }

  .ref-vs {
    width: 100%;
    height: 28px;
    font-size: 1.4rem;
  }
}

.hiw-footer-strip {
  background: var(--charcoal);
  padding: 2rem 0;
  text-align: center;
}

.hiw-footer-strip p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.hiw-footer-strip strong {
  color: var(--gold-light);
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hiw-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar-sticky {
    position: static;
  }

  .hiw-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-stat-pill:nth-child(2) {
    border-right: none;
  }

  .hiw-stat-pill:nth-child(3) {
    border-right: 1px solid rgba(201, 168, 76, 0.2);
  }
}

@media (max-width: 640px) {
  .hiw-hero {
    padding: 4rem 0 3rem;
  }

  .hiw-body {
    padding: 2.5rem 0 4rem;
  }

  .step-card {
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    padding: 1.5rem 1.2rem 1.5rem 1.5rem;
  }

  .step-num {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .step-title {
    font-size: 1.3rem;
  }

  .notes-card {
    padding: 1.5rem;
  }

  .calc-body {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hiw-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .hiw-stat-pill {
    padding: 0.8rem 0.3rem;
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

  .hiw-stat-pill:nth-child(odd) {
    border-right: 1px solid rgba(201, 168, 76, 0.15);
  }

  .hiw-stat-pill:nth-child(3),
  .hiw-stat-pill:nth-child(4) {
    border-bottom: none;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-num-wrap {
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 380px) {
  .step-card {
    padding: 1.2rem 1rem;
  }

  .notes-card {
    padding: 1.2rem 1rem;
  }

  .step-badges {
    gap: 0.4rem;
  }

  .step-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }
}
