/* =========================================================================
   AgencyDash — landing page
   Hand-authored CSS, no build step. Deployable as static files to S3.

   The palette is lifted verbatim from the application's design tokens
   (src/app/globals.css) so the marketing site and the product look like one
   thing. If those tokens change, change them here too — there is deliberately
   no shared pipeline, because a static bucket must not depend on the app
   building.
   ========================================================================= */

/* ---------- Tokens ---------- */

:root {
  --background: oklch(0.994 0 0);
  --foreground: oklch(0 0 0);
  --card: oklch(0.994 0 0);
  --muted: oklch(0.9702 0 0);
  --muted-foreground: oklch(0.4386 0 0);
  --primary: oklch(0.5393 0.2713 286.7462);
  --primary-foreground: oklch(1 0 0);
  --accent: oklch(0.9393 0.0288 266.368);
  --accent-foreground: oklch(0.49 0.181 259.4848);
  --destructive: oklch(0.555 0.1902 23.0704);
  --success: oklch(0.52 0.125 155);
  --warning: oklch(0.56 0.118 68);
  --info: oklch(0.5445 0.1903 259.4848);
  --border: oklch(0.93 0.0094 286.2156);
  --sidebar: oklch(0.9777 0.0051 247.8763);
  --chart-2: oklch(0.5393 0.2713 286.7462);
  --chart-4: oklch(0.5828 0.1809 259.7276);

  --glow-1: color-mix(in oklch, var(--primary) 20%, transparent);
  --glow-2: color-mix(in oklch, var(--chart-4) 20%, transparent);
  --shadow-lg: 0 2px 3px rgb(0 0 0 / 0.16), 0 4px 6px -1px rgb(0 0 0 / 0.16);
  --shadow-xl: 0 2px 3px rgb(0 0 0 / 0.1), 0 12px 28px -8px rgb(0 0 0 / 0.14);

  --radius: 1.4rem;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --tracking: -0.025em;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

/* Dark by system preference, unless the visitor has explicitly chosen light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: oklch(0.2223 0.006 271.1393);
    --foreground: oklch(0.9551 0 0);
    --card: oklch(0.2568 0.0076 274.6528);
    --muted: oklch(0.294 0.013 272.9312);
    --muted-foreground: oklch(0.7058 0 0);
    --primary: oklch(0.575 0.2294 291.7437);
    --primary-foreground: oklch(1 0 0);
    --accent: oklch(0.2795 0.0368 260.031);
    --accent-foreground: oklch(0.7857 0.1153 246.6596);
    --destructive: oklch(0.7106 0.1661 22.2162);
    --success: oklch(0.77 0.15 156);
    --warning: oklch(0.8 0.13 75);
    --info: oklch(0.7857 0.1153 246.6596);
    --border: oklch(0.3289 0.0092 268.3843);
    --sidebar: oklch(0.2011 0.0039 286.0396);
    --chart-2: oklch(0.6132 0.2294 291.7437);
    --chart-4: oklch(0.6691 0.1569 260.1063);
    --glow-1: color-mix(in oklch, var(--primary) 26%, transparent);
    --glow-2: color-mix(in oklch, var(--chart-4) 20%, transparent);
    --shadow-lg: 0 2px 3px rgb(0 0 0 / 0.4), 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 2px 3px rgb(0 0 0 / 0.4), 0 14px 32px -10px rgb(0 0 0 / 0.6);
  }
}

/* Explicit dark choice wins in both directions. Duplicated rather than
   factored out because a custom property can only be redefined, not aliased. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.2223 0.006 271.1393);
  --foreground: oklch(0.9551 0 0);
  --card: oklch(0.2568 0.0076 274.6528);
  --muted: oklch(0.294 0.013 272.9312);
  --muted-foreground: oklch(0.7058 0 0);
  --primary: oklch(0.575 0.2294 291.7437);
  --primary-foreground: oklch(1 0 0);
  --accent: oklch(0.2795 0.0368 260.031);
  --accent-foreground: oklch(0.7857 0.1153 246.6596);
  --destructive: oklch(0.7106 0.1661 22.2162);
  --success: oklch(0.77 0.15 156);
  --warning: oklch(0.8 0.13 75);
  --info: oklch(0.7857 0.1153 246.6596);
  --border: oklch(0.3289 0.0092 268.3843);
  --sidebar: oklch(0.2011 0.0039 286.0396);
  --chart-2: oklch(0.6132 0.2294 291.7437);
  --chart-4: oklch(0.6691 0.1569 260.1063);
  --glow-1: color-mix(in oklch, var(--primary) 26%, transparent);
  --glow-2: color-mix(in oklch, var(--chart-4) 20%, transparent);
  --shadow-lg: 0 2px 3px rgb(0 0 0 / 0.4), 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 2px 3px rgb(0 0 0 / 0.4), 0 14px 32px -10px rgb(0 0 0 / 0.6);
}

/* Browsers without oklch() get an sRGB approximation of the same palette
   rather than an unstyled page. Everything else in the sheet is unchanged. */
@supports not (color: oklch(0.5 0.1 200)) {
  :root {
    --background: #fdfdfd;
    --foreground: #000000;
    --card: #fdfdfd;
    --muted: #f5f5f5;
    --muted-foreground: #5f5f5f;
    --primary: #6d3ff5;
    --primary-foreground: #ffffff;
    --accent: #e6ebfb;
    --accent-foreground: #2957cf;
    --destructive: #c4302c;
    --success: #1a7f45;
    --warning: #8f6510;
    --info: #3062e0;
    --border: #e9e7ee;
    --sidebar: #f7f8fa;
    --chart-2: #6d3ff5;
    --chart-4: #4272ea;
    --glow-1: rgb(109 63 245 / 0.2);
    --glow-2: rgb(66 114 234 / 0.2);
  }
  :root[data-theme="dark"] {
    --background: #262630;
    --foreground: #f2f2f2;
    --card: #2d2c37;
    --muted: #35343f;
    --muted-foreground: #a3a3a3;
    --primary: #7c5cfa;
    --accent: #2b3245;
    --accent-foreground: #7cbdf2;
    --destructive: #ee7263;
    --success: #4ade80;
    --warning: #e9b949;
    --info: #7cbdf2;
    --border: #3d3c48;
    --sidebar: #212027;
    --chart-2: #8a6bfb;
    --chart-4: #5f92ef;
  }
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 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;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--primary) 50%, transparent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: 6rem;
  scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
  section {
    padding-block: 8rem;
  }
}

