/* ============================================================
   Omiver public site
   One system for the marketing pages, the shared header/footer
   and the legal pages. Colour values mirror omiver-app's
   tokens.css so the website and the app read as one product.
   ============================================================ */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --canvas: #f6f8f7;
  --panel: #eef3f0;
  --panel-strong: #e2ebe5;
  --line: rgba(15, 23, 32, 0.1);
  --line-strong: rgba(15, 23, 32, 0.18);

  --ink: #0f1720;
  --ink-2: #4e5862;
  --ink-3: #5d666e;

  --sage: #67997d;
  --sage-soft: rgba(103, 153, 125, 0.14);
  /* White on --sage is 3.27:1, so every filled control uses the deep sage. */
  --action: #436e57;
  --action-hover: #3a6049;
  --action-press: #30503d;
  --ring: rgba(67, 110, 87, 0.45);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.7rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --fs-h3: 1.375rem;
  --fs-lede: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);

  --shadow: 0 1px 2px rgba(15, 23, 32, 0.05), 0 12px 32px rgba(15, 23, 32, 0.07);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---- Base --------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* The project-wide base template pads #content and sets Open Sans;
   the public site owns its own edges and face. */
#content { padding: 0; font-family: var(--font); min-width: 0; }
main { min-width: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--action);
  accent-color: var(--action);
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(103, 153, 125, 0.28); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Buttons ------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-full);
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }

.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { background: var(--action-press); }

.btn-secondary { background: transparent; color: var(--action); border-color: rgba(67, 110, 87, 0.45); }
.btn-secondary:hover { border-color: var(--action); background: var(--sage-soft); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--action); font-weight: 600; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }

/* ---- Header ------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 148px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav a { font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--action); }
.site-nav a[aria-current="page"] { color: var(--action); }
.site-nav .btn { color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { height: 64px; gap: 16px; }
  .brand img { width: 124px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
    background: #fff; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 32, 0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* ---- Sections ----------------------------------------------- */

