/*
Theme Name: PrüfMittel
Theme URI: https://prufmittel.com
Author: Leiritech
Author URI: https://leiritech.com
Description: Custom blog theme for PrüfMittel — the "Calibration Certificate" design system. Cool technical white, teal LCD-readout accent, engineering dot-grid, rings not shadows. Renders TARS-published articles (title, dek, category, tags, featured image, reading time) in the exact PrüfMittel visual language. English-only.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prufmittel
Tags: blog, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   PrüfMittel design tokens — ported VERBATIM from
   apps/app/src/app/globals.css (Tailwind v4 @theme / :root).
   OKLCH values are byte-for-byte identical to the source app.
   ============================================================ */

:root {
  /* ── Calibration Certificate ── cool technical white ── */

  /* Background: slightly cool off-white, like high-grade technical paper */
  --background: oklch(0.965 0.006 255);
  --foreground: oklch(0.10 0.015 255);

  /* Cards: pure white — pops against the off-white dot-grid page background */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.10 0.015 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.10 0.015 255);

  /* Deep accessible teal — 7:1 contrast on white */
  --primary: oklch(0.44 0.18 198);
  --primary-foreground: oklch(0.97 0.004 255);

  --secondary: oklch(0.93 0.007 255);
  --secondary-foreground: oklch(0.10 0.015 255);
  --muted: oklch(0.93 0.007 255);
  --muted-foreground: oklch(0.46 0.018 255);
  --accent: oklch(0.44 0.18 198 / 0.08);
  --accent-foreground: oklch(0.44 0.18 198);

  /* Status — all WCAG AA on white */
  --destructive: oklch(0.52 0.22 25);
  --destructive-foreground: oklch(0.98 0 0);
  --success: oklch(0.48 0.18 142);
  --warning: oklch(0.54 0.17 80);
  --orange: oklch(0.52 0.17 50);

  /* Structure */
  --border: oklch(0.86 0.010 255);
  --input: oklch(0.90 0.007 255);
  --ring: oklch(0.44 0.18 198);

  /* Charts */
  --chart-1: oklch(0.44 0.18 198);
  --chart-2: oklch(0.48 0.18 142);
  --chart-3: oklch(0.54 0.17 80);
  --chart-4: oklch(0.52 0.22 25);
  --chart-5: oklch(0.48 0.16 280);

  /* Radius — base token + derived scale (source @theme inline) */
  --radius: 0.375rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);

  /* Sidebar — pure white panel beside the off-white body */
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.10 0.015 255);
  --sidebar-primary: oklch(0.44 0.18 198);
  --sidebar-primary-foreground: oklch(0.97 0.004 255);
  --sidebar-accent: oklch(0.44 0.18 198 / 0.08);
  --sidebar-accent-foreground: oklch(0.44 0.18 198);
  --sidebar-border: oklch(0.88 0.008 255);
  --sidebar-ring: oklch(0.44 0.18 198);

  /* Engineering dot-grid texture for body background */
  --body-bg-image: radial-gradient(
    oklch(0.72 0.012 255 / 0.28) 1px,
    transparent 1px
  );
  --body-bg-size: 20px 20px;

  /* Fonts — same three families the app loads via next/font/google */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: "DM Serif Display", ui-serif, Georgia, "Times New Roman",
    serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;

  /* Spacing scale — Tailwind v4 defaults (the app uses the stock scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Reading measure for long-form prose */
  --measure: 68ch;
}

/* Dark palette — ported verbatim. Class-gated (html.dark) so LIGHT stays the
   default; not wired to prefers-color-scheme and no toggle this unit. */
