/* =========================================================
   FALOM AI: the Relix, Legalix and Restaulix pages in the home page's dark look.
   Every section is black, softly lit in the product's own colour, with the same film grain;
   cards, example, chat and FAQ become dark glass; the footer is black.
   To go back: remove the css/product-dark.css line in each product page
   (copies from before are in backup-before-product-dark/).
   ========================================================= */
.theme-relix     { --accent: #a58bff; --accent-rgb: 124, 92, 255;  --accent-2: #8f74ff; --soft: #a9a3c9; }
.theme-legalix   { --accent: #ff9a1f; --accent-rgb: 255, 122, 0;   --accent-2: #ffb35c; --soft: #c9b3a3; }
.theme-restaulix { --accent: #ffc21a; --accent-rgb: 255, 194, 26;  --accent-2: #ffd23f; --soft: #cfc3a0; }

body[class*="theme-"] { background: #000; }

/* ---- Sections: black, each lit by a faint glow of the product's colour (alternating sides) ---- */
body[class*="theme-"] main > .section,
body[class*="theme-"] main > .section.grey-section,
body[class*="theme-"] main > .section.dark-section {
  position: relative; isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    #000;
}
body[class*="theme-"] main > .section:nth-of-type(even) {
  background:
    radial-gradient(ellipse 55% 45% at 12% 80%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    #000;
}
/* the same film grain as the home page, on the hero and every section */
body[class*="theme-"] main > section::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[class*="theme-"] main > .hero, body[class*="theme-"] main > .cta { position: relative; isolation: isolate; }
/* a thin line between sections instead of colour changes */
body[class*="theme-"] main > .section + .section { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---- Type ---- */
body[class*="theme-"] .title, body[class*="theme-"] .headline { color: #fff; }
body[class*="theme-"] .section .lead { color: var(--soft); }
body[class*="theme-"] .eyebrow { color: var(--accent); }
/* the label style from the home page: a small square in the product's colour */
body[class*="theme-"] .section .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
body[class*="theme-"] .section .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
body[class*="theme-"] .note { color: rgba(255, 255, 255, 0.4); }

/* Overview: words light up white as you scroll */
body[class*="theme-"] .highlight-text .w { color: rgba(255, 255, 255, 0.16); }
body[class*="theme-"] .highlight-text .w.lit { color: #fff; }

/* ---- Cards: dark glass ---- */
body[class*="theme-"] .card,
body[class*="theme-"] .grey-section .card,
body[class*="theme-"] .dark-section .card {
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
}
body[class*="theme-"] .card:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: 0 30px 70px rgba(var(--accent-rgb), 0.14); }
body[class*="theme-"] .card h3 { color: #fff; }
body[class*="theme-"] .card p, body[class*="theme-"] .dark-section .card p { color: rgba(255, 255, 255, 0.62); }
body[class*="theme-"] .step-num { color: var(--accent); }
body[class*="theme-"] .card-icon { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.3); }

/* ---- Example: the client file and what the AI finds ---- */
body[class*="theme-"] .contract { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
body[class*="theme-"] .contract-dark { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.3); }
body[class*="theme-"] .contract-head { color: var(--accent); }
body[class*="theme-"] .contract dl div { border-bottom-color: rgba(255, 255, 255, 0.08); }
body[class*="theme-"] .contract dt { color: rgba(255, 255, 255, 0.55); }
body[class*="theme-"] .example-arrow { color: rgba(255, 255, 255, 0.3); }

/* ---- Chat ---- */
body[class*="theme-"] .chat { background: #0b0b0f; border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(var(--accent-rgb), 0.08); }
body[class*="theme-"] .chat-head { background: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(255, 255, 255, 0.08); color: #fff; }
body[class*="theme-"] .chat-head span { color: rgba(255, 255, 255, 0.5); }
body[class*="theme-"] .chat-avatar { background: rgba(255, 255, 255, 0.14); }
body[class*="theme-"] [data-from="client"] { background: rgba(255, 255, 255, 0.09); color: #fff; }
body[class*="theme-"] .typing { color: rgba(255, 255, 255, 0.7); }
body[class*="theme-"] .chat-status { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
body[class*="theme-"] .chat-replay { color: rgba(255, 255, 255, 0.5); }

/* ---- FAQ ---- */
body[class*="theme-"] .faq details { border-bottom-color: rgba(255, 255, 255, 0.1); }
body[class*="theme-"] .faq summary { color: #fff; }
body[class*="theme-"] .faq summary::after { color: var(--accent); }
body[class*="theme-"] .faq details p { color: rgba(255, 255, 255, 0.62); }

/* ---- Footer: black, thin line on top ---- */
body[class*="theme-"] .footer { background: #000; color: rgba(255, 255, 255, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.08); }
body[class*="theme-"] .footer a { color: rgba(255, 255, 255, 0.55); }
body[class*="theme-"] .footer a:hover { color: #fff; }

/* ---- "Why <product>": the page's one strong colour moment ----
   A big, brighter glow of the product's colour rises behind the logo panel, and the panel itself glows */
body[class*="theme-"] main > .section:has(.split) {
  background:
    radial-gradient(ellipse 42% 70% at 26% 50%, rgba(var(--accent-rgb), 0.34), transparent 70%),
    radial-gradient(ellipse 70% 90% at 30% 50%, rgba(var(--accent-rgb), 0.12), transparent 75%),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    #000;
}
body[class*="theme-"] main > .section:has(.split) .visual-block {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 40px 120px rgba(var(--accent-rgb), 0.35), 0 0 60px rgba(var(--accent-rgb), 0.25);
}
body[class*="theme-"] main > .section:has(.split) .title {
  background: linear-gradient(120deg, #fff 35%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[class*="theme-"] main > .section:has(.split) .lead { color: rgba(255, 255, 255, 0.78); }

/* ---- Small text, a little brighter so it reads comfortably on black ---- */
body[class*="theme-"] .note { color: rgba(255, 255, 255, 0.58); }
body[class*="theme-"] .contract dt { color: rgba(255, 255, 255, 0.7); }
body[class*="theme-"] .contract dd { color: #fff; }
body[class*="theme-"] .card p, body[class*="theme-"] .dark-section .card p { color: rgba(255, 255, 255, 0.74); }
body[class*="theme-"] .faq details p { color: rgba(255, 255, 255, 0.74); }
body[class*="theme-"] .chat-head span, body[class*="theme-"] .chat-replay { color: rgba(255, 255, 255, 0.66); }
body[class*="theme-"] .section .lead { color: color-mix(in srgb, var(--soft) 70%, #fff); }
body[class*="theme-"] .panel-label { color: rgba(255, 255, 255, 0.6); }
body[class*="theme-"] .scroll-hint { color: rgba(255, 255, 255, 0.6); }
body[class*="theme-"] .footer { color: rgba(255, 255, 255, 0.6); }
body[class*="theme-"] .footer a { color: rgba(255, 255, 255, 0.72); }

/* ---- A few white panels on the black, so the pages are not black everywhere:
   the "How it works" step cards, the client file in the example, and the chat window ---- */
body[class*="theme-"] #how .card {
  background: #f6f6f8; border-color: transparent; color: #0b0b10;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
body[class*="theme-"] #how .card h3 { color: #0b0b10; }
body[class*="theme-"] #how .card p { color: #55555e; }
body[class*="theme-"] #how .card:hover { box-shadow: 0 34px 80px rgba(var(--accent-rgb), 0.28); }
/* the step number in the product's colour, a bit deeper so it reads on white */
body[class*="theme-"] #how .step-num { color: color-mix(in srgb, var(--accent) 70%, #000); }

body[class*="theme-"] .contract:not(.contract-dark) {
  background: #f6f6f8; border-color: transparent; color: #0b0b10; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
body[class*="theme-"] .contract:not(.contract-dark) .contract-head { color: #6b6b74; }
body[class*="theme-"] .contract:not(.contract-dark) dt { color: #6b6b74; }
body[class*="theme-"] .contract:not(.contract-dark) dd { color: #0b0b10; }
body[class*="theme-"] .contract:not(.contract-dark) dl div { border-bottom-color: #e4e4ea; }

body[class*="theme-"] .chat { background: #fff; border-color: transparent; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 90px rgba(var(--accent-rgb), 0.18); }
body[class*="theme-"] .chat-head { background: #f4f4f6; border-bottom-color: #e8e8ee; color: #0b0b10; }
body[class*="theme-"] .chat-head span { color: #6b6b74; }
body[class*="theme-"] .chat-avatar { background: #c9c9d1; color: #fff; }
body[class*="theme-"] [data-from="client"] { background: #ececf1; color: #0b0b10; }
body[class*="theme-"] .typing { color: #6b6b74; }
body[class*="theme-"] .chat-status { background: rgba(var(--accent-rgb), 0.14); color: color-mix(in srgb, var(--accent) 70%, #000); }
body[class*="theme-"] .chat-replay { color: #6b6b74; }

/* Phones: the small product badge under the top bar sits at the right, clear of the section labels */
@media (max-width: 760px) {
  body[class*="theme-"] .relix-dock { left: auto; right: 14px; top: calc(100% + 8px); padding: 4px 12px 4px 4px; font-size: 12px; }
  body[class*="theme-"] .relix-dock-logo { width: 24px; height: 24px; }
}
