/* ============================================================================
   Slate — landing page styles
   Colours are the project's own warm-orange OKLCH tokens (see app/src/index.css),
   so the marketing site and the product share one palette in light and dark.
   Style: Flat Design — clean surfaces, borders over heavy shadows, fast 150–200ms
   transitions.
   ========================================================================== */

/* ---------- Tokens: light (default) ---------- */
:root {
  --background: oklch(0.977 0.006 75);
  --foreground: oklch(0.24 0.012 55);
  --card: oklch(0.995 0.004 85);
  --card-foreground: oklch(0.24 0.012 55);
  --primary: oklch(0.67 0.185 43);
  --primary-strong: oklch(0.61 0.19 41);
  --primary-foreground: oklch(0.99 0.01 90);
  --secondary: oklch(0.955 0.012 72);
  --secondary-foreground: oklch(0.28 0.012 55);
  --muted: oklch(0.955 0.01 72);
  --muted-foreground: oklch(0.52 0.02 60);
  --accent: oklch(0.93 0.04 62);
  --accent-foreground: oklch(0.42 0.14 45);
  --border: oklch(0.9 0.014 70);
  --ring: oklch(0.67 0.185 43);
  --high: oklch(0.62 0.17 40);

  /* Surfaces layered on the base background. */
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.008 74);
  --shadow: 0 1px 2px oklch(0.4 0.03 60 / 0.06), 0 8px 24px -12px oklch(0.4 0.05 55 / 0.18);
  --shadow-lg: 0 24px 60px -24px oklch(0.4 0.08 50 / 0.28);

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.1rem;
  --radius-full: 999px;

  --container: 76rem;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

/* ---------- Tokens: dark ---------- */
[data-theme='dark'] {
  --background: oklch(0.175 0.008 60);
  --foreground: oklch(0.96 0.006 80);
  --card: oklch(0.215 0.01 62);
  --card-foreground: oklch(0.96 0.006 80);
  --primary: oklch(0.68 0.185 44);
  --primary-strong: oklch(0.74 0.17 47);
  --primary-foreground: oklch(0.99 0.01 90);
  --secondary: oklch(0.26 0.012 60);
  --secondary-foreground: oklch(0.96 0.006 80);
  --muted: oklch(0.255 0.012 60);
  --muted-foreground: oklch(0.72 0.015 72);
  --accent: oklch(0.3 0.045 50);
  --accent-foreground: oklch(0.86 0.1 60);
  --border: oklch(0.85 0.03 70 / 0.12);
  --ring: oklch(0.68 0.185 44);
  --high: oklch(0.72 0.16 45);

  --surface: oklch(0.215 0.01 62);
  --surface-2: oklch(0.24 0.012 60);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px -12px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 24px 60px -24px oklch(0 0 0 / 0.65);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
/* The `hidden` attribute is only `display: none` in the *user-agent* stylesheet,
   so any author rule that sets `display` beats it — an element toggled with
   `el.hidden = true` stays on screen if its class happens to set a display mode.
   Make the attribute authoritative instead of auditing every rule for it. */
[hidden] {
  display: none !important;
}
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
  /* Safety net so a stray wide child can never introduce a horizontal scroll. */
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--muted);
  color: var(--accent-foreground);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}
h1,
h2,
h3,
h4 {
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 0.75rem;
}

/* Focus visibility for keyboard users everywhere. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent;
  --_fg: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 1.05em;
  height: 1.05em;
}
.btn--primary {
  --_bg: var(--primary);
  --_fg: var(--primary-foreground);
}
.btn--primary:hover {
  --_bg: var(--primary-strong);
}
.btn--outline {
  --_fg: var(--foreground);
  border-color: var(--border);
  background: var(--surface);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn--ghost {
  --_fg: var(--foreground);
}
.btn--ghost:hover {
  background: var(--muted);
}
.btn--lg {
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  min-height: 50px;
}
.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover {
  background: var(--muted);
}
.icon-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Theme toggle icon swap. */
.icon--moon {
  display: none;
}
[data-theme='dark'] .icon--sun {
  display: none;
}
[data-theme='dark'] .icon--moon {
  display: block;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__mark {
  border-radius: 7px;
}
.brand__name {
  font-size: 1.15rem;
}
.nav__links {
  display: flex;
  gap: 0.35rem;
  margin-inline: auto;
}
.nav__links a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav__links a:hover {
  color: var(--foreground);
  background: var(--muted);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__burger {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-weight: 500;
}
.mobile-menu a:hover {
  background: var(--muted);
  color: var(--foreground);
}
.mobile-menu .btn {
  margin-top: 0.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__inner > * {
  min-width: 0;
}
@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1.05fr 1.15fr;
  }
}
/* Forced line break only where the headline comfortably fits two lines. */
.hero__title-break {
  display: none;
}
@media (min-width: 30rem) {
  .hero__title-break {
    display: block;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-foreground);
  background: var(--accent);
  border: 1px solid color-mix(in oklch, var(--primary) 22%, transparent);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.4rem;
}
.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}
.hero__title {
  font-size: clamp(2rem, 7vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted-foreground);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero__stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.hero__stats dd {
  font-weight: 600;
  font-size: 1.02rem;
  margin-top: 0.15rem;
}

/* Product window mockup */
.hero__media {
  position: relative;
}
.hero__glow {
  position: absolute;
  inset: -12% -8% -20% -8%;
  z-index: -1;
  background: radial-gradient(
    60% 55% at 65% 40%,
    color-mix(in oklch, var(--primary) 30%, transparent),
    transparent 70%
  );
  filter: blur(28px);
  opacity: 0.55;
}
.window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.window__dots {
  display: inline-flex;
  gap: 0.4rem;
}
.window__dots i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border);
}
.window__dots i:first-child {
  background: color-mix(in oklch, var(--primary) 60%, var(--border));
}
.window__url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--background);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.window__body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 340px;
}
@media (max-width: 30rem) {
  .window__body {
    grid-template-columns: 1fr;
  }
  .mock-sidebar {
    display: none;
  }
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0.9rem 0.7rem;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.mock-brand__mark {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  background: var(--primary);
  flex: none;
}
.mock-nav {
  display: grid;
  gap: 0.2rem;
}
.mock-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.mock-nav__item svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-nav__item.is-active {
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
}

.mock-main {
  padding: 1.1rem 1.2rem;
  min-width: 0;
}
.mock-h {
  font-size: 1.05rem;
}
.mock-sub {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
  margin-bottom: 0.9rem;
}
.mock-cards {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.9rem;
}
@media (max-width: 24rem) {
  .mock-cards {
    grid-template-columns: 1fr;
  }
}
.mock-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.mock-card__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  flex: none;
}
.mock-card__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-card__icon--open svg {
  stroke: var(--primary);
}
.mock-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.mock-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.mock-card__desc {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-card__chev {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
}

.mock-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.5fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  border-top: 1px solid var(--border);
}
.mock-row:first-child {
  border-top: 0;
}
.mock-row--head {
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-row span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.badge--primary {
  background: color-mix(in oklch, var(--primary) 16%, transparent);
  color: var(--primary);
  border-color: color-mix(in oklch, var(--primary) 30%, transparent);
}
.badge--muted {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* ---------- Trust strip ---------- */
.strip {
  border-block: 1px solid var(--border);
  background: var(--surface-2);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
}
.strip__label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.strip__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  padding: 0;
  margin-left: auto;
}
.strip__logos li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--foreground);
  opacity: 0.75;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
}
.section__lede {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
/* A second heading inside a section, above a follow-up grid — smaller and
   tighter than the section head it sits under. */
.section__head--sub {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.section__subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--muted-foreground);
  font-weight: 600;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
}
.grid--3 {
  grid-template-columns: repeat(1, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 40rem) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 60rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Feature cards ---------- */
.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.feature:hover {
  border-color: color-mix(in oklch, var(--primary) 45%, var(--border));
  transform: translateY(-2px);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
  margin-bottom: 1rem;
}
.feature__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.feature p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}
/* Feature cards that list capabilities instead of describing one: the
   checklist sits directly under the heading, so it needs less air than the
   showcase version does. */