html.dark {
  /* ── Calibrated ── deep anodized blue-black ── */
  --background: oklch(0.09 0.012 255);
  --foreground: oklch(0.94 0.006 255);
  --card: oklch(0.12 0.01 255);
  --card-foreground: oklch(0.94 0.006 255);
  --popover: oklch(0.145 0.01 255);
  --popover-foreground: oklch(0.94 0.006 255);

  /* Electric teal — the LCD readout accent */
  --primary: oklch(0.72 0.165 198);
  --primary-foreground: oklch(0.08 0.015 255);

  --secondary: oklch(0.17 0.01 255);
  --secondary-foreground: oklch(0.94 0.006 255);
  --muted: oklch(0.16 0.01 255);
  --muted-foreground: oklch(0.5 0.02 255);
  --accent: oklch(0.72 0.165 198 / 0.1);
  --accent-foreground: oklch(0.72 0.165 198);

  --destructive: oklch(0.62 0.22 25);
  --destructive-foreground: oklch(0.98 0 0);
  --success: oklch(0.72 0.15 142);
  --warning: oklch(0.78 0.15 80);
  --orange: oklch(0.73 0.17 50);

  --border: oklch(0.22 0.012 255);
  --input: oklch(0.19 0.01 255);
  --ring: oklch(0.72 0.165 198);

  --chart-1: oklch(0.72 0.165 198);
  --chart-2: oklch(0.72 0.15 142);
  --chart-3: oklch(0.78 0.15 80);
  --chart-4: oklch(0.62 0.22 25);
  --chart-5: oklch(0.68 0.14 280);

  --sidebar: oklch(0.065 0.012 255);
  --sidebar-foreground: oklch(0.85 0.008 255);
  --sidebar-primary: oklch(0.72 0.165 198);
  --sidebar-primary-foreground: oklch(0.08 0.015 255);
  --sidebar-accent: oklch(0.72 0.165 198 / 0.08);
  --sidebar-accent-foreground: oklch(0.72 0.165 198);
  --sidebar-border: oklch(0.18 0.01 255);
  --sidebar-ring: oklch(0.72 0.165 198);

  /* No dot grid in dark mode */
  --body-bg-image: none;
  --body-bg-size: auto;
}

/* ============================================================
   Base — reproduces the app shell feel in plain CSS
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  background-image: var(--body-bg-image);
  background-size: var(--body-bg-size);
  /* Manrope character variants — matches the app's font-feature-settings */
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--foreground);
  margin: 0 0 var(--space-4);
}

/* Numbers behave like numbers — monospace, tabular */
time,
.pm-numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Small uppercase tracked labels — the app's signature micro-label */
.pm-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

/* ── Layout ── */
.pm-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.pm-main {
  flex: 1 0 auto;
  padding-block: var(--space-12);
}

/* ── Site header ── */
.pm-site-header {
  background-color: var(--card);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent);
  position: sticky;
  top: 0;
  z-index: 40;
}
.pm-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 4rem;
}
.pm-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.pm-wordmark:hover {
  text-decoration: none;
  color: var(--primary);
}
.pm-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.pm-nav ul {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-nav a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
.pm-nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}

/* ── Page intro ── */
.pm-page-head {
  margin-bottom: var(--space-10);
  max-width: var(--measure);
}
.pm-page-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.pm-page-head p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  margin: 0;
}

/* ── Category chip (teal-tinted accent) ── */
.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pm-chip:hover {
  text-decoration: none;
}

/* ── Post list ── */
.pm-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: var(--space-6);
}

/* Cards use a 1px ring (foreground/10) — NOT a drop shadow. Signature choice. */
.pm-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.pm-card:hover {
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent);
}
.pm-card__media {
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
  overflow: hidden;
}
.pm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.pm-card__title {
  font-size: 1.125rem;
  margin: 0;
}
.pm-card__title a {
  color: var(--foreground);
}
.pm-card__title a:hover {
  color: var(--primary);
  text-decoration: none;
}
.pm-card__dek {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin: 0;
  flex: 1;
}
.pm-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.pm-meta__sep {
  opacity: 0.5;
}