.section { padding: var(--section) 0; }
.section:not(.section-canvas) + #contact { padding-top: 0; }
.section-canvas { background: var(--canvas); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.028em; font-weight: 650;
}
.section-head .lede {
  margin-top: 18px; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 62ch;
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Hero --------------------------------------------------- */

.hero { padding: clamp(24px, 3.5vw, 56px) 0 clamp(40px, 4vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 {
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650;
  max-width: 15ch;
}
.hero .lede { margin-top: 24px; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media {
  border-radius: var(--r-lg); overflow: hidden; background: #d9c6ad;
  aspect-ratio: 5 / 4; box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .hero-media { aspect-ratio: 4 / 3; }
}

/* ---- Benefits (home) --------------------------------------- */

.benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefit {
  background: var(--panel); border-radius: var(--r-lg); padding: 26px 28px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.benefit .tick {
  width: 36px; height: 36px; border-radius: var(--r-full); background: var(--action); color: #fff;
  display: grid; place-items: center;
}
.benefit .tick .icon { width: 18px; height: 18px; }
.benefit p { font-size: clamp(1.1875rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.3; font-weight: 550; letter-spacing: -0.015em; }

@media (max-width: 860px) { .benefits { grid-template-columns: minmax(0, 1fr); } }
.benefits-row { padding-bottom: var(--section); }
.benefits-row + .section { padding-top: 0; }

/* ---- Intro / split rows ------------------------------------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split.media-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); }
.split.media-wide .split-media.framed { padding: clamp(10px, 1.2vw, 16px); }
.split-copy h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.028em; font-weight: 650; }
.split-copy .lede { margin-top: 18px; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); }
.split-copy p + p { margin-top: 16px; }
.split-copy .body { margin-top: 20px; color: var(--ink-2); max-width: 60ch; }
.split-copy .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.split-copy .cta-row p { color: var(--ink); font-weight: 600; }
.split-media { border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.split-media.framed { padding: clamp(16px, 2.4vw, 28px); }
.split-media.framed img { border-radius: var(--r-md); box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
  .split.media-wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Checklist (why Omiver, plans, coverage) --------------- */

.checklist { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line);
  font-size: 1.125rem; line-height: 1.45; font-weight: 500;
}
.checklist .icon { color: var(--action); margin-top: 3px; }

@media (max-width: 960px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .checklist { grid-template-columns: minmax(0, 1fr); } .checklist li { padding-right: 0; } }

/* ---- Journey (information) ---------------------------------- */

.journey { list-style: none; display: grid; gap: 8px; counter-reset: step; }
.journey li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 18px 20px; border-radius: var(--r-md);
  transition: background-color 200ms var(--ease-out);
}
.journey li:hover, .journey li:focus-within { background: var(--panel); }
.journey .num {
  width: 44px; height: 44px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--sage-soft); color: var(--action); font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.journey li:hover .num { background: var(--action); color: #fff; }
.journey h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.journey p { color: var(--ink-2); margin-top: 2px; }

/* ---- Plans (information) ------------------------------------ */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.plan .includes { margin-top: 24px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-3); }
.plan ul { list-style: none; margin-top: 10px; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.plan li .icon { color: var(--action); margin-top: 2px; }
.plan.featured { background: var(--action); color: #fff; border-color: var(--action); }
.plan.featured .includes { color: rgba(255, 255, 255, 0.82); }
.plan.featured li .icon { color: #cfe3d6; }
.after-grid { margin-top: 32px; display: flex; justify-content: center; }

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

/* ---- Molecule coverage (information) ----------------------- */

.molecules { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.molecules li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 600;
}
.molecules .icon { color: var(--action); }

/* ---- Platform band ------------------------------------------ */

.platform { background: var(--action); color: #fff; border-radius: clamp(20px, 3vw, 36px); overflow: hidden; padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px) 0; text-align: center; }
.platform h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.028em; font-weight: 650; max-width: 22ch; margin: 0 auto; }
.platform .lede { margin: 18px auto 0; font-size: var(--fs-lede); line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 62ch; }
.platform .body { margin: 16px auto 0; color: rgba(255, 255, 255, 0.86); max-width: 70ch; }
.platform .btn-light { margin-top: 32px; background: #fff; color: var(--action); }
.platform .btn-light:hover { background: #eef3f0; }
.platform img { margin: clamp(40px, 5vw, 64px) auto 0; width: 100%; max-width: 1080px; }

/* ---- Contact ------------------------------------------------ */

.contact-title { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.028em; font-weight: 650; margin-bottom: clamp(28px, 3.5vw, 44px); }
.contact { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-form { background: var(--canvas); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; }
.contact-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 14px; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: rgba(15, 23, 32, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--ring); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled], .contact-form.htmx-request .btn { opacity: 0.6; cursor: progress; }

.contact-list { list-style: none; display: grid; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list a { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 22px 0; text-decoration: none; }
.contact-list .badge { width: 48px; height: 48px; border-radius: var(--r-full); background: var(--panel); color: var(--action); display: grid; place-items: center; }
.contact-list h3 { font-size: var(--fs-small); font-weight: 600; color: var(--ink-3); }
.contact-list span { display: block; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover span { color: var(--action); text-decoration: underline; }

.form-status:empty { display: none; }
.form-response { border-radius: var(--r-sm); padding: 14px 16px; font-weight: 500; transition: opacity 300ms ease; }
.form-response.success { background: var(--sage-soft); color: #1c4a33; }
.form-response.error { background: rgba(148, 38, 31, 0.08); color: #94261f; }

@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-form .row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Footer ------------------------------------------------- */

.site-footer { background: var(--canvas); padding: 56px 0 40px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-footer .top img { width: 132px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.site-footer nav a:hover { color: var(--action); }
.site-footer .disclaimer { margin-top: 28px; font-size: var(--fs-micro); line-height: 1.65; color: var(--ink-3); max-width: 110ch; }
.site-footer .bottom { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-2); }
.site-footer .bottom a { color: var(--ink-2); }
.site-footer .bottom a:hover { color: var(--action); }
.site-footer .legal-links { display: flex; gap: 20px; }

/* ---- Reveal motion ------------------------------------------
   Content is visible by default; the script only opts sections in
   once it knows it can reveal them, so nothing is lost without JS. */

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(4px); }
.reveal-ready [data-reveal].is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
