/* ============================================================
   AskLumo — Design Tokens & Base System
   Warm cream base + ember red-orange primary accent (matches the
   product's new brand) + tweety yellow secondary (ties to "Lumo" = light).
   Plus Jakarta Sans (display, bold/confident)
   + Figtree (body, clean/modern) + JetBrains Mono (mono labels).
   No Tailwind, no icon library — plain CSS, hand-drawn SVG icons.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --color-bg: #FFFAF5;
  --color-bg-alt: #FFF9F4;
  --color-surface: #FFFFFF;
  --color-ink: #171717;
  --color-ink-soft: #56524F;
  --color-ink-faint: #77726F;
  --color-line: #EADFD6;
  --color-line-strong: #DCCFC2;

  --color-accent: #FF3B1F;
  --color-accent-dark: #E92C14;
  --color-accent-soft: #FFF1ED;
  --color-accent-ink: #E92C14;

  --color-yellow: #FFB000;
  --color-yellow-soft: #FFF7DF;
  --color-yellow-ink: #171717;

  --color-peach: #FF7A4D;
  --color-peach-soft: #FFEDE4;
  --color-peach-ink: #B84A22;

  --color-on-accent: #FFFFFF;
  --color-on-dark: #F5F1ED;

  /* RGB triplets — for rgba() mixes that need a variable alpha */
  --rgb-ink: 23, 23, 23;
  --rgb-on-dark: 255, 255, 255;
  --rgb-nav-bg: 255, 250, 245;
  --rgb-footer-bg: 23, 18, 15;

  /* Type */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale — every font-size in the site snaps to one of these */
  --text-3xs: 0.65rem;
  --text-2xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 0.95rem;
  --text-md: 1.1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.3rem;
  --text-2xl: 1.6rem;

  /* Spacing scale */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --radius-btn: 8px;

  /* Shadow — warm-toned (brown), not cold grey/black */
  --shadow-sm: 0 6px 18px rgba(60, 40, 25, 0.05);
  --shadow-md: 0 10px 26px rgba(60, 40, 25, 0.08), 0 3px 8px rgba(60, 40, 25, 0.04);
  --shadow-lg: 0 20px 44px rgba(60, 40, 25, 0.11), 0 6px 14px rgba(60, 40, 25, 0.05);

  /* Motion — every transition/animation duration snaps to one of these.
     900ms orbit-settle stays a literal in the Integrations block: it's
     synced to a matching JS setTimeout(900), not a reusable UI speed. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-mid: 260ms;
  --duration-base: 320ms;
  --duration-slow: 450ms;
  --duration-cinematic: 650ms;

  --container-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink);
}

/* Emphasis marks — C (primary, hero/major headlines) and D (secondary, everywhere else) */
.emph-primary {
  background: var(--color-yellow);
  padding: 0.05em 0.3em;
  border-radius: 0.25em;
  color: var(--color-ink);
  white-space: nowrap;
}
.emph-secondary {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  white-space: nowrap;
}
/* Accent lines next to eyebrow  single-hue fade, solid end sits against the label */
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 72px;
  height: 1.5px;
  background: var(--color-accent-dark);
  opacity: 0.4;
  margin-left: var(--space-2);
}
.section-head.center .eyebrow::before {
  content: "";
  display: inline-block;
  width: 72px;
  height: 1.5px;
  background: var(--color-accent-dark);
  opacity: 0.4;
  margin-right: var(--space-2);
}
.section-head.center .eyebrow::after {
  margin-left: var(--space-2);
}

