/* ==========================================================================
   Donas — PHP conversion stylesheet.
   Replicates the Tailwind v4 design system from the original React app:
   oklch design tokens, utility classes and the custom components used
   across the pages (buttons, inputs, app shell).
   ========================================================================== */

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.006 154);
  --foreground: oklch(0.205 0.025 157);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.555 0.145 156);
  --primary-foreground: oklch(0.99 0.004 150);
  --secondary: oklch(0.94 0.035 153);
  --secondary-foreground: oklch(0.25 0.05 157);
  --muted: oklch(0.955 0.012 150);
  --muted-foreground: oklch(0.48 0.025 157);
  --accent: oklch(0.925 0.055 152);
  --accent-foreground: oklch(0.275 0.07 156);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.89 0.02 153);
  --input: oklch(0.89 0.02 153);
  --ring: oklch(0.555 0.145 156);
  --hero: oklch(0.24 0.08 151);
  --sun: oklch(0.82 0.16 93);
  --sun-foreground: oklch(0.21 0.035 92);

  --font-display: "Manrope", sans-serif;
  --font-sans: "DM Sans", sans-serif;
}

/* ---------- Base / preflight ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; vertical-align: middle; }
svg { width: 1em; height: 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, a { outline-offset: 3px; }

/* ---------- Display / layout ---------- */

.hidden, .js-hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.sm\:inline-flex { display: none; }
.md\:flex { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }
.z-30 { z-index: 30; }

.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.place-items-center { place-items: center; }
.self-center { align-self: center; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-\[248px_1fr\] { grid-template-columns: 248px minmax(0, 1fr); }
.grid-cols-\[1\.15fr_\.85fr\] { grid-template-columns: 1.15fr 0.85fr; }
.grid-cols-\[\.7fr_1\.3fr\] { grid-template-columns: 0.7fr 1.3fr; }
.grid-cols-\[1\.2fr_\.8fr\] { grid-template-columns: 1.2fr 0.8fr; }
.grid-cols-\[1\.4fr_\.6fr\] { grid-template-columns: 1.4fr 0.6fr; }
.grid-cols-\[1fr_auto\] { grid-template-columns: minmax(0, 1fr) auto; }
.grid-cols-\[1fr_\.7fr\] { grid-template-columns: 1fr 0.7fr; }
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\] { grid-template-columns: auto minmax(0, 1fr) auto; }
.grid-cols-\[minmax\(0\,1fr\)_auto\] { grid-template-columns: minmax(0, 1fr) auto; }

.gap-px { gap: 1px; }
.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-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */

