/* ==========================================================================
   Pitstop UI — shadcn-style design system, hand-rolled for Hugo (no build step)
   Tokens follow shadcn/ui v4 zinc theme. Sections can opt into dark tokens
   by adding the `dark` class. Brand red (#ff1e1a) is an accent, not the
   default primary — primary actions are near-black, like the portals.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --primary: oklch(0.21 0.006 285.885);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.967 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.705 0.015 286.067);

  /* Brand: fallback only — the real value is brandColor in
     config/_default/params.toml, injected by site-style.html.
     Every brand shade below derives from --brand, so one config line
     rebrands the whole site (logo included).
     To make primary CTAs brand-colored too: set --primary: var(--brand). */
  --brand: #ff1e1a;
  --brand-foreground: #ffffff;
  --brand-hover: color-mix(in oklab, var(--brand) 85%, black);
  --brand-soft: color-mix(in oklab, var(--brand) 11%, transparent);
  --wa: #25d366;
  --wa-foreground: #ffffff;

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 4rem;
}

.dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.21 0.006 285.885);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.92 0.004 286.32);
  --primary-foreground: oklch(0.21 0.006 285.885);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.705 0.015 286.067);
  --accent: oklch(0.274 0.006 286.033);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.552 0.016 285.938);

  /* Brand on dark. A brand color chosen to read on white (ours is pure black)
     cannot double as an accent on a near-black background — check marks and
     eyebrows measured 1.06:1 before this existed. Dark contexts therefore get
     their own brand value, overridable with brandColorDark in params.toml.
     The derived shades MUST be re-declared here: color-mix() in :root resolves
     against :root's --brand, so inheriting them would keep the black. */
  --brand: oklch(0.985 0 0);
  --brand-foreground: var(--background);
  --brand-hover: color-mix(in oklab, var(--brand) 85%, black);
  --brand-soft: color-mix(in oklab, var(--brand) 15%, transparent);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

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

/* Guard against horizontal-slide reveals nudging the page sideways on mobile.
   clip (unlike hidden) creates no scroll container, so position:sticky survives. */
html, body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dark {
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { height: 1em; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  background: none;
  color: inherit;
  cursor: pointer;
}

hr {
  border-top: 1px solid var(--border);
  margin: 0;
}

::selection {
  background: var(--brand);
  color: var(--brand-foreground);
}

/* Lucide icon partials render with class="icon" */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}
.container-sm { width: min(100% - 2.5rem, 48rem); margin-inline: auto; }

.section {
  padding-block: 4.5rem;
}
@media (min-width: 768px) {
  .section { padding-block: 6.5rem; }
}
.section-muted { background-color: var(--muted); }
.section-sm { padding-block: 3rem; }
@media (min-width: 768px) {
  .section-sm { padding-block: 4rem; }
}

/* Standard section intro: eyebrow + title + lead */
.section-header {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-header { margin-bottom: 4rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 1.25rem + 1.6vw, 2.5rem);
  font-weight: 400;
}

.section-subtitle {
  font-size: clamp(1.4rem, 1.25rem + 1.6vw, 1.6rem);
  /*font-size: 1.4rem;*/
  font-weight: 400;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Two-column feature split (text + image), stacks on mobile */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split-reverse > :first-child { order: 2; }
  .split-reverse > :last-child { order: 1; }
}

/* Feature hub: each left/right row is a single link */
.feature-row { color: inherit; text-decoration: none; }
.feature-row .section-title { transition: color 0.15s ease; }
.feature-row:hover .section-title { color: var(--brand); }

/* Flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Spacing (0.25rem scale: 0,1,2,3,4,5,6,8,10,12,16,20,24) */
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; } .mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.p-0 { padding: 0; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-2 { padding-inline: 0.5rem; } .px-3 { padding-inline: 0.75rem; } .px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; } .px-8 { padding-inline: 2rem; }
.py-1 { padding-block: 0.25rem; } .py-2 { padding-block: 0.5rem; } .py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; } .py-6 { padding-block: 1.5rem; } .py-8 { padding-block: 2rem; }
.pt-0 { padding-top: 0; } .pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; } .pt-12 { padding-top: 3rem; }
.pb-0 { padding-bottom: 0; } .pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; } .pb-12 { padding-bottom: 3rem; }

/* Max widths */
.max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; } .max-w-5xl { max-width: 64rem; } .max-w-prose { max-width: 65ch; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; line-height: 1.15; }
.text-5xl { font-size: 3rem; line-height: 1.1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-7 { line-height: 1.75; }
.leading-tight { line-height: 1.25; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.tabular-nums { font-variant-numeric: tabular-nums; }

.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }
.text-brand { color: var(--brand); }
.text-wa { color: var(--wa); }
.text-destructive { color: var(--destructive); }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.15s ease;
}
.link:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   5. Surfaces & borders
   -------------------------------------------------------------------------- */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-brand { background-color: var(--brand); color: var(--brand-foreground); }