.section {
  padding: var(--space-9) 0;
}
.section--alt { background: var(--color-bg-alt); }
.section-divider {
  height: 1px;
  background: var(--color-line);
  margin: 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p {
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  margin-top: var(--space-4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn-secondary:hover { border-color: var(--color-line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--rgb-nav-bg), 0.82);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border-bottom: 1px solid rgba(var(--rgb-ink), 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--space-4) + 4px) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-3xs);
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}
.nav-links {
  position: relative;
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-ink-soft);
}
.nav-links a { transition: color var(--duration-fast) var(--ease), font-weight var(--duration-fast) var(--ease); }
.nav-links a:hover { color: var(--color-ink); }
.nav .brand { color: var(--color-ink); }
.nav .nav-links a { color: var(--color-ink-soft); }
.nav .nav-links a:hover, .nav .nav-links a.is-active { color: var(--color-ink); }
.nav .brand small { color: var(--color-ink-faint); }
.brand-lumo { color: var(--color-accent); }
/* Wide letter-spacing contexts (eyebrow) render an extra gap at the span
   boundary between "Ask" and "Lumo" — pull it back so the word stays tight. */
.eyebrow .brand-lumo { margin-left: -0.53em; color: inherit; }
.nav-links a.is-active { color: var(--color-ink); font-weight: 600; }
.nav-underline {
  position: absolute; bottom: -16px; height: 2px;
  background: var(--color-yellow); border-radius: 2px;
  left: 0; width: 0; opacity: 0;
  transition: left var(--duration-base) var(--ease), width var(--duration-base) var(--ease), opacity var(--duration-fast) var(--ease);
}
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle {
  display: none;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: none; background: transparent;
  align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: opacity var(--duration-fast) var(--ease);
}
.nav-toggle:hover { opacity: 0.7; }
.nav-toggle svg { width: 19px; height: 19px; overflow: visible; }
.nav-toggle .nav-toggle-line, .nav-toggle .nav-toggle-x path {
  stroke: var(--color-ink); fill: none; stroke-width: 1.8; stroke-linecap: round;
}
.nav-toggle-bars, .nav-toggle-x {
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.nav-toggle-x {
  opacity: 0; transform: scale(0.6);
  transform-box: view-box; transform-origin: 12px 12px;
}
.nav-toggle.is-open .nav-toggle-bars { opacity: 0; transform: scale(0.6); transform-box: view-box; transform-origin: 12px 12px; }
.nav-toggle.is-open .nav-toggle-x { opacity: 1; transform: scale(1); }
.nav-mobile-panel { display: none; }
.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: var(--color-accent); transition: width 120ms linear;
  border-radius: 0 2px 2px 0;
}
.nav-mobile-panel a.is-active { color: var(--color-accent); font-weight: 600; }

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease), transform var(--duration-base) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Icon */
.icon {
  width: 26px; height: 26px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Stat/mono numbers */
.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.footer {
  background: var(--color-accent-soft);
  color: var(--color-ink);
  padding: var(--space-6) 0 var(--space-5);
}
.footer a { color: var(--color-ink); opacity: 0.7; }
.footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(60,40,25,0.1);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
}
.footer-col a, .footer-col p { display: block; margin-bottom: var(--space-3); font-size: var(--text-base); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* Utilities */
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.visually-hidden { position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding-left: var(--space-4); padding-right: var(--space-4); }
  .nav-cta { gap: var(--space-3); }
  .brand small { display: none; }
  .nav-cta .btn-primary { font-size: var(--text-sm); padding: 0.65rem 1.1rem; }
  .nav-mobile-panel {
    display: block;
    max-height: 0; overflow: hidden;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    transition: max-height var(--duration-base) var(--ease);
  }
  .nav-mobile-panel.is-open { max-height: 80vh; overflow-y: auto; }
  .nav-mobile-panel a {
    display: block; padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-line); font-size: var(--text-base); color: var(--color-ink-soft);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Container side padding was a flat 32px at every width, so a card's own inner padding
     stacked on top of it left content squeezed into a very narrow column on phones. */
  /* Longhand, not shorthand: .nav-inner shares this element via class="container nav-inner",
     and a "padding:" shorthand here would win the cascade (later in source) and zero out
     nav-inner's own top/bottom padding. */
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  /* Match the hero's tightened mobile rhythmspace-9 (112px) top/bottom per section
     was excessive stacked one after another on a single mobile column. */
  .section { padding: var(--space-7) 0; }
}
