/* Shared styles for the static marketing pages (/mac-ai-agent, /pricing, …).
   Tokens mirror src/index.css so these pages match the app. */

:root {
  --bg: #0c0c0d;
  --bg-elev: #111113;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #ededee;
  --text-2: #a3a3a8;
  --text-3: #6f6f76;
  --accent: #e3b158;
  --accent-hover: #edc174;
  --accent-ink: #1a1306;
  --accent-text: #e9bd6c;
  --accent-soft: rgba(227, 177, 88, 0.11);
  --accent-line: rgba(227, 177, 88, 0.32);
  --success: #45c98d;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --page-w: 1080px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6f3;
    --bg-elev: #f0eee9;
    --surface: #ffffff;
    --surface-2: #f3f1ec;
    --border: rgba(28, 24, 16, 0.08);
    --border-strong: rgba(28, 24, 16, 0.14);
    --text: #1c1b19;
    --text-2: #5e5c57;
    --text-3: #918e87;
    --accent: #b9852c;
    --accent-hover: #a5741f;
    --accent-ink: #ffffff;
    --accent-text: #996511;
    --accent-soft: rgba(185, 133, 44, 0.1);
    --accent-line: rgba(185, 133, 44, 0.32);
    --success: #1f9d64;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
code { font-family: var(--font-mono); font-size: 0.88em; }
.card a, .faq a { color: var(--accent-text); }

.wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); }
.header-cta { flex-shrink: 0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 14.5px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-size { color: inherit; opacity: 0.6; font-weight: 400; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.hero h1 { margin: 0 auto; max-width: 780px; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero .lede { margin: 20px auto 0; max-width: 620px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.hero .fine { margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.section-head p { margin: 12px 0 0; color: var(--text-2); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Example prompts, styled like messages to the agent */
.prompts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  font-size: 15px;
}
.prompt::before { content: '›'; color: var(--accent-text); font: 500 16px/1.45 var(--font-mono); }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; color: var(--accent-text); font: 400 28px/1 var(--font-serif); }
.steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* Sample research answer */
.sample {
  max-width: 760px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.sample .q { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-weight: 500; }
.sample h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sample p, .sample li { color: var(--text-2); font-size: 15px; }
.sample ol { margin: 0; padding-left: 20px; }
.sample li { margin: 4px 0; }
.sample li span { color: var(--accent-text); }
.sample-note { margin-top: 12px; color: var(--text-3); font-size: 13px; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.plan h2 { margin: 0; font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.plan .plan-desc { margin: 4px 0 18px; color: var(--text-2); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.price strong { font: 400 46px/1 var(--font-serif); letter-spacing: -0.02em; }
.price span { color: var(--text-3); font-size: 14px; }
.plan ul { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; }
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plans-note { margin: 20px 0 0; color: var(--text-3); font-size: 13px; text-align: center; }

/* ── Downloads ──────────────────────────────────────────────────────────── */
.apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-bottom: 72px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.app a:not(.btn) { color: var(--accent-text); }
.app { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.app h2 { margin: 0 0 6px; font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.app .app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.app .app-note { margin-top: 12px; color: var(--text-3); font-size: 13px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* ── Closing call to action ─────────────────────────────────────────────── */
.cta-band {
  margin: 24px 0 72px;
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%), var(--bg-elev);
  text-align: center;
}
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.cta-band p { margin: 12px auto 24px; max-width: 520px; color: var(--text-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  /* Brand and button on the first row, nav on its own scrollable row below */
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 6px; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; width: calc(100% + 20px); margin: 0 -10px; padding-bottom: 6px; }
  .site-nav a { padding: 6px 10px; font-size: 13.5px; }
  .nav-extra { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero .lede { font-size: 16.5px; }
  section { padding: 40px 0; }
}
