/* OneOryx public marketing site. Loaded only by layouts/marketing.php; the signed-in app uses app.css.
   Everything is scoped under body.site. */

:root {
  --navy-950: #011d4a;
  --navy-900: #012a6a;
  --navy-700: #0b3d8c;
  --navy-200: #c9d5ea;
  --navy-100: #e7edf6;
  --green-500: #6dbf5b;
  --green-600: #4fa63d;
  --green-700: #2f7a22;
  --green-100: #e9f5e5;
  --paper: #f8f7f4;
  --paper-2: #f0ede8;
  --white: #ffffff;
  --ink: #12172a;
  --body: #3d3d4e;
  --muted: #6a6f7f;
  --line: #dcd6cb;
  --line-soft: #e8e3da;

  /* role tokens (light) */
  --s-bg: var(--white);
  --s-bg-alt: var(--paper);
  --s-surface: var(--white);
  --s-surface-2: var(--paper-2);
  --s-heading: var(--navy-900);
  --s-text: var(--body);
  --s-strong: var(--ink);
  --s-muted: var(--muted);
  --s-line: var(--line);
  --s-line-soft: var(--line-soft);
  --s-accent: var(--green-700);
  --s-header-bg: rgba(255, 255, 255, .97);
  --s-tag-bg: var(--navy-100);
  --s-tag-ink: var(--navy-900);
  --s-live-bg: var(--green-100);
  --s-live-ink: var(--green-700);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-word: "Archivo", "DM Sans", system-ui, sans-serif;
  --fs-hero: clamp(2.5rem, 5.4vw, 4.6rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.7rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.3rem);
  --fs-lead: clamp(1.1rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --max: 1200px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(1, 26, 64, .06), 0 12px 32px rgba(1, 26, 64, .08);
  --shadow-lg: 0 2px 4px rgba(1, 26, 64, .06), 0 28px 64px rgba(1, 26, 64, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Dark theme (derived from the same palette). Navy sections stay navy. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s-bg: #0a1326; --s-bg-alt: #0f1d3a; --s-surface: #0f1d3a; --s-surface-2: #14264a;
    --s-heading: #ffffff; --s-text: #d5dceb; --s-strong: #ffffff; --s-muted: #a7b3c9;
    --s-line: #22355c; --s-line-soft: #1b2c4f; --s-accent: #8fd37d;
    --s-header-bg: rgba(10, 19, 38, .96);
    --s-tag-bg: #1b2c4f; --s-tag-ink: #c9d5ea; --s-live-bg: #173a1f; --s-live-ink: #8fd37d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --s-bg: #0a1326; --s-bg-alt: #0f1d3a; --s-surface: #0f1d3a; --s-surface-2: #14264a;
  --s-heading: #ffffff; --s-text: #d5dceb; --s-strong: #ffffff; --s-muted: #a7b3c9;
  --s-line: #22355c; --s-line-soft: #1b2c4f; --s-accent: #8fd37d;
  --s-header-bg: rgba(10, 19, 38, .96);
  --s-tag-bg: #1b2c4f; --s-tag-ink: #c9d5ea; --s-live-bg: #173a1f; --s-live-ink: #8fd37d;
  color-scheme: dark;
}

/* ---------- base ---------- */
body.site { margin: 0; background: var(--s-bg); color: var(--s-text); font: 400 var(--fs-body)/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
/* Resets use :where() (zero specificity) so component classes always win. */
:where(.site) *, :where(.site) *::before, :where(.site) *::after { box-sizing: border-box; }
:where(.site) a { color: inherit; }
:where(.site) :where(img, svg) { display: block; max-width: 100%; }
:where(.site) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.site :focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }
.s-skip { position: absolute; left: -9999px; top: 8px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.s-skip:focus { left: 8px; }
.s-wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
html { scroll-behavior: smooth; }
.site section[id] { scroll-margin-top: 88px; }

/* ---------- type ---------- */
.s-eyebrow { font: 600 .75rem/1.5 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--s-accent); margin-bottom: 14px; }
.s-display, .s-h2 { font-family: var(--font-display); font-weight: 300; color: var(--s-heading); font-optical-sizing: auto; }
.s-display { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -.02em; color: #fff; }
.s-h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.015em; max-width: 22ch; margin-bottom: 28px; }
.s-display em, .s-h2 em { font-style: italic; color: var(--s-accent); }
.s-display em { color: var(--green-500); display: block; }
:where(.site) h3 { font: 600 var(--fs-h3)/1.3 var(--font-display); color: var(--s-heading); letter-spacing: -.01em; }
.s-lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 54ch; }
.s-body-lg { font-size: 1.125rem; max-width: 58ch; }
.s-small { font-size: .9rem; color: var(--s-muted); margin-top: 18px; }
.s-center { text-align: center; }

/* ---------- buttons & links ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: var(--radius); font: 700 1rem/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.s-btn--primary { background: var(--green-500); color: var(--navy-950); }
.s-btn--primary:hover { background: var(--green-600); color: var(--navy-950); }
.s-btn--sm { min-height: 40px; padding: 9px 18px; font-size: .9375rem; }
.s-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.s-link--light { color: #fff; }
.s-link--light:hover { color: var(--green-500); }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

/* ---------- header ---------- */
.s-header { position: sticky; top: 0; z-index: 50; background: var(--s-header-bg); border-bottom: 1px solid var(--s-line); backdrop-filter: saturate(1.2) blur(8px); }
.s-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s-heading); }
.s-brand__mark { width: 32px; height: 32px; flex: none; }
.s-brand__word { font: 800 1.4rem/1 var(--font-word); font-stretch: 118%; letter-spacing: .01em; color: inherit; }
.s-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.s-nav a { font-weight: 550; font-size: 1rem; color: var(--s-strong); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); }
.s-nav a:hover { color: var(--s-accent); }
.s-nav .s-nav__signin, .s-nav .s-nav__cta { display: none; }
.s-header__actions { display: flex; align-items: center; gap: 10px; }
.s-header__signin { font-weight: 550; text-decoration: none; color: var(--s-strong); padding: 10px 8px; }
.s-header__signin:hover { color: var(--s-accent); }
.s-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--s-line); background: transparent; color: var(--s-strong); cursor: pointer; padding: 0; }
.s-icon-btn svg { width: 20px; height: 20px; }
.s-icon-btn:hover { border-color: var(--s-accent); color: var(--s-accent); }
.s-menu-btn { display: none; }

