/* ============================================================
   OUTSTRIP — Product page layouts
   ============================================================ */

/* ---------- Product hero ---------- */
.phero { padding: calc(var(--nav-h) + 64px) 0 64px; position: relative; overflow: hidden; }
.phero::before { content:""; position:absolute; top:-160px; left:50%; transform:translateX(-50%);
  width:1000px; height:640px; pointer-events:none;
  background: radial-gradient(closest-side, rgba(124,108,240,.14), transparent 70%); }
.phero .wrap { position: relative; z-index: 2; }
.phero-head { max-width: 880px; }
.phero h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -0.045em; line-height: .98; margin-top: 20px; }
.phero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-600); }
.phero .lede { margin-top: 22px; max-width: 620px; }
.phero .hero-cta { justify-content: flex-start; margin-top: 28px; }

/* module index chips */
.mod-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  box-shadow: var(--sh-xs); transition: transform .16s, box-shadow .16s, border-color .16s; white-space: nowrap;
}
.mod-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.mod-chip svg { width: 16px; height: 16px; color: var(--violet-600); }

/* ---------- Ecosystem band (dark) ---------- */
.eco { position: relative; overflow: hidden; }
.eco::before { content:""; position:absolute; inset:0; background:
  radial-gradient(680px 360px at 50% 8%, rgba(124,108,240,.20), transparent 70%),
  radial-gradient(460px 280px at 88% 92%, rgba(255,107,53,.10), transparent 70%); }
.eco .wrap { position: relative; z-index: 2; }
.eco-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.eco-cell {
  background: var(--d-card); border: 1px solid var(--d-line); border-radius: var(--r);
  padding: 18px; transition: transform .2s, border-color .2s, background .2s;
}
.eco-cell:hover { transform: translateY(-3px); border-color: var(--violet-500); background: var(--d-card-2); }
.eco-cell .ec-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(124,108,240,.14); color: var(--violet-300); margin-bottom: 14px; }
.eco-cell .ec-ico svg { width: 20px; height: 20px; }
.eco-cell h5 { font-size: 16px; color: #fff; letter-spacing: -0.03em; }
.eco-cell p { font-size: 13px; color: var(--d-ink-2); margin-top: 6px; line-height: 1.5; }
.eco-core {
  grid-column: span 12; text-align: center; position: relative;
  background: linear-gradient(120deg, rgba(124,108,240,.16), rgba(255,107,53,.08));
  border: 1px solid var(--d-line-2); border-radius: var(--r-lg); padding: 24px;
}
.eco-core .ecc-mark { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px; background: var(--grad-brand); position: relative; box-shadow: 0 8px 24px rgba(108,85,232,.5); }
.eco-core .ecc-mark::after { content:""; position:absolute; inset:0; margin:auto; width:21px; height:21px; background:#fff; -webkit-mask: var(--ico-spark) center/contain no-repeat; mask: var(--ico-spark) center/contain no-repeat; }
.eco-core h4 { font-size: 19px; color: #fff; }
.eco-core p { color: var(--d-ink-2); font-size: 13.5px; margin-top: 6px; max-width: 560px; margin-inline: auto; }
.eco-c4 { grid-column: span 4; } .eco-c3 { grid-column: span 3; } .eco-c6 { grid-column: span 6; }
@media (max-width: 880px){ .eco-c4,.eco-c3,.eco-c6 { grid-column: span 6; } }
@media (max-width: 560px){ .eco-c4,.eco-c3,.eco-c6,.eco-core { grid-column: span 12; } }

/* coming-soon affordances */
.soon-badge { display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--paper-3); color: var(--ink-400); }
.on-dark .soon-badge { background: rgba(255,255,255,.08); color: var(--d-ink-3); }
.mod-chip.soon { opacity: .74; }
.mod-chip.soon svg { color: var(--ink-400); }
.eco-cell { position: relative; }
.eco-cell.soon { opacity: .82; }
.eco-cell .eco-soon { position: absolute; top: 16px; right: 16px; }
.mod.is-soon { background: var(--paper-2); }
.mod-frame.soon-frame { filter: saturate(.92); }
.mod-frame.soon-frame::after { content: "Preview"; position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); background: var(--paper-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.kicker-soon { margin-left: 8px; }

/* ---------- Module deep-dive rows ---------- */
.mod { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.mod:nth-child(even) { background: var(--paper-2); }
.mod-row { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.mod-row.flip .mod-copy { order: 2; }
.mod-row.flip .mod-visual { order: 1; }
@media (max-width: 900px){ .mod-row, .mod-row.flip { grid-template-columns: 1fr; gap: 36px; } .mod-row.flip .mod-copy { order: 1; } .mod-row.flip .mod-visual { order: 2; } }
.mod-kicker { display: inline-flex; align-items: center; gap: 10px; }
.mod-kicker .mk-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-600); }
.mod-kicker .mk-ico svg { width: 19px; height: 19px; }
.mod-kicker .mk-ico.orange { background: #FFEAD8; color: var(--orange-600); }
.mod-kicker .mk-name { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--violet-700); }
.mod-copy h3 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.04em; margin-top: 18px; }
.mod-copy .lede { margin-top: 14px; font-size: 17px; }
.mod-qa { margin-top: 24px; display: grid; gap: 14px; }
.qa { display: flex; gap: 13px; }
.qa-q { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--violet-600); box-shadow: var(--sh-xs); }
.qa-q svg { width: 14px; height: 14px; }
.qa-t b { font-size: 14px; font-weight: 700; display: block; letter-spacing: -0.02em; }
.qa-t span { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
.mod-foot { margin-top: 26px; display: flex; align-items: center; gap: 16px; }

/* module visual frame */
.mod-visual { position: relative; }
.mod-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--sh-lg); position: relative;
}
.mod-frame-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.mod-frame-head b { font-size: 14px; letter-spacing: -0.02em; }
.mod-frame-head .pill { height: 26px; font-size: 11.5px; }

