/* "How Warrior Claim IQ works" guide page (/guide). Builds on styles.css. */

.guide-page { background: var(--page); }
.guide-page .topbar { justify-content: space-between; }
.guide-top-link {
  color: var(--navy-900); background: var(--cyan-gradient); text-decoration: none;
  font-weight: 900; font-size: 14px; padding: 9px 16px; border-radius: 999px;
}
.guide-top-link:hover { color: var(--navy-900); filter: brightness(1.05); }

.guide-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.guide-page main.guide-wrap { padding-top: 8px; padding-bottom: 40px; }

/* Hero */
.guide-hero {
  background: radial-gradient(circle at 85% 0%, rgba(6, 198, 242, .22), transparent 55%), linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: #fff; padding: 44px 0 34px;
}
.guide-hero .eyebrow { color: var(--cyan-300); }
.guide-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 12px; }
.guide-lead { max-width: 760px; font-size: 18px; color: var(--slate-200); margin: 0 0 22px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-jump a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(105, 222, 248, .4); border-radius: 999px; padding: 7px 14px; background: rgba(255, 255, 255, .04);
}
.guide-jump a:hover { background: var(--cyan-tint-2); color: #fff; }

/* Sections */
.guide-section { padding: 38px 0 6px; scroll-margin-top: 12px; }
.guide-section > h2 { font-size: clamp(22px, 3vw, 28px); }
.guide-section > .muted { max-width: 760px; margin-top: 0; }

/* Four-step flow */
.flow { list-style: none; padding: 0; margin: 22px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.flow-step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; box-shadow: 0 1px 2px rgba(6, 21, 37, .04);
}
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 34px; width: 10px; height: 10px;
  border-top: 3px solid var(--cyan-500); border-right: 3px solid var(--cyan-500); transform: rotate(45deg); z-index: 1;
}
.flow-step h3 { margin: 10px 0 6px; font-size: 17px; }
.flow-step p { margin: 0; font-size: 14px; color: var(--slate-700); }
.flow-step p.flow-tools { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cyan-gradient); color: var(--navy-900); font-weight: 900; font-size: 14px;
}
.flow-num.sm { width: 26px; height: 26px; font-size: 13px; margin-right: 6px; vertical-align: 2px; }

.flow-iq {
  display: flex; gap: 16px; align-items: flex-start; background: var(--navy-800); color: var(--slate-200);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
.flow-iq h3 { color: #fff; margin: 2px 0 6px; }
.flow-iq p { margin: 0; }
.flow-iq strong { color: var(--cyan-300); }
.iq-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--cyan-gradient); color: var(--navy-900); font-weight: 900; font-size: 17px; letter-spacing: .02em;
}
.flow-home { border: 1px dashed var(--slate-200); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.flow-home h3 { margin: 0 0 4px; }
.flow-home p { margin: 0; color: var(--slate-700); }

/* Connections table */
.conn-table { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.conn-row { display: grid; grid-template-columns: minmax(200px, 34%) 1fr; gap: 0 18px; padding: 13px 18px; border-top: 1px solid var(--line); align-items: start; }
.conn-row:first-child { border-top: 0; }
.conn-head { background: var(--cyan-tint); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-700); padding-top: 10px; padding-bottom: 10px; }
.conn-row strong { display: block; color: var(--navy-800); }
.conn-row small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.conn-row > span:last-child { color: var(--slate-700); font-size: 15px; }

/* Tool cards */
.group-head { margin: 28px 0 12px; font-size: 19px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.tool header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.tool h4 { margin: 0; font-size: 17px; color: var(--navy-800); font-weight: 800; }
.tool > p { margin: 0 0 8px; color: var(--slate-700); font-size: 15px; }
.tool ul { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; color: var(--slate-700); }
.tool li { margin-bottom: 6px; }
.tool li strong { color: var(--navy-800); }
.tool .feeds { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tool .feeds strong { color: var(--cyan-700); }

.plan-tag {
  flex: none; display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--slate-500); background: #fff;
}
.plan-tag.adv { background: var(--cyan-gradient); color: var(--navy-900); border-color: transparent; }
.plan-tag.base { background: var(--navy-800); color: var(--cyan-300); border-color: transparent; }
.adv-inline, .base-inline { color: var(--cyan-700); }
.tool header .plan-tag { white-space: normal; text-align: right; max-width: 55%; }

/* Typical path */
.path { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.path li {
  counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 58px; color: var(--slate-700);
}
.path li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px;
}
.path li strong { color: var(--navy-800); }
.path .plan-tag { margin-left: 6px; vertical-align: 1px; }

/* Plans table */
.plan-table-wrap { margin-top: 16px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.plan-table th, .plan-table td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { border-top: 0; background: var(--cyan-tint); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-700); }
.plan-table tbody th { font-weight: 700; color: var(--navy-800); width: 42%; }
.plan-table-3 tbody th { width: 34%; }
.plan-table small { color: var(--muted); font-weight: 600; }
.plan-table .price-row td { font-weight: 800; color: var(--navy-800); }
.plan-table td { color: var(--slate-700); }
.plan-table td:last-child { font-weight: 600; color: var(--navy-800); }

/* Good to know */
.know-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.know { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cyan-500); border-radius: 14px; padding: 16px 18px; }
.know h3 { margin: 0 0 6px; }
.know p { margin: 0; color: var(--slate-700); font-size: 15px; }

/* CTA + footer */
.guide-cta { margin: 40px 0 0; text-align: center; background: var(--navy-800); color: var(--slate-200); border-radius: var(--radius); padding: 30px 20px; }
.guide-cta h2 { color: #fff; }
.guide-cta p { margin: 0 0 12px; }
.guide-footer { background: var(--navy-900); color: var(--slate-300); text-align: center; font-size: 13px; padding: 16px 18px 22px; }
.guide-footer p { margin: 4px 0; }
.guide-footer strong { color: #fff; }

@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .guide-hero { padding: 32px 0 26px; }
  .guide-lead { font-size: 16px; }
  .flow, .tool-grid, .know-grid { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .conn-row { grid-template-columns: 1fr; gap: 4px; }
  .conn-head { display: none; }
  .flow-iq { flex-direction: column; }
  .guide-top-link { padding: 8px 12px; font-size: 13px; }
  .guide-page .brand-name { display: none; }
}
