/* ==========================================================================
   Poolygraph — marketing / landing page styles (Phase 9).
   Public, logged-out homepage. Loads AFTER app.css to reuse the brand tokens
   (:root vars, .btn, etc.) and layers a bigger, bolder marketing skin on top.
   Light, bright, vibrant per BRAND.md. Hormozi-style structure, honest copy.
   ========================================================================== */

.mkt { color: var(--text); }
.mkt * { box-sizing: border-box; }
.mkt-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mkt-narrow { max-width: 760px; margin: 0 auto; }

/* ---- Buttons (marketing-sized) ---- */
.mkt .btn-xl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem;
  padding: 16px 28px; border-radius: 14px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1; transition: transform .08s ease, filter .15s ease;
}
.mkt .btn-xl:active { transform: translateY(1px); }
.mkt .btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 10px 24px rgba(14,102,153,0.28); }
.mkt .btn-primary:hover { filter: brightness(1.07); }
.mkt .btn-warm { background: var(--sunset-500); color: #fff; box-shadow: 0 10px 24px rgba(255,138,61,0.3); }
.mkt .btn-warm:hover { filter: brightness(1.05); }
.mkt .btn-ghost { background: #fff; color: var(--blue-700); box-shadow: inset 0 0 0 2px var(--blue-200); }
.mkt .btn-ghost:hover { background: var(--blue-50); }

/* ---- Top nav ---- */
.mkt-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,251,255,0.85); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.mkt-nav__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.mkt-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-ink); font-weight: 700; font-size: 1.2rem; }
.mkt-nav__brand img { height: 60px; width: auto; }
.mkt-nav__links { display: flex; align-items: center; gap: 8px; }
.mkt-nav__links a { text-decoration: none; color: var(--text-soft); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.mkt-nav__links a:hover { color: var(--navy-ink); background: var(--blue-50); }
.mkt-nav__cta { background: var(--blue-700); color: #fff !important; }
.mkt-nav__cta:hover { filter: brightness(1.07); background: var(--blue-700) !important; }
.mkt-nav__menu-only { display: none; }
@media (max-width: 640px) {
  .mkt-nav__hide-sm { display: none; }
}

/* ---- Sections ---- */
.mkt-section { padding: 72px 0; }
.mkt-section--tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.mkt-section--navy { background: var(--navy-ink); color: #fff; }
.mkt-section--navy .mkt-h2, .mkt-section--navy p { color: #fff; }
.mkt-eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-700); background: var(--blue-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.mkt-h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.mkt-h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.mkt-h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.mkt-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; color: var(--text-soft); margin: 0 0 28px; }
/* A narrow lead inside a centered section must stay block-centered (its own
   left/right:0 from .mkt-lead would otherwise pin it left). */
.mkt-lead.mkt-narrow { margin-left: auto; margin-right: auto; }
.mkt-center { text-align: center; }
.mkt-pop { color: var(--blue-600); }
.mkt-pop-warm { color: var(--sunset-500); }

/* ---- Hero ---- */
.mkt-hero { padding: 56px 0 64px; background: radial-gradient(1200px 500px at 70% -10%, var(--blue-100), transparent), var(--bg); }
.mkt-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mkt-hero__art { position: relative; text-align: center; }
.mkt-hero__art img { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 24px 40px rgba(18,43,69,0.18)); }
.mkt-trustline { font-size: .92rem; color: var(--text-muted); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mkt-trustline span { display: inline-flex; align-items: center; gap: 6px; }
.mkt-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) {
  .mkt-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .mkt-hero__art { order: -1; }
  .mkt-hero__art img { max-width: 240px; }
  .mkt-cta-row, .mkt-trustline { justify-content: center; }
}

/* ---- Floating readout card in hero ---- */
.mkt-readout {
  display: inline-block; text-align: left; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px; margin-top: 18px; width: 100%; max-width: 320px;
}
.mkt-readout__row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.mkt-readout__row:last-child { border-bottom: 0; }
.mkt-readout__k { color: var(--text-soft); font-weight: 600; }
.mkt-readout__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; vertical-align: middle; }

/* ---- Before / after ---- */
.mkt-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .mkt-twocol { grid-template-columns: 1fr; } }
.mkt-panel { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 28px; }
.mkt-panel--old { background: #FFF7F3; box-shadow: inset 0 0 0 1px #F6D9CB; }
.mkt-list { list-style: none; padding: 0; margin: 0; }
.mkt-list li { padding: 9px 0 9px 30px; position: relative; line-height: 1.45; }
.mkt-list--bad li::before { content: "✕"; position: absolute; left: 0; color: var(--status-action); font-weight: 700; }
.mkt-list--good li::before { content: "✓"; position: absolute; left: 0; color: var(--status-good); font-weight: 700; }

/* ---- Steps ---- */
.mkt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .mkt-steps { grid-template-columns: 1fr; } }
.mkt-step { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.mkt-step img { height: 92px; width: auto; margin-bottom: 12px; }
.mkt-step__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 700; margin-bottom: 10px; }