/* ── Single article ── */
.pm-article {
  max-width: 46rem;
  margin-inline: auto;
}
.pm-article__hero {
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  overflow: hidden;
  margin-bottom: var(--space-8);
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
}
.pm-article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-article__header {
  margin-bottom: var(--space-8);
}
.pm-article__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin: var(--space-4) 0 var(--space-5);
}
.pm-article__dek {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

/* Long-form prose (the_content) — capped measure, editorial rhythm */
.pm-prose {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--foreground);
}
/* Reset margins at ZERO specificity (:where) so the owl selector below always
   wins the flow rhythm — otherwise `.pm-prose p{}` (0,1,1) beats it and a
   paragraph after a list gets no top gap. */
.pm-prose :where(p, ul, ol, blockquote, pre, figure, h2, h3) {
  margin: 0;
}
.pm-prose > * + * {
  margin-top: var(--space-5);
}
.pm-prose h2 {
  font-size: 1.5rem;
  margin-top: var(--space-10);
}
.pm-prose h3 {
  font-size: 1.25rem;
  margin-top: var(--space-8);
}
.pm-prose ul,
.pm-prose ol {
  padding-left: 1.5rem;
}
.pm-prose li + li {
  margin-top: var(--space-2);
}
.pm-prose img,
.pm-prose figure img {
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  margin-block: var(--space-6);
}
.pm-prose figcaption {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: var(--space-2);
}
.pm-prose blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-2) var(--space-5);
  border-left: 3px solid var(--primary);
  color: var(--muted-foreground);
  font-style: italic;
}
.pm-prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--muted);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}
.pm-prose pre {
  font-family: var(--font-mono);
  background-color: var(--card);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  overflow-x: auto;
}
.pm-prose pre code {
  background: none;
  padding: 0;
}
.pm-prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Tag row ── */
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.pm-tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.8125rem;
}
.pm-tag:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
}

/* ── Pagination ── */
.pm-pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}
.pm-pagination .nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.pm-pagination a,
.pm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: var(--card);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
}
.pm-pagination a:hover {
  text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent);
}
.pm-pagination .current {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}

/* ── Buttons & inputs (match app primitives) ── */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding-inline: var(--space-4);
  border-radius: var(--radius-lg);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.pm-btn:hover {
  text-decoration: none;
  background-color: color-mix(in oklab, var(--primary) 80%, transparent);
}
.pm-btn:active {
  transform: translateY(1px);
}
.pm-input {
  width: 100%;
  height: 2.25rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--input);
  font-size: 0.875rem;
  font-family: var(--font-sans);
}
.pm-input::placeholder {
  color: var(--muted-foreground);
}

/* ── Search form ── */
.pm-searchform {
  max-width: var(--measure);
  margin-bottom: var(--space-8);
}
.pm-searchform__row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.pm-searchform__row .pm-input {
  flex: 1;
}

/* ── Inline action row (e.g. 404) ── */
.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-8);
}

/* ── Empty state ── */
.pm-empty {
  text-align: center;
  padding-block: var(--space-16);
  color: var(--muted-foreground);
}

/* ── Footer ── */
.pm-site-footer {
  flex-shrink: 0;
  background-color: var(--sidebar);
  color: var(--sidebar-foreground);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent);
  margin-top: var(--space-20);
}
.pm-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-8);
}
.pm-site-footer .pm-wordmark {
  color: var(--sidebar-foreground);
}
.pm-site-footer small {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

/* Accessibility: visible skip link + focus ring */
.pm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  z-index: 100;
}
.pm-skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pm-container {
    padding-inline: var(--space-4);
  }
  .pm-nav ul {
    gap: var(--space-4);
  }
}

/* ============================================================
   MARKETING FRONT PAGE — pruefdesk.com landing
   Built on the same Calibration-Certificate tokens above.
   Full-bleed sections; white ring-cards on the off-white dot-grid.
   ============================================================ */

.pm-mktg { display: block; }

/* Section rhythm + hairline separators between bands */
.pm-section {
  padding-block: var(--space-20);
  border-top: 1px solid color-mix(in oklab, var(--foreground) 7%, transparent);
}
.pm-section:first-child { border-top: 0; }
.pm-section__head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}
.pm-section__head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin: 0 0 var(--space-4);
}
.pm-section__head p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  margin: 0;
}

