/* ── Claros design tokens ─────────────────────────────────────────
   Light, warm-neutral foundation with an orange + black identity.
   Shared by landing.css and app.css. */

:root {
  /* Light surfaces */
  --bg: #f8f5ef;                 /* warm off-white body */
  --bg-tint: #f3ece1;            /* pale orange-tinted band */
  --bg-blue: #f1ece5;            /* neutral warm band */
  --surface: #ffffff;
  --surface-soft: #fcf8f2;
  --border: #e7ddd0;
  --border-strong: #d2c4b3;

  /* Ink */
  --ink: #17120d;
  --ink-soft: #3a2f25;
  --muted: #635546;

  /* Accent: signal orange, used sparingly */
  --iris: #f97316;
  --iris-deep: #c2410c;
  --iris-soft: #fff0e3;
  --iris-line: #f4bb8d;

  /* Dark counterpoint (voice console, dark landing band) */
  --dark-bg: #0f0d0b;
  --dark-surface: #1a1511;
  --dark-raised: #241d17;
  --dark-border: rgba(255, 230, 206, 0.14);
  --dark-text: #f8efe4;
  --dark-muted: #d4c0a9;
  --dark-subtle: #a79077;

  /* Semantic states */
  --success: #0f7a45;
  --success-soft: #e4f8ec;
  --success-line: #aee3c3;
  --success-bright: #67e2a5;    /* on dark */
  --warn: #92400e;
  --warn-soft: #ffeddc;
  --warn-line: #f5c79d;
  --warn-bright: #ffb367;       /* on dark */
  --error: #a91e3c;
  --error-soft: #fceaee;
  --error-line: #f0bcc9;
  --error-bright: #ff8fa5;      /* on dark */
  --info-bright: #ffc078;       /* on dark */

  /* Type */
  --font-sans: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI",
    Seravek, Frutiger, system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-soft: 0 1px 2px rgba(23, 18, 13, 0.06), 0 8px 24px rgba(23, 18, 13, 0.08);
  --shadow-mid: 0 2px 4px rgba(23, 18, 13, 0.08), 0 16px 44px rgba(23, 18, 13, 0.14);
  --shadow-strong: 0 4px 10px rgba(23, 18, 13, 0.1), 0 28px 70px rgba(23, 18, 13, 0.2);
  --shadow-panel: 0 2px 8px rgba(23, 18, 13, 0.08), 0 24px 56px rgba(23, 18, 13, 0.16);
  --shadow-lift: 0 8px 20px rgba(23, 18, 13, 0.1), 0 32px 64px rgba(23, 18, 13, 0.18);
  --shadow-inset-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Glow and gradients (landing) */
  --glow-iris: 0 0 0 1px rgba(249, 115, 22, 0.24), 0 0 48px rgba(249, 115, 22, 0.16);
  --glow-dark-edge: 0 0 0 1px rgba(255, 230, 206, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --gradient-hero: radial-gradient(1100px 560px at 50% -12%, rgba(249, 115, 22, 0.14), transparent 68%);
  --gradient-dark-panel: linear-gradient(165deg, #17120e 0%, var(--dark-bg) 45%, #0b0907 100%);
  --gradient-section-fade: linear-gradient(180deg, var(--dark-bg) 0%, transparent 100%);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-medium: 250ms;
  --duration-slow: 600ms;

  /* Z scale */
  --z-sticky: 100;
  --z-toast: 300;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 { text-wrap: balance; line-height: 1.15; }

::selection {
  background: var(--iris-soft);
  color: var(--iris-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[contenteditable]:focus-visible,
label:focus-within {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Top navigation (shared) ── */
.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.topbar-left,
.topbar-right,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.72rem;
  background: linear-gradient(160deg, var(--iris) 10%, var(--iris-deep));
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
  position: relative;
  flex-shrink: 0;
}

/* small voice waveform inside the mark */
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(#fff, #fff) 26% 50% / 0.2rem 34% no-repeat,
    linear-gradient(#fff, #fff) 50% 50% / 0.2rem 58% no-repeat,
    linear-gradient(#fff, #fff) 74% 50% / 0.2rem 34% no-repeat;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  width: fit-content;
}

.brand-copy strong {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy span {
  font-size: 0.74rem;
  color: var(--muted);
}

.topbar-links {
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.topbar-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-links a:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.nav-pill {
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: none;
  color: #fff;
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-pill:hover {
  background: var(--iris-deep);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .brand-copy span { display: none; }
  .topbar-links { display: none; }
}
