/* =========================================================================
   Onless Pitch Landing — Custom Design Tokens & Utilities
   Based on Onless Pitch Deck visual language (Apple editorial style)
   ========================================================================= */

/* ── Fonts (self-hosted via Google Fonts CDN) ───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design tokens (CSS vars, mirror Tailwind config) ───────────────────── */
:root {
  --ink: #1D1D1F;
  --ink-2: #3A3A3C;
  --muted: #6E6E73;
  --quiet: #C7C7CC;
  --hair: #D2D2D7;
  --paper: #FFFFFF;
  --surface: #F5F5F7;
  --amber: #F5A623;
  --amber-deep: #D98900;
  --live: #30D158;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-feature-settings: "ss01", "cv11";
}

/* ── Typography utilities ───────────────────────────────────────────────── */
.font-display {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
}
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.stat-big { font-feature-settings: "tnum" 1; }

.tracking-tightest { letter-spacing: -0.055em; }
.tracking-dense { letter-spacing: -0.035em; }
.tracking-tight2 { letter-spacing: -0.025em; }
.tracking-tight15 { letter-spacing: -0.015em; }

/* ── Hairline borders (1px exact) ───────────────────────────────────────── */
.hairline { border-color: var(--hair) !important; }
.hairline-t { border-top: 1px solid var(--hair); }
.hairline-b { border-bottom: 1px solid var(--hair); }
.hairline-l { border-left: 1px solid var(--hair); }
.hairline-r { border-right: 1px solid var(--hair); }
.hairline-dark-t { border-top: 1px solid var(--ink); }
.hairline-dark-b { border-bottom: 1px solid var(--ink); }

/* ── Eyebrow (uppercase label with dot) ─────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--amber-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.eyebrow-muted {
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Brand wordmark with amber dot ──────────────────────────────────────────
   Dot is positioned ABOVE the baseline near x-height of the wordmark,
   so it reads as an accent floating above the "s" rather than sitting next
   to it. Em-based sizing keeps the proportion identical at all font sizes. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1;
}
.brand .dot {
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  transform: translateY(-0.38em);
  flex-shrink: 0;
}
.brand-xl { font-size: 84px; letter-spacing: -0.055em; }

/* ── Live badge (pulsing green) ─────────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  background: var(--paper);
}
.live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* ── Amber ring (NOW tag) ───────────────────────────────────────────────── */
.amber-ring {
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.22);
  background: var(--amber);
  border-color: var(--amber) !important;
  animation: pulse-amber 2.5s infinite;
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 160ms ease;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hair);
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
}
.btn-amber:hover {
  background: var(--amber-deep);
  color: var(--paper);
}
.btn-lg { padding: 18px 30px; font-size: 17px; }

/* ── Section styling ────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 768px) {
  .section { padding: 120px 0; }
}
@media (min-width: 1024px) {
  .section { padding: 140px 0; }
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .eyebrow { color: var(--amber); }
.section-dark .eyebrow-muted { color: rgba(255,255,255,0.5); }

.container-pitch {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container-pitch { padding: 0 48px; }
}
@media (min-width: 1280px) {
  .container-pitch { padding: 0 64px; }
}

/* ── Heading scale (fluid, mobile-first) ────────────────────────────────── */
.h-hero {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-size: clamp(44px, 9vw, 120px);
  color: var(--ink);
}
.h-hero .soft { color: var(--muted); font-weight: 300; }
.h-hero .accent { color: var(--amber); }

.h-section {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--ink);
}
.h-section .soft { color: var(--muted); font-weight: 300; }
.h-section .accent { color: var(--amber); }

.h-card {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
}

/* ── Stat styles ────────────────────────────────────────────────────────── */
.stat-big {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 11vw, 132px);
  color: var(--ink);
  white-space: nowrap;
}
.stat-big .unit { color: var(--muted); font-weight: 400; }
.stat-big .accent { color: var(--amber-deep); font-weight: 600; }

/* Massive result stat (e.g. 99%) — dramatic centerpiece */
.stat-mega {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  font-size: clamp(140px, 26vw, 320px);
  white-space: nowrap;
}

/* ── Table (competitors) ────────────────────────────────────────────────── */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}
.comp-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hair);
  vertical-align: bottom;
}
.comp-table th.onless {
  color: var(--ink);
  font-size: 14px;
}
.comp-table th.onless::before {
  content: '●';
  color: var(--amber);
  margin-right: 6px;
  font-size: 10px;
  vertical-align: middle;
}
.comp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-2);
  vertical-align: middle;
  line-height: 1.4;
}
.comp-table td.feature {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.comp-table td.onless {
  color: var(--ink);
  font-weight: 500;
  background: #FFF7E6;
}
.comp-table td.empty {
  color: var(--quiet);
}
.comp-table td.empty::before { content: '—'; }
.comp-table tr:last-child td { border-bottom: 1px solid var(--ink); }

/* ── Animation (fade-in on scroll) ──────────────────────────────────────────
   Progressive enhancement: content is visible by default. Once JS marks
   <html> with .js-anim, elements fade in on scroll via IntersectionObserver.
   This keeps the page accessible to screen readers, search engines, and
   users with JS disabled. */
.js-anim .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
}
.js-anim .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .fade-in { opacity: 1; transform: none; transition: none; }
  .live-badge::before { animation: none; }
  .amber-ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
.mobile-nav-open body { overflow: hidden; }
#mobile-menu {
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* ── Focus states (a11y) ────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Team portrait treatment ────────────────────────────────────────────── */
.portrait {
  background-size: cover;
  background-position: center top;
  filter: grayscale(0.1) contrast(1.02);
  background-color: var(--surface);
}
.portrait-founder {
  filter: grayscale(0.05) contrast(1.05);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

/* ── Utility: allocation bar ───────────────────────────────────────────── */
.alloc-bar {
  height: 3px;
  background: var(--hair);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.alloc-bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--ink);
  border-radius: 2px;
  transition: width 900ms cubic-bezier(.2,.8,.2,1);
}
.alloc-bar.primary > span { background: var(--amber); }

/* ── Country code badge (ISO 2-letter) ──────────────────────────────────── */
.cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  opacity: 0.55;
  border-radius: 2px;
  margin-right: 8px;
  min-width: 28px;
  vertical-align: 2px;
  line-height: 1.1;
  white-space: nowrap;
}
.cc-solid {
  opacity: 1;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── Inline icon sizing ─────────────────────────────────────────────────── */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}

/* ── Market chip / pill ────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.005em;
}
.chip-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip-amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  font-weight: 600;
}

/* ── Competitor table horizontal scroll on mobile ───────────────────────── */
.scroll-x-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-x-wrap table { min-width: 720px; }

/* ── Competitor blur (respectful fog effect) ──────────────────────────────
   Competitor column cells are intentionally rendered as illegible blobs
   via transparent text + heavy text-shadow + filter blur. The text is
   present in the DOM but visually unreadable — copy/select also disabled. */
.comp-blur {
  color: transparent !important;
  text-shadow: 0 0 10px rgba(60, 60, 67, 0.62);
  filter: blur(2px);
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.05em;
}
.comp-blur::selection { background: transparent; color: transparent; }
.comp-table th.comp-blur,
.comp-table td.comp-blur {
  background: var(--surface);
}
.comp-table th.comp-blur {
  text-shadow: 0 0 11px rgba(29, 29, 31, 0.72);
}