.bordered {
  border-top: 1px solid var(--border);
}

.tinted {
  background: color-mix(in oklch, var(--muted) 45%, var(--background));
}

/* ---------- Type scale ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.section-head.start {
  margin-inline: 0;
  text-align: left;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.18s, box-shadow 0.18s, color 0.18s, border-color 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  font-size: 1rem;
}

.btn-lg {
  height: 3rem;
  padding-inline: 1.75rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--primary) 60%, transparent);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--primary) 88%, black);
}

.btn-outline {
  border-color: var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-ghost {
  color: var(--muted-foreground);
}

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

.btn-block {
  width: 100%;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--background) 72%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.18s;
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 1.125rem;
  transition: background-color 0.18s;
}

.icon-btn:hover {
  background: var(--muted);
}

/* Must come after .icon-btn — same specificity, so source order decides which
   `display` wins for the hamburger. */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav[data-open="true"] {
  display: block;
}

@media (min-width: 900px) {
  .mobile-nav[data-open="true"] {
    display: none;
  }
}

.mobile-nav a.mobile-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.mobile-nav a.mobile-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* The mark is a transparent PNG carrying its own shape and glow, so it sits
   bare rather than inside a coloured chip. It survives both themes because the
   arrow is outlined in white and the bars are saturated enough to hold against
   a light ground — unlike the full lockup, whose wordmark is dark navy and
   disappears on dark. See the Brand assets section of landing/README.md. */
.wordmark-mark {
  /* 2.5rem, not 2rem: the mark is a landscape graphic letterboxed into a square
     file (so the same asset serves the favicon and the app's square logo slot),
     which means the artwork only occupies ~60% of the box height. */
  width: 2.5rem;
  height: 2.5rem;
  margin-inline-start: -0.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5rem 6rem;
}

@media (min-width: 640px) {
  .hero {
    padding-block: 7rem 8rem;
  }
}

.glow,
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow::before,
.glow::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
}

.glow::before {
  top: -10rem;
  left: 50%;
  width: 68rem;
  height: 36rem;
  transform: translateX(-50%);
  background: var(--glow-1);
}

