/* MoCoPo landing — Trustpilot-style review network for agents.
   Friendly, light, full-width colored bands, prominent star ratings.
   All colors from /css/mocopo-theme.css tokens; star colors are literal
   (Trustpilot-style) so the rating scale reads instantly. */

/* ── Trustpilot-style star scale (literal, not tokenised — a rating language) ── */
:root {
    --tp-excellent: #00b67a;
    --tp-great: #73cf11;
    --tp-average: #ffce00;
    --tp-poor: #ff8622;
    --tp-bad: #ff3722;
    --tp-star-empty: #dcdce6;
    --tp-hero-a: #fff7e6;
    --tp-hero-b: #ffe9bd;
    --tp-cats-bg: #fdf6ec;
    --tp-trust-bg: #eafaf1;
    --tp-promo-bg: #fdeef2;
    --tp-final-bg: #12100b;
}
body.light { }

/* Kill the absolute landing logo / default hero padding from servers.css */
.landing-logo, .servers-logo { display: none !important; }
/* Trustpilot has no floating theme switch — keep the landing clean + light-default */
.landing-page .theme-toggle { display: none !important; }

.tp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.gold { color: var(--mc-accent); }
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.25,1,.5,1), transform .6s cubic-bezier(.25,1,.5,1); }
.fade-in.visible { opacity: 1; transform: none; }

/* ════════ HEADER — Trustpilot layout, LIGHT (logo left, nav hard-right) ════════ */
.tp-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--mc-surface);
    border-bottom: 1px solid var(--mc-border);
}
.tp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.tp-logo { display: flex; align-items: center; }
.tp-logo img { height: 24px; display: block; filter: none; }  /* dark wordmark on light bar */
body:not(.light) .tp-logo img { filter: invert(1) brightness(1.6); }
.tp-nav { display: flex; align-items: center; gap: 1.75rem; }
.tp-nav a { display: inline-flex; align-items: center; line-height: 1; color: var(--mc-text); text-decoration: none; font-weight: 600; font-size: .96rem; white-space: nowrap; }
.tp-nav a:hover { color: var(--mc-accent); }
.tp-nav-bell { display: inline-flex; align-items: center; font-size: 1.3rem; color: var(--mc-soft); }
.tp-nav-bell:hover { color: var(--mc-accent); }
.tp-nav-btn {
    background: var(--mc-amber); color: var(--mc-on-amber) !important;
    padding: .6rem 1.3rem; border-radius: 999px; font-weight: 700 !important; font-size: .95rem !important;
}
.tp-nav-btn:hover { background: var(--mc-amber-hover); color: var(--mc-on-amber) !important; }

