/* Opelli marketing page — black / white / one accent, light only. */

@font-face {
  font-family: 'Lexend';
  src: url('lexend.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #101623;
  --ink-soft: #4b5565;
  --muted: #8a93a5;
  --line: #e8ebf1;
  --paper: #ffffff;
  --paper-soft: #f7f8fb;
  --accent: #2e5fe8;
  --accent-soft: #e9eefd;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lexend', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 650; }
h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

.kicker {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker-invert { color: #9db4f5; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-top: 16px; }
.section-sub.center { margin-inline: auto; }
.section-sub.invert { color: #b6bfd0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(46, 95, 232, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); }

/* Hero + the signal curves (site.js animates the three paths) */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-signals {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 520px;
  pointer-events: none;
}
.hero-signals path { fill: none; stroke: var(--accent); }
.hero-signals path:nth-child(1) { stroke-width: 1.4; opacity: 0.10; }
.hero-signals path:nth-child(2) { stroke-width: 2; opacity: 0.15; }
.hero-signals path:nth-child(3) { stroke-width: 2.6; opacity: 0.20; }
.hero-inner { position: relative; text-align: center; }
.hero-sub { color: var(--ink-soft); max-width: 620px; margin: 22px auto 0; font-size: 18px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* Screenshot frames */
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 60px -24px rgba(16, 22, 35, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -24px rgba(16, 22, 35, 0.32); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hero-shot { margin: 64px auto 0; max-width: 980px; will-change: transform; }
.shot-wide { max-width: 980px; margin: 40px auto; }
.shot-dark { border-color: #2a3450; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55); }
.shot-dark .shot-bar { background: #161d30; border-bottom-color: #2a3450; }
.shot-dark .shot-bar i { background: #2a3450; }

/* Wiki showcase: big shot + overlapping editor shot + floating callouts */
.wiki { padding: 110px 0 40px; }
.wiki-stage { position: relative; margin-top: 48px; padding-bottom: 130px; }
.wiki-shot-main { max-width: 880px; }
.wiki-shot-editor {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: min(46%, 470px);
  transform: rotate(1.2deg);
}
.wiki-shot-editor:hover { transform: rotate(0deg) translateY(-4px); }
.callout {
  position: absolute;
  max-width: 230px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(16, 22, 35, 0.5);
}
.callout::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.co-1 { top: 42px; right: 6%; }
.co-2 { top: 46%; left: -8px; }
.co-2::before { left: auto; right: 26px; }
.co-3 { bottom: 46px; right: 40%; }
.wiki .mini-grid { margin-top: 8px; }

/* Module sections */
.mod { padding: 84px 0; }
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.split .split-text { order: 0; }
.split.flip > .split-text { order: 1; }
.split-text > p { color: var(--ink-soft); }
.aside { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Feature ticks (checklist) */
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 15px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Feature chips (compact tag row) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Feature mini-grid (bold lead + one line) */
.mini-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
  margin-top: 36px;
}
.mini-grid li {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.mini-grid b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; font-size: 15px; }

/* Full-width band sections */
.band { background: var(--paper-soft); }
.band-plain { background: var(--paper); }
.band-head { text-align: center; }

/* Time collage: calendar behind, list in front */
.duo { position: relative; padding: 0 0 56px 0; }
.duo-back { max-width: 86%; }
.duo-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  transform: rotate(-1.2deg);
}
.duo-front:hover { transform: rotate(0deg) translateY(-4px); }

/* Band collage: the wide band shot with a smaller detail floating over its
   lower-right corner (Tasks, People) */
.band-duo { position: relative; padding-bottom: 96px; }
.band-duo .shot-wide { max-width: 92%; }
.band-duo-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  transform: rotate(1.1deg);
}
.band-duo-front:hover { transform: rotate(0deg) translateY(-4px); }
/* Tall variant: a portrait public-form page floating beside the wide shot
   (Forms) — narrower so its height stays inside the collage */
.band-duo-front-tall { width: 34%; }

/* Access (dark band) */
.access { background: var(--ink); color: #fff; padding: 96px 0; }
.access h2 { color: #fff; }
.access-body {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.access-list { list-style: none; display: grid; gap: 18px; }
.access-list li { color: #b6bfd0; font-size: 14px; border-left: 2px solid var(--accent); padding-left: 16px; }
.access-list span { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; font-size: 15px; }

/* Details grid */
.details { padding: 84px 0 96px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #cdd6e6; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card code { font-size: 13px; background: var(--paper-soft); padding: 1px 6px; border-radius: 6px; }

/* Vision */
.vision { padding: 40px 0 96px; }

/* Beta */
.beta { padding: 20px 0 110px; }
.beta-inner {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}
.beta-inner > p { color: var(--ink-soft); margin: 12px auto 28px; max-width: 480px; }
.beta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.beta-row input {
  font: inherit;
  font-size: 15.5px;
  padding: 12px 20px;
  border: 1px solid #c6d3f5;
  border-radius: 999px;
  width: min(360px, 100%);
  background: var(--paper);
  color: var(--ink);
}
.beta-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.beta-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.beta-note.error { color: #c2410c; }
.beta-done { font-size: 18px; font-weight: 600; color: var(--accent); }
#companyField { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 16px; }
.footer .brand { font-size: 15px; }
.footer-meta { color: var(--muted); font-size: 13.5px; margin-left: auto; }
.footer-link { color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
.footer-link:hover { color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot, .card, .btn { transition: none; }
}

/* Mobile / narrow */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .mod { padding: 56px 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > .split-text { order: 0; }
  .mini-grid, .grid { grid-template-columns: 1fr; }
  .access-body { grid-template-columns: 1fr; gap: 36px; }
  .hero-cta { flex-wrap: wrap; }
  /* Wiki stage stacks; callouts become plain chips in the flow */
  .wiki-stage { padding-bottom: 0; }
  .wiki-shot-main { max-width: none; }
  .wiki-shot-editor { position: static; width: 100%; margin-top: 20px; transform: none; }
  .callout { position: static; display: block; max-width: none; margin-top: 12px; }
  .callout::before { display: none; }
  .duo { padding-bottom: 0; }
  .duo-back { max-width: none; }
  .duo-front { position: static; width: 100%; margin-top: 20px; transform: none; }
  .band-duo { padding-bottom: 0; }
  .band-duo .shot-wide { max-width: none; }
  .band-duo-front { position: static; width: 100%; margin-top: 20px; transform: none; }
  .band-duo-front-tall { max-width: 340px; margin-left: auto; margin-right: auto; }
}