.glow::after {
  top: 6rem;
  right: 8%;
  width: 22rem;
  height: 22rem;
  background: var(--glow-2);
}

.grid-bg {
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.badge .icon {
  color: var(--primary);
  font-size: 0.875rem;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.5rem);
  font-weight: 800;
}

/* Block, so the two sentences of the headline never share a line — balanced
   wrapping otherwise leaves "Your" stranded at the end of the setup line. */
.hero h1 .accent {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--chart-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted-foreground);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 560px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.fineprint {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Proof bar ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 6rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

@media (min-width: 900px) {
  .proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.proof dt {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--primary);
}

.proof dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

/* ---------- Portal mock ---------- */

.mock-wrap {
  position: relative;
  max-width: 56rem;
  margin: 4rem auto 0;
}

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 50%, var(--card));
}

.mock-dots {
  display: flex;
  gap: 0.375rem;
}

.mock-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--foreground) 15%, transparent);
}

.mock-url {
  flex: 1;
  border-radius: 999px;
  background: var(--background);
  padding: 0.25rem 0.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  display: flex;
}

.mock-side {
  display: none;
  width: 11rem;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
}

@media (min-width: 640px) {
  .mock-side {
    display: flex;
  }
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-brand i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  font-style: normal;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.mock-nav-item .icon {
  font-size: 0.875rem;
}

.mock-nav-item.active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 500;
}

.mock-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
}

.mock-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.mock-sub {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mock-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 0.75rem;
}

