/* ================================================================
   Cuelora — Daylight design system
   Shared CSS across all site pages.
   Palette: warm cream, deep ink, coral accent, sage + honey seconds.
   Type: Inter (sans only, no editorial serif).
   ================================================================ */

:root {
  --paper: #fbf8f2;
  --paper-2: #f4f0e6;
  --card: #ffffff;
  --ink: #14110c;
  --ink-soft: #544b3c;
  --ink-dim: #857a66;
  --line: rgba(20, 17, 12, 0.08);
  --line-strong: rgba(20, 17, 12, 0.16);
  --coral: #e15a2a;
  --coral-deep: #bf4113;
  --coral-soft: #fceedb;
  --sage: #2d5f48;
  --sage-soft: #e8eee5;
  --honey: #e5a93a;
  --honey-soft: #faeed0;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-feature-settings: 'zero'; letter-spacing: 0; }

/* --- Layout container --- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

/* --- Display scale --- */
.display-xxl { font-size: clamp(44px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.display-xl  { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.display-lg  { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.display-md  { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-soft); }

/* --- Eyebrows --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--coral); }
.eyebrow-sage  { color: var(--sage); background: var(--sage-soft); }
.eyebrow-sage .dot  { background: var(--sage); }
.eyebrow-honey { color: #9c6f12; background: var(--honey-soft); }
.eyebrow-honey .dot { background: var(--honey); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 14px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer; border: 0;
}
.btn-primary:hover { background: var(--coral); transform: translateY(-1px); }
.btn-coral {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: #fff;
  padding: 14px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: background 180ms ease, transform 180ms ease;
  cursor: pointer; border: 0;
}
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 14px 24px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: border-color 180ms ease;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; padding: 14px 24px;
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: border-color 180ms ease;
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); }
.link-arrow {
  color: var(--coral-deep); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 180ms ease;
}
.link-arrow:hover { gap: 10px; }

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -32px rgba(20, 17, 12, 0.12);
}
.card.sm { border-radius: 14px; }
.card-flat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* --- Feature icon bubbles --- */
.feature-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ico-coral { background: var(--coral-soft); color: var(--coral-deep); }
.ico-sage  { background: var(--sage-soft); color: var(--sage); }
.ico-honey { background: var(--honey-soft); color: #9c6f12; }
.ico-ink   { background: #f0ece3; color: var(--ink); }

/* --- Step circle --- */
.step-num {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}

/* --- Check dot (for feature lists) --- */
.check-dot {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; margin-top: 3px; font-weight: 700;
}
.check-sage { background: var(--sage-soft); color: var(--sage); }

/* --- Patron tablet mockup --- */
.tablet {
  position: relative;
  background: linear-gradient(180deg, #1a1a20 0%, #0f0f14 100%);
  border-radius: 28px;
  padding: 18px;
  box-shadow:
    0 0 0 2px rgba(20,17,12,0.1),
    0 50px 80px -30px rgba(20, 17, 12, 0.30),
    0 20px 40px -20px rgba(225, 90, 42, 0.18);
}
.tablet-screen {
  background: #08080c; border-radius: 16px; padding: 28px 26px;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tablet .screen-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.tablet .cue { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tablet .cue:last-child { border-bottom: 0; }
.tablet .speaker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.15em;
  color: #ff8f5c; text-transform: uppercase; margin-bottom: 3px;
}
.tablet .line { font-size: 17px; line-height: 1.35; color: #fff; font-weight: 500; }
.tablet .line.direction { color: rgba(255,255,255,0.5); font-style: italic; font-weight: 400; }
.tablet .chip { display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.15em; color: rgba(255,255,255,0.55); }
.tablet .chip .dot { width: 6px; height: 6px; border-radius: 999px; background: #34c759; }

/* --- Global header / nav --- */
.topbar {
  background: var(--ink); color: #fff;
  font-size: 14px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.topbar .star { color: var(--honey); }

nav.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
nav.site .brand { display: flex; align-items: center; gap: 12px; }
nav.site .brand img { height: 64px; width: auto; }
nav.site .links { display: none; gap: 32px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
nav.site .links a { position: relative; padding: 6px 0; transition: color 150ms ease; }
nav.site .links a:hover { color: var(--ink); }
nav.site .links a.active { color: var(--ink); }
nav.site .links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--coral); border-radius: 2px;
}
nav.site .cta-group { display: flex; align-items: center; gap: 12px; }
nav.site .signin { font-size: 15px; font-weight: 500; color: var(--ink-soft); display: none; }
@media (min-width: 768px) { nav.site .signin { display: inline; } }
@media (min-width: 1024px) { nav.site .links { display: flex; } }

/* --- Sections --- */
section { padding: 64px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }
section.compact { padding: 48px 0; }
section.sm      { padding: 40px 0; }
section.dark    { background: var(--ink); color: #fff; }
section.dark .lede { color: rgba(255,255,255,0.7); }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.paper-2 { background: var(--paper-2); }

/* --- Section intro --- */
.intro { max-width: 780px; margin-bottom: 48px; }
.intro h2 { margin-bottom: 16px; }
.intro p  { margin: 0; }

/* --- Grid helpers --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; }
}

/* --- Article layout with sidebar TOC --- */
.article-layout { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 260px; gap: 80px; }
}
.article-toc {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 14px;
}
.article-toc h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 16px; }
.article-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a { color: var(--ink-soft); line-height: 1.4; display: block; padding: 4px 0; transition: color 150ms ease; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); margin-right: 10px; color: var(--ink-dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.article-toc a:hover { color: var(--coral-deep); }

/* --- Callout / key takeaways box --- */
.callout {
  background: var(--coral-soft);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 32px 0;
}
.callout h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep); margin: 0 0 12px; }
.callout p { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.callout p:last-child { margin-bottom: 0; }
.callout.sage { background: var(--sage-soft); border-left-color: var(--sage); }
.callout.sage h4 { color: var(--sage); }

/* --- Article meta header (byline / read time / share) --- */
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-dim);
  margin-top: 32px; margin-bottom: 32px;
}
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .author .avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--honey) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.article-meta .author strong { color: var(--ink); font-weight: 600; }
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-dim); }

/* --- Category pill (for buyer / resources filter UI) --- */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 150ms, color 150ms, background 150ms;
}
.pill-link:hover { border-color: var(--ink); color: var(--ink); }
.pill-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Split comparison row --- */
.split-compare { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .split-compare { grid-template-columns: 1fr 1fr; } }

/* --- FAQ item --- */
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.faq-item p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* --- Author bio card (end of article) --- */
.author-bio {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: var(--paper-2);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
  align-items: start;
}
.author-bio .bio-avatar {
  width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--honey) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.author-bio h5 { font-size: 16px; margin: 0 0 6px; color: var(--ink); font-weight: 600; }
.author-bio p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* --- Pricing plan --- */
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--ink); background: var(--ink); color: #fff; }
.plan.featured .plan-price { color: #fff; }
.plan-price { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; color: var(--ink); margin: 0 0 4px; }
.plan-cadence { font-size: 14px; color: var(--ink-dim); margin-bottom: 28px; }
.plan.featured .plan-cadence { color: rgba(255,255,255,0.6); }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; }
.plan li { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; font-size: 14px; }

/* --- Article body (for education pages) --- */
.article-body {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 16px; line-height: 1.2; }
.article-body h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body a:hover { color: var(--coral); }
.article-body blockquote {
  border-left: 3px solid var(--coral);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-size: 20px; font-style: italic; color: var(--ink);
}

/* --- Related links panel --- */
.related {
  background: var(--paper-2);
  border-radius: 20px;
  padding: 32px;
  margin-top: 64px;
}
.related h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); margin: 0 0 16px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.related li:last-child { border: 0; }
.related a { font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.related a:hover { color: var(--coral-deep); }

/* --- Marquee (honest — generic theater types) --- */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); padding: 20px 0; overflow: hidden; }
.roll { display: flex; gap: 56px; animation: roll 50s linear infinite; will-change: transform; }
.roll .row { display: flex; align-items: center; gap: 56px; white-space: nowrap; font-weight: 500; color: var(--ink-dim); padding: 0 28px; font-size: 18px; flex-shrink: 0; }
.roll .row .star { color: var(--coral); }
@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .roll { animation: none; } }

