/* ===================== Marketing sub-pages ===================== */
/* Reuses theme.css + home.css (nav, footer, buttons, .section, .sec-head, .kicker) */

.page-hero { position: relative; overflow: hidden; padding: 70px 28px 30px; }
.page-hero .wrap { max-width: 1080px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.page-hero .sub { color: var(--text-muted); font-size: 17px; line-height: 1.7; max-width: 760px; margin: 0 auto 24px; }
.page-hero .crumb { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.page-hero .crumb a:hover { color: var(--cyan); }

.hero-visual-wide { max-width: 1080px; margin: 26px auto 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 1; }
.hero-visual-wide img { display: block; width: 100%; height: auto; }

.sec { max-width: 1100px; margin: 0 auto; padding: 64px 28px; }
.sec-line { border-top: 1px solid var(--border); }
.sec h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -.02em; }
.sec > .lead { color: var(--text-muted); font-size: 16px; line-height: 1.75; max-width: 760px; margin: 0 0 28px; }
.sec p { color: var(--text-muted); line-height: 1.75; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.sec-visual { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sec-visual img { display: block; width: 100%; height: auto; }

/* generic card grid */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } .g4, .g5 { grid-template-columns: 1fr; } }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; transition: transform .22s var(--ease), border-color .22s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-4px); border-color: var(--border-2); }
.tile .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--c, var(--cyan)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--cyan)) 34%, transparent); }
.tile .ic svg { width: 24px; height: 24px; color: var(--c, var(--cyan)); }
.tile h3, .tile h4 { font-size: 16.5px; margin: 0 0 7px; }
.tile p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.tile a.learn { font-size: 13px; font-weight: 700; color: var(--cyan); margin-top: 12px; display: inline-flex; gap: 5px; }
.tile a.learn:hover { gap: 9px; }

/* scorecard */
.scorecard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-sm); }
.scorecard .sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.scorecard .sc-head b { font-size: 17px; }
.sc-overall { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.sc-row { margin-bottom: 16px; }
.sc-row .sc-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.sc-row .sc-top span:last-child { font-family: var(--font-mono); font-weight: 800; }
.sc-bar { height: 9px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 5px; }

/* flow steps */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow .step { flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 16px; text-align: center; position: relative; }
.flow .step .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin: 0 auto 10px; font-weight: 800; font-family: var(--font-mono); font-size: 13px; color: var(--on-accent); background: var(--gradient); }
.flow .step b { display: block; font-size: 14px; margin-bottom: 4px; }
.flow .step small { color: var(--text-muted); font-size: 12.5px; line-height: 1.4; }
.flow .arrow { display: grid; place-items: center; padding: 0 6px; color: var(--text-faint); font-size: 20px; }
@media (max-width: 760px) { .flow { flex-direction: column; } .flow .arrow { transform: rotate(90deg); padding: 4px 0; } }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.cmp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cmp .cmp-vis { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.cmp .cmp-vis .lbl { position: absolute; bottom: 10px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.cmp .cmp-body { padding: 18px; }
.cmp .cmp-body h4 { margin: 0 0 6px; font-size: 16px; }
.cmp .cmp-body p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* feedback controls */
.feedback { display: inline-flex; gap: 10px; margin-top: 14px; }
.fb-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-muted); }
.fb-btn svg { width: 16px; height: 16px; }
.fb-btn.up { color: var(--cyan); border-color: rgba(25,211,218,.4); }
.fb-btn.down { color: var(--magenta); border-color: rgba(224,33,138,.35); }

/* pipeline (vertical-friendly numbered) */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
.pl-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 12px; text-align: center; }
.pl-step .pn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 9px; font-weight: 800; font-size: 13px; }
.pl-step b { font-size: 13px; display: block; }

/* CTA band */
.cta-band { max-width: 1100px; margin: 0 auto 70px; }
.cta-card { text-align: center; border: 1px solid var(--border); border-radius: 28px; padding: 56px 30px; position: relative; overflow: hidden;
  background: radial-gradient(700px 340px at 50% -20%, rgba(224,33,138,.16), transparent 60%), radial-gradient(500px 280px at 50% 120%, rgba(25,211,218,.14), transparent 60%), var(--surface); }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; }
.cta-card p { color: var(--text-muted); font-size: 16px; margin: 0 0 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* methodology badge reused on pages */
.page-hero .mk-badge { margin: 6px auto 0; }

/* related links footer-of-page */
.rel-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.rel-links a { font-size: 14px; font-weight: 700; color: var(--cyan); border: 1px solid var(--border-2); border-radius: 99px; padding: 9px 18px; }
.rel-links a:hover { border-color: var(--cyan); }
