/* Call Copilot — landing page styles. Granola-minimalism aesthetic, mobile-first.
   ic-cdp-stress round 24: palette now matches the in-app IC dark glass theme so
   the user sees a unified brand from "land on copilot.oasistc.com" → "click Sign in"
   → "see /app/login". Tokens here mirror client/src/index.css :root --ic-* values. */

:root {
  --surface-0: #16171a;                    /* IC bg (was #060a13 v1 navy) */
  --surface-1: rgba(20, 20, 22, 0.55);     /* IC glass card */
  --surface-2: rgba(255, 255, 255, 0.04);  /* IC subtle elevation */
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);     /* IC border */
  --border-strong: rgba(255, 255, 255, 0.25);

  --text-1: rgba(255, 255, 255, 0.95);     /* IC primary text */
  --text-2: rgba(255, 255, 255, 0.85);
  --text-3: rgba(255, 255, 255, 0.70);     /* IC muted */
  --text-4: rgba(255, 255, 255, 0.50);     /* IC faint */

  --accent: #c9a962;                       /* IC gold (was #00d4aa teal) */
  --accent-2: #b89952;
  --accent-glow: rgba(201, 169, 98, 0.30);
  --warn: #fbbf24;
  --danger: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(at 20% 0%, rgba(201, 169, 98, 0.06), transparent 50%),
    radial-gradient(at 80% 100%, rgba(201, 169, 98, 0.04), transparent 50%);
  min-height: 100vh;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

a { color: var(--text-2); text-decoration: none; }
a:hover { color: var(--text-1); }

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 19, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-1); font-weight: 600; }
.brand-orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e6c870, var(--accent) 70%);
  box-shadow: 0 0 14px var(--accent-glow);
}
.brand-orb-sm { width: 10px; height: 10px; }
.brand-name { font-size: 17px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14.5px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #1c1814;
  box-shadow: 0 8px 28px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 12px 32px -10px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero { padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero-inner { max-width: 880px; margin: 0 auto; }

.hero-orb-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.hero-orb {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6c870, var(--accent) 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 8px rgba(201, 169, 98, 0.08),
    0 0 0 24px rgba(201, 169, 98, 0.04),
    0 20px 60px -10px var(--accent-glow);
  animation: orb-pulse 2.6s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(201, 169, 98, 0.08), 0 0 0 24px rgba(201, 169, 98, 0.04), 0 20px 60px -10px var(--accent-glow); }
  50% { box-shadow: 0 0 0 12px rgba(201, 169, 98, 0.12), 0 0 0 32px rgba(201, 169, 98, 0.06), 0 24px 72px -10px var(--accent-glow); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }

/* ─── DEMO FRAME ─────────────────────────────────────────── */
.demo { padding: 30px 0 100px; }
.demo-frame {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.08), rgba(201, 169, 98, 0.02));
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid var(--border);
}
.demo-window {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.5);
}
.demo-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.demo-title { margin-left: 12px; font-size: 13px; color: var(--text-3); font-weight: 500; }

.demo-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 360px; }
.demo-pane { padding: 24px; }
.demo-pane-left { border-right: 1px solid var(--border); }
.demo-section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--text-4); margin-bottom: 16px; }

.demo-line { margin-bottom: 14px; display: flex; gap: 10px; opacity: 0.7; }
.demo-line-active { opacity: 1; }
.speaker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 4px; height: 22px; line-height: 18px;
  flex-shrink: 0; margin-top: 2px;
}
.speaker-them { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.speaker-you { background: rgba(201, 169, 98, 0.16); color: var(--accent); }
.speech { font-size: 14.5px; color: var(--text-1); line-height: 1.5; }

.demo-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 2px solid var(--accent);
}
.demo-card-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 6px; }
.demo-card-text { font-size: 13.5px; color: var(--text-1); line-height: 1.5; }
.demo-caption { text-align: center; color: var(--text-3); margin-top: 24px; font-size: 14px; }

/* ─── FEATURES ───────────────────────────────────────────── */
.features { padding: 120px 0; }
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.1;
}
.section-sub { text-align: center; color: var(--text-3); margin-bottom: 56px; font-size: 16.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.feature {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); margin: 0; font-size: 14.5px; line-height: 1.65; }
.feature em { color: var(--accent); font-style: italic; }

.feature-grid-secondary { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.feature-sm { padding: 22px; }
.feature-sm h4 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.feature-sm p { font-size: 13.5px; line-height: 1.55; }

/* ─── COMPARE ────────────────────────────────────────────── */
.compare { padding: 100px 0; background: linear-gradient(180deg, transparent, var(--surface-1)); }
.compare-table { overflow-x: auto; margin-top: 50px; }
.compare-table table {
  width: 100%; min-width: 640px;
  border-collapse: separate; border-spacing: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th { color: var(--text-3); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); }
.compare-table th:nth-child(2) { color: var(--accent); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { color: var(--text-3); font-weight: 500; }
.compare-table td.yes { color: var(--text-1); font-weight: 600; }
.compare-table td.yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.compare-table td.no { color: var(--text-4); }
.compare-table td.no::before { content: "✗ "; color: var(--danger); opacity: 0.6; }
.compare-table td.partial { color: var(--text-3); }
.compare-table td.partial::before { content: "~ "; color: var(--warn); }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing { padding: 120px 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.plan {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex; flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.06), var(--surface-1));
  transform: scale(1.03);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1c1814;
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.plan-name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.plan-price { margin-bottom: 22px; display: flex; align-items: baseline; gap: 6px; }
.amount { font-family: var(--font-serif); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.cycle { color: var(--text-3); font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex-grow: 1; }
.plan-features li {
  padding: 7px 0; padding-left: 22px; position: relative; font-size: 14px; color: var(--text-2); line-height: 1.45;
}
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.plan-trial-note { color: var(--text-4); font-size: 12px; text-align: center; margin-top: 10px; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { padding: 100px 0; background: linear-gradient(180deg, var(--surface-1), transparent); }
.faq details {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  font-weight: 600; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); margin: 14px 0 4px; font-size: 14.5px; line-height: 1.65; }

/* ─── BIG CTA ────────────────────────────────────────────── */
.big-cta { padding: 100px 0; text-align: center; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--border); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-3); font-size: 14px; }
.footer-col a:hover { color: var(--text-1); }
.footer-heading { color: var(--text-1); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.footer-tag { color: var(--text-3); font-size: 14px; margin: 4px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; color: var(--text-4); font-size: 13px; gap: 20px; flex-wrap: wrap; }

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .feature-grid, .feature-grid-secondary, .plans { grid-template-columns: 1fr; }
  .feature-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: none; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-pane-left { border-right: 0; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 50px; }
  .demo { padding: 20px 0 60px; }
  .demo-frame { padding: 14px; border-radius: var(--radius-lg); }
}
