/* Jelista Strategies Inc. — corporate site stylesheet.
   Related to Marivo's brand (Inter, slate neutrals, navy banner, 8–12px radii)
   with Jelista's own deeper navy, teal accent and navy-to-teal gradient. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }

:root {
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --subtle: #5E6B80;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  --accent: #0F766E;
  --accent-hover: #0B5F59;
  --accent-soft: #E3F3F1;
  --accent-ink: #FFFFFF;
  --link: #0F766E;

  --navy: #1B2A4E;
  --banner: #0F1B33;
  --banner-ink: #FFFFFF;
  --banner-muted: #B8C2DB;
  --banner-line: #27365A;
  --banner-accent: #7EDBD0;

  --grid-line: rgba(15, 23, 42, 0.07);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-tile: 0 18px 40px rgba(15, 27, 51, 0.22);

  --radius-control: 6px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --container: 70rem;
  --measure: 42rem;
  --gutter: 1rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --surface: #121A2C;
    --surface-2: #161F34;
    --ink: #E6EAF2;
    --ink-2: #C5CDDC;
    --muted: #A3AEC2;
    --subtle: #8B97AD;
    --line: #243049;
    --line-strong: #33415C;

    --accent: #4FD1C1;
    --accent-hover: #6EDCCF;
    --accent-soft: #10302E;
    --accent-ink: #061A18;
    --link: #7EDBD0;

    --banner: #0B1120;
    --banner-line: #243049;

    --grid-line: rgba(255, 255, 255, 0.055);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-tile: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

p + p { margin-top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); color: var(--ink); padding: 0.5rem 0.75rem; border-radius: var(--radius-control); box-shadow: var(--shadow-lift); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--subtle);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--navy), var(--accent)); flex: none; }

.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: var(--measure); }
.muted { color: var(--muted); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

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

.site-header { background: var(--banner); color: var(--banner-ink); border-bottom: 1px solid var(--banner-line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.brand .mark { width: 1.75rem; height: 1.75rem; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark-sub { font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; color: var(--banner-muted); }
.site-header :focus-visible { outline-color: var(--banner-accent); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav a { color: var(--banner-muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 1.35rem 0; display: inline-block; position: relative; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--banner-ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--banner-accent); }
@media (max-width: 30rem) { .site-header .wordmark-sub { display: none; } .site-nav ul { gap: 1.25rem; } }

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

.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); background: var(--bg); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin: 1rem 0 1.25rem; max-width: 16ch; }
.hero .lede { max-width: 36rem; }

.hero-art { position: relative; height: 15rem; max-width: 24rem; margin: 0 auto; width: 100%; }
.tile {
  position: absolute;
  border-radius: var(--radius-lg);
  width: 58%;
  aspect-ratio: 1;
  box-shadow: var(--shadow-tile);
}
.tile-1 { left: 4%; bottom: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%); display: grid; place-items: center; }
.tile-2 { left: 24%; bottom: 14%; background: linear-gradient(135deg, #2E4374 0%, #2A9D93 100%); opacity: 0.75; }
.tile-3 { left: 44%; bottom: 28%; background: linear-gradient(135deg, #4A5F93 0%, #5FC2B8 100%); opacity: 0.45; }
.tile-mark { width: 46%; height: 46%; }

@media (prefers-color-scheme: dark) {
  .tile-1 { background: linear-gradient(135deg, #2E4374 0%, #1B9A8E 100%); }
}

@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
  .hero-art { height: 22rem; max-width: none; margin: 0; }
}

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

.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tint + .band-tint { border-top: 0; }
.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head h2 { margin: 0.9rem 0 0.75rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.page-head h1 { margin: 0.9rem 0 1rem; max-width: 20ch; }
.page-head + .band { padding-top: clamp(2rem, 4vw, 3rem); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.cards > * { min-width: 0; }
@media (min-width: 40rem) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.card h2, .card h3 { margin-bottom: 0.5rem; }
.card h2 { font-size: 1.375rem; }
.card p { color: var(--muted); }
.card-index { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.card-product { overflow: hidden; }
.card-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--accent)); }
.card-product .card-link { margin-top: 1rem; }
.card-product .card-link a { font-weight: 600; text-decoration: none; }
.card-product .card-link a::after { content: " \2197"; }
.card-product .card-link a:hover { text-decoration: underline; }
.card-ghost { background: transparent; border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.card-ghost h2, .card-ghost h3 { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .card-ghost:hover { transform: none; box-shadow: none; }
}

.split { display: grid; gap: 1.5rem 4rem; }
.split h2 { margin-top: 0.9rem; }
.split-body { max-width: var(--measure); color: var(--ink-2); }
@media (min-width: 48rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } }

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

.facts { display: grid; gap: 1.25rem; }
.facts dt { font-weight: 600; margin-bottom: 0.35rem; }
.facts dd { color: var(--muted); }
.facts dd a { font-weight: 500; }

/* ---------- Legal pages ---------- */

.legal { max-width: var(--measure); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.legal h1 { margin-bottom: 0.75rem; }
.legal h1 + .muted { margin-bottom: 2rem; }
.legal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { margin: 1.5rem 0 0.35rem; font-size: 1.0625rem; }
.legal p, .legal ul, .legal table { margin-bottom: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-card); padding: 1.25rem 1.5rem 0.5rem; margin: 0 0 2rem; box-shadow: var(--shadow-card); }
.legal .summary h2 { border-top: 0; margin: 0 0 0.75rem; padding-top: 0; font-size: 1.125rem; }
.legal .summary ul { margin-bottom: 0.75rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); }

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

.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.brand-footer { color: var(--ink); }
.brand-footer .wordmark-sub { color: var(--muted); }
.footer-tagline { margin-top: 1rem; max-width: 30ch; }
.footer-heading { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--subtle); }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
