/* ============================================================
   Omneo — simple static site
   White · Work Sans · minimal. Shared by all pages.
   ============================================================ */

:root {
  --white: #ffffff;
  --panel: #f5f3f1;
  --border: #e6e3e0;
  --ink: #1c1c1a;
  --hushed: #6f6f6a;
  --faint: #9a9a94;
  --accent: #df1540;          /* crimson — focus ring + inline error */
  /* Primary action colours (from the Omneo design system) */
  --action: #df1540;          /* --action-primary: signature crimson */
  --action-hover: #c40f38;    /* darker crimson on hover */
  --action-press: #a50d2f;    /* darker still on click */
  --action-ink: #fbfaf4;      /* --action-on-primary: warm cream text */
  --duo-bg: #ffe2e3;          /* blush-100 — duotone icon back layer */
  --duo-fg: #df1540;          /* crimson — duotone icon front layer */
  --max: 1280px;         /* shared width for header, hero, footer */
  --read: 760px;         /* comfortable reading measure for legal text */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --r: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--hushed); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Skip link --------------------------------------- */
.skip { position: absolute; left: 1rem; top: -80px; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--r); text-decoration: none; transition: top 150ms ease; }
.skip:focus { top: 1rem; }

/* ---------- Site header ------------------------------------- */
.site-head { border-bottom: 1px solid var(--border); }
.site-head__row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand svg { height: 20px; width: auto; }
.site-head__actions { display: flex; align-items: center; gap: 1rem; }
.site-head__link { font-size: 0.9375rem; text-decoration: none; }

/* ---------- Landing hero ------------------------------------ */
.hero { padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.hero__copy { min-width: 0; container-type: inline-size; container-name: copy; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) clamp(420px, 42vw, 560px); gap: clamp(2.5rem, 4vw, 4rem); }
}
.eyebrow { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hushed); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); margin-top: 1.5rem; letter-spacing: -0.03em; }
.hero h1 .muted { color: var(--faint); }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--hushed); max-width: 46ch; }

/* ---------- Buttons ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1;
  padding: 0.9rem 1.3rem; border-radius: var(--r); border: 0; cursor: pointer;
  background: var(--action); color: var(--action-ink); text-decoration: none; white-space: nowrap;
  transition: background 150ms ease;
}
.btn:hover { background: var(--action-hover); color: var(--action-ink); }
.btn:active { background: var(--action-press); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--panel); color: var(--ink); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }

/* CTAs that only appear on mobile/tablet (form is out of view until you scroll). */
.site-head__cta { display: none; }
.hero__cta { display: none; margin-top: 1.75rem; align-self: start; }
#capture { scroll-margin-top: 1.5rem; }
@media (max-width: 899px) {
  .site-head__link { display: none; }
  .site-head__cta { display: inline-flex; }
  .hero__cta { display: inline-flex; }
}

/* ---------- Waitlist form card ------------------------------ */
.hero__form { min-width: 0; }
.wl-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
  display: grid; gap: 0.85rem;
}
.wl-card[hidden] { display: none; }
.wl-card__title { font-size: 1.35rem; }
.wl-card__sub { margin-top: -0.35rem; font-size: 0.9rem; color: var(--hushed); }
.wl-card .btn { width: 100%; padding: 0.9rem 1.3rem; margin-top: 0.2rem; }
.wl-card__fine { font-size: 0.75rem; line-height: 1.5; color: var(--faint); text-align: center; }
.wl-card__fine a { color: var(--hushed); }

.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--hushed); }
.field__opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.9375rem; width: 100%;
  padding: 0.68rem 0.8rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; min-height: 3rem; }
.field select:invalid { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #cfcbc7;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }

.capture__err { font-size: 0.8125rem; color: var(--accent); min-height: 1em; margin: 0; }
.capture__ok {
  display: none; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; line-height: 1.5;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}
.capture__ok[data-show="true"] { display: flex; }
.capture__ok svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ink); }

/* ---------- What you get (2×2 feature grid) ----------------- */
.points { margin-top: clamp(2rem, 4vw, 2.75rem); display: grid; gap: 1.75rem 2rem; }
/* Two columns once the copy column itself is wide enough (not the viewport). */
@container copy (min-width: 480px) { .points { grid-template-columns: 1fr 1fr; } }
.point { display: grid; gap: 0.4rem; align-content: start; }
.point__ic { width: 30px; height: 30px; margin-bottom: 0.2rem; }
.point__ic .bg { fill: var(--duo-bg); }
.point__ic .fg { fill: none; stroke: var(--duo-fg); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { font-size: 1.0625rem; }
.point p { color: var(--hushed); font-size: 0.9375rem; }

/* ---------- Legal / content pages --------------------------- */
.page { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); flex: 1; }
/* Keep the reading measure comfortable, left-aligned with the header. */
.page > * { max-width: var(--read); }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.page__meta { margin-top: 1rem; color: var(--faint); font-size: 0.875rem; }
.notice {
  margin-top: 2rem; padding: 1rem 1.25rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 0.875rem; color: var(--hushed);
}
.prose { margin-top: 2.5rem; }
.prose h2 { font-size: 1.375rem; margin-top: 2.75rem; }
.prose h3 { font-size: 1.0625rem; margin-top: 1.75rem; }
.prose p, .prose ul, .prose table { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-top: 0.4rem; }
.prose ph, .prose .ph {
  font-style: normal; background: #fdeef1; color: #b3122f;
  padding: 0 0.3em; border-radius: 4px; font-size: 0.95em;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1px solid var(--border); }
.prose th { background: var(--panel); font-weight: 500; }
.backlink { display: inline-block; margin-top: 2.5rem; font-size: 0.9375rem; }

/* ---------- Footer ------------------------------------------ */
.site-foot { border-top: 1px solid var(--border); padding-block: 2rem; margin-top: auto; }
.site-foot__row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.site-foot p { font-size: 0.8125rem; color: var(--faint); }
.site-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.site-foot a { font-size: 0.8125rem; color: var(--hushed); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .linklike { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 0.8125rem; color: var(--hushed); cursor: pointer; }
.site-foot .linklike:hover { color: var(--ink); }

/* ---------- Cookie consent banner --------------------------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60;
  width: calc(100% - 2rem); max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  padding: 1.05rem 1.25rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 260px; margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--hushed); }
.cookie-banner__text a { color: var(--ink); }
.cookie-banner__actions { display: flex; gap: 0.5rem; margin-left: auto; }
.cookie-banner .btn { padding: 0.6rem 1.05rem; font-size: 0.875rem; }

@media (max-width: 480px) {
  .capture__row { flex-direction: column; align-items: stretch; background: transparent; border: 0; padding: 0; gap: 0.6rem; }
  .capture input { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
  .capture .btn { width: 100%; }
  .cookie-banner { bottom: 0; width: 100%; border-radius: 14px 14px 0 0; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
