/* site-v2.css — T-5882: carry the synap402.com home page's style to the rest of the
 * site, page by page (owner order, DM tg 28853). Loaded AFTER styles.css (keeps its
 * vars + utility classes: model-filter-bar, zdr-details, seo-links, sidebar app
 * pages still use) and AFTER home-v2.css (home's tokens, .nav/.logo/.btn/.mono/.wrap/
 * section/h2 primitives). Additive overrides only — never edit styles.css or
 * home-v2.css directly (home-v2.css is one of the protected home files).
 * Marketing pages (models, pricing, how-it-works, model pages) drop the app-shell
 * sidebar for the home top header. App pages (chat, talk, account, build) keep
 * their sidebar but take the tokens/brand/buttons below.
 */

/* ---- marketing-page shell: no sidebar, home header on top ---- */
.marketing-page .app-shell{display:block;min-height:100vh}
.marketing-page .sidebar,.marketing-page .mobile-toggle,.marketing-page .app-topbar{display:none!important}
.marketing-page .app-main{display:block}
.marketing-page .app-content{padding:0}
.marketing-page .theme-toggle{display:none!important}

/* ---- Theme toggle on the signed-in app shell (account, chat, talk): visible again. Dark stays the
   default; light is the visitor's own choice, stored in localStorage 'lr-theme' (owner order tg 28951,
   2026-11-24: "אני רוצה שתייה אופציה בהירה"). Marketing pages keep it hidden until they have a light version. */

