/* how-it-works.css — /how-it-works deep dive page styles */

/* Nav */
.hiw-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s;
}
.hiw-nav-link:hover { color: var(--fg); }

/* Page wrapper */
.hiw-main {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ─── HERO ─── */
.hiw-hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hiw-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hiw-headline {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hiw-accent { color: var(--accent); }
.hiw-lede {
  font-size: 19px;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hiw-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hiw-steps-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hiw-step-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.hiw-step-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.hiw-step-arrow {
  color: var(--fg-dim);
  font-size: 14px;
  opacity: 0.4;
}

/* ─── STEP SECTIONS ─── */
.hiw-step-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.hiw-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hiw-step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0E0E0F;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.hiw-step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hiw-step-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hiw-step-desc {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ─── CODE CARD SHARED ─── */
.hiw-card {
  background: #0A0A0B;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.hiw-card-bar {
  background: #111113;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.hiw-card-dots {
  display: flex;
  gap: 6px;
}
.hiw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hiw-dot.red    { background: #FF5F57; }
.hiw-dot.yellow { background: #FEBC2E; }
.hiw-dot.green  { background: #28C840; }
.hiw-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.hiw-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── SCAN SECTION ─── */
.hiw-scan-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.hiw-scan-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hiw-scan-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hiw-scan-check {
  color: #28C840;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hiw-scan-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.hiw-scan-item-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* Scan output code card */
.hiw-scan-output .hiw-card-body {
  gap: 4px;
}
.hiw-code-line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hiw-indent {
  padding-left: 16px;
}
.hiw-mt { margin-top: 8px; }
.hiw-c-dim   { color: var(--fg-dim); }
.hiw-c-key   { color: #9DCEFF; }
.hiw-c-str   { color: var(--accent); }
.hiw-c-num   { color: #F8C555; }
.hiw-c-green { color: #28C840; }

/* ─── STRATEGY SECTION ─── */
.hiw-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.hiw-strategy-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hiw-strategy-point {
  display: flex;
  gap: 12px;
}
.hiw-strategy-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hiw-strategy-point p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}
.hiw-strategy-point strong { color: var(--fg); font-weight: 600; }

/* Calendar card */
.hiw-calendar .hiw-card-body {
  padding: 0;
  gap: 0;
}
.hiw-cal-header {
  display: grid;
  grid-template-columns: 88px 1fr 80px;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hiw-cal-row {
  display: grid;
  grid-template-columns: 88px 1fr 80px;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.hiw-cal-row:last-child { border-bottom: none; }
.hiw-cal-row-more { opacity: 0.5; }
.hiw-cal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
}
.hiw-cal-topic {
  font-size: 12px;
  color: var(--fg);
  line-height: 1.4;
}
.hiw-cal-intent {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hiw-cal-intent.decision    { background: rgba(245,166,35,0.15); color: var(--accent); }
.hiw-cal-intent.consideration { background: rgba(157,206,255,0.1); color: #9DCEFF; }
.hiw-cal-intent.awareness   { background: rgba(40,200,64,0.1); color: #28C840; }

/* ─── PUBLISH SECTION ─── */
.hiw-publish-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.hiw-spec-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-spec-icon {
  color: var(--accent);
  font-size: 16px;
}
.hiw-spec-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.hiw-spec-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* Post excerpt card */
.hiw-published-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #28C840;
  padding: 2px 8px;
  border: 1px solid rgba(40,200,64,0.3);
  border-radius: 4px;
}
.hiw-post-body {
  padding: 24px;
  position: relative;
}
.hiw-post-kw {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
}
.hiw-post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hiw-post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.hiw-post-text {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}
.hiw-post-fade { position: relative; }
.hiw-post-list {
  margin: 0 0 14px 20px;
}
.hiw-post-list li {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 6px;
}
.hiw-post-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hiw-post-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0A0A0B);
  pointer-events: none;
}

/* ─── GROW SECTION ─── */
.hiw-grow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.hiw-grow-feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-grow-icon {
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
  margin-bottom: 2px;
}
.hiw-grow-title {
  font-size: 16px;
  font-weight: 600;
}
.hiw-grow-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* Dashboard mock */
.hiw-dashboard .hiw-card-body {
  padding: 0;
}
.hiw-dash-body { padding: 0; }
.hiw-dash-stats {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.hiw-dash-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hiw-dash-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 24px;
}
.hiw-dash-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hiw-dash-num-up { color: #28C840; }
.hiw-dash-lbl {
  font-size: 12px;
  color: var(--fg-dim);
}
.hiw-dash-chart {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.hiw-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 8px;
}
.hiw-chart-bar {
  flex: 1;
  background: rgba(245,166,35,0.2);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background 0.2s;
}
.hiw-chart-bar-active {
  background: rgba(245,166,35,0.5);
}
.hiw-chart-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.hiw-dash-recent {
  padding: 16px 24px 20px;
}
.hiw-dash-recent-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.hiw-dash-post-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-dash-post-row:last-child { border-bottom: none; }
.hiw-dash-post-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #28C840;
  flex-shrink: 0;
  min-width: 80px;
}
.hiw-dash-post-title {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* ─── HIGHER TIERS ─── */
.hiw-tiers {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.hiw-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hiw-tiers-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hiw-tiers-desc {
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hiw-tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hiw-tier-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-tier-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hiw-tier-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}
.hiw-tier-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,166,35,0.3);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color 0.2s;
}
.hiw-tier-link:hover { border-color: var(--accent); }

/* ─── CTA ─── */
.hiw-cta {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 56px 32px;
  margin: 48px 0;
}
.hiw-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hiw-cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hiw-cta-lede {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.hiw-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hiw-cta-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* ─── INTERNAL LINKS ─── */
.hiw-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hiw-links a {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hiw-links a:hover {
  color: var(--fg);
  border-color: rgba(240,237,232,0.3);
}

/* ─── MOBILE ─── */
@media (max-width: 700px) {
  .hiw-main { padding: 0 16px 60px; }
  nav { padding: 16px 20px; }
  .hiw-hero { padding: 48px 0 40px; }
  .hiw-scan-grid,
  .hiw-strategy-grid { grid-template-columns: 1fr; }
  .hiw-publish-specs { grid-template-columns: 1fr 1fr; }
  .hiw-grow-grid { grid-template-columns: 1fr; }
  .hiw-tier-cards { grid-template-columns: 1fr; }
  .hiw-cta { padding: 40px 20px; }
  .hiw-dash-stats { flex-wrap: wrap; gap: 16px; }
  .hiw-dash-divider { display: none; }
  .hiw-dash-stat { min-width: 40%; }
}
@media (max-width: 480px) {
  .hiw-publish-specs { grid-template-columns: 1fr; }
  footer { padding: 24px 16px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-copy { margin-left: 0; }
}
