/* Sixera Equity Insights - one stylesheet for the whole site (D26).
   Look (SKP 15 Nov 2026, "like equisense.ai"): light off-white page, emerald-green accent,
   bold rounded headings (Lexend), two-tone headline, pill badges, large soft cards,
   text-beside-card sections. Dark theme on the moon button (html[data-theme="dark"]).
   Colours live in variables, so a theme only changes the variables. Fonts are served from
   our own server (SIL Open Font License: fonts/OFL-Inter.txt, fonts/OFL-Lexend.txt). */

/* ---------- Fonts: Lexend for headings, Inter for text and numbers ---------- */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lexend-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/lexend-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Colours and sizes ---------- */
:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: #e6e9ef;
  --grid-line: rgba(26, 29, 38, 0.05);
  --text: #1a1d26;
  --text-2: #424a57;
  --muted: #6b7280;
  --accent: #059669;
  --accent-strong: #047857;
  --accent-soft: #e7f6f0;
  --accent-ring: rgba(5, 150, 105, 0.18);
  --good: #059669;
  --bad: #dc2626;
  --neutral: #9ca3af;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -16px rgba(16, 24, 40, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --font-head: "Lexend", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #12171e;
  --surface-2: #19202a;
  --border: #252d39;
  --grid-line: rgba(255, 255, 255, 0.04);
  --text: #eef1f5;
  --text-2: #c3cad4;
  --muted: #8a94a3;
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-ring: rgba(52, 211, 153, 0.22);
  --good: #34d399;
  --bad: #f87171;
  --neutral: #6b7280;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--text); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration: none; }
html[data-theme="dark"] a { color: var(--accent); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hl { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand-product { font-family: var(--font-head); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-family: var(--font-head); color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
html[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--accent); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ---------- Buttons, pills, chips ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: #ffffff; box-shadow: 0 6px 16px -8px var(--accent);
}
html[data-theme="dark"] .button { color: #06281d; }
.button:hover { text-decoration: none; background: var(--accent-strong); border-color: var(--accent-strong); }
.button-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
html[data-theme="dark"] .button-ghost { color: var(--text); }
.button-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-ring);
}
html[data-theme="dark"] .pill { color: var(--accent); }
.pill strong { font-weight: 700; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 28px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.chips svg { color: var(--accent); flex: none; }

/* Status dots (a soft ring around a solid dot) */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--neutral) 22%, transparent); }
.dot-good { background: var(--good); box-shadow: 0 0 0 3px var(--accent-ring); }
.dot-bad { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }

/* ---------- Main ---------- */
#main { padding-bottom: 72px; }
.section { padding-top: 88px; }
.section-center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { margin-bottom: 16px; }
.lead { font-size: 1.08rem; color: var(--text-2); margin-top: 18px; max-width: 62ch; text-wrap: pretty; }

/* Hero: centred, on a faint grid that fades out at the edges */
.hero { position: relative; text-align: center; padding: 84px 0 8px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 30%, transparent 75%);
}
.hero .pill { margin-bottom: 26px; }
.hero h1 { max-width: 16ch; margin: 0 auto; }
.hero h1 .line { display: block; }
.hero .lead { margin: 22px auto 0; font-size: 1.15rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Text beside a card */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.split-reverse .split-text { order: 2; }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.features li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 0.95rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.features strong { display: block; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.83rem; color: var(--muted); }
.tag { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Stat tiles inside a card */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.stat-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { margin-top: 4px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.stat-note { margin-top: 2px; font-size: 0.78rem; color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.step-no { font-family: var(--font-head); font-size: 0.9rem; font-weight: 800; color: var(--accent); letter-spacing: 0.04em; }
.step h3 { margin-top: 10px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 0.92rem; }

/* Methods: definition cards with a formula chip */
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.method { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.method h3 { font-size: 1rem; }
.method p { margin-top: 6px; color: var(--text-2); font-size: 0.92rem; }
.formula {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.82rem;
  padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong);
}
html[data-theme="dark"] .formula { color: var(--accent); }

/* Notices and message pages */
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--bad); border-radius: var(--radius); padding: 16px 20px; }
.message-page { max-width: 640px; margin: 0 auto; padding: 96px 0 24px; text-align: center; }
.message-page .lead { margin: 18px auto 0; }
.message-page .button { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.88rem; max-width: 38ch; }
.footer-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 0.9rem; }
.footer-col li { color: var(--text-2); }
.footer-col a { color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.data-stamp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-2); }
.data-stamp .sep { color: var(--muted); }
.disclaimer, .credits { font-size: 0.8rem; color: var(--muted); }

/* ---------- Tablets and phones ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-text { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-row { height: auto; flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px; }
  .brand { flex: 1; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -4px; }
  .hero { padding-top: 48px; }
  .hero .pill { font-size: 0.74rem; padding: 6px 12px; }
  .section { padding-top: 64px; }
  .steps, .methods { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.2rem; }
  .card { padding: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