/* --- Dark CTA block --- */
.cta-dark {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 80px 32px;
  text-align: center;
}
@media (min-width: 1024px) { .cta-dark { padding: 112px 48px; } }
.cta-dark h2 { color: #fff; margin: 0 0 20px; }
.cta-dark p  { color: rgba(255,255,255,0.7); margin: 0 auto 32px; max-width: 640px; }
.cta-dark .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-dark .eyebrow { background: rgba(225, 90, 42, 0.15); color: #ff9c6b; margin-bottom: 28px; }
.cta-dark .eyebrow .dot { background: var(--coral); }

/* --- Footer --- */
footer.site {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
footer.site .cols { display: grid; gap: 48px; margin-bottom: 56px; }
@media (min-width: 1024px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
footer.site .brand-col img { height: 72px; margin-bottom: 20px; width: auto; }
footer.site .brand-col p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 320px; margin: 0 0 16px; }
footer.site .brand-col .location { font-size: 14px; color: var(--ink-dim); }
footer.site .col h4 { font-size: 12px; font-weight: 600; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 20px; }
footer.site .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer.site .col a { font-size: 15px; color: var(--ink-soft); transition: color 150ms ease; }
footer.site .col a:hover { color: var(--ink); }
footer.site .legal {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px; color: var(--ink-dim);
}
footer.site .legal .right { display: flex; gap: 24px; }

/* --- Utility --- */
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-ink { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }
.text-ink-dim  { color: var(--ink-dim); }
.text-coral { color: var(--coral); }
.text-coral-deep { color: var(--coral-deep); }
.text-sage { color: var(--sage); }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