/* audit score grid */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.audit-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; }
.audit-item .ai-h { display: flex; align-items: center; justify-content: space-between; }
.audit-item .ai-h span { font-size: 12px; font-weight: 600; color: var(--ink-500); }
.audit-item .ai-grade { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.audit-item .ai-bar { height: 6px; border-radius: 4px; background: var(--paper-3); margin-top: 10px; overflow: hidden; }
.audit-item .ai-bar i { display: block; height: 100%; border-radius: 4px; }

/* competitor rows */
.comp-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.comp-row:last-child { border-bottom: none; }
.comp-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.comp-row .cr-name { font-size: 13.5px; font-weight: 700; }
.comp-row .cr-sub { font-size: 11.5px; color: var(--ink-400); }
.comp-row .cr-meta { margin-left: auto; text-align: right; }
.comp-row .cr-change { font-size: 13px; font-weight: 800; }

/* content studio grid */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.studio-card { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.studio-thumb { aspect-ratio: 4/5; background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--paper-3) 8px 16px); position: relative; display: grid; place-items: end start; }
.studio-thumb .st-tag { margin: 7px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: #fff; color: var(--ink-600); box-shadow: var(--sh-xs); }
.studio-card .sc-foot { padding: 8px 9px; display: flex; align-items: center; justify-content: space-between; }
.studio-card .sc-foot span { font-size: 11px; font-weight: 700; color: var(--ink-500); }
.studio-card .sc-score { font-size: 11px; font-weight: 800; color: var(--green-500); }

/* report preview */
.report-line { display: flex; gap: 10px; padding: 9px 0; align-items: flex-start; }
.report-line .rl-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; }
.report-line p { font-size: 12.5px; color: var(--ink-600); line-height: 1.5; }
.report-line p b { color: var(--ink-950); }

/* recs list */
.rec-list { display: grid; gap: 10px; }
.rank { width: 22px; height: 22px; border-radius: 7px; background: var(--ink-950); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }

/* ---------- Compare table ---------- */
.compare { margin-top: 50px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-md); }
.compare-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-cell { padding: 16px 18px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.compare-head .compare-cell { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; background: var(--paper-2); }
.compare-head .compare-cell.us { background: var(--violet-50); color: var(--violet-800); }
.compare-cell.us { background: rgba(124,108,240,.04); font-weight: 600; }
.compare-cell.feat { font-weight: 650; color: var(--ink-800); }
.compare-cell .ci-yes { color: var(--green-500); }
.compare-cell .ci-no { color: var(--ink-300); }
.compare-cell svg { width: 17px; height: 17px; flex: none; }
.compare-cell .muted { color: var(--ink-400); font-weight: 500; }
@media (max-width: 760px){ .compare { overflow-x: auto; } .compare-row { grid-template-columns: 1.4fr .9fr .9fr .9fr; min-width: 560px; } }

/* ============================================================
   RESPONSIVE — product.css
   ============================================================ */

/* ---- Product hero ---- */
@media (max-width: 760px) {
  .phero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .phero-head { font-size: clamp(28px, 7vw, 44px); }
  .phero-sub { font-size: 15px; }
  .phero-cta { justify-content: center; flex-wrap: wrap; }
  .phero-media { display: none; }
}

/* ---- Ecosystem/feature grid ---- */
@media (max-width: 640px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-card { text-align: center; }
}

/* ---- Module rows ---- */
@media (max-width: 700px) {
  .mod-row { flex-direction: column; gap: 28px; }
  .mod-row.reverse { flex-direction: column; }
  .mod-copy { text-align: center; }
  .mod-cta { justify-content: center; }
  .mod-media { width: 100%; }
}

/* ---- Module footer (CTA + Next link) ---- */
@media (max-width: 700px) {
  .mod-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .mod-foot .btn { width: 100%; justify-content: center; }
  .mod-foot .link-arrow { align-self: center; }
}

/* ---- Studio / channels grid ---- */
@media (max-width: 700px) {
  .studio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .studio-grid { grid-template-columns: 1fr; }
}

/* ---- Compare table ---- */
@media (max-width: 760px) {
  .compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-row { min-width: 520px; }
}

/* ---- Product CTA ---- */
@media (max-width: 600px) {
  .product-cta-card { padding: 36px 20px; text-align: center; }
  .product-cta-btns { flex-direction: column; align-items: center; }
  .product-cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
}
