/* ============================================================
   PYMTW — Shared component layer for the education funnel
   Builds on styles.css design tokens (:root variables).
   Calmer, more editorial layer for interior/marketing pages.
   ============================================================ */

/* --- Page shell (interior pages have no live price bar) --- */
body.pymtw-page { background: var(--bg-primary); }
/* Treat nav + trust bar as one fixed header block so they never overlap */
/* NOTE: no backdrop-filter here — it would create a containing block and
   break the mobile menu's position:fixed full-screen overlay. Use a
   near-opaque solid background instead. */
body.pymtw-page #site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #0b0b12;
  border-bottom: 1px solid var(--border-subtle);
}
/* Mobile full-screen menu should clear the fixed header, not sit under it */
@media (max-width: 768px) {
  body.pymtw-page #site-header .nav-links { padding-top: 70px; justify-content: flex-start; }
}
body.pymtw-page .navbar { position: static; padding: 12px 0; background: transparent; border-bottom: none; }
body.pymtw-page .navbar.scrolled { background: transparent; border-bottom: none; padding: 12px 0; }

/* Standard interior page top spacing (clears fixed nav + trust bar) */
.pymtw-main { padding-top: 122px; position: relative; z-index: 1; }
@media (max-width: 768px) { .pymtw-main { padding-top: 70px; } }

/* --- Trust / security promise bar under the nav --- */
.trust-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(247, 147, 26, 0.04);
}
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 28px;
}
.trust-bar-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}
.trust-bar-item svg { color: var(--accent-orange); flex-shrink: 0; }
@media (max-width: 768px) { .trust-bar { display: none; } }

/* --- Reusable eyebrow / section header --- */
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-orange);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; margin-top: 14px; }

/* --- Interior page hero --- */
.page-hero { padding: 64px 0 40px; text-align: center; position: relative; }
.page-hero .container { max-width: 820px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 16px 0;
}
.page-hero .lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.page-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.page-hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); padding: 6px 0; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-orange); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* --- Section spacing --- */
.pymtw-section { padding: 64px 0; position: relative; }
.pymtw-section.alt { background: var(--bg-secondary); }

/* --- Card grids --- */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: 1fr; } .card-grid.cols-2 { grid-template-columns: 1fr; } }

.p-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--border-color); }
.p-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.p-card p { color: var(--text-secondary); font-size: 0.96rem; }
.p-card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(247, 147, 26, 0.12); color: var(--accent-orange); margin-bottom: 16px;
}

/* --- Visitor pathways (homepage) --- */
.pathway-card { display: flex; flex-direction: column; }
.pathway-card .pathway-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.pathway-card ul { list-style: none; margin: 14px 0 22px; }
.pathway-card ul li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.92rem; }
.pathway-card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-orange); }
.pathway-card .btn { margin-top: auto; }

/* --- Buttons: additional variants (base .btn in styles.css) --- */
.btn-ghost {
  background: transparent; border: 1px solid var(--border-color); color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-block { width: 100%; justify-content: center; }

/* --- Pricing / product tiers --- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
}
.tier-card.featured { border-color: var(--accent-orange); box-shadow: 0 0 0 1px var(--accent-orange), 0 20px 50px -20px var(--glow-orange); }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #000; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.tier-card { position: relative; }
.tier-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.tier-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 12px 0 2px; }
.tier-price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.tier-sub { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 18px; }
.tier-features { list-style: none; margin: 0 0 24px; flex: 1; }
.tier-features li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.92rem; }
.tier-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-orange); font-weight: 700; }
.tier-features li.muted::before { content: "•"; color: var(--text-muted); }

/* --- Checklist / included items --- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-secondary); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-orange); font-weight: 700; font-size: 1.05rem; }
.x-list { list-style: none; display: grid; gap: 12px; }
.x-list li { position: relative; padding-left: 30px; color: var(--text-secondary); }
.x-list li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--text-muted); font-weight: 700; }

/* --- Steps / how it works --- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(247, 147, 26, 0.12); color: var(--accent-orange);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}
.step h4 { font-size: 1.02rem; margin-bottom: 3px; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* --- Disclosure / callout boxes --- */
.disclosure {
  border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent-orange);
  background: rgba(247, 147, 26, 0.05); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 0.88rem; color: var(--text-secondary);
}
.disclosure strong { color: var(--text-primary); }
.callout-security {
  border: 1px solid var(--border-subtle); border-left: 3px solid #34d399;
  background: rgba(52, 211, 153, 0.06); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 0.92rem; color: var(--text-secondary);
}
.callout-security strong { color: var(--text-primary); }

