/* OneiroIQ marketing site. Tokens mirror the app's DESIGN.md so the site and
   the product read as one system: navy header, cool grey ground, blue primary,
   terracotta only in the logo, IBM Plex Sans throughout. */
:root {
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --fg: #0F172A;
  --muted: #475569;
  --border: #E2E6EC;
  --primary: #1F5FD6;
  --primary-dark: #1A4FB3;
  --accent: #EFF4FF;
  --navy: #0B1B33;
  --navy-2: #12284A;
  --success: #15803D;
  --success-bg: #ECFDF3;
  --warning: #B45309;
  --warning-bg: #FFF7E6;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --brand: #E0926F;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.site-header nav a { color: #C8D3E6; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 600; }
.hero .lead { font-size: 19px; color: #C8D3E6; margin: 0 0 32px; max-width: 30ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats b { display: block; font-size: 28px; font-weight: 600; }
.hero-stats span { font-size: 14px; color: #9FB0CC; }

/* App frame mock */
.frame { background: var(--card); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; color: var(--fg); }
.frame-bar { background: var(--navy); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3D5E; }
.frame-bar .search { margin-left: 16px; flex: 1; max-width: 260px; height: 20px; border-radius: 5px; background: #1A2E4F; }
.frame-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.frame-side { border-right: 1px solid var(--border); padding: 14px 10px; font-size: 12px; color: var(--muted); }
.frame-side div { padding: 6px 8px; border-radius: 6px; display: flex; justify-content: space-between; }
.frame-side .on { background: var(--accent); color: var(--primary-dark); font-weight: 600; }
.frame-side small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 8px 4px; display: block; color: #94A3B8; }
.badge { font-size: 10px; background: var(--warning-bg); color: var(--warning); border-radius: 10px; padding: 0 6px; font-weight: 600; }
.frame-main { background: var(--bg); padding: 16px; display: grid; gap: 12px; align-content: start; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12px; }
.mini-card h4 { margin: 0 0 8px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis .mini-card b { display: block; font-size: 20px; }
.kpis .mini-card span { color: var(--muted); font-size: 11px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.row:first-of-type { border-top: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--success-bg); color: var(--success); }
.pill.wait { background: var(--warning-bg); color: var(--warning); }
.pill.open { background: var(--accent); color: var(--primary-dark); }
.pill.hold { background: var(--danger-bg); color: var(--danger); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 600; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow-step { text-align: center; padding: 0 8px; position: relative; }
.flow-step .dot { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--primary); }
.flow-step::after { content: ""; position: absolute; top: 28px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 2px; background: repeating-linear-gradient(90deg, #B7C6E0 0 6px, transparent 6px 12px); }
.flow-step:last-child::after { display: none; }
.flow-step b { display: block; font-size: 15px; }
.flow-step span { font-size: 13px; color: var(--muted); }

/* Module grid */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.module .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.module h3 { margin: 0 0 8px; font-size: 18px; }
.module p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.module ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.module li { padding: 5px 0 5px 22px; position: relative; }
.module li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); opacity: .55; }

/* Feature band */
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band.alt { background: var(--bg); border: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .split-copy { order: 2; }
.split-copy h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; font-weight: 600; }
.split-copy > p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; }
.checks svg { flex: none; margin-top: 3px; color: var(--success); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--accent); border-radius: 6px; padding: 3px 8px; margin-bottom: 14px; }

/* AI */
.ai { background: var(--navy); color: #fff; }
.ai .section-head p { color: #9FB0CC; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; }
.ai-card h3 { margin: 0 0 8px; font-size: 18px; }
.ai-card p { margin: 0; color: #B6C3D8; font-size: 15px; }

/* Trust strip */
.trust { padding: 40px 0; background: var(--card); border-top: 1px solid var(--border); }
.trust .wrap { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; font-weight: 600; color: var(--muted); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { color: var(--primary); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 600px) {
  .modules, .ai-grid, .two { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .frame-body { grid-template-columns: 1fr; }
  .frame-side { display: none; }
  .hero-stats { gap: 24px; }
  section { padding: 64px 0; }
}
