/* SuccessPath components — v3
 * Minimal, confident, Apple/Google-grade. Quiet surfaces, clear hierarchy,
 * generous air. Touch targets ≥ 44px. */

/* ================= Nav ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s3) var(--s6);
  min-height: 4.25rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.logo .icon { width: 1.5rem; height: 1.5rem; color: var(--brand); }
.logo .dot { color: var(--brand); }
.logo:hover { color: var(--ink); }

.nav-links { display: flex; gap: var(--s2); align-items: center; }
.nav-links > a, .nav-dd summary {
  text-decoration: none; color: var(--ink-soft);
  font-size: var(--text-sm); font-weight: 600;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-links > a:hover, .nav-dd summary:hover { color: var(--brand); background: var(--brand-soft); }
/* Keep this before the :hover rule above. The nav's link color would
   otherwise paint dark text on the blue CTA button (specificity); this
   restores white text in the default state while the hover treatment
   (light-blue fill, blue text) still applies on hover. */
.nav-links > a.btn { color: #fff; }
.nav-links > a.btn:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: var(--s2);
  border-radius: var(--radius-sm);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-x { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-x { display: block; }

/* Tests dropdown */
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.2em; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary .icon { width: 0.85em; height: 0.85em; color: var(--faint); transform: rotate(90deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 0.6rem); left: 0;
  min-width: 17rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s2);
  display: flex; flex-direction: column; gap: 2px;
  z-index: 60;
}
.nav-dd:not([open]) .nav-dd-menu { display: none; }
.nav-dd-menu a {
  padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
  display: flex; gap: var(--s3); align-items: flex-start;
  text-decoration: none;
}
.nav-dd-menu a:hover { background: var(--bg); }
.nav-dd-menu a .icon { width: 1.35rem; height: 1.35rem; color: var(--brand); margin-top: 2px; }
.nav-dd-menu a strong { display: block; color: var(--ink); font-size: var(--text-sm); font-weight: 700; }
.nav-dd-menu a .sub { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 500; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    padding: var(--s4) var(--s6) var(--s6);
    gap: var(--s1);
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > a, .nav-dd summary {
    font-size: var(--text-base);
    padding: var(--s3) var(--s2);
  }
  .nav-dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 var(--s4); }
  .nav-links .btn { margin-top: var(--s3); }
}

/* Mock mode badge (go-live polish, Nov 28): preview-only, injected by
   shared/mock.js when ?mock=1 is active on an allowed origin. */
.mock-badge {
  background: #fef3c7; color: #92400e;
  border-bottom: 1px solid #f3dfb8;
  text-align: center; font-weight: 700; font-size: var(--text-sm);
  padding: var(--s2) var(--s4);
}
@media print { .mock-badge { display: none; } }

/* ================= Hero ================= */
.hero {
  text-align: center;
  padding: var(--s16) 0;
  position: relative;
}
/* Section rhythm on small screens: one step tighter, same uniform gap. */
@media (max-width: 760px) {
  .section { padding: var(--s12) 0; }
  .hero { padding: var(--s12) 0; }
}
.hero-wash {
  background:
    radial-gradient(52rem 26rem at 50% -8rem, var(--brand-soft), transparent 70%);
}

