/* English Home polish v1 (2026-10-10). Applies only to the English template (#publicHome.english-home.ai-pixel-home,
   also used by /es /it /fr /ja /ko); the Chinese Home never carries these classes. Loaded after home-v529.css, which
   stays byte-identical. The extra .ai-pixel-home class plus !important outranks the existing English layer. */

body.public-home-view #publicHome.english-home.ai-pixel-home {
  /* Neutral palette: one text colour at three readable levels, one line colour, no hue accents. */
  --en-text: #f1f3f1;
  --en-text-2: rgba(241, 243, 241, 0.74);
  --en-text-3: rgba(241, 243, 241, 0.58);
  --en-line: rgba(241, 243, 241, 0.12);
  --home-accent: #d9dbd9;
  --home-muted: var(--en-text-2);
  --home-line: var(--en-line);
  /* Type scale (px): 12 label, 13 small, 15 body, 17 lead, 18 card title, 28 figure, section titles fluid. */
  --en-mono: "Departure Mono Local", "IBM Plex Mono Local", ui-monospace, monospace;
  --en-sans: "Geist Local", "Geist", Arial, sans-serif;
  --en-section-pad: 96px;
}

/* ---- Section rhythm: one rule above each section, equal space around it, no double rules or empty bands ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home > section:not(.public-hero):not(.model-marquee) {
  margin: 0 auto !important;
  padding-top: var(--en-section-pad) !important;
  padding-bottom: var(--en-section-pad) !important;
  border-top: 1px solid var(--en-line) !important;
  border-bottom: 0 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home > footer.site-footer.public-footer {
  margin: 0 auto !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
  border-top: 1px solid var(--en-line) !important;
  border-bottom: 0 !important;
}

/* ---- Labels: one eyebrow style ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .eyebrow,
body.public-home-view #publicHome.english-home.ai-pixel-home .model-marquee > p {
  color: var(--en-text-3) !important;
  font-family: var(--en-mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ---- Navigation ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .brand-lockup,
body.public-home-view #publicHome.english-home.ai-pixel-home .brand-lockup strong {
  color: var(--en-text) !important;
  font-weight: 600 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-links a {
  color: var(--en-text-2) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-links a:hover { color: var(--en-text) !important; }

/* ---- Hero ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .public-copy > p:not(.eyebrow) {
  color: var(--en-text-2) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-highlight-pill small {
  color: var(--en-text-3) !important;
  font-size: 12px !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-highlight-pill [data-benefit-copy] {
  color: var(--en-text-2) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .showcase-carousel-label {
  font-size: 12px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .showcase-carousel-tab { color: var(--en-text-3) !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .showcase-carousel-tab.is-active { color: var(--en-text) !important; }

/* ---- Feature grid: readable sans body text, mono only for the index ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-feature-grid article > span {
  color: var(--en-text-3) !important;
  font-family: var(--en-mono) !important;
  font-size: 12px !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-feature-grid article h3 {
  color: var(--en-text) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-feature-grid article p {
  color: var(--en-text-2) !important;
  font-family: var(--en-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

/* ---- Section headings ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home section h2 {
  color: var(--en-text) !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-models-copy > p:last-child,
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-copy > p:last-child,
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-pricing-head span {
  color: var(--en-text-2) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

/* ---- Product canvas (preview section) ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-shot {
  display: grid !important;
  gap: 40px !important;
  width: min(calc(100% - 64px), 1320px) !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-copy h2 {
  margin: 0 !important;
  font-family: var(--en-sans) !important;
  font-size: clamp(32px, 3.6vw, 48px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.03em !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-copy p { margin: 0 !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--en-line);
  border-radius: 12px;
  background: #0b0c0c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Models: type tabs above a two-column list; the intro column stays in view ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-models-copy {
  position: sticky !important;
  top: 96px !important;
  align-self: start !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-browser { display: grid; gap: 24px; min-width: 0; }
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--en-line);
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: -1px;
  padding: 10px 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--en-text-3);
  font-family: var(--en-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab small {
  color: var(--en-text-3);
  font-family: var(--en-mono);
  font-size: 12px;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab:hover { color: var(--en-text-2); }
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab[aria-selected="true"] {
  border-bottom-color: var(--en-text);
  color: var(--en-text);
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab:focus-visible {
  outline: 2px solid rgba(241, 243, 241, 0.72);
  outline-offset: 2px;
  border-radius: 4px;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-grid[hidden] { display: none !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .model-logo-card strong {
  color: var(--en-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .model-logo-card small {
  color: var(--en-text-3) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

/* ---- Pricing ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-pricing-strip,
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-pricing-strip > div,
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-topup-grid article {
  color: var(--en-text-2) !important;
  border-color: var(--en-line) !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-pricing-head strong {
  color: var(--en-text) !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-topup-grid article strong {
  color: var(--en-text-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-topup-grid article span {
  color: var(--en-text-3) !important;
  font-size: 12px !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-topup-grid article em {
  color: var(--en-text) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-rate-grid span {
  color: var(--en-text-2) !important;
  font-size: 12px !important;
  border-color: var(--en-line) !important;
}

/* ---- FAQ ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list summary {
  color: var(--en-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list details p {
  color: var(--en-text-2) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* ---- Footer: neutral colours, aligned column tops ---- */
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer.public-footer { align-items: start !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer.public-footer,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer.public-footer * {
  border-color: var(--en-line) !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-brand,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-brand strong,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu > strong {
  margin-top: 0 !important;
  color: var(--en-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-brand-column > p,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu a,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-contact span {
  color: var(--en-text-2) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu a:hover { color: var(--en-text) !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-copy {
  color: var(--en-text-3) !important;
  font-size: 12px !important;
}

/* ---- Alignment fixes ---- */
/* Model rows: name above its details so long names never wrap against the detail text. */
body.public-home-view #publicHome.english-home.ai-pixel-home .model-logo-card {
  grid-template-columns: minmax(0, 1fr) !important;
  row-gap: 4px !important;
  align-content: center !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .model-logo-card small { justify-self: start !important; text-align: left !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-topup-grid article span { white-space: nowrap !important; }
/* The FAQ label lines up with every other section label. */
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-head .eyebrow { padding-left: 0 !important; padding-right: 0 !important; }
/* Footer columns start on the same line with even link spacing. */
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu > strong { margin-bottom: 4px !important; line-height: 20px !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-brand { line-height: 20px !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu a,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-contact span { margin: 0 !important; padding: 0 !important; line-height: 20px !important; }

/* ---- Narrow screens ---- */
@media (max-width: 760px) {
  body.public-home-view #publicHome.english-home.ai-pixel-home { --en-section-pad: 64px; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .ai-product-shot { width: calc(100% - 32px) !important; gap: 28px !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .ai-models-copy { position: static !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab { padding: 10px 10px 12px; font-size: 14px; }
  /* Mobile header: language and sign-in stay reachable; the account pill gives way to the Studio button. */
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions { gap: 8px !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions { align-items: center !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions .public-language-select { display: flex !important; align-items: center !important; margin: 0 !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions .public-language-select select {
    width: 108px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 24px 0 10px !important;
    font-size: 12px !important;
    text-overflow: ellipsis;
  }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions .ghost-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1 !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions .solid-action {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-actions .public-account-pill { display: none !important; }
  /* Hero video lines up with the copy column on both sides. */
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-hero-content > .public-showcase {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
  }
}
@media (max-width: 420px) {
  body.public-home-view #publicHome.english-home.ai-pixel-home .brand-lockup strong { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-tab { transition: none; }
}

/* ===== Step 3: interaction details ===== */
/* In-page links land below the fixed header; scrolling is smooth unless the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html:has(body.public-home-view) { scroll-behavior: smooth; }
}
body.public-home-view #publicHome.english-home.ai-pixel-home > section { scroll-margin-top: 80px; }

/* Buttons: one hover, press and focus treatment. */
body.public-home-view #publicHome.english-home.ai-pixel-home .solid-action,
body.public-home-view #publicHome.english-home.ai-pixel-home .ghost-action {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .solid-action:hover { background-color: #ffffff !important; border-color: #ffffff !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .ghost-action:hover {
  background-color: rgba(241, 243, 241, 0.08) !important;
  border-color: rgba(241, 243, 241, 0.42) !important;
  color: var(--en-text) !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .solid-action:active,
body.public-home-view #publicHome.english-home.ai-pixel-home .ghost-action:active { transform: scale(0.98); }
body.public-home-view #publicHome.english-home.ai-pixel-home :is(a, button, select, summary):focus-visible {
  outline: 2px solid rgba(241, 243, 241, 0.72) !important;
  outline-offset: 3px !important;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .public-nav-links a,
body.public-home-view #publicHome.english-home.ai-pixel-home .site-footer .footer-menu a { transition: color 160ms ease; border-radius: 4px; }

/* FAQ: the existing plus/minus marker brightens when open and the answer fades in. */
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list summary { cursor: pointer; transition: color 160ms ease; }
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list summary:hover { color: #ffffff !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list summary::after {
  color: var(--en-text-3) !important;
  transition: color 160ms ease;
}
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list details[open] summary::after { color: var(--en-text) !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list details[open] > p { animation: en-fade-in 220ms ease both; }
@keyframes en-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Model ticker pauses while pointed at or focused; model panels fade when switching tabs. */
body.public-home-view #publicHome.english-home.ai-pixel-home .model-marquee:hover .model-marquee-track,
body.public-home-view #publicHome.english-home.ai-pixel-home .model-marquee:focus-within .model-marquee-track { animation-play-state: paused !important; }
body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-grid:not([hidden]) { animation: en-fade-in 200ms ease both; }

/* Cookie consent on the public site: neutral surface, and both choices carry equal weight. */
body.public-home-view .cookie-consent {
  border-color: rgba(241, 243, 241, 0.14) !important;
  background: rgba(12, 13, 13, 0.96) !important;
  color: rgba(241, 243, 241, 0.74) !important;
  border-radius: 12px !important;
}
body.public-home-view .cookie-consent strong { color: #f1f3f1 !important; }
body.public-home-view .cookie-consent a { color: #f1f3f1 !important; }
body.public-home-view .cookie-consent .cookie-consent-actions button {
  border: 1px solid rgba(241, 243, 241, 0.28) !important;
  background: rgba(241, 243, 241, 0.06) !important;
  color: #f1f3f1 !important;
  border-radius: 8px !important;
}
body.public-home-view .cookie-consent .cookie-consent-actions button:hover {
  border-color: rgba(241, 243, 241, 0.5) !important;
  background: rgba(241, 243, 241, 0.12) !important;
}

/* Legal pages share the Home's neutral palette. */
#legalPage.legal-page .solid-action { background: #f1f3f1 !important; border-color: #f1f3f1 !important; color: #111 !important; }
#legalPage.legal-page .solid-action:hover { background: #ffffff !important; border-color: #ffffff !important; }
#legalPage.legal-page .ghost-action { border-color: rgba(241, 243, 241, 0.28) !important; color: #f1f3f1 !important; }
#legalPage.legal-page .ghost-action:hover { background: rgba(241, 243, 241, 0.08) !important; }
#legalPage.legal-page .brand-lockup,
#legalPage.legal-page .brand-lockup strong { color: #f1f3f1 !important; }

@media (prefers-reduced-motion: reduce) {
  body.public-home-view #publicHome.english-home.ai-pixel-home .model-marquee-track { animation: none !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list details[open] > p,
  body.public-home-view #publicHome.english-home.ai-pixel-home .ai-model-grid:not([hidden]) { animation: none !important; }
  body.public-home-view #publicHome.english-home.ai-pixel-home .public-faq-list summary::after { transition: none; }
}

/* CJK titles are set in the fallback font, whose glyphs are wider than the pixel face: scale with the viewport and
   allow wrapping so the headline never runs off a phone screen. */
html:is([lang^="zh"], [lang="ja"], [lang="ko"]) body.public-home-view #publicHome.english-home.ai-pixel-home .pixel-title {
  font-size: clamp(36px, 11vw, 99px) !important;
  line-height: 1.12 !important;
}
html:is([lang^="zh"], [lang="ja"], [lang="ko"]) body.public-home-view #publicHome.english-home.ai-pixel-home .pixel-title :is(.pixel-title-text, .pixel-word) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
