/* ============================================================
   Yeyak — Promotion AI — How It Works
   Sticky-scroll: 6-step operation cycle
   ============================================================ */

main #how {
  --how-orange: #FF6A1F;
  --how-blue:   #0050FF;
  --how-ink:    #0A0A14;
  --how-mute:   #5A5A6A;
  --how-subtle: #A8A8B0;
  --how-line:   rgba(10, 10, 20, 0.07);

  padding: 100px 32px 120px;
  border-top: 1px solid rgba(10, 10, 20, 0.06);
}

/* ---- layout ---- */
main #how .hiw-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

/* ====================================================
   LEFT: sticky panel
   ==================================================== */
main #how .hiw-left {
  position: sticky;
  top: 96px;
}

main #how .hiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--how-orange);
  margin-bottom: 20px;
}
main #how .hiw-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--how-orange);
  flex-shrink: 0;
}

main #how .hiw-h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--how-ink);
  margin: 0 0 12px;
}

main #how .hiw-sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--how-mute);
  margin: 0 0 40px;
}

/* step nav */
main #how .hiw-steps {
  display: flex;
  flex-direction: column;
}
main #how .hiw-step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 9px 16px;
  border-left: 2px solid rgba(10, 10, 20, 0.07);
  transition: border-color 0.35s;
  cursor: default;
}
main #how .hiw-step-nav.is-active {
  border-left-color: var(--how-orange);
}
main #how .hiw-step-num {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--how-subtle);
  min-width: 20px;
  transition: color 0.35s;
}
main #how .hiw-step-nav.is-active .hiw-step-num {
  color: var(--how-orange);
}
main #how .hiw-step-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(10, 10, 20, 0.3);
  transition: color 0.35s;
}
main #how .hiw-step-nav.is-active .hiw-step-label {
  color: var(--how-ink);
  font-weight: 600;
}

/* ====================================================
   RIGHT: scrollable cards
   ==================================================== */
main #how .hiw-cards {
  display: flex;
  flex-direction: column;
}
main #how .hiw-card {
  padding: 64px 0;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}
main #how .hiw-card:first-child { padding-top: 0; }
main #how .hiw-card:last-child  { padding-bottom: 0; }
main #how .hiw-card.is-active   { opacity: 1; }
main #how .hiw-card + .hiw-card {
  border-top: 1px solid rgba(10, 10, 20, 0.06);
}

main #how .hiw-card-tag {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--how-orange);
  margin-bottom: 12px;
}
main #how .hiw-card-h {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--how-ink);
  margin: 0 0 8px;
}
main #how .hiw-card-p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--how-mute);
  margin: 0 0 22px;
  max-width: 460px;
}

/* ====================================================
   MOCK: shared base
   ==================================================== */
main #how .hiw-mock {
  background: #FFFFFF;
  border: 1px solid rgba(10, 10, 20, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 14px rgba(10, 10, 20, 0.05);
  max-width: 480px;
  font-size: 13px;
  color: var(--how-ink);
  font-family: -apple-system, 'Inter', BlinkMacSystemFont, sans-serif;
}

/* shared chips + labels */
main #how .mock-eyebrow {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
main #how .mock-eyebrow.orange { color: var(--how-orange); }
main #how .mock-eyebrow.blue   { color: var(--how-blue); }

main #how .mock-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
main #how .mock-chip.new  { background: #0A0A14; color: #FFFFFF; }
main #how .mock-chip.ok   { background: #ECFDF5; color: #059669; }
main #how .mock-chip.draft { background: #F5F5F7; color: #6B6B76; }

/* ====================================================
   MOCK 1: Brief
   ==================================================== */
main #how .mock-brief .mock-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
main #how .mock-brief .mock-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
main #how .mock-field {
  background: #F8F8FA;
  border-radius: 8px;
  padding: 10px 12px;
}
main #how .mock-field-label {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--how-subtle);
  text-transform: uppercase;
  margin-bottom: 4px;
}
main #how .mock-field-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--how-ink);
}
main #how .mock-submit-btn {
  background: var(--how-orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
}

/* ====================================================
   MOCK 2: Negotiate
   ==================================================== */
main #how .mock-negotiate .mock-neg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
main #how .mock-neg-counter {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--how-mute);
}
main #how .mock-hotel-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
main #how .mock-hotel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
}
main #how .mock-hotel-row:last-child { border-bottom: 0; }
main #how .mock-hotel-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(10, 10, 20, 0.35);
}
main #how .mock-hotel-row.status-done .mock-hotel-name,
main #how .mock-hotel-row.status-active .mock-hotel-name { color: var(--how-ink); }
main #how .mock-hotel-status {
  font-size: 11px;
  color: var(--how-subtle);
}
main #how .mock-hotel-row.status-done .mock-hotel-status {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.04em;
}
main #how .mock-hotel-row.status-active .mock-hotel-status {
  color: var(--how-orange);
  font-weight: 600;
}
main #how .mock-neg-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
main #how .mock-neg-bar {
  flex: 1;
  height: 4px;
  background: rgba(10, 10, 20, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
main #how .mock-neg-fill {
  height: 100%;
  width: 37.5%;
  background: var(--how-orange);
  border-radius: 4px;
}
main #how .mock-neg-pct {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--how-mute);
}

/* ====================================================
   MOCK 3: Console
   ==================================================== */