/* Welcome banner: shown only to visitors arriving via trysuccesspath.com (?src=try). */
.welcome-banner { background: var(--brand-ink); color: #fff; }
.welcome-banner[hidden] { display: none; }
.welcome-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
.welcome-banner p { margin: 0; color: #fff; }
.welcome-dismiss { flex: none; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-pill); color: #fff; cursor: pointer; }
.welcome-dismiss:hover { border-color: #fff; }
.welcome-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.welcome-dismiss .icon { width: 1rem; height: 1rem; }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 .hl { color: var(--brand); }
.hero .lead {
  max-width: 42rem; margin: 0 auto var(--s8);
}
.hero-cta { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: var(--s5); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font);
  font-weight: 700; font-size: var(--text-base);
  text-wrap: balance;
  text-align: center;
  min-height: 3rem;
  padding: var(--s3) var(--s8);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--surface); border-color: var(--line); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }

.btn-quiet { background: transparent; color: var(--brand); min-height: 2.75rem; padding: var(--s2) var(--s4); }
.btn-quiet:hover { background: var(--brand-soft); color: var(--brand-deep); }

.btn-sm { font-size: var(--text-sm); min-height: 2.5rem; padding: var(--s2) var(--s5); }
.btn-block { display: flex; width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ================= Cards & grids ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: var(--s3); font-size: var(--text-lg); font-weight: 700; }
.card h3 .icon { color: var(--brand); width: 1.4em; height: 1.4em; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto var(--s10); }
.section-head h2 { margin-bottom: var(--s3); }
.section-head .lead { margin-bottom: 0; }

/* ================= Steps ================= */
.steps { display: grid; gap: var(--s2); margin-top: var(--s8); }
.step {
  display: flex; gap: var(--s5); align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
}
.step-num {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: var(--text-sm);
  display: flex; align-items: center; justify-content: center;
}
.step p { margin: 0; color: var(--ink-soft); }
.step strong { color: var(--ink); }

/* ================= Dimension cards ================= */
.dim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s10); }
/* Inside the 42rem article width two-up leaves ~236px text columns, so the
   dimension grid stacks to one column there (mobile already stacks). */
.wrap-article .dim-grid { grid-template-columns: 1fr; }
@media (max-width: 760px) { .dim-grid { grid-template-columns: 1fr; } }
.dim-card { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dim-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dim-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s4);
  background: var(--brand-soft); /* fallback for browsers without color-mix() */
}
.dim-icon .icon { width: 1.5rem; height: 1.5rem; }
.dim-wiring .dim-icon { background: color-mix(in srgb, var(--dim-wiring) 12%, white); color: var(--dim-wiring); }
.dim-interests .dim-icon { background: color-mix(in srgb, var(--dim-interests) 12%, white); color: var(--dim-interests); }
.dim-values .dim-icon { background: color-mix(in srgb, var(--dim-values) 12%, white); color: var(--dim-values); }
.dim-needs .dim-icon { background: color-mix(in srgb, var(--dim-needs) 12%, white); color: var(--dim-needs); }

/* ================= Compare ================= */
.compare-card { display: flex; flex-direction: column; }
.compare-card .compare-meta {
  font-size: var(--text-sm); color: var(--muted); font-weight: 600;
  margin: calc(var(--s2) * -1) 0 var(--s4);
}
.compare-card .btn { margin-top: auto; }
.compare-card p:last-of-type { margin-bottom: var(--s6); }

/* ================= Trust grid ================= */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s10); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: var(--s4); align-items: flex-start; }
.trust-item .icon {
  flex: none; width: 2.5rem; height: 2.5rem;
  padding: 0.55rem;
  border-radius: var(--radius);
  background: var(--brand-soft); color: var(--brand);
  box-sizing: border-box;
}
.trust-item p { margin: 0; color: var(--ink-soft); font-size: var(--text-base); }
.trust-item strong { color: var(--ink); display: block; margin-bottom: var(--s1); }

/* ================= Pricing ================= */
.pricing-grid {
  display: grid; gap: var(--s5); align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: var(--s10);
}
/* Five tiers, one row on desktop */
.pricing-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1020px) {
  .pricing-grid.five { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}
/* Single shared footnote (replaces per-card billing fine print) */
.footnote {
  font-size: var(--text-sm); color: var(--muted);
  margin-top: var(--s6); margin-bottom: 0;
  max-width: 46rem;
}
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .tier-name { font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.01em; }
.price-card .tier-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--brand); margin: var(--s2) 0;
}
.price-card .tier-price span { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--muted); font-family: var(--font); margin-top: var(--s1); }
.price-card .tier-blurb { color: var(--ink-soft); font-size: var(--text-base); flex: 1; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
/* Sample report: the recommended-program card */
.program-pick { max-width: 40rem; border: 2px solid var(--brand); margin-top: var(--s6); }
.program-pick .tier-name { font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.01em; }
.program-pick .tier-price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--brand); margin: var(--s2) 0; }
.program-pick .tier-price span { font-size: var(--text-sm); font-weight: 500; color: var(--ink-soft); font-family: var(--font); }
.program-pick .tier-blurb { color: var(--ink-soft); font-size: var(--text-base); }
/* Phase-2 interest gauge: same width as the level card, with breathing room. */
.program-interest { max-width: 40rem; margin-top: var(--s5); }
.program-interest .interest-status { margin-top: var(--s3); }
.program-interest .interest-status:empty { display: none; }
.fit-list { margin: var(--s2) 0 0; padding-left: 1.25rem; color: var(--ink-soft); }
.fit-list li { margin-bottom: var(--s2); }
.fit-list li::marker { color: var(--brand); }
.billing-copy {
  font-size: var(--text-sm); color: var(--muted);
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}

