/* Local @font-face entries are offline fallbacks only; Google Fonts (same as coachrevy.info) wins when online. */
/* Coach Revy corporate wellness page. Tokens from https://coachrevy.info/brand-guide (dark theme). */
@font-face { font-family: "Orbitron Local"; src: url("fonts/Orbitron-variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani Local"; src: url("fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani Local"; src: url("fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --primary: #00FFFF;
  --bg: #090B0F;
  --fg: #F8FAFB;
  --card: #111418;
  --secondary: #1F242B;
  --muted: #9BA3AF;
  --border: #2A3038;
  --glow: rgba(0, 255, 255, 0.35);
  --logo-h: 44px;              /* lockup height; clear space = icon height = lockup height */
  --radius: 12px;
  --maxw: 1160px;
  --title: "Rajdhani", "Rajdhani Local", "Roboto", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --slogan: "Orbitron", "Orbitron Local", "Rajdhani", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  background-image:
    linear-gradient(rgba(0,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header: lockup top-left with clear space equal to icon height */
.site-header {
  position: relative; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: calc(var(--maxw) + 48px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: var(--logo-h) var(--logo-h);   /* clear space = icon height on all sides of the lockup */
}
.lockup { display: block; flex: none; margin-right: var(--logo-h); }
.lockup img { height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.navlink { color: var(--muted); text-decoration: none; font-family: var(--title); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a.navlink:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--title); font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--primary); transition: box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { box-shadow: 0 0 24px var(--glow); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(0,255,255,0.08); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

.eyebrow { font-family: var(--title); font-weight: 600; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.1; margin: 0; color: var(--fg); }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 24px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 8px; }
.muted { color: var(--muted); }
sup a { text-decoration: none; font-size: 0.75em; padding: 0 1px; }

section { padding: 88px 0; }
section + section { border-top: 1px solid rgba(42,48,56,0.6); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.sub { color: #C9D0D8; font-size: 19px; margin: 20px 0 28px; max-width: 600px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.slogan { font-family: var(--slogan); font-weight: 700; letter-spacing: 0.12em; font-size: 15px; color: var(--fg); margin-top: 32px; white-space: nowrap; }
.slogan .verb { color: var(--primary); text-shadow: 0 0 12px var(--glow); }
.slogan .stack { display: none; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.hook {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: 24px 28px;
}
.hook .big { font-family: var(--title); font-weight: 700; font-size: 72px; line-height: 1; color: var(--primary); text-shadow: 0 0 18px var(--glow); }
.hook p { margin: 0 0 6px; }
.hook p + p { color: var(--muted); }

/* Pillars */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.pillar h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pillar .icon { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(0,255,255,0.4); display: grid; place-items: center; color: var(--primary); flex: none; }
.pillar .icon svg { width: 20px; height: 20px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 22px; margin: 7px 0; color: #D7DCE2; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 8px var(--glow); }
.soon { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-family: var(--title); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); background: var(--secondary); border-radius: 999px; padding: 2px 10px; margin-right: 8px; vertical-align: 1px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* Included */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.mini h3 { font-size: 20px; margin-bottom: 6px; }
.mini p { margin: 0; color: var(--muted); font-size: 15px; }
.mini.soon-card { border-style: dashed; }

/* Add-ons */
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }

/* Compare table */
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
table.compare th { font-family: var(--title); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--secondary); }
table.compare td:first-child { font-weight: 500; color: var(--fg); width: 24%; }
table.compare td:last-child { white-space: nowrap; color: #D7DCE2; }
table.compare tr.us td { background: rgba(0,255,255,0.06); border-bottom: none; }
table.compare tr.us td:first-child { color: var(--primary); font-family: var(--title); font-weight: 700; font-size: 18px; }
table.compare tr.us td:last-child { color: var(--primary); font-weight: 500; white-space: normal; }

/* ROI */
.roi { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; margin-top: 36px; align-items: start; }
.roi fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 18px 20px 6px; margin: 0 0 16px; min-width: 0; }
.roi legend { font-family: var(--title); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; color: var(--primary); padding: 0 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field .inp { display: flex; align-items: center; background: var(--secondary); border: 1px solid var(--border); border-radius: 8px; }
.field .inp:focus-within { border-color: var(--primary); }
.field .inp span { color: var(--muted); padding: 0 10px; font-size: 15px; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font: 500 17px var(--body); padding: 10px 12px; }
.field input:focus { outline: none; }
.field .help { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.45; }
.scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.scenarios button { font: 600 14px var(--title); letter-spacing: 0.04em; color: var(--muted); background: var(--secondary); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.scenarios button[aria-pressed="true"] { color: #000; background: var(--primary); border-color: var(--primary); }
.results { position: sticky; top: 24px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.res .k { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.res .v { font-family: var(--title); font-weight: 700; font-size: 30px; line-height: 1.15; margin-top: 2px; color: var(--fg); font-variant-numeric: tabular-nums; }
.res .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.res.wide { grid-column: span 2; }
.res.hl { border-color: rgba(0,255,255,0.55); box-shadow: 0 0 0 1px rgba(0,255,255,0.15) inset; }
.res.hl .v { color: var(--primary); }
#out-net-card[data-sign="neg"] .v { color: #FF8A8A; }
.reset { margin-top: 12px; background: none; border: 0; color: var(--muted); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; padding: 0; }
details.math { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
details.math summary { cursor: pointer; font-family: var(--title); font-weight: 700; letter-spacing: 0.06em; color: var(--fg); }
details.math dl { margin: 12px 0 4px; font-size: 14px; }
details.math dt { color: var(--muted); margin-top: 10px; }
details.math dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; word-break: break-word; }

/* Team */
.team-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); margin-bottom: 14px; }
.team-card .avatar svg { width: 26px; height: 26px; }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(0,255,255,0.35); border-radius: 16px; overflow: hidden; background: var(--card); }
.cta-box .copy { padding: 44px; }
.cta-box img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* Sources */
.sources ol { padding-left: 22px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.sources li { margin: 8px 0; }
.sources li a { word-break: break-word; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .roi { grid-template-columns: 1fr; }
  .results { position: static; }
  .nav a.navlink { display: none; }
}
@media (max-width: 760px) {
  :root { --logo-h: 34px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero p.sub { font-size: 17px; }
  .slogan { white-space: normal; font-size: 14px; }
  .slogan .line { display: none; }
  .slogan .stack { display: block; line-height: 1.5; }
  .hook { grid-template-columns: 1fr; gap: 10px; padding: 20px; margin-top: 36px; }
  .hook .big { font-size: 56px; }
  .grid-2, .addons { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .copy { padding: 28px 22px; }
  .cta-box img { min-height: 200px; max-height: 240px; }
  .res .v { font-size: 26px; }
  .btn-sm { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 400px) {
  .res-grid { grid-template-columns: 1fr; }
  .res.wide { grid-column: auto; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 440px) { .header-cta { display: none; } }
@media (max-width: 760px) {
  .table-wrap { border: 0; overflow: visible; }
  table.compare { min-width: 0; background: transparent; }
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare td { display: block; width: 100%; }
  table.compare tr { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  table.compare td { border: 0; padding: 6px 18px; white-space: normal !important; }
  table.compare td:first-child { width: 100%; font-family: var(--title); font-weight: 700; font-size: 19px; padding-top: 12px; }
  table.compare td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--title); font-weight: 600; }
  table.compare tr.us { border-color: rgba(0,255,255,0.45); }
  table.compare tr.us td { background: transparent; }
  table.compare tr:last-child td:last-child { padding-bottom: 14px; }
}