.mock-card .k {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-card .v {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.mock-card .n {
  font-size: 0.5625rem;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.mock-chart header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mock-chart header p:first-child {
  font-size: 0.6875rem;
  font-weight: 500;
}

.mock-chart header p:last-child {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--muted-foreground);
}

.mock-chart svg {
  width: 100%;
  height: 4rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 0.75rem;
}

.mock-row .glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.mock-row .text {
  flex: 1;
  min-width: 0;
}

.mock-row .text p:first-child {
  font-size: 0.6875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-row .text p:last-child {
  font-size: 0.5625rem;
  color: var(--muted-foreground);
}

.chip {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
}

.chip-warning {
  background: color-mix(in oklch, var(--warning) 12%, transparent);
  color: var(--warning);
}

.mock-float {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  width: 16rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-xl);
  padding: 0.875rem;
}

@media (min-width: 768px) {
  .mock-float {
    display: block;
  }
}

.mock-float header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-float header .icon {
  color: var(--success);
  font-size: 1rem;
}

.mock-float header p {
  font-size: 0.6875rem;
  font-weight: 600;
}

.mock-float .detail {
  margin-top: 0.375rem;
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.mock-float .hash {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: color-mix(in oklch, var(--muted-foreground) 80%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Compare (problem section) ---------- */

.compare {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 900px) {
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: color-mix(in oklch, var(--muted) 30%, var(--background));
}

.compare-col.good {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in oklch, var(--primary) 30%, transparent);
  background: var(--card);
  box-shadow: 0 12px 40px -20px color-mix(in oklch, var(--primary) 50%, transparent);
}

.compare-col.good::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  filter: blur(48px);
  pointer-events: none;
}

.compare-col > p {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.compare-col.good > p {
  color: var(--primary);
}

.compare-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.compare-list .icon {
  margin-top: 0.15rem;
  font-size: 1rem;
}

.compare-col:not(.good) .compare-list li {
  color: var(--muted-foreground);
}

.compare-col:not(.good) .compare-list .icon {
  color: color-mix(in oklch, var(--destructive) 70%, transparent);
}

.compare-col.good .compare-list .icon {
  color: var(--primary);
}

/* ---------- Teardown table ---------- */

.teardown-scroll {
  overflow-x: auto;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.teardown {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  text-align: left;
}

.teardown th,
.teardown td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.teardown thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.teardown tbody th {
  font-weight: 600;
  font-size: 0.9rem;
}

/* tfoot as well as tbody — the "all of the above" sub-line lives in the footer
   row and was running on inline without it. */
.teardown tbody th span,
.teardown tfoot th span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.teardown .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  white-space: nowrap;
}

.teardown .num.muted {
  color: var(--muted-foreground);
}

.teardown tfoot td,
.teardown tfoot th {
  border-bottom: none;
  padding-block: 1.25rem;
}

.teardown .total th {
  font-size: 0.95rem;
}

.teardown .total .num {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.teardown .ours {
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}

.teardown .ours th,
.teardown .ours .num {
  color: var(--primary);
}

.teardown .ours .num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.teardown-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.teardown-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.saving {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 6%, transparent);
}

.saving strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.saving p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* ---------- Lifecycle ---------- */

.lifecycle {
  margin-top: 3.5rem;
}

.stage {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}

.stage:last-child {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 800px) {
  .stage {
    grid-template-columns: 15rem 1fr;
    gap: 3rem;
  }
}

.stage-label {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

@media (min-width: 800px) {
  .stage-label {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.stage-label h3 {
  font-size: 1.375rem;
  font-weight: 700;
}

.stage-body > p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 44rem;
}

.stage-features {
  display: grid;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .stage-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stage-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.stage-features .icon {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--primary);
}

.stage-replaces {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.stage-replaces b {
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- Per-client module toggles ---------- */

.toggle-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.toggle-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.toggle-panel > header p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
}

.toggle-panel > header p:last-child {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.toggle-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.625rem;
}

.toggle-list .icon {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.toggle-list span {
  flex: 1;
  font-size: 0.875rem;
}

.toggle-list li[data-on="false"] span,
.toggle-list li[data-on="false"] .icon {
  color: color-mix(in oklch, var(--muted-foreground) 60%, transparent);
}

.switch {
  width: 2.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 999px;
  background: var(--muted-foreground);
  transition: transform 0.18s;
}

li[data-on="true"] .switch {
  background: var(--primary);
  border-color: var(--primary);
}

li[data-on="true"] .switch::after {
  background: var(--primary-foreground);
  transform: translateX(1rem);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.trust-item .icon {
  font-size: 1.25rem;
  color: var(--primary);
}

.trust-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-item p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.18s;
}

.card:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.card.wide {
  grid-column: 1 / -1;
  border-color: color-mix(in oklch, var(--primary) 30%, transparent);
}

.card.wide p {
  max-width: 58rem;
}

.glyph-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 1.25rem;
}

/* ---------- Roadmap strip ---------- */

.roadmap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

@media (min-width: 900px) {
  .roadmap {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.roadmap > p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.roadmap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roadmap li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.roadmap .note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 900px) {
  .roadmap .note {
    margin-left: auto;
    text-align: right;
    max-width: 16rem;
  }
}

/* ---------- Split sections ---------- */

.split {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
  .split.sidebar-right {
    grid-template-columns: 1fr minmax(0, 22rem);
  }
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-copy h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
}

.split-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.panel.flat {
  background: color-mix(in oklch, var(--muted) 30%, var(--background));
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.panel-head .icon {
  color: var(--primary);
  font-size: 1rem;
}

.panel-head p {
  font-size: 0.875rem;
  font-weight: 600;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.5rem;
}

.callout header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout header .icon {
  color: var(--primary);
  font-size: 1rem;
}

.callout header p {
  font-size: 0.875rem;
  font-weight: 600;
}

.callout > p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ticks .icon {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--success);
}

/* ---------- Ledger timeline ---------- */

.ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
}

.ledger::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 5px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--border),
    color-mix(in oklch, var(--primary) 40%, transparent),
    color-mix(in oklch, var(--success) 60%, transparent)
  );
}

.ledger li {
  position: relative;
}

.ledger li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -1.5rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid var(--card);
  background: color-mix(in oklch, var(--muted-foreground) 40%, transparent);
}

.ledger li[data-tone="primary"]::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 30%, transparent);
}

.ledger li[data-tone="success"]::before {
  background: var(--success);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--success) 30%, transparent);
}

.ledger .label {
  font-size: 0.875rem;
  font-weight: 500;
}

.ledger .detail {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

/* ---------- Definition list ---------- */

.deflist > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--border);
}

.deflist > div:first-child {
  border-top: none;
  padding-top: 0;
}

.deflist > div:last-child {
  padding-bottom: 0;
}

.deflist dt {
  font-size: 0.875rem;
  font-weight: 500;
}

.deflist dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.panel-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- Feature grid (SEO) ---------- */

.features {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature .glyph-lg {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
}

.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.feature p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 960px) {
  .sticky-aside {
    position: sticky;
    top: 6rem;
  }
}

.serp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.serp-grid > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 0.75rem;
}