.bg-primary { background-color: var(--primary); color: var(--primary-foreground); }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.separator {
  height: 1px;
  width: 100%;
  background-color: var(--border);
  border: 0;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  height: 2.25rem;
  padding-inline: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);
}
.btn .icon { width: 1em; height: 1em; }

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background-color: color-mix(in srgb, var(--primary) 90%, transparent); }

.btn-brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-xs);
}
.btn-brand:hover { background-color: var(--brand-hover); }

.btn-wa {
  border-color: var(--wa);
  background-color: var(--background);
  color: var(--wa);
  box-shadow: var(--shadow-xs);
}
.btn-wa:hover { background-color: color-mix(in srgb, var(--wa) 10%, var(--background)); }

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover { background-color: color-mix(in srgb, var(--secondary) 80%, var(--muted-foreground) 8%); }

.btn-outline {
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { background-color: var(--accent); }

.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background-color: var(--accent); }

.btn-sm { height: 2rem; padding-inline: 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { height: 2.75rem; padding-inline: 1.5rem; font-size: 0.9375rem; border-radius: var(--radius-md); }
.btn-xl { height: 3.25rem; padding-inline: 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { width: 2.25rem; padding-inline: 0; }

/* --------------------------------------------------------------------------
   7. Cards, badges, stats
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.card-padded { padding: 1.5rem; }
.card-header { padding: 1.5rem 1.5rem 0; }
.card-title { font-size: 1.0625rem; font-weight: 500; }
.card-description { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
.card-content { padding: 1.5rem; }
.card-footer { display: flex; align-items: center; padding: 0 1.5rem 1.5rem; gap: 0.75rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.1875rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.badge .icon { width: 0.875em; height: 0.875em; }
.badge-secondary { background-color: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { background-color: transparent; border-color: var(--border); color: var(--foreground); }
.badge-brand { background-color: var(--brand-soft); color: var(--brand); }
.badge-wa { background-color: color-mix(in srgb, var(--wa) 12%, transparent); color: color-mix(in srgb, var(--wa) 70%, black); }

/* Icon-in-a-tile, for feature lists */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: var(--shadow-xs);
  font-size: 1.25rem;
  color: var(--foreground);
}
.icon-tile-brand { color: var(--brand); }

/* Stat block (big number + label) */
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Check list (pricing points, trial notes) */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.625rem; align-items: flex-start; }
.check-list .icon { margin-top: 0.2em; width: 1.1em; height: 1.1em; color: var(--brand); }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.input, .textarea, .select {
  display: block;
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input { height: 2.5rem; }
.textarea { min-height: 7.5rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent);
}
.form-field { margin-bottom: 1.25rem; }

.is-invalid, .input.is-invalid, .textarea.is-invalid {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 20%, transparent);
}

.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  background-color: var(--card);
}
.alert .icon { margin-top: 0.15em; }
.alert-success { border-color: color-mix(in srgb, var(--wa) 40%, transparent); }
.alert-success .icon { color: var(--wa); }

/* --------------------------------------------------------------------------
   9. Accordion (details/summary)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.accordion-item summary .icon {
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}
.accordion-item[open] summary .icon { transform: rotate(180deg); }
.accordion-content {
  padding: 0 0.25rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   10. Prose (rendered markdown: legal pages, articles)
   -------------------------------------------------------------------------- */
.prose { font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 2em; margin-bottom: 0; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.0625rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--foreground) 88%, var(--muted-foreground)); }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose li { margin-top: 0.5em; }
.prose a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--brand) 45%, transparent);
}
.prose a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-left: 0;
  margin-right: 0;
}
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.prose code {
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.4em;
  font-size: 0.875em;
}
.prose hr { margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 0.625rem 0.75rem; text-align: left; }
.prose th { font-weight: 500; }