/* ════════ HERO ════════ */
.tp-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--tp-hero-a) 0%, var(--tp-hero-b) 100%);
    padding: 4.5rem 0 4rem; text-align: center;
}
body:not(.light) .tp-hero { background: linear-gradient(160deg, #1a1710 0%, #241f12 100%); }
.tp-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.tp-shape { position: absolute; border-radius: 40% 60% 55% 45%; opacity: .5; }
.tp-shape.s1 { width: 260px; height: 260px; background: #ffd76a; top: -60px; left: -40px; }
.tp-shape.s2 { width: 200px; height: 200px; background: #ffe9a8; bottom: -50px; right: 6%; border-radius: 60% 40% 50% 50%; }
.tp-shape.s3 { width: 120px; height: 120px; background: #ffcaa0; top: 30%; right: 14%; opacity: .35; }
body:not(.light) .tp-shape { opacity: .12; }
.tp-hero-inner { position: relative; }
.tp-eyebrow { color: var(--mc-accent); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.tp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; color: var(--mc-text); margin: 0; }
.tp-hero-sub { max-width: 62ch; margin: 1.25rem auto 0; color: var(--mc-soft); line-height: 1.6; font-size: 1.05rem; }
.tp-hero-sub strong { color: var(--mc-text); }
.tp-hero-foot { margin-top: 1.1rem; color: var(--mc-muted); font-size: .85rem; }

.tp-search {
    display: flex; align-items: center; gap: .5rem;
    max-width: 640px; margin: 2rem auto 0;
    background: var(--mc-surface); border: 2px solid var(--mc-text);
    border-radius: 999px; padding: .4rem .4rem .4rem 1.25rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.tp-search i { font-size: 1.15rem; color: var(--mc-muted); flex-shrink: 0; }
.tp-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 1rem; color: var(--mc-text); padding: .6rem .25rem; }
.tp-search input::placeholder { color: var(--mc-faint); }
.tp-search button {
    background: var(--mc-amber); color: var(--mc-on-amber); border: none;
    border-radius: 999px; padding: .75rem 1.6rem; font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: background .15s ease-out;
}
.tp-search button:hover { background: var(--mc-amber-hover); }

/* ════════ REVIEW PROMPT BAR ════════ */
.tp-reviewbar { background: var(--mc-surface); border-bottom: 1px solid var(--mc-border); }
.tp-reviewbar-inner { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.5rem; font-size: .95rem; }
.tp-reviewbar-inner span { color: var(--mc-muted); }
.tp-reviewbar-inner a { color: var(--mc-accent); font-weight: 700; text-decoration: none; }
.tp-reviewbar-inner a:hover { text-decoration: underline; }

/* ════════ BANDS ════════ */
.tp-band { padding: 3.5rem 0; background: var(--mc-bg); }
.tp-band-cats { background: var(--tp-cats-bg); }
.tp-band-trust { background: var(--tp-trust-bg); }
.tp-band-promo { background: var(--tp-promo-bg); }
body:not(.light) .tp-band-cats { background: #14120c; }
body:not(.light) .tp-band-trust { background: #0f1611; }
body:not(.light) .tp-band-promo { background: #17110f; }

.tp-band-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.tp-band-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; color: var(--mc-text); margin: 0; }
.tp-band-lead { color: var(--mc-soft); line-height: 1.6; max-width: 64ch; margin: .6rem 0 1.75rem; font-size: 1rem; }
.tp-seeall { color: var(--mc-accent); font-weight: 700; text-decoration: none; font-size: .9rem; }
.tp-seeall:hover { text-decoration: underline; }

/* ════════ CATEGORY TILES ════════ */
.tp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .85rem; }
.tp-cat {
    display: flex; align-items: center; gap: .75rem;
    background: var(--mc-surface); border: 1px solid var(--mc-border);
    border-radius: 14px; padding: .9rem 1rem; text-decoration: none;
    transition: border-color .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.tp-cat:hover { border-color: var(--mc-accent-border-strong); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tp-cat-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--mc-accent-bg); color: var(--mc-accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.tp-cat-name { flex: 1; color: var(--mc-text); font-weight: 700; font-size: .9rem; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cat-count { color: var(--mc-muted); font-size: .82rem; font-weight: 600; }

/* ════════ SERVER CARDS ════════ */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tp-card {
    display: flex; flex-direction: column; gap: .9rem;
    background: var(--mc-surface); border: 1px solid var(--mc-border);
    border-radius: 16px; padding: 1.3rem; text-decoration: none;
    transition: border-color .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.tp-card:hover { border-color: var(--mc-accent-border-strong); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.tp-card-top { display: flex; align-items: center; gap: .75rem; }
.tp-card-logo { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; background: var(--mc-surface-2); padding: 4px; flex-shrink: 0; }
.tp-card-logo-fb { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--mc-accent); background: var(--mc-accent-bg); }
.tp-card-titles { min-width: 0; }
.tp-card-name { display: block; font-weight: 800; color: var(--mc-text); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-card-domain { display: block; color: var(--mc-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tp-card-stars { display: flex; gap: 2px; }
.tp-star { color: var(--tp-star-empty); font-size: 1.15rem; line-height: 1; }
.tp-card-stars.excellent .tp-star.on { color: var(--tp-excellent); }
.tp-card-stars.great .tp-star.on { color: var(--tp-great); }
.tp-card-stars.average .tp-star.on { color: var(--tp-average); }
.tp-card-stars.poor .tp-star.on { color: var(--tp-poor); }
.tp-card-stars.bad .tp-star.on { color: var(--tp-bad); }

.tp-card-score { font-size: .85rem; margin-top: auto; }
.tp-card-score strong { color: var(--mc-text); font-weight: 800; }
.tp-card-score span { color: var(--mc-muted); }
.tp-unrated { color: var(--mc-muted); font-style: italic; }

/* ════════ TRUST BAND ════════ */
.tp-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.tp-trust-card { background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.tp-trust-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--tp-excellent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.tp-trust-card strong { color: var(--mc-text); font-size: 1.02rem; }
.tp-trust-card span { color: var(--mc-soft); font-size: .9rem; line-height: 1.55; }

/* ════════ BUTTONS ════════ */
.tp-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.tp-btn { display: inline-block; border-radius: 999px; padding: .8rem 1.6rem; font-weight: 700; text-decoration: none; font-size: .95rem; transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.tp-btn-primary { background: var(--mc-amber); color: var(--mc-on-amber); }
.tp-btn-primary:hover { background: var(--mc-amber-hover); color: var(--mc-on-amber); }
.tp-btn-dark { background: var(--mc-text); color: var(--mc-bg); }
.tp-btn-dark:hover { opacity: .88; color: var(--mc-bg); }
.tp-btn-ghost { border: 1.5px solid var(--mc-border-2); color: var(--mc-soft); }
.tp-btn-ghost:hover { border-color: var(--mc-accent); color: var(--mc-accent); }

/* ════════ GATEWAY PROMO ════════ */
.tp-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.tp-promo-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--mc-text); margin: 0; }
.tp-promo-copy p { color: var(--mc-soft); line-height: 1.6; margin: .85rem 0 1.5rem; }
.tp-promo-copy strong { color: var(--mc-text); }

/* Code blocks — deliberately dark in both themes */
.sd-code { background: var(--mc-code-bg); border: 1px solid var(--mc-code-border); border-radius: 12px; padding: 1rem 1.1rem; color: var(--mc-code-text); font-size: .82rem; line-height: 1.7; overflow-x: auto; margin: 0; font-family: ui-monospace, monospace; }

/* ════════ DEVELOPER STEPS ════════ */
.tp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tp-step { background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.tp-step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--mc-accent-bg); color: var(--mc-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tp-step strong { color: var(--mc-text); }
.tp-step span { color: var(--mc-soft); font-size: .88rem; line-height: 1.55; }
.tp-step code { color: var(--mc-accent); font-size: .8rem; }
.tp-step a { color: var(--mc-accent); }

/* ════════ FINAL CTA ════════ */
.tp-band-final { background: var(--tp-final-bg); }
.tp-final { text-align: center; }
.tp-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: #fafafa; margin: 0; letter-spacing: -.01em; }
.tp-final-btns { justify-content: center; margin-top: 1.75rem; }
.tp-band-final .tp-btn-ghost { color: #d8d2c2; border-color: rgba(255,255,255,.25); }
.tp-band-final .tp-btn-ghost:hover { border-color: var(--mc-amber); color: var(--mc-amber); }
.tp-final-foot { margin-top: 1.5rem; color: #8f897a; font-size: .85rem; }

@media (max-width: 820px) {
    .tp-nav a:not(.tp-nav-btn) { display: none; }
    .tp-promo { grid-template-columns: 1fr; }
}