.serp-grid .k {
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.serp-grid .v {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.serp-grid .v.success {
  color: var(--success);
}
.serp-grid .v.info {
  color: var(--info);
}

.kw-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.625rem;
  border-top: 1px solid var(--border);
}

.kw-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.kw-list li:last-child {
  padding-bottom: 0;
}

.kw-list .phrase {
  flex: 1;
  min-width: 0;
}

.kw-list .phrase p:first-child {
  font-size: 0.8125rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kw-list .phrase p:last-child {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.kw-list .pos {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.delta {
  width: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  padding-block: 0.125rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
}

.delta.up {
  background: color-mix(in oklch, var(--success) 12%, transparent);
  color: var(--success);
}

.delta.down {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--destructive);
}

/* ---------- Pricing ---------- */

.tiers {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 960px) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem;
}

.tier.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 60px -30px color-mix(in oklch, var(--primary) 70%, transparent);
}

@media (min-width: 960px) {
  .tier.featured {
    margin-block: -0.75rem;
    padding-block: 2.5rem;
  }
}

.tier-flag {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.tier h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.tier .tagline {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.tier .price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.tier .price strong {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.tier .price span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.tier .clients {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.tier .btn {
  margin-top: 1.5rem;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.tier-features .icon {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--success);
}

.tier-features li.off {
  color: color-mix(in oklch, var(--muted-foreground) 60%, transparent);
}

.tier-features li.off .icon {
  color: inherit;
}

.tier-features li.off span {
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklch, var(--muted-foreground) 40%, transparent);
}

.tier-limits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.tier-limits > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.tier-limits dt {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.tier-limits dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.ceilings {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .ceilings {
    flex-direction: row;
    gap: 1.75rem;
  }
}

.ceilings h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ceilings p {
  max-width: 58rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 20rem) 1fr;
    gap: 5rem;
  }
  .faq-layout .section-head {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.faq {
  border-block: 1px solid var(--border);
}

.faq details {
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

.faq details:first-child {
  border-top: none;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: 1rem;
  font-weight: 600;
}

.faq summary .icon {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- Closing CTA ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: 7rem;
}

@media (min-width: 640px) {
  .closing {
    padding-block: 9rem;
  }
}

.closing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.875rem, 1.1rem + 3vw, 3rem);
  font-weight: 800;
}

.closing p {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.closing-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .closing-ctas {
    flex-direction: row;
  }
}

/* ---------- Workspace picker ---------- */

.workspace-dialog {
  width: calc(100% - 2rem);
  max-width: 26rem;
  /* The reset's `* { margin: 0 }` clobbers the UA's `margin: auto` on dialog,
     which is what centres a modal one — without this it pins to the top-left. */
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-xl);
}

.workspace-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(2px);
}

.workspace-dialog form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.workspace-dialog h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.workspace-lede {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* The suffix sits inside the field rather than after it, so the whole thing
   reads as one address instead of an input next to some stray text. */
.workspace-field {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
}

.workspace-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}

.workspace-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 0.7rem 0;
}

#workspace-suffix {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.workspace-error {
  font-size: 0.8125rem;
  color: var(--destructive);
}

.workspace-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.workspace-alt {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.workspace-alt a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-about {
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* The full lockup, swapped by theme. Base state is the light artwork; the two
   blocks below mirror how the colour tokens are switched, so an explicit
   [data-theme] choice beats the system preference in both directions. */
.lockup {
  width: auto;
  height: 4.5rem;
  /* The footer column is a flex container, so without this the default
     `align-items: stretch` sizes the image to the column's width and `width:
     auto` never gets to honour the intrinsic aspect ratio — the lockup renders
     320px wide by 72px tall and visibly squashed. */
  align-self: flex-start;
  margin-left: -0.35rem;
}

.lockup-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lockup-light {
    display: none;
  }
  :root:not([data-theme="light"]) .lockup-dark {
    display: block;
  }
}

:root[data-theme="dark"] .lockup-light {
  display: none;
}

:root[data-theme="dark"] .lockup-dark {
  display: block;
}

.footer-about p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
}

.footer-cols h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-cols li + li {
  margin-top: 0.625rem;
}

.footer-cols a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.18s;
}

.footer-cols a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 900px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bottom p:last-child {
    max-width: 38rem;
    text-align: right;
  }
}