.feature .checklist {
  margin-top: 0.9rem;
  gap: 0.55rem;
}
.feature .checklist li {
  font-size: 0.95rem;
  font-weight: 400;
  align-items: flex-start;
}
.feature .checklist .icon {
  flex: none;
  margin-top: 0.15rem;
}

/* ---------- Product showcase ---------- */
.showcase {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .showcase {
    grid-template-columns: 1fr 1.1fr;
  }
}
.checklist {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}
.checklist .icon {
  color: var(--primary);
  width: 1.2rem;
  height: 1.2rem;
}

.panel {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
@media (max-width: 34rem) {
  .panel {
    grid-template-columns: 1fr;
  }
}
.panel__timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}
.panel__timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--border);
}
.tl-node {
  position: relative;
}
.tl-dot {
  position: absolute;
  left: -0.95rem;
  top: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--muted-foreground);
  box-shadow: 0 0 0 3px var(--card);
}
.tl-dot--muted {
  background: var(--border);
}
.tl-dot--accent {
  background: var(--primary);
}
.tl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  background: var(--surface);
}
.tl-card--reply {
  background: color-mix(in oklch, var(--primary) 8%, var(--surface));
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
}
.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.tl-head span {
  font-size: 0.72rem;
  color: var(--muted-foreground);
}
.tl-card p {
  font-size: 0.83rem;
  color: var(--foreground);
}
.tl-event {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  padding-top: 0.15rem;
}

.panel__props {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.prop {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.prop__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.prop__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  width: fit-content;
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted-foreground);
}
.dot--primary {
  background: var(--primary);
}
.dot--high {
  background: var(--high);
}
.avatar {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--primary) 18%, transparent);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  font-style: normal;
}
.prop--tags .tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-foreground);
  width: fit-content;
}

/* ---------- Foundations / stats ---------- */
.stat {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  font-family: var(--font-mono);
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta__inner {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, var(--border));
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    color-mix(in oklch, var(--primary) 14%, var(--card)),
    var(--card)
  );
}
.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.cta__lede {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding-top: 3rem;
}
.footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 48rem) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}
.footer__brand p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  max-width: 22rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.footer__cols h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 0.8rem;
}
.footer__cols a {
  display: block;
  padding: 0.3rem 0;
  color: var(--foreground);
  font-size: 0.92rem;
  transition: color 0.16s ease;
}
.footer__cols a:hover {
  color: var(--primary);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.footer__theme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease;
}
.footer__theme:hover {
  border-color: var(--primary);
}
.footer__theme .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 44rem;
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}
.contact-form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--foreground);
}
.field__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 44px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  outline: none;
}
.field__input::placeholder {
  color: var(--muted-foreground);
}
.field__input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 22%, transparent);
}
.field__input[aria-invalid='true'] {
  border-color: oklch(0.55 0.2 25);
}
.field__input--textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.6;
}
.field__error {
  font-size: 0.82rem;
  color: oklch(0.55 0.2 25);
}
.contact-form__error {
  font-size: 0.9rem;
}
.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
/* Stands in for the form once it is sent, so it centres on its own. */
.contact-form__sent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ---------- Scroll reveal ----------
   Only hide when JS is active (.js on <html>); no-JS users see everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 52rem) {
  .nav__links {
    display: none;
  }
  .nav__signin {
    display: none;
  }
  .nav__burger {
    display: inline-grid;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