/* ================= Forms ================= */
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--s2); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; padding: var(--s3) var(--s4);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: var(--text-base); font-family: var(--font);
  background: var(--surface); color: var(--ink);
  min-height: 3rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

/* ================= Badges & chips ================= */
.badge {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--text-xs); font-weight: 800;
  padding: var(--s1) var(--s3); border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-high { background: var(--success-soft); color: var(--success); }
.badge-moderate { background: var(--warn-soft); color: var(--warn); }
.badge-low { background: var(--bg-soft); color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chip {
  font-size: var(--text-sm); font-weight: 600;
  background: var(--brand-soft); color: var(--brand-deep);
  padding: var(--s1) var(--s4); border-radius: var(--radius-pill);
}

/* ================= FAQ ================= */
.faq {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s6); margin-bottom: var(--s3);
  transition: box-shadow var(--dur) var(--ease);
}
.faq[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 700; font-size: var(--text-lg);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 2.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform var(--dur) var(--ease); }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-deep); }
.faq .faq-body { color: var(--ink-soft); padding-top: var(--s2); }
.faq .faq-body p { margin: 0; }

/* ================= CTA band ================= */
.cta-band {
  background:
    radial-gradient(40rem 20rem at 50% -6rem, rgba(29, 78, 216, 0.5), transparent 70%),
    linear-gradient(180deg, #0b1730, var(--brand-ink));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--s12) var(--s8);
  text-align: center;
  margin: var(--s12) 0;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; letter-spacing: -0.025em; }
.cta-band p { color: #c3cfe6; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s16);
  padding: var(--s12) 0;
  font-size: var(--text-sm); color: var(--muted);
  background: var(--surface);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s8); flex-wrap: wrap; margin-bottom: var(--s6);
}
.footer nav { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s4) var(--s10); }
.footer-col { display: flex; flex-direction: column; gap: var(--s2); }
.footer-head { margin: 0 0 var(--s1); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) { .footer nav { width: 100%; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s6); } }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 2.25rem; }
.footer nav a:hover { color: var(--brand); }
.footer .fine { margin: 0; font-size: var(--text-xs); color: var(--faint); }

/* ================= Misc ================= */
/* Placeholder notice — honest badging for pre-MVP controls */
.placeholder-notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--warn-soft);
  border: 1px solid #f0dcaa;
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s5);
  margin-top: var(--s8);
  font-size: var(--text-sm); color: var(--ink-soft);
}
.placeholder-notice .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--warn); margin-top: 2px; }

.locked { position: relative; min-height: 15rem; overflow: hidden; }
.locked .locked-body { filter: blur(8px); user-select: none; pointer-events: none; }
.locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s3); text-align: center; padding: var(--s6);
}
.locked-overlay p { margin: 0; }
.locked-overlay .icon { width: 2rem; height: 2rem; color: var(--muted); }

/* Hero sample dashboard preview */
.hero-sample { max-width: 44rem; margin: var(--s10) auto 0; text-align: left; }
.hero-sample .card { padding: var(--s6) var(--s8); }
.hs-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-wrap: balance;
  color: var(--faint); margin-bottom: var(--s2);
}
.hs-foot { margin: var(--s4) 0 0; }
.hs-foot .icon { width: 0.9em; height: 0.9em; }
.hero-sample .scorebars { margin-top: var(--s2); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.55s var(--ease) both; }
.rise-1 { animation-delay: 0.06s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.18s; }