/* ---------- sections ---------- */
.s-section { padding: var(--section) 0; }
.s-section--white { background: var(--s-bg); }
.s-section--paper { background: var(--s-bg-alt); }

/* hero */
.s-hero { background: var(--navy-900); color: #fff; padding: clamp(56px, 8vw, 112px) 0; overflow: hidden; position: relative; }
.s-hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(109, 191, 91, .14), transparent); pointer-events: none; }
.s-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.s-hero .s-eyebrow { color: var(--green-500); }
.s-hero .s-lead { margin-top: 24px; }

/* cards & grids */
.s-grid { display: grid; gap: 20px; }
.s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-card { background: var(--s-bg-alt); border: 1px solid var(--s-line-soft); border-radius: var(--radius-lg); padding: 26px 24px; }
.s-section--paper .s-card { background: var(--s-surface); }
.s-card h3 { margin-bottom: 10px; }
.s-card p { color: var(--s-text); }

/* split + numbered */
.s-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.s-numbered { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: n; }
.s-numbered li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; background: var(--s-surface); border: 1px solid var(--s-line-soft); border-radius: var(--radius-lg); padding: 20px 22px; }
.s-numbered li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: #fff; font: 300 1.25rem/1 var(--font-display); }
.s-numbered strong { color: var(--s-heading); font-size: 1.05rem; }
.s-numbered span { color: var(--s-text); }

/* tags */
.s-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--s-tag-bg); color: var(--s-tag-ink); white-space: nowrap; vertical-align: middle; }
.s-tag--live { background: var(--s-live-bg); color: var(--s-live-ink); }
.s-tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-note { color: var(--s-muted); margin: -12px 0 28px; max-width: 70ch; line-height: 2; }

/* capability tiles */
.s-tile { border: 1px solid var(--s-line-soft); border-radius: var(--radius-lg); padding: 22px; background: var(--s-surface); }
.s-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.s-tile p { color: var(--s-text); font-size: 1rem; }
.s-ahead { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--green-500); background: var(--s-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; color: var(--s-text); }
.s-ahead strong { color: var(--s-heading); }

