/* AutoRankr A, Subpage layouts (share nav/foot/colors with autorankr-a.css) */

/* Subpage hero, smaller than home */
.sub-hero {
  position: relative; padding: 80px 28px 56px; text-align: center;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.sub-hero .hero-grid-bg { opacity: 0.4; }
.sub-hero .hero-glow { width: 720px; height: 480px; top: -200px; }
.sub-hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.sub-h1 {
  font-size: clamp(40px, 5.5vw, 64px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.02; margin: 22px 0 0;
}
.sub-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.55;
  max-width: 580px; margin: 22px auto 0;
}

/* Side nav (left) + content (right), used by docs-style pages */
.docs {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  max-width: 1180px; margin: 0 auto; padding: 64px 28px 96px;
}
.docs-nav {
  position: sticky; top: 80px; align-self: start;
  border-right: 1px solid var(--line); padding-right: 24px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.docs-nav h4 {
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
  margin: 0 0 12px;
}
.docs-nav h4:not(:first-child) { margin-top: 28px; }
.docs-nav a {
  display: block; padding: 6px 10px; margin-left: -10px;
  font-size: 13px; color: var(--text-2); border-radius: 6px;
  border-left: 1px solid transparent; transition: all 0.15s;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.on { color: var(--text); background: var(--bg-2); border-left-color: var(--accent); }
.docs-content { min-width: 0; }
.docs-h { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.docs-h em { font-style: normal; background: linear-gradient(120deg,var(--accent),var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.docs-block { margin-top: 56px; }
.docs-block h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px;
}
.docs-block .lead { font-size: 16px; color: var(--text-2); line-height: 1.6; max-width: 640px; }
.docs-p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0 0 12px; max-width: 720px; }

/* Stage diagram for How It Works */
.stage {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1);
  padding: 24px; margin: 24px 0 0;
}
.stage-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px;
}
.stage-head b { color: var(--accent); font-weight: 500; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stage-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 8px;
}
.stage-card h4 { font-size: 14px; font-weight: 600; margin: 0; }
.stage-card p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }
.stage-meta {
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--dim);
}

/* Visual flow timeline */
.flow {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  margin: 32px 0 0;
}
.flow-line {
  position: relative; width: 1px; background: var(--line);
  margin: 0 auto;
}
.flow-line::before {
  content: ""; position: absolute; top: 0; left: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.flow-line::after {
  content: ""; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent-2);
}
.flow-steps { display: flex; flex-direction: column; gap: 28px; }
.flow-step {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
  padding: 22px 24px; position: relative;
}
.flow-step::before {
  content: ""; position: absolute; left: -25px; top: 26px; width: 14px; height: 1px;
  background: var(--line);
}
.flow-step-tag {
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em;
}
.flow-step h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 6px; }
.flow-step p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }
.flow-step-detail {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted);
}

/* Feature pages */
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.feat-card {
  padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
  display: flex; flex-direction: column; gap: 10px; min-height: 200px;
}
.feat-card .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: var(--bg); font-weight: 700;
}
.feat-card h4 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.feat-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }

.feat-spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 48px;
  background: var(--bg-1); margin-bottom: 14px;
}
.feat-spotlight.alt { background: linear-gradient(135deg, rgba(124,92,255,0.06), rgba(255,77,139,0.03)); border-color: rgba(124,92,255,0.2); }
.feat-spot-tag { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.feat-spot-h { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 14px; }
.feat-spot-p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0 0 18px; }
.feat-spot-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feat-spot-list li { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.feat-spot-list li::before { content: "→"; color: var(--accent); font-family: 'Geist Mono', monospace; }
.feat-mock {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.feat-mock-bar {
  height: 28px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
}
.feat-mock-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.feat-mock-bar b { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.feat-mock-body {
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.feat-mock-line { height: 8px; background: var(--bg-2); border-radius: 3px; }
.feat-mock-line.s { width: 60%; }
.feat-mock-line.m { width: 80%; }
.feat-mock-line.l { width: 100%; }
.feat-mock-line.accent { background: linear-gradient(90deg, var(--accent), transparent 70%); }

/* Pricing page comparison */
.cmp {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin-top: 32px; background: var(--bg-1);
}
.cmp-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row.head { background: var(--bg-2); }
.cmp-cell { padding: 16px 22px; font-size: 14px; }
.cmp-cell.lbl { color: var(--text-2); }
.cmp-cell.col { text-align: center; border-left: 1px solid var(--line); color: var(--text); font-weight: 500; }
.cmp-cell.col.feat { background: rgba(124,92,255,0.06); color: var(--text); }
.cmp-cell.head-cell { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.cmp-cell.head-cell.feat { color: var(--accent); }
.cmp-cell.head-cell.col { padding: 22px; }
.cmp-cell .check { color: var(--accent); }
.cmp-cell .x { color: var(--dim); }

.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px;
}
.calc-card {
  padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
}
.calc-card h4 { font-size: 14px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.005em; }
.calc-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.calc-card .row:last-child { border-bottom: none; }
.calc-card .row span { color: var(--text-2); }
.calc-card .row b { font-family: 'Geist Mono', monospace; color: var(--text); font-weight: 500; }
.calc-card .total { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-2); font-size: 16px; font-weight: 600; }
.calc-card .total b { font-size: 22px; color: var(--accent); }

/* Use cases */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uc-card {
  padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1);
  display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  position: relative; transition: all 0.15s;
}
.uc-card:hover { border-color: rgba(124,92,255,0.4); background: linear-gradient(135deg, rgba(124,92,255,0.05), transparent 70%); }
.uc-card-tag { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.uc-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.uc-card .why { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.uc-card .stats { display: flex; gap: 20px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); }
.uc-card .stats div { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }
.uc-card .stats b { display: block; font-family: 'Geist', sans-serif; font-size: 18px; color: var(--text); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 2px; }
.uc-card .arr {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.15s;
}
.uc-card:hover .arr { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg); border-color: transparent; }

/* Free tools page, featured tool list */
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-row {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg-1);
  display: flex; gap: 18px; align-items: flex-start; transition: all 0.15s;
}
.tool-row:hover { background: var(--bg-2); border-color: var(--line-2); }
.tool-row .ic-lg {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
}
.tool-row .ic-lg::after { content: ""; position: absolute; inset: 11px; border: 1.5px solid var(--bg); border-radius: 4px; }
.tool-row h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.tool-row p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }
.tool-row .meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--dim); margin-top: 12px; letter-spacing: 0.04em; display: flex; gap: 12px; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .docs-nav { position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 16px; max-height: none; }
  .docs-nav h4:not(:first-child) { margin-top: 18px; }
  .stage-grid, .feat-grid, .uc-grid, .calc, .tool-list { grid-template-columns: 1fr; }
  .feat-spotlight { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .cmp-cell { padding: 12px 14px; font-size: 13px; }
}