/* ---- vendor brand colours — exact hexes from home-carousel.js's BRAND map ---- */
.provider-logo[data-vendor="qwen"]{background:#6950EF;border-color:#6950EF;color:#fff}
.provider-logo[data-vendor="deepseek"]{background:#5786FE;border-color:#5786FE;color:#fff}
.provider-logo[data-vendor="zai"],.provider-logo[data-vendor="z-ai"]{background:#fff;border-color:#fff;color:#2D2D2D}
.provider-logo[data-vendor="google"]{background:#fff;border-color:#fff;color:#111}
.provider-logo[data-vendor="meta"]{background:#fff;border-color:#fff;color:#0467DF}
.provider-logo[data-vendor="openai"],.provider-logo[data-vendor="moonshot"]{background:#fff;border-color:#fff;color:#000}
.provider-logo[data-vendor="synap"]{background:#11141d;border-color:#11141d;color:#fff}

/* ---- model catalogue grid -> home .mcard language ---- */
.marketing-page .models-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;max-width:1120px}
.marketing-page .model-card{border-radius:18px;padding:16px;gap:0;transition:border-color .2s,transform .2s}
.marketing-page .model-card:hover{transform:translateY(-2px)}
.marketing-page .model-card-top{align-items:flex-start;justify-content:space-between}
.marketing-page .provider-logo{width:44px;height:44px;border-radius:13px;box-shadow:0 0 0 1px rgba(255,255,255,.10)}
.marketing-page .provider-logo svg{width:25px;height:25px}
.marketing-page .model-card-tag{font-size:10.5px;font-weight:700;padding:4px 8px;border-radius:999px;background:rgba(126,224,163,.12);color:#8fe5b0;border:1px solid rgba(126,224,163,.25)}
.marketing-page .model-card-tag-plan{background:rgba(168,85,247,.14);color:#d6b4ff;border-color:rgba(168,85,247,.35)}
.marketing-page .model-card-name{font-family:var(--fh);font-weight:600;font-size:18px;line-height:1.15;letter-spacing:-.01em;margin:14px 0 4px;color:#fff}
.marketing-page .model-card-job{font-size:13px;font-weight:400;color:var(--mut);margin-top:0}
.marketing-page .model-card-note{font-size:12px;line-height:1.4}
.marketing-page .model-card-price{border-top:0;padding-top:0;margin-top:6px}
.marketing-page .model-card-foot{margin-top:auto;padding-top:14px;flex-direction:column;align-items:stretch;gap:8px}
.marketing-page .model-card-cta{order:1;font:inherit;font-weight:700;font-size:13.5px;padding:10px 8px;border-radius:999px;border:0;background:#fff;color:#050608;text-align:center;cursor:pointer}
.marketing-page .model-card-cta:hover{color:#050608;opacity:.9}
.marketing-page .model-card-api{order:2;display:block;text-align:center;font-weight:600;font-size:12.5px;padding:9px 6px;border-radius:999px;border:1px solid var(--line2);color:#fff}
.marketing-page .model-card-api:hover{background:rgba(255,255,255,.06);color:#fff}
.marketing-page .model-card-secure{justify-content:center}
@media(max-width:1100px){.marketing-page .models-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.marketing-page .models-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.marketing-page .model-card{padding:13px;border-radius:16px}.marketing-page .provider-logo{width:40px;height:40px;border-radius:12px}.marketing-page .model-card-name{font-size:16.5px;margin-top:12px}}
/* T-5882 round 2 (defects 1+2): at narrow widths the plain-font-weight overrides above
   (no media query, so always the same specificity as styles.css's own @620 shrink rules)
   were beating styles.css's narrow-card sizing, which is what actually fits two cards per
   row on a phone. Re-apply that sizing here, loaded later, so it wins at <=620px: one-line
   tag that never wraps/clips, and the note clamped to whole lines instead of being cut
   mid-word by the card's fixed height. */
@media(max-width:620px){
  /* Even at the shrunk 8.5px/nowrap size, "Dedicated GPUs" + the logo + a two-word
     vendor name ("Qwen (Alibaba)") do not all fit on one row at ~144px of card
     content width - the pill does not have a width to shrink into, it just keeps
     pushing past the card edge. Wrapping the row and letting the tag fall to its
     own line under the logo/vendor (the brief's suggested alternative) removes the
     budget problem instead of fighting it. */
  .marketing-page .model-card-top{flex-wrap:wrap}
  .marketing-page .model-card-tag{font-size:8.5px;padding:2px 6px;white-space:nowrap;margin-left:0;margin-top:2px;flex-basis:100%}
  .marketing-page .provider-logo{width:20px;height:20px;border-radius:8px}
  .marketing-page .provider-logo svg{width:12px;height:12px}
  .marketing-page .model-card-note{
    font-size:11px;line-height:1.4;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
}

/* ---- hero kicker + heading -> home type scale ---- */
.marketing-page .subpage-head{max-width:1120px;padding:44px 20px 8px;margin:0 auto}
.marketing-page .models-hero-kicker{font-family:var(--fm);font-size:11px!important;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)!important;font-weight:400!important}
.marketing-page .models-hero h1{font-family:var(--fh);font-weight:600;letter-spacing:-.02em;font-size:clamp(28px,4.4vw,44px);color:var(--ink)}
.marketing-page .models-hero-copy{color:var(--mut);font-size:16px;line-height:1.6}

/* ---- comparison table -> card language ---- */
.marketing-page .models-proof{background:var(--card);border:1px solid var(--line);border-radius:20px}
.marketing-page .models-proof-table thead th{background:none}
.marketing-page .models-proof-table tbody th a{font-weight:600}

/* ---- buttons/links on marketing pages -> home pills ---- */
.marketing-page .models-buy-cta.btn-lg{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;border-radius:999px;background:#fff;color:#050608;padding:16px 28px;font-size:16px;box-shadow:0 0 0 1px rgba(255,255,255,.2),0 10px 44px rgba(168,85,247,.45),0 4px 18px rgba(91,134,255,.35);border:0}
.marketing-page .models-buy-cta.btn-lg:hover{opacity:.92}
.marketing-page .section .wrap{max-width:1120px}

/* ---- the one desktop-sidebar decision for marketing pages: top header only ---- */
@media(max-width:860px){.marketing-page .subpage-head{padding:28px 20px 4px}}

/* ---- login.html (round 2): single-purpose conversion page, same top-header
   treatment as models/pricing/how-it-works rather than the full app sidebar - a
   sign-in screen is not a dashboard. Scoped to .login-page (not bare
   .signin-card, which account.html's signed-out state also uses in styles.css)
   so account.html is untouched until its own restyle pass. */
.login-page .signin-card{background:var(--card);border:1px solid var(--line);border-radius:20px}
.login-page .signin-card .signin-title,.login-page .signin-intro-title{font-family:var(--fh);font-weight:600}
.login-page .google-btn{border-radius:999px;background:#fff;color:#050608;border:0;font-weight:700}
.login-page .google-btn:hover{opacity:.92;color:#050608}
.login-page .apple-btn,.login-page .email-btn{border-radius:999px;background:transparent;border:1px solid var(--line2);color:#fff}
.login-page .apple-btn:hover,.login-page .email-btn:hover{background:rgba(255,255,255,.06);color:#fff;border-color:var(--line2)}
.login-page .email-form .google-btn{border-radius:999px}
.login-page .signin-eyebrow{font-family:var(--fm);letter-spacing:.14em}

/* ---- raffle.html (round 2): top header like models/login; the bespoke night-city
   stage art/typography (raffle.css) already matches the home's dark/Fraunces/iri
   language and stays - only the CTA pill shape is brought in line with the home
   button radius (10px -> 999px full pill). CTA href untouched (pricing.html; a
   routing change there is behaviour, not style). */
.raffle-page .raffle-cta{border-radius:999px}
.raffle-page .raffle-stage{margin-top:20px}

/* ---- per-model API/SEO pages (round 2): same top-header treatment. The existing
   .seo-kicker/.acct-table/.doc-code/.start-cta language already reads as dark-theme
   consistent (Fraunces h1, violet Qwen tile via the shared .provider-logo rule
   above) - only the "Get an API key" pill's fill (var(--ink) = #f3f4f7, a hair off
   pure white) is nudged to match every other pill on the site exactly.
   .start-btn is shared by 28 pages; scoped here so only this round's pages move. */
.model-api-page .start-btn{background:#fff;border-color:#fff}

/* ---- docs/legal/guides/status pages (round 2): same top header; same off-white ->
   pure white pill nudge, this time for .btn-primary-lg (docs.html's "Get your free
   API key"). Scoped to .marketing-page generically (not a new per-batch class)
   since every page carrying that class from here on gets the same fix for free. */
.marketing-page .btn-primary-lg{background:#fff!important;border-color:#fff}
.marketing-page .btn-primary-lg:hover{opacity:.92}

/* ---- account.html (round 2): an app page per the brief - keeps its sidebar/app-shell,
   takes only the tokens/brand/buttons polish (same off-white -> pure white pill nudge
   as every other restyled page this round). No structural change: sidebar, tabs,
   referral panel position, the account.html#keys re-aim script, and every price/
   bonus/plan string are untouched. */
.account-page .btn-primary-lg,.account-page .topbar-btn-solid{background:#fff!important;border-color:#fff;color:#050608!important}
.account-page .btn-primary-lg:hover,.account-page .topbar-btn-solid:hover{opacity:.92}

/* ---- chat.html + talk.html (round 3): last app pages in the brief's order - same
   sidebar/app-shell, same button pill nudge as account.html. No structural change;
   .chat-page is shared by both files (talk.html keeps its own talk-mode class too). */
.chat-page .btn-primary-lg,.chat-page .topbar-btn-solid{background:#fff!important;border-color:#fff;color:#050608!important}
.chat-page .btn-primary-lg:hover,.chat-page .topbar-btn-solid:hover{opacity:.92}

/* Light option on the signed-in app shell: the white pill buttons of the dark look become dark pills,
   so the main action still stands out on a light page. */
html[data-theme="light"] .account-page .btn-primary-lg,html[data-theme="light"] .account-page .topbar-btn-solid,
html[data-theme="light"] .chat-page .btn-primary-lg,html[data-theme="light"] .chat-page .topbar-btn-solid{background:#0b0d12!important;border-color:#0b0d12;color:#fff!important}

/* ---- Light option on the marketing pages (T-5904, owner order tg 28951): the toggle is now
   visible here too (home-v2.css's :root tokens + this file's hardcoded whites need the same
   fixes as the home page). The toggle used to be hidden on marketing pages until they had a
   light version - that is this round. ---- */
.marketing-page .theme-toggle{display:inline-flex!important}

html[data-theme="light"] .marketing-page .model-card-name,html[data-theme="light"] .marketing-page .model-card-api{color:var(--ink)}
html[data-theme="light"] .marketing-page .model-card-api:hover{background:rgba(13,14,19,.06)}
html[data-theme="light"] .marketing-page .model-card-tag{color:#0a7a66;background:rgba(10,122,102,.12);border-color:rgba(10,122,102,.3)}
html[data-theme="light"] .marketing-page .model-card-tag-plan{color:#7c3aed;background:rgba(124,58,237,.12);border-color:rgba(124,58,237,.3)}
html[data-theme="light"] .marketing-page .model-card-cta{background:#0b0d12;color:#fff}
html[data-theme="light"] .marketing-page .btn-primary-lg{background:#0b0d12!important;border-color:#0b0d12;color:#fff!important}
html[data-theme="light"] .model-api-page .start-btn{background:#0b0d12;border-color:#0b0d12;color:#fff}

html[data-theme="light"] .login-page .apple-btn,html[data-theme="light"] .login-page .email-btn{color:var(--ink)}
html[data-theme="light"] .login-page .apple-btn:hover,html[data-theme="light"] .login-page .email-btn:hover{background:rgba(13,14,19,.06);color:var(--ink)}
html[data-theme="light"] .login-page .google-btn{border:1px solid var(--line2)}