/* --------------------------------------------------------------------------
   11. Site header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}
.site-logo { color: var(--brand); }
.site-logo img, .site-logo svg { height: 2.25rem; width: auto; }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background-color: var(--accent); }
.nav-link .icon { width: 0.875em; height: 0.875em; color: var(--muted-foreground); transition: transform 0.2s ease; }

/* Desktop dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  min-width: 13rem;
  padding: 0.375rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item:hover > .nav-link .icon { transform: rotate(180deg); }
.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--foreground);
}
.nav-dropdown a:hover { background-color: var(--accent); }

/* Language menu (bordered-pill trigger + dropdown, room for more locales) */
.lang-menu { position: relative; }
.lang-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
  transition: background-color 0.15s ease;
}
.lang-menu-trigger:hover { background-color: var(--accent); }
.lang-menu .nav-dropdown {
  left: auto;
  right: 0;
  min-width: 11rem;
}
.lang-menu .nav-dropdown a { white-space: nowrap; }
.lang-menu.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu .nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.lang-menu .nav-dropdown a .icon {
  width: 1em;
  height: 1em;
  color: var(--foreground);
  visibility: hidden;
}
.lang-menu .nav-dropdown a.active .icon { visibility: visible; }

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--background);
}
.nav-toggle .icon-close { display: none; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: var(--background);
  padding: 1.5rem 1.25rem 3rem;
  overflow-y: auto;
}
.nav-open .mobile-nav { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open { overflow: hidden; }
.mobile-nav a.mobile-link {
  display: block;
  padding: 0.875rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .mobile-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
}
.mobile-nav .mobile-group summary::-webkit-details-marker { display: none; }
.mobile-nav .mobile-group[open] summary .icon { transform: rotate(180deg); }
.mobile-nav .mobile-group a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding-top: 4rem;
  font-size: 0.875rem;
}
.site-footer .footer-heading {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--muted-foreground); transition: color 0.15s ease; }
.site-footer a:hover { color: var(--foreground); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .footer-brand { grid-column: auto; }
}
.footer-logo { color: var(--brand); display: inline-flex; }
.footer-logo svg { height: 1.75rem; width: auto; }
.footer-partner-logo { height: 42px; width: auto; opacity: 0.75; }
.footer-bottom {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

/* Floating WhatsApp button */
.floating-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid var(--wa);
  background-color: var(--background);
  color: var(--wa);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.floating-wa:hover { transform: scale(1.06); box-shadow: var(--shadow-xl); background-color: color-mix(in srgb, var(--wa) 10%, var(--background)); }
/* Roomier tap target on desktop — icon size stays fixed (font-size unchanged),
   so the extra box translates to more padding around the glyph. */
@media (min-width: 768px) {
  .floating-wa { width: 3.25rem; height: 3.25rem; }
}
/* Win over `.site-footer a` (grey) so the glyph reads WhatsApp green. */
.floating-wa .icon { color: var(--wa); }

/* --------------------------------------------------------------------------
   13. Media: carousel, dialog, video preview
   -------------------------------------------------------------------------- */
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  padding-block: 0.25rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * {
  scroll-snap-align: start;
  flex: 0 0 min(100%, 22rem);
}
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border-radius: 9999px;
  background-color: var(--border);
  border: 0;
  transition: background-color 0.15s ease, width 0.15s ease;
}
.carousel-dots button.active { background-color: var(--brand); width: 1.25rem; }

dialog.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--background);
  box-shadow: var(--shadow-2xl);
  max-width: min(90vw, 60rem);
  width: 100%;
}
dialog.dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(2px);
}
.dialog-video { aspect-ratio: 16 / 9; width: 100%; }
.dialog-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.dialog-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
}

/* Framed media (screenshots, video previews) */
.media-frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  background: var(--card);
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.play-button:hover { transform: scale(1.05); }

/* Logo strip (social proof) */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
}
.logo-row img {
  height: 2.25rem;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.logo-row img:hover { opacity: 1; filter: grayscale(0); }

/* --------------------------------------------------------------------------
   14. Decorative backgrounds
   -------------------------------------------------------------------------- */
.bg-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--foreground) 12%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bg-grid {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
}
.fade-mask-b {
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%);
}

/* --------------------------------------------------------------------------
   15. Reveal-on-scroll (replaces wow.js) — progressive enhancement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* Zoom variant for product imagery: a longer, springier rise */
  .js [data-reveal="zoom"] {
    transform: translateY(28px) scale(0.96);
    transition-duration: 0.9s;
  }
  /* Directional slides for split sections (the old theme's fadeInLeft/Right):
     columns start toward the center and settle outward into place */
  .js [data-reveal="from-left"] {
    transform: translateX(-36px);
    transition-duration: 0.9s;
  }
  .js [data-reveal="from-right"] {
    transform: translateX(36px);
    transition-duration: 0.9s;
  }
  .js [data-reveal].is-revealed { opacity: 1; transform: none; }
  .js [data-reveal-delay="1"] { transition-delay: 0.08s; }
  .js [data-reveal-delay="2"] { transition-delay: 0.16s; }
  .js [data-reveal-delay="3"] { transition-delay: 0.24s; }
  .js [data-reveal-delay="4"] { transition-delay: 0.32s; }
}

/* --------------------------------------------------------------------------
   16. Helpers & responsive variants
   -------------------------------------------------------------------------- */
.hidden, .d-none { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:text-left { text-align: left; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-left { text-align: left; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
}

/* Feature-page hero banner (full-bleed image behind the header, with a scrim to keep text readable) */
.feature-hero > .container { position: relative; z-index: 2; }
.feature-hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.feature-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--background) 72%, transparent),
    color-mix(in srgb, var(--background) 88%, transparent)
  );
}
/* Loud placeholder banner: caution stripes + a corner label, so a missing banner is unmissable */
.feature-hero-banner--missing {
  background-image: repeating-linear-gradient(
    45deg,
    #facc15 0, #facc15 28px,
    #1f2937 28px, #1f2937 56px
  );
}
.feature-hero-banner__label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2937;
  background: #facc15;
  border: 2px solid #1f2937;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