.font-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.leading-\[1\.04\] { line-height: 1.04; }
.leading-5 { line-height: 1.25rem; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.list-none { list-style: none; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Colors ---------- */

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-muted-foreground\/50 { color: color-mix(in oklab, var(--muted-foreground) 50%, transparent); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-primary-foreground\/65 { color: color-mix(in oklab, var(--primary-foreground) 65%, transparent); }
.text-primary-foreground\/70 { color: color-mix(in oklab, var(--primary-foreground) 70%, transparent); }
.text-primary-foreground\/75 { color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-sun { color: var(--sun); }
.text-sun-foreground { color: var(--sun-foreground); }

.bg-background { background-color: var(--background); }
.bg-background\/95 { background-color: color-mix(in oklab, var(--background) 95%, transparent); }
.bg-muted { background-color: var(--muted); }
.bg-muted\/40 { background-color: color-mix(in oklab, var(--muted) 40%, transparent); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground\/10 { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.bg-primary-foreground\/15 { background-color: color-mix(in oklab, var(--primary-foreground) 15%, transparent); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/60 { background-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.bg-sun { background-color: var(--sun); }
.bg-hero { background-color: var(--hero); }
.bg-hero\/50 { background-color: color-mix(in oklab, var(--hero) 50%, transparent); }
.bg-hero\/95 { background-color: color-mix(in oklab, var(--hero) 95%, transparent); }
.bg-border { background-color: var(--border); }
.bg-transparent { background-color: transparent; }

/* ---------- Borders ---------- */

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.border-dashed { border-style: dashed; }
.border-input { border-color: var(--input); }
.border-primary-foreground\/10 { border-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.border-primary-foreground\/15 { border-color: color-mix(in oklab, var(--primary-foreground) 15%, transparent); }
.border-primary-foreground\/20 { border-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent); }
.border-primary-foreground\/25 { border-color: color-mix(in oklab, var(--primary-foreground) 25%, transparent); }
.divide-y > * + * { border-top: 1px solid var(--border); }

/* ---------- Sizing ---------- */

.size-3 { width: 0.75rem; height: 0.75rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-9 { width: 2.25rem; height: 2.25rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-11 { width: 2.75rem; height: 2.75rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-16 { width: 4rem; height: 4rem; }

.h-2 { height: 0.5rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-18 { height: 4.5rem; }
.h-20 { height: 5rem; }
.h-px { height: 1px; }
.h-full { height: 100%; }

.min-h-\[92vh\] { min-height: 92vh; }
.min-h-36 { min-height: 9rem; }
.min-h-44 { min-height: 11rem; }
.min-h-52 { min-height: 13rem; }
.min-h-screen { min-height: 100vh; }

.min-w-0 { min-width: 0; }
.min-w-64 { min-width: 16rem; }
.w-0 { width: 0; }
.w-full { width: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------- Spacing ---------- */

.p-1 { padding: 0.25rem; }
.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-7 { padding: 1.75rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-10 { padding-right: 2.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.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-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }

/* ---------- Effects / misc ---------- */

.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-full { border-radius: 9999px; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.cursor-pointer { cursor: pointer; }

.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.2; }
.opacity-70 { opacity: 0.7; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.shrink-0 { flex-shrink: 0; }
.aspect-\[16\/8\] { aspect-ratio: 2 / 1; }

.transition { transition: color 0.15s, background-color 0.15s, border-color 0.15s, text-decoration-color 0.15s, fill 0.15s, stroke 0.15s, opacity 0.15s, box-shadow 0.15s, transform 0.15s, filter 0.15s, backdrop-filter 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s, text-decoration-color 0.15s, fill 0.15s, stroke 0.15s; }

.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-primary\/90:hover { background-color: color-mix(in oklab, var(--primary) 90%, black); }
.hover\:bg-sun\/90:hover { background-color: color-mix(in oklab, var(--sun) 90%, black); }
.hover\:bg-primary-foreground\/10:hover { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.hover\:border-primary\/40:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

.last\:border-0:last-child { border: 0; }

/* ---------- Custom utilities (original design system) ---------- */

.eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.pattern-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--primary-foreground) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary-foreground) 16%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Brand logo image — gently harmonized with the site palette */
.brand-logo {
  filter: saturate(0.92) contrast(1.04);
}

/* ---------- Components: buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn svg { width: 1rem; height: 1rem; pointer-events: none; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.btn-primary { background-color: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.btn-primary:hover { background-color: color-mix(in oklab, var(--primary) 90%, black); }

.btn-outline { border-color: var(--input); background-color: var(--background); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.btn-outline:hover { background-color: var(--accent); color: var(--accent-foreground); }

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

.btn-ghost-inverse { color: var(--primary-foreground); }
.btn-ghost-inverse:hover { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); color: var(--primary-foreground); }

.btn-outline-inverse { border-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent); background-color: transparent; color: var(--primary-foreground); }
.btn-outline-inverse:hover { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); color: var(--primary-foreground); }

.btn-link { height: auto; padding: 0; color: var(--primary); font-weight: 500; text-underline-offset: 4px; }
.btn-link:hover { text-decoration: underline; }

.btn-sun { background-color: var(--sun); color: var(--sun-foreground); }
.btn-sun:hover { background-color: color-mix(in oklab, var(--sun) 90%, black); }

.btn-sm { height: 2rem; padding: 0.5rem 0.75rem; font-size: 0.75rem; }
.btn-lg { height: 2.5rem; padding: 0.5rem 2rem; }
.btn-icon { height: 2.25rem; width: 2.25rem; padding: 0; }

/* ---------- Components: form fields ---------- */

.input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }

.textarea {
  display: flex;
  min-height: 60px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* ---------- App shell ---------- */

.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--sun);
  color: var(--sun-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.25rem;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-muted { background-color: var(--muted); color: var(--muted-foreground); }
.badge-primary { background-color: var(--primary); color: var(--primary-foreground); }
.badge-sun { background-color: var(--sun); color: var(--sun-foreground); }
.badge-danger { background-color: var(--destructive); color: var(--destructive-foreground); }

.select {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }

.table-base { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-base th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-base td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-base tr:last-child td { border-bottom: 0; }

.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }
.w-max { width: max-content; }
.text-destructive { color: var(--destructive); }
.text-sun { color: var(--sun); }

.stars { color: var(--sun); display: inline-flex; align-items: center; gap: 0.05rem; }
.stars .empty { opacity: 0.25; }

.nav-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nav-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.nav-tabs a:hover { color: var(--foreground); border-color: var(--primary); }
.nav-tabs a.active { background-color: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.dl-rows { margin: 0; }
.dl-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.dl-rows > div:last-child { border-bottom: 0; }
.dl-rows dt { color: var(--muted-foreground); }
.dl-rows dd { font-weight: 600; text-align: right; }

details.summary-box > summary { cursor: pointer; }
details.summary-box > summary::marker, details.summary-box > summary::-webkit-details-marker { display: none; }
details[open].summary-box { border-color: var(--primary); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .topbar { padding: 0 0 0 2rem; margin-bottom: 0; }
}

.aside {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: min(84vw, 18rem);
  background-color: var(--background);
  box-shadow: 0 0 0 transparent;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
  will-change: transform;
}
.aside.sidebar-open {
  display: flex;
  transform: translateX(0);
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.35);
}
.aside-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background-color: rgb(10 18 13 / 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.aside-backdrop.show { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .md\:hidden { display: none; }
}

/* ---------- Marketing-page mobile menu ---------- */

.home-menu {
  padding: 0.5rem 1.25rem 1.25rem;
}
.home-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.home-menu a:last-child { border-bottom: 0; }
#home-menu-open[aria-expanded="true"] {
  background-color: color-mix(in oklab, var(--primary-foreground) 14%, transparent);
}

/* ---------- Email-style links on dark sections ---------- */

.faq-list { margin: 0; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .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\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_auto\] { grid-template-columns: minmax(0, 1fr) auto; }
  .md\:items-center { align-items: center; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-9 { padding: 2.25rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .input { font-size: 0.875rem; }
  .textarea { font-size: 0.875rem; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:grid { display: grid; }
  .lg\:items-end { align-items: flex-end; }
  .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\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-\[\.7fr_1\.3fr\] { grid-template-columns: 0.7fr 1.3fr; }
  .lg\:grid-cols-\[1\.15fr_\.85fr\] { grid-template-columns: 1.15fr 0.85fr; }
  .lg\:grid-cols-\[1\.2fr_\.8fr\] { grid-template-columns: 1.2fr 0.8fr; }
  .lg\:grid-cols-\[1\.4fr_\.6fr\] { grid-template-columns: 1.4fr 0.6fr; }
  .lg\:grid-cols-\[1fr_\.7fr\] { grid-template-columns: 1fr 0.7fr; }
  .lg\:grid-cols-\[1fr_auto\] { grid-template-columns: minmax(0, 1fr) auto; }
  .lg\:pb-24 { padding-bottom: 6rem; }
  .topbar { padding-left: 0; padding-right: 2rem; }

  .app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .aside { position: sticky; top: 0; display: flex; height: 100vh; border-right: 1px solid var(--border); flex-shrink: 0; transform: none; box-shadow: none; }
  .aside.sidebar-open { display: flex; }
  .aside-backdrop { display: none; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}