main #how .mock-console .mock-console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.07);
}
main #how .mock-console-logo-pill {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FFB088, #FF6A1F);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
main #how .mock-console-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--how-ink);
  line-height: 1.2;
}
main #how .mock-console-hotel {
  font-size: 10px;
  color: var(--how-mute);
  margin-top: 1px;
}
main #how .mock-console-bar .mock-chip { margin-left: auto; }
main #how .mock-console-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
main #how .mock-cr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
}
main #how .mock-cr:last-child { border-bottom: 0; }
main #how .mock-cr-label {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--how-subtle);
  text-transform: uppercase;
  flex-shrink: 0;
}
main #how .mock-cr-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--how-ink);
  text-align: right;
}
main #how .mock-cr-val strong { color: var(--how-orange); }
main #how .mock-cr-was {
  font-size: 10px;
  color: var(--how-subtle);
  text-decoration: line-through;
  margin-left: 6px;
}
main #how .mock-console-save {
  background: var(--how-ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

/* ====================================================
   MOCK 4: Policy
   ==================================================== */
main #how .mock-policy .mock-pol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
main #how .mock-pol-rows { display: flex; flex-direction: column; }
main #how .mock-pol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
}
main #how .mock-pol-row:last-child { border-bottom: 0; }
main #how .mock-pol-key {
  font-size: 12px;
  font-weight: 500;
  color: var(--how-mute);
  flex-shrink: 0;
  min-width: 100px;
}
main #how .mock-pol-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
main #how .mock-pol-chip.blue   { background: #EEF3FF; color: var(--how-blue); }
main #how .mock-pol-chip.orange { background: #FFF1E8; color: var(--how-orange); }
main #how .mock-pol-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--how-ink);
}
main #how .mock-toggle {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: rgba(10, 10, 20, 0.12);
  position: relative;
  flex-shrink: 0;
}
main #how .mock-toggle::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #FFFFFF;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
main #how .mock-toggle.on { background: var(--how-orange); }
main #how .mock-toggle.on::after { left: 16px; }
main #how .mock-pol-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--how-ink);
}

/* ====================================================
   MOCK 5: Deploy (browser chrome)
   ==================================================== */
main #how .mock-deploy {
  padding: 0;
  overflow: hidden;
}
main #how .mock-dep-chrome {
  height: 32px;
  background: #F5F5F7;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.07);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}
main #how .mock-dep-dots { display: flex; gap: 5px; }
main #how .mock-dep-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
main #how .mock-dep-dots .r { background: #FF5F57; }
main #how .mock-dep-dots .y { background: #FEBC2E; }
main #how .mock-dep-dots .g { background: #28C840; }
main #how .mock-dep-url {
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  color: #6B6B76;
}
main #how .mock-dep-nav {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
}
main #how .mock-dep-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--how-ink);
}
main #how .mock-dep-tabs {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: #6B6B76;
}
main #how .mock-dep-tabs .act {
  color: var(--how-ink);
  font-weight: 600;
  position: relative;
}
main #how .dep-uline {
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 2px;
  background: var(--how-orange);
  border-radius: 2px;
}
main #how .mock-dep-body { padding: 16px 18px; }
main #how .mock-dep-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--how-orange);
  margin-bottom: 10px;
}
main #how .mock-dep-card {
  background: #FFF8F4;
  border: 0.5px solid rgba(255, 106, 31, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
}
main #how .mock-dep-hotel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--how-ink);
  margin-bottom: 2px;
}
main #how .mock-dep-hotel-meta {
  font-size: 10px;
  color: var(--how-mute);
  margin-bottom: 8px;
}
main #how .mock-dep-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
main #how .mock-dep-price .now { font-size: 18px; font-weight: 700; color: var(--how-ink); }
main #how .mock-dep-price .was { font-size: 11px; color: var(--how-subtle); text-decoration: line-through; }
main #how .mock-dep-price .off { font-size: 11px; font-weight: 700; color: var(--how-orange); }

/* ====================================================
   MOCK 6: Revenue share
   ==================================================== */
main #how .mock-revenue .mock-rev-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.07);
}
main #how .mock-rev-booking {
  font-size: 13px;
  font-weight: 600;
  color: var(--how-ink);
}
main #how .mock-rev-cycle {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--how-subtle);
  letter-spacing: 0.06em;
}
main #how .mock-rev-splits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
main #how .mock-rev-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px 72px;
  align-items: center;
  gap: 10px;
}
main #how .mock-rev-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--how-mute);
}
main #how .mock-rev-bar {
  height: 6px;
  background: rgba(10, 10, 20, 0.07);
  border-radius: 6px;
  overflow: hidden;
}
main #how .mock-rev-fill {
  height: 100%;
  border-radius: 6px;
}
main #how .mock-rev-fill.hotel  { background: #0A0A14; width: 72%; }
main #how .mock-rev-fill.client { background: var(--how-orange); width: 16%; }
main #how .mock-rev-fill.yeyak  { background: #C8C8D0; width: 12%; }
main #how .mock-rev-pct {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--how-ink);
  text-align: right;
}
main #how .mock-rev-amt {
  font-size: 11px;
  color: var(--how-mute);
  text-align: right;
}
main #how .mock-rev-settled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ECFDF5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #059669;
}
main #how .mock-rev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width: 900px) {
  main #how { padding: 72px 24px 96px; }
  main #how .hiw-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  main #how .hiw-left { position: static; }
  main #how .hiw-card { opacity: 1; }
  main #how .hiw-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  main #how .hiw-step-nav {
    border-left: none;
    border-bottom: 2px solid rgba(10, 10, 20, 0.07);
    padding: 6px 0;
    gap: 6px;
  }
  main #how .hiw-step-nav.is-active {
    border-bottom-color: var(--how-orange);
  }
  main #how .mock-brief .mock-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  main #how .hiw-card  { transition: none; opacity: 1; }
  main #how .hiw-step-nav { transition: none; }
}
