/* Oenia Nexnet — public site layer.
 *
 * Page-level styles for oenia.eu, on top of nocturne.css. The Claude Design
 * bundle wrote these as inline styles; they are classes here so the home page
 * and the legal pages share one header, one footer and one set of type sizes.
 */

body {
  margin: 0; text-wrap: pretty; color: var(--color-text);
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-300); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--color-surface); padding: 8px 14px; border-radius: var(--radius-md);
}
.skip:focus { left: 8px; }

/* ---- Frame ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 72px); }

.site-nav { max-width: 1240px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 72px); gap: 24px; }
.site-nav .nav-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: inherit; text-decoration: none; }
.site-nav .nav-brand img { height: 38px; width: auto; }
.site-nav > a:not(.btn) { font-size: 14.5px; white-space: nowrap; }
.site-nav .btn-primary { white-space: nowrap; padding: 10px 20px; }
.site-nav .btn-primary:hover { color: var(--color-accent); }
@media (max-width: 640px) {
  [data-hide="narrow"] { display: none; }
  .site-nav { gap: 12px; }
  .site-nav .btn-primary span { display: none; }
  .site-nav .btn-primary { padding: 10px 12px; }
}

button.seg-opt { background: transparent; color: var(--color-text); font: inherit; font-size: 13px; border: 0; padding: 7px 12px; cursor: pointer; }
button.seg-opt + button.seg-opt { border-left: 1px solid var(--color-divider); }
button.seg-opt[aria-pressed="true"] { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
button.seg-opt[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

.panel { border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); }
.panel-muted { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* ---- Type ---- */
.eyebrow {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); margin-bottom: 14px;
}
.kicker {
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.h-section {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 36px; max-width: 26ch;
}
.h-section.sm { font-size: clamp(26px, 3vw, 36px); margin-bottom: 28px; max-width: 24ch; }
.muted-82 { color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.muted-78 { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.muted-62 { color: color-mix(in srgb, var(--color-text) 62%, transparent); }

/* ---- Hero ---- */
.hero {
  padding: clamp(40px, 6vw, 72px) 0 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px clamp(32px, 5vw, 80px); align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 35px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 24px;
}
.hero h1 .accent { display: block; color: var(--color-accent); font-size: inherit; }
.hero .lead { font-size: 17px; line-height: 1.65; max-width: 56ch; margin: 0 0 28px; }
.hero figure { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; margin: 0; }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { font-size: 15px; padding: 12px 24px; }

/* ---- KPIs ---- */
.kpis { padding: 8px 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 28px; }
.kpi-val { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(30px, 3vw, 42px); margin: 0; }
.kpi-val.accent { color: var(--color-accent); }
.kpi-lbl { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: 10px 0 0; }

/* ---- Products ---- */
.section { padding: 24px 0 48px; }
.section.roomy { padding: 32px 0 56px; }
.custom {
  margin-bottom: 36px; padding: clamp(28px, 3.5vw, 40px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(28px, 5vw, 64px); align-items: center;
}
.custom-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.custom-head i { font-size: 28px; color: var(--color-accent); }
.custom-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; max-width: 30ch;
}
.custom-body { font-size: 15.5px; line-height: 1.7; margin: 0 0 20px; max-width: 58ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.ready-intro { font-size: 16px; line-height: 1.7; margin: 0 0 24px; max-width: 60ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.product { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-top i { font-size: 26px; color: var(--color-accent); }
.product-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 21px; }
.product p { font-size: 15px; line-height: 1.55; margin: 4px 0 0; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.product-link {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14.5px;
  background: none; border: 0; color: var(--color-accent); cursor: pointer; align-self: flex-start; padding-left: 0; padding-right: 0;
}
.product-link:hover { color: var(--color-accent-300); }
.product-link i { font-size: 14px; }

/* ---- In practice (USP picker) ---- */
.usp-list { display: flex; flex-wrap: wrap; gap: 12px; }
.usp-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; text-align: left; cursor: pointer; color: var(--color-text); }
.usp-btn > i:first-child { font-size: 20px; color: var(--color-accent); }
.usp-btn > i:last-child { font-size: 13px; opacity: 0.6; }
.usp-btn[aria-expanded="true"] {
  border-color: var(--color-accent); color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.usp-panel { margin-top: 20px; padding: clamp(20px, 3vw, 32px); display: flex; gap: 20px; align-items: flex-start; }
.usp-panel > i { font-size: 30px; color: var(--color-accent); flex: none; }
.usp-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
.usp-body { font-size: 15.5px; line-height: 1.7; margin: 0; max-width: 68ch; }

/* ---- About ---- */
.about {
  padding: 24px 0 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 32px clamp(28px, 5vw, 80px); align-items: start;
}
.about h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.about p { font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; max-width: 60ch; }
.about p + p { margin: 0; color: color-mix(in srgb, var(--color-text) 80%, transparent); }

/* ---- News ---- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.news-item { padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
a.news-item:hover { border-color: var(--color-accent); color: inherit; }
.news-date { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.news-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; line-height: 1.25; }
.news-item p { font-size: 14.5px; line-height: 1.6; margin: 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* ---- Contact ---- */
.contact { padding: clamp(28px, 4vw, 44px); margin-bottom: 56px; scroll-margin-top: 20px; }
.contact h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; max-width: 26ch; }
.contact .sub { font-size: 15.5px; line-height: 1.7; margin: 0 0 24px; max-width: 58ch; }
.contact form { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.contact .input { flex: 1; min-width: 220px; min-height: 42px; padding: 8px 16px; background: var(--color-bg); }
.contact .btn { min-height: 42px; padding: 10px 22px; }
.form-note { font-size: 13px; line-height: 1.6; margin: 14px 0 0; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.form-note.err { color: #f0a3b5; }
.form-note.ok { color: var(--color-accent-300); }

/* Spam trap: real visitors never see or fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Demo dialog ---- */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; background: color-mix(in srgb, #050509 72%, transparent);
}
.dialog-backdrop .dialog { width: 100%; max-width: 620px; padding: clamp(24px, 3vw, 36px); max-height: 92vh; overflow-y: auto; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-head p { font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 52ch; }
.demo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.demo-form .full { grid-column: 1 / -1; }
.demo-form .dialog-actions { justify-content: flex-start; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-form .dialog-actions span { font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
select.input { appearance: none; min-height: 38px; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.demo-ok { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; }
.demo-ok > i { font-size: 30px; color: var(--color-accent); flex: none; }
.demo-ok b { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; margin: 0 0 8px; }
.demo-ok p { font-size: 14.5px; line-height: 1.65; margin: 0 0 20px; max-width: 48ch; }
body.modal-open { overflow: hidden; }

/* ---- Footer ---- */
.site-foot {
  max-width: 1240px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 72px) 40px;
  border-top: 1px solid var(--color-divider);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; }
.foot-brand img { height: 26px; width: auto; }
.foot-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-nav .btn-ghost { padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.social { display: flex; gap: 4px; margin-left: 6px; }
.social a { display: inline-flex; padding: 8px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.social a:hover { color: var(--color-accent); }
.social i { font-size: 22px; }
[data-consent-open] { display: none !important; }
.consent-on [data-consent-open] { display: inline-flex !important; }
.copy { font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 60%, transparent); margin: 0; white-space: nowrap; }

@media (max-width: 880px) {
  .custom, .about { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */
h3.product-name { margin: 0; line-height: 1.2; }
h3.usp-title { letter-spacing: 0; }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { padding: 0; }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; flex: 1; }
.faq-item summary i { font-size: 16px; opacity: 0.6; transition: transform .15s; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item summary:hover h3 { color: var(--color-accent-300); }
.faq-item p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.7; max-width: 72ch; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
a.seg-opt { display: inline-flex; align-items: center; color: var(--color-text); font-size: 13px; padding: 7px 12px; text-decoration: none; }
a.seg-opt + a.seg-opt { border-left: 1px solid var(--color-divider); }
a.seg-opt[aria-pressed="true"] { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
a.seg-opt[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }

/* ---- Consent banner (assets/js/consent.js) ---- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin: 0 auto; max-width: 760px;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.6; }
.consent-text b { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-weight: var(--font-heading-weight); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-cats { flex: 1 1 100%; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.consent-cats[hidden] { display: none; }
.consent-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-divider); border-radius: 10px; cursor: pointer; }
.consent-cat input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--color-accent); }
.consent-cat input:disabled { cursor: not-allowed; }
.consent-cat b { display: block; font-size: 14px; }
.consent-cat small { display: block; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.consent { max-height: calc(100vh - 32px); overflow-y: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