/* media row */
.s-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.s-checks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.s-checks li { position: relative; padding-left: 34px; color: var(--s-strong); font-weight: 500; }
.s-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23011d4a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* steps */
.s-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.s-steps li { position: relative; padding: 24px 20px; border-top: 3px solid var(--green-500); background: var(--s-bg-alt); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.s-steps__n { display: block; font: 300 2.4rem/1 var(--font-display); color: var(--s-accent); margin-bottom: 12px; }
.s-steps h3 { margin-bottom: 8px; }
.s-steps p { font-size: .98rem; }

/* CTA */
.s-cta { background: var(--navy-900); color: #fff; padding: var(--section) 0; text-align: center; }
.s-cta__in { display: flex; flex-direction: column; align-items: center; }
.s-h2--light { color: #fff; margin-left: auto; margin-right: auto; }
.s-h2--light em { color: var(--green-500); }
.s-cta .s-lead { margin: 0 auto; }
.s-soon { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); color: #fff; font-weight: 600; }
.s-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }

/* footer */
.s-footer { background: var(--navy-950); color: #9fb0cb; padding: 56px 0 28px; }
.s-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.s-footer .s-brand__word { color: #fff; font-size: 1.25rem; }
.s-footer__brand p { margin-top: 10px; }
.s-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.s-footer__links a { color: #c9d5ea; text-decoration: none; font-weight: 500; }
.s-footer__links a:hover { color: var(--green-500); }
.s-footer__base { padding-top: 20px; font-size: .875rem; }

/* ---------- illustrative product panels ---------- */
.s-mock { background: #fff; color: #3d3d4e; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(1, 26, 64, .08); font-size: .9375rem; }
.s-mock__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line-soft); }
.s-mock__chrome span { width: 10px; height: 10px; border-radius: 50%; background: #d6d0c6; }
.s-mock__chrome em { margin-left: 10px; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted); }
.s-mock__body { padding: 20px; }
.s-mock__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.s-mock__head strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.s-mock__head small, .s-mock__list small { display: block; color: var(--muted); font-size: .8rem; }
.s-mock__pill { font-size: .75rem; font-weight: 700; background: var(--green-100); color: var(--green-700); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.s-mock__pill--soft { background: var(--navy-100); color: var(--navy-900); }
.s-mock__list { list-style: none; padding: 0; display: grid; gap: 8px; }
.s-mock__list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.s-mock__list strong { color: var(--ink); font-size: .9rem; }
.s-mock__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-size: .75rem; font-weight: 700; }
.s-mock__due { font-size: .75rem; font-weight: 700; color: var(--navy-950); background: var(--green-500); padding: 5px 9px; border-radius: 6px; }
.s-mock__due--soft { background: var(--navy-100); color: var(--navy-900); }
.s-mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.s-mock__stats span { background: var(--paper); border-radius: 8px; padding: 10px; font-size: .75rem; color: var(--muted); }
.s-mock__stats b { display: block; color: var(--navy-900); font-size: .8rem; }
.s-mock__qs { list-style: none; padding: 0; display: grid; gap: 8px; }
.s-mock__qs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--paper); border-radius: 8px; color: var(--ink); font-size: .875rem; }
.s-mock__check { width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23011d4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.s-mock__note { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: .85rem; }
.s-mock__note b { display: block; color: var(--navy-900); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.s-mock__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-mock__chip { font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--green-500); color: var(--navy-950); }
.s-mock__chip--soft { background: var(--navy-100); color: var(--navy-900); }
.s-mock figcaption { padding: 10px 16px; font-size: .75rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line-soft); }
:root[data-theme="dark"] .s-mock { border-color: #22355c; }

/* ---------- responsive ---------- */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  .s-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .s-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-header__signin { display: none; }
}
@media (max-width: 900px) {
  .s-hero__in, .s-split, .s-media { grid-template-columns: minmax(0, 1fr); }
  .s-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-menu-btn { display: inline-grid; }
  .s-header__cta { display: none; }
  .s-header { backdrop-filter: none; }
  .s-nav { display: none; position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--s-bg); border-bottom: 1px solid var(--s-line); box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto; }
  .s-nav a { padding: 14px 4px; border-bottom: 1px solid var(--s-line-soft); border-radius: 0; font-size: 1.05rem; }
  .s-nav .s-nav__signin { display: block; }
  .s-nav .s-nav__cta { display: inline-flex; margin-top: 16px; border-bottom: 0; border-radius: var(--radius); padding: 14px 26px; }
  body.s-nav-open .s-nav { display: flex; }
  .s-hero__visual { max-width: 560px; }
}
@media (max-width: 600px) {
  .s-grid--4, .s-grid--3, .s-steps { grid-template-columns: minmax(0, 1fr); }
  .s-brand__word { font-size: 1.2rem; }
  .s-actions { gap: 16px; }
  .s-actions .s-btn { width: 100%; }
  .s-mock__stats { grid-template-columns: 1fr 1fr; }
  .s-mock__stats span:last-child { display: none; }
  .s-footer__in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site * { transition: none !important; }
}