/* --- FAQ (shared, accessible <details>) --- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-orange); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-secondary); font-size: 0.95rem; }

/* --- Assessment engine --- */
.assess-wrap { max-width: 720px; margin: 0 auto; }
.assess-progress { height: 6px; border-radius: 999px; background: var(--bg-card); overflow: hidden; margin-bottom: 8px; }
.assess-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); width: 0; transition: width 0.4s ease; }
.assess-counter { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.assess-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; }
.assess-q { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; margin-bottom: 22px; }
.assess-options { display: grid; gap: 12px; }
.assess-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  background: var(--bg-secondary); color: var(--text-primary); font-size: 0.98rem;
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.assess-option:hover { border-color: var(--accent-orange); }
.assess-option:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }
.assess-option.selected { border-color: var(--accent-orange); background: rgba(247, 147, 26, 0.1); }
.assess-option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; }
.assess-option.selected .dot { border-color: var(--accent-orange); background: var(--accent-orange); box-shadow: inset 0 0 0 3px var(--bg-card); }
.assess-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }

/* Assessment gate + result */
.assess-gate, .assess-result { display: none; }
.assess-gate.active, .assess-result.active, .assess-quiz.hidden { }
.assess-quiz.hidden { display: none; }
.result-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: rgba(247,147,26,0.12); color: var(--accent-orange); font-weight: 600; font-family: var(--font-display); margin-bottom: 16px; }

/* --- Forms --- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--bg-secondary);
  color: var(--text-primary); font-family: inherit; font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-orange); outline-offset: 1px; border-color: var(--accent-orange); }
.form-status { font-size: 0.88rem; margin-top: 10px; min-height: 1.2em; }
.form-status.success { color: #34d399; }
.form-status.error { color: #f87171; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* --- Comparison / spec table --- */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.spec-table th, .spec-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); font-size: 0.92rem; }
.spec-table th { font-family: var(--font-display); color: var(--text-primary); background: var(--bg-secondary); }
.spec-table td { color: var(--text-secondary); }

/* --- Newsletter signup --- */
.signup-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: 0 24px 60px -28px var(--glow-orange);
}
.signup-row { display: flex; gap: 10px; }
.signup-row input {
  flex: 1; min-width: 0; padding: 15px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--bg-secondary);
  color: var(--text-primary); font-family: inherit; font-size: 1rem;
}
.signup-row input:focus { outline: 2px solid var(--accent-orange); outline-offset: 1px; border-color: var(--accent-orange); }
.signup-row .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 540px) { .signup-row { flex-direction: column; } .signup-row .btn { width: 100%; justify-content: center; } }
.signup-fineprint { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.signup-fineprint a { color: var(--accent-orange); }

/* Newsletter perks list */
.perk-list { display: grid; gap: 20px; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(247, 147, 26, 0.12); color: var(--accent-orange);
}
.perk h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 3px; }
.perk p { color: var(--text-secondary); font-size: 0.94rem; }

/* --- Testimonials (reusable) --- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column;
}
.testi-card.is-sample { border-style: dashed; opacity: 0.9; }
.testi-quote { font-size: 1rem; line-height: 1.6; color: var(--text-primary); margin-bottom: 18px; }
.testi-quote::before { content: "\201C"; color: var(--accent-orange); font-family: var(--font-display); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testi-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(247,147,26,0.15); color: var(--accent-orange); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: 0.92rem; }
.testi-role { font-size: 0.8rem; color: var(--text-muted); }
.sample-tag { position: absolute; top: 14px; right: 14px; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 3px 8px; }

/* --- Resource library cards --- */
.res-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px 24px; }
.res-card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 6px; }
.res-card h3 a { color: var(--accent-orange); }
.res-card > p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 12px; }
.res-meta { list-style: none; display: grid; gap: 6px; margin: 0; font-size: 0.84rem; }
.res-meta li { color: var(--text-secondary); display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.res-meta li strong { color: var(--text-muted); font-weight: 600; }
@media (max-width: 480px) { .res-meta li { grid-template-columns: 1fr; gap: 2px; } }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.cat-nav a { font-size: 0.82rem; padding: 7px 14px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-secondary); }
.cat-nav a:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.res-cat { scroll-margin-top: 130px; }
.res-cat > h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; }
.res-cat > .cat-intro { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* --- Author / bio --- */
.bio-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.bio-avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #000; }
@media (max-width: 560px) { .bio-row { grid-template-columns: 1fr; } }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.mt-md { margin-top: 24px; }
.muted { color: var(--text-muted); }
.tag-pill { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(247,147,26,0.12); color: var(--accent-orange); }
.coming-soon { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* --- Homepage hero credibility line + nav CTA --- */
.hero-credibility { margin-top: 18px; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--text-muted); }
.nav-cta { color: #000 !important; padding: 8px 16px !important; }
.nav-cta::after { display: none !important; }
@media (max-width: 768px) { .nav-cta { display: inline-flex; margin-top: 8px; } }

/* --- Accessibility --- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent-orange); color: #000; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 2000; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
