:root {
  color-scheme: dark !important;
  --page-bg: #05091e !important;
  --surface: #0b1230 !important;
  --surface-hover: #111a3d !important;
  --text-main: #f3f6ff !important;
  --text-muted: #9ba7c8 !important;
  --accent: #bdff36 !important;
  --accent-soft: rgba(189, 255, 54, 0.13) !important;
  --accent-border: rgba(189, 255, 54, 0.52) !important;
  --line: rgba(232, 238, 255, 0.12) !important;
  --apple-bg: #05091e !important;
  --apple-gray: #9ba7c8 !important;
  --divider: #202b4d !important;
  --brand-lime: #bdff36 !important;
  --brand-dark: #111a35 !important;
}

html {
  min-width: 320px;
  background: var(--page-bg) !important;
  color-scheme: dark !important;
}

body {
  background-color: var(--page-bg) !important;
  color: var(--text-main) !important;
}

::selection {
  background: var(--accent);
  color: #0a0d08;
}

.glow {
  background:
    radial-gradient(ellipse 62% 38% at 50% -10%, rgba(189, 255, 54, 0.16) 0%, transparent 70%),
    radial-gradient(circle at 12% 45%, rgba(189, 255, 54, 0.035), transparent 30%) !important;
}

.tag,
.download-btn {
  color: #0a0d08 !important;
}

.card {
  border-color: rgba(232, 238, 255, 0.09) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(189, 255, 54, 0.08) !important;
  }
}

.card:focus-within {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 56px rgba(0, 0, 0, 0.34) !important;
}

.product-icon {
  box-sizing: border-box;
  border: 1px solid rgba(218, 224, 240, 0.72);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24) !important;
}

.container {
  position: relative;
}

.container::before {
  position: fixed;
  inset: 0 0 auto;
  height: 380px;
  background: radial-gradient(ellipse 55% 55% at 50% -22%, rgba(189, 255, 54, 0.13), transparent 72%);
  content: '';
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4,
.intro,
.intro-list,
.content h2,
.content h3 {
  color: var(--text-main) !important;
}

.feature-card,
.pricing-container {
  background: #0b1230 !important;
  border-color: var(--divider) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

.feature-card p,
.content p,
.content li,
.affiliate-note,
.privacy-note,
.data-disclaimer {
  color: var(--apple-gray) !important;
}

th {
  background: #111a35 !important;
  color: var(--apple-gray) !important;
}

th,
td {
  border-color: var(--divider) !important;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.price-text,
.highlight,
.lang-switch,
.language-link {
  color: var(--accent) !important;
}

.privacy-btn {
  background: #101936 !important;
  color: var(--text-main) !important;
  border: 1px solid var(--divider) !important;
}

.privacy-btn:hover {
  background: #162248 !important;
  border-color: var(--accent-border) !important;
}

.download-btn,
.openclaw-download-hero a {
  background: var(--accent) !important;
  color: #0a0d08 !important;
  box-shadow: 0 10px 28px rgba(94, 132, 17, 0.24) !important;
}

.openclaw-download-hero a:hover {
  box-shadow: 0 14px 36px rgba(94, 132, 17, 0.34) !important;
}

.back-home-link,
.back-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.34rem 0.9rem 0.34rem 0.34rem;
  box-sizing: border-box;
  background: var(--brand-dark) !important;
  border: 1px solid rgba(189, 255, 54, 0.34);
  border-radius: 999px;
  border-color: rgba(189, 255, 54, 0.34) !important;
  color: #f2f5ed !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3) !important;
}

.back-home-icon,
.back-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-lime);
  color: #0a0d08;
  font-size: 1rem;
  line-height: 1;
}

.back-home-link:hover,
.back-product-link:hover {
  background: #162445 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;
}

.back-home-link:focus-visible,
.back-product-link:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 3px;
}

footer {
  border-color: var(--line) !important;
}

footer a,
.back-nav a:not(.back-home-link):not(.back-product-link) {
  color: var(--apple-gray) !important;
}

footer a:hover,
.back-nav a:not(.back-home-link):not(.back-product-link):hover {
  color: var(--text-main) !important;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 104px;
    padding: 1rem;
  }
}

/* Shared multilingual layout: long translations must fit small screens. */
h1, h2, h3, h4, p, td, th { overflow-wrap: anywhere; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important; }
.pricing-container { overflow-x: auto !important; }
/* AnswerSift's three-column price table stays readable without horizontal scrolling. */
@media (max-width: 480px) {
  body[data-product-slug="aianswersift"] .pricing-container table { table-layout: fixed; }
  body[data-product-slug="aianswersift"] .pricing-container th,
  body[data-product-slug="aianswersift"] .pricing-container td { min-width: 0; padding: .6rem .4rem !important; font-size: .78rem; }
}
@media (max-width: 480px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .product-header h1 { font-size: clamp(1.7rem, 8vw, 2.8rem); line-height: 1.2; }
  .feature-card { padding: 1.4rem !important; }
  th, td { padding: .8rem !important; }
}
@media (max-width: 480px) {
  .container h1 { font-size: clamp(1.7rem, 7.5vw, 2.3rem) !important; line-height: 1.3 !important; }
}