/* Logo mark — gauge tick (verification + measurement) */
.pm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.pm-logo__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  flex: none;
}
.pm-logo__mark svg { width: 1.15rem; height: 1.15rem; }
.pm-logo__text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.pm-logo:hover { text-decoration: none; }

/* Header CTA cluster */
.pm-header-cta { display: flex; align-items: center; gap: var(--space-5); }
.pm-header-cta .pm-nav-signin {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Buttons: large + outline variants (extend .pm-btn) */
.pm-btn--lg { height: 3rem; padding-inline: var(--space-6); font-size: 1rem; border-radius: var(--radius-lg); }
.pm-btn--outline {
  background: transparent;
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--border);
}
.pm-btn--outline:hover { background: var(--secondary); }
.pm-btn__arrow { margin-left: 0.5rem; }

/* ── Hero ── */
.pm-hero { text-align: center; padding-block: clamp(4rem, 9vw, 7.5rem); }
.pm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: var(--space-8);
}
.pm-hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.pm-accent { color: var(--primary); }
.pm-hero__sub {
  max-width: 46rem;
  margin: 0 auto var(--space-8);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.pm-hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.pm-hero__note { font-size: 0.875rem; color: var(--muted-foreground); }

/* ── Feature grid (3-up) ── */
.pm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pm-feature {
  background: var(--card);
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  padding: var(--space-8);
  transition: box-shadow 0.15s ease;
}
.pm-feature:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent); }
.pm-icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--accent-foreground);
  margin-bottom: var(--space-5);
}
.pm-icon-tile svg { width: 1.35rem; height: 1.35rem; }
.pm-feature h3 { font-size: 1.1875rem; margin: 0 0 var(--space-3); }
.pm-feature p { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* ── Industries (2-up, horizontal) ── */
.pm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 60rem;
  margin-inline: auto;
}
.pm-industry {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  padding: var(--space-6);
}
.pm-industry h3 { font-size: 1.0625rem; margin: 0 0 var(--space-1); }
.pm-industry p { color: var(--muted-foreground); font-size: 0.9375rem; margin: 0; line-height: 1.5; }

/* ── Pricing (3-up) ── */
.pm-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 66rem;
  margin-inline: auto;
  align-items: start;
}
.pm-plan {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.pm-plan--featured {
  box-shadow: 0 0 0 2px var(--primary);
}
.pm-plan__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.pm-plan__name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.pm-plan__price { display: flex; align-items: baseline; gap: 0.3rem; }
.pm-plan__amount { font-family: var(--font-sans); font-weight: 800; font-size: 2.5rem; letter-spacing: -0.03em; }
.pm-plan__period { color: var(--muted-foreground); font-size: 0.9375rem; }
.pm-plan__meta { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }
.pm-plan .pm-btn { width: 100%; height: 2.75rem; }
.pm-plan__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pm-plan__features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.pm-plan__features svg { width: 1.1rem; height: 1.1rem; color: var(--primary); flex: none; margin-top: 0.15rem; }

/* ── Closing CTA ── */
.pm-cta { text-align: center; }
.pm-cta h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin: 0 0 var(--space-4); }
.pm-cta p { color: var(--muted-foreground); font-size: 1.0625rem; max-width: 40rem; margin: 0 auto var(--space-8); }

/* ── Marketing footer ── */
.pm-mktg-footer .pm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-block: var(--space-10);
}
.pm-mktg-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.pm-mktg-footer nav a { color: var(--muted-foreground); font-size: 0.875rem; }
.pm-mktg-footer nav a:hover { color: var(--foreground); text-decoration: none; }
.pm-mktg-footer small { color: var(--muted-foreground); font-size: 0.8125rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pm-grid-3 { grid-template-columns: 1fr 1fr; }
  .pm-pricing { grid-template-columns: 1fr; max-width: 26rem; }
}
@media (max-width: 640px) {
  .pm-grid-3, .pm-grid-2 { grid-template-columns: 1fr; }
  .pm-header-cta .pm-nav-signin { display: none; }
  .pm-section { padding-block: var(--space-16); }
}