/* ---- Feature grid ---- */
.mkt-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .mkt-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mkt-features { grid-template-columns: 1fr; } }
.mkt-feature { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 22px; }
.mkt-feature__ico { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.mkt-feature p { color: var(--text-soft); margin: 0; line-height: 1.5; }
.mkt-pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.mkt-pillar { font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 8px 16px; border-radius: 999px; }

/* ---- Example analysis (faux app report) ---- */
.mkt-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .mkt-demo { grid-template-columns: 1fr; } }
.mkt-report { background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(18,43,69,0.16); padding: 22px; max-width: 440px; margin: 0 auto; width: 100%; }
.mkt-report__head { display: flex; align-items: center; gap: 12px; }
.mkt-report__head img { height: 52px; width: auto; }
.mkt-report__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mkt-report__title { font-size: 1.2rem; font-weight: 700; line-height: 1.15; margin: 2px 0 0; }
.mkt-report__pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-100); padding: 3px 9px; border-radius: 999px; }
.mkt-readrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mkt-pchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: 10px; background: var(--surface-tint); font-variant-numeric: tabular-nums; }
.mkt-pchip-dot { width: 8px; height: 8px; border-radius: 50%; }
.mkt-report__plan { list-style: none; margin: 0; padding: 0; }
.mkt-report__plan li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); }
.mkt-report__step { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.mkt-report__act { font-weight: 600; }
.mkt-report__act small { display: block; font-weight: 400; color: var(--text-soft); }
.mkt-report__safety { background: #FFF7F3; border-radius: 12px; padding: 10px 12px; font-size: .85rem; color: var(--text-soft); margin-top: 14px; }
.mkt-report__foot { color: var(--text-muted); font-size: .78rem; margin: 12px 0 0; text-align: center; }

/* ---- Value stack / offer ---- */
.mkt-offer { background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(18,43,69,0.14); overflow: hidden; max-width: 640px; margin: 0 auto; }
.mkt-offer__head { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; padding: 26px 28px; text-align: center; }
.mkt-offer__body { padding: 8px 28px 28px; }
.mkt-stack { list-style: none; margin: 0; padding: 0; }
.mkt-stack li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--hairline); }
.mkt-stack__t { font-weight: 600; }
.mkt-stack__t small { display: block; font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.mkt-stack__v { color: var(--text-muted); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mkt-stack__total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 4px; font-weight: 700; font-size: 1.1rem; }
.mkt-price { text-align: center; padding: 18px 0 6px; }
.mkt-price__strike { color: var(--text-muted); text-decoration: line-through; font-size: 1.1rem; }
.mkt-price__now { font-size: 3rem; font-weight: 700; color: var(--navy-ink); line-height: 1; }
.mkt-price__per { color: var(--text-soft); font-weight: 600; }

/* ---- Pricing compare ---- */
.mkt-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; align-items: stretch; }
@media (max-width: 700px) { .mkt-plans { grid-template-columns: 1fr; } }
.mkt-plan { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.mkt-plan--featured { box-shadow: 0 18px 44px rgba(14,102,153,0.22); outline: 3px solid var(--blue-500); position: relative; }
.mkt-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sunset-500); color: #fff; font-weight: 700; font-size: .8rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.mkt-plan__price { font-size: 2.2rem; font-weight: 700; margin: 6px 0 2px; }
.mkt-plan .mkt-list { margin: 16px 0 22px; flex: 1; }
.mkt-plan .mkt-list li { padding-left: 28px; font-size: .98rem; }

/* ---- Guarantee ---- */
.mkt-guarantee { display: flex; align-items: center; gap: 24px; background: var(--blue-50); border-radius: 22px; padding: 28px; max-width: 760px; margin: 0 auto; }
.mkt-guarantee img { height: 110px; width: auto; flex: 0 0 auto; }
@media (max-width: 560px) { .mkt-guarantee { flex-direction: column; text-align: center; } }

/* ---- FAQ ---- */
.mkt-faq { max-width: 760px; margin: 0 auto; }
.mkt-faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); padding: 4px 20px; margin-bottom: 12px; }
.mkt-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after { content: "+"; color: var(--blue-600); font-size: 1.5rem; font-weight: 700; }
.mkt-faq details[open] summary::after { content: "–"; }
.mkt-faq p { color: var(--text-soft); line-height: 1.55; margin: 0 0 16px; }

/* ---- Final CTA ---- */
.mkt-final { text-align: center; }
.mkt-final img { height: 120px; width: auto; margin-bottom: 8px; }

/* ---- Footer ---- */
.mkt-footer { background: var(--navy-ink); color: #cdddf0; padding: 40px 0; }
.mkt-footer a { color: #cdddf0; text-decoration: none; }
.mkt-footer a:hover { color: #fff; text-decoration: underline; }
.mkt-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.mkt-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.mkt-footer__brand img { height: 34px; }
.mkt-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
