/* ---------- Content hub & article system (Resources: Blog / Quizzes / Tools / Compare) ---------- */

/* Pins the foot-band to the bottom of the viewport on pages too short to fill it,
   without affecting pages that already exceed the viewport height. */
body.sticky-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.sticky-footer > footer.foot-band {
  margin-top: auto;
}

.site-nav {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}

.site-nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 24%;
  display: block;
}

.site-nav-logo span {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav-links a {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--ink);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms ease;
}

.site-nav-cta:hover { transform: translateY(-1px); }
.site-nav-cta svg.apple-ico { width: 14px; height: 17px; fill: currentColor; flex-shrink: 0; }
.site-nav-cta .arrow { transition: transform 160ms ease; }
.site-nav-cta:hover .arrow { transform: translateX(2px); }

@media (max-width: 760px) {
  .site-nav-cta span.full { display: none; }
  .site-nav-cta span.short { display: inline; }
}

@media (min-width: 761px) {
  .site-nav-cta span.short { display: none; }
}

@media (max-width: 540px) {
  .site-nav-inner { gap: 14px; }
  .site-nav-logo span { display: none; }
  .site-nav-cta { height: 42px; padding: 0 16px; }
}

/* Secondary tab strip: Blog / Quizzes / Tools / Compare, shown on Resources pages */

.section-tabs {
  display: flex;
  gap: 28px;
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-tabs.wide { width: min(calc(100% - 40px), 1100px); }

.section-tabs a {
  padding-bottom: 14px;
  margin-bottom: -15px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  border-bottom: 2px solid transparent;
}

.section-tabs a:hover { color: var(--ink); }
.section-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Breadcrumbs */

.crumbs {
  width: min(calc(100% - 40px), 760px);
  margin: 32px auto 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; opacity: 0.5; }

.crumbs.wide { width: min(calc(100% - 40px), 1100px); }

/* Hub pages */

.hub-head {
  width: min(calc(100% - 40px), 1100px);
  margin: 18px auto 0;
  text-align: left;
}

.hub-head h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hub-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.55;
}

.hub-list {
  width: min(calc(100% - 40px), 1100px);
  margin: 40px auto 0;
}

.hub-list a.hub-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.hub-list a.hub-row:last-child { border-bottom: 1px solid var(--line); }

.hub-row h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.hub-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 540px;
}

.hub-row .go {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  transition: transform 160ms ease, color 160ms ease;
}

.hub-row:hover .go { color: var(--ink); transform: translateX(3px); }

/* Resources landing (hub of hubs) */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  width: min(calc(100% - 40px), 1100px);
  margin: 40px auto 0;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--bg);
  color: var(--ink);
  min-height: 150px;
}

.resource-card .num {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.resource-card h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.resource-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Article shell shared by blog / quiz / tools / compare */

.article {
  width: min(calc(100% - 40px), 700px);
  margin: 0 auto;
}

.article-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { opacity: 0.5; }

.lede {
  margin: 0 0 26px;
  color: var(--ink-warm);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 22px 24px;
  background: var(--grey05);
  border-radius: 18px;
}

.cta-sponsor {
  display: block;
  margin-bottom: 6px;
  color: var(--mustard);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-box p {
  margin: 0;
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted-strong);
}

.cta-box .btn { flex-shrink: 0; }

@media (max-width: 560px) {
  .cta-box { padding: 20px; }
}

.article h2 {
  margin: 40px 0 14px;
  color: var(--ink);
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.article p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.article li { margin-bottom: 6px; }

.article a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--grey20); text-underline-offset: 2px; }
.article a:not(.btn):hover { text-decoration-color: var(--ink); }

.data-table {
  width: 100%;
  margin: 10px 0 26px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td { color: var(--text); }

.data-table .yes { color: #1a7a3c; font-weight: 700; }
.data-table .no { color: #b3261e; font-weight: 700; }

.how-pop-helps {
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-pop-helps h2 { margin: 0 0 10px; }
.how-pop-helps p { margin: 0; }

.disclaimer {
  margin: 24px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  font-style: italic;
}

.sources {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.sources li { margin-bottom: 6px; }
.sources a { color: var(--muted-strong); text-decoration: underline; }

.related-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 0;
}

.related-links a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

.related-links a:last-child { border-bottom: 1px solid var(--line); }
.related-links a:hover { color: var(--mustard); }

.updated-note {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Verdict / "why choose Pop" box for compare pages */

.verdict {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.5;
}

.why-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.why-list li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
}

.why-list li::before { content: "\2013"; color: var(--muted); flex-shrink: 0; }

/* Quiz: plain, editorial, minimal chrome */

.quiz-widget {
  margin: 0 0 36px;
  padding: 40px 0 8px;
  border-top: 1px solid var(--line);
}

.quiz-progress {
  position: relative;
  height: 2px;
  margin-bottom: 36px;
  background: var(--line);
}

.quiz-progress-fill {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 220ms ease;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-step .q-count {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quiz-step h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.quiz-options {
  display: flex;
  flex-direction: column;
}

.quiz-options button {
  text-align: left;
  padding: 16px 2px;
  border: none;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 450;
  cursor: pointer;
  transition: padding-left 140ms ease, color 140ms ease;
}

.quiz-options button:last-child { border-bottom: 1px solid var(--line); }
.quiz-options button:hover { padding-left: 8px; color: var(--mustard); }

.quiz-result { display: none; }
.quiz-result.active { display: block; }

.quiz-result-tier {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-result h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quiz-result p { color: var(--muted-strong); font-size: 16px; line-height: 1.6; margin: 0 0 20px; }

.quiz-share {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.quiz-share button {
  padding: 0;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--grey20);
  cursor: pointer;
  font-family: inherit;
}

.quiz-restart {
  color: var(--muted) !important;
  font-weight: 500 !important;
}

/* Tool / calculator widget */

.tool-widget {
  margin: 0 0 36px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 540px) {
  .tool-row { grid-template-columns: 1fr; }
}

.tool-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tool-field input, .tool-field select {
  width: 100%;
  height: 44px;
  padding: 0 4px;
  border: none;
  border-bottom: 1px solid var(--grey20);
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
}

.tool-field input:focus, .tool-field select:focus { outline: none; border-bottom-color: var(--ink); }

.tool-run {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.tool-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--grey20);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.tool-result strong { font-size: 19px; }

.tool-privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Footer hub strip (added above the existing foot-band on content pages) */

.footer-hubs {
  width: min(calc(100% - 40px), 1100px);
  margin: 70px auto 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .footer-hubs { grid-template-columns: repeat(2, 1fr); }
}

.footer-hubs h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-hubs ul { margin: 0; padding: 0; list-style: none; }
.footer-hubs li { margin-bottom: 7px; }
.footer-hubs a { color: var(--muted-strong); font-size: 14px; text-decoration: none; }
.footer-hubs a:hover { color: var(--ink); text-decoration: underline; }

/* Money landing pages reuse the hero/panel/faq system from styles.css */

.plan-table-wrap { overflow-x: auto; }
