/* EditMint landing — light premium theme */
:root {
  --bg: #f6f8fa;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --accent-glow: rgba(13, 148, 136, 0.18);
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 22px 48px -12px rgba(15, 23, 42, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1200px 480px at 12% -8%, rgba(13, 148, 136, 0.06), transparent 55%),
    radial-gradient(900px 400px at 88% 0%, rgba(148, 163, 184, 0.08), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: rgba(246, 248, 250, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 24px -16px rgba(15, 23, 42, 0.08);
}

.site-header .inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: 0.65rem 0;
}

.site-header .logo {
  flex-shrink: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-top-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-top-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-links-tight > li.nav-li-dropdown {
  list-style: none;
  position: relative;
  flex-shrink: 0;
}

.nav-li-dropdown-end .dropdown-panel.dropdown-panel-wide {
  left: auto;
  right: 0;
}

.dropdown-panel-left {
  left: 0;
  right: auto;
}

.dropdown-panel-wide {
  min-width: min(380px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}

.dropdown-panel a.row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 1rem;
}

.dropdown-panel a.row .row-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.dropdown-panel a.row .row-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.35;
}

.dropdown-panel a.row:hover .row-title {
  color: var(--accent);
}

.nav-mobile-drawer {
  display: none;
  margin-left: 0;
}

.nav-mobile-drawer > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-mobile-drawer > summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-drawer[open] > summary {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  left: auto;
  width: min(100vw - 1.5rem, 380px);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  z-index: 250;
}

.nav-mobile-panel .mobile-nav-h {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.nav-mobile-panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-drawer {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% 40%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(148, 163, 184, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: min(52ch, 100%);
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text);
}

/* App mock + demo */
.demo-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06) inset;
}

.demo-dots span:nth-child(1) {
  background: #ff5f57;
}

.demo-dots span:nth-child(2) {
  background: #febc2e;
}

.demo-dots span:nth-child(3) {
  background: #28c840;
}

.demo-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.demo-app-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.demo-text-block {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.demo-text-block .hl {
  background: rgba(250, 204, 21, 0.45);
  padding: 0 2px;
  border-radius: 2px;
}

.demo-arrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.hotkey-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--text);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
}

.demo-result {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  padding: 1rem;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius);
  color: var(--text);
}

.demo-caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections common */
section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

section h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section-intro {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

#why {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.055) 0%, transparent 72%);
}

#audiences {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.06);
}

#guides {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

#features {
  padding-block: 4.75rem;
}

/* Problem */
.problem {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pain-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.pain-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.pain-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Solution */
.solution-points {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.solution-points li {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  color: var(--text);
}

.solution-points {
  padding: 0;
  margin: 0;
}

.solution-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.feature-card {
  padding: 1.5rem 1.55rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.25s ease, transform 0.22s ease;
}

.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card-primary:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.58);
  box-shadow: 0 20px 52px -18px rgba(13, 148, 136, 0.42), var(--shadow-lg);
}

.feature-card-primary {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 12px 40px -14px rgba(13, 148, 136, 0.45), var(--shadow);
  background: linear-gradient(155deg, rgba(13, 148, 136, 0.09) 0%, var(--bg-elevated) 48%);
}

.feature-card-primary .feature-icon {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.feature-card-primary h3 {
  color: var(--text);
}

.feature-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-card h3 {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Use cases */
.use-cases {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.use-grid {
  display: grid;
  gap: 1rem;
}

.use-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.use-row:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

@media (max-width: 700px) {
  .use-row {
    grid-template-columns: 1fr;
  }

  .use-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

.use-scenario {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.use-problem {
  font-size: 0.875rem;
  color: #b45309;
  margin: 0;
}

.use-result {
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0;
}

.use-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.step-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.trust-item {
  padding: 1.35rem 1.6rem;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.trust-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-bottom-color: #e2e8f0;
}

.compare-table th.highlight {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%);
  color: var(--text);
}

.compare-table tbody tr:nth-child(even) td:not(.highlight) {
  background: rgba(248, 250, 252, 0.85);
}

.compare-table tbody tr:hover td:not(.highlight) {
  background: rgba(13, 148, 136, 0.04);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight {
  background: rgba(13, 148, 136, 0.08);
  font-weight: 600;
}

.check {
  color: var(--accent);
  font-weight: 700;
}

.cross {
  color: #94a3b8;
}

/* Download */
.download {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.download-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.download-card h2 {
  margin-bottom: 0.5rem;
}

.download-card > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.download-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.download-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.win-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.download-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 4.5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 148, 136, 0.04) 50%, transparent 100%);
}

.final-cta h2 {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* SEO / inner pages */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  padding-top: 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0;
}

.content-prose {
  padding: 2.5rem 0 3rem;
}

.content-prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose p,
.content-prose ul {
  color: var(--text);
  max-width: 68ch;
  margin: 0 0 1rem;
}

.content-prose ul {
  padding-left: 1.25rem;
}

.content-prose li {
  margin-bottom: 0.35rem;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.keyword-strip span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.audience-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.audience-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.audience-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.audience-card .audience-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.faq-section {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #f8fafc 100%);
  border-block: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: var(--shadow-lg);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.related-pages {
  padding: 2.5rem 0 3rem;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
}

.related-pages h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-grid a {
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.related-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Nav dropdowns (desktop) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-dropdown > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown[open] > summary {
  color: var(--text);
}

.nav-dropdown-inline[open] > summary {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-dropdown[open] > summary::after {
  transform: rotate(225deg) translateY(1px);
  opacity: 0.85;
}

.nav-dropdown .dropdown-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  margin-top: 0;
  min-width: 15.5rem;
  max-height: min(70vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 0.4rem 0;
  z-index: 220;
  overscroll-behavior: contain;
}

.nav-dropdown .dropdown-panel > a:not(.row) {
  display: block;
  width: 100%;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  border-radius: 0;
}

.nav-dropdown .dropdown-panel > a:not(.row):hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.nav-dropdown .dropdown-panel a.row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.6rem 1.1rem;
}

.nav-dropdown .dropdown-panel a.row:hover {
  background: rgba(13, 148, 136, 0.08);
  text-decoration: none;
}

.nav-dropdown .dropdown-panel a.row:hover .row-title {
  color: var(--accent);
}

.nav-dropdown .dropdown-panel .dropdown-hint {
  padding: 0.45rem 1.1rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.2rem;
}

.footer-audiences {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-audiences strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-audience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-audience-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-audience-links a:hover {
  color: var(--accent);
}

.footer-inner.stack {
  flex-direction: column;
  align-items: flex-start;
}

/* Beta waitlist modal */
.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.beta-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.beta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.beta-modal-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.35rem 1.35rem;
}

.beta-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beta-modal-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.beta-modal-title {
  font-size: 1.25rem;
  margin: 0 2.25rem 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.beta-modal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.beta-modal-form .beta-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.beta-input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  min-height: 48px;
}

.beta-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: rgba(13, 148, 136, 0.45);
}

.beta-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.beta-msg {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--accent-hover);
}

.beta-msg.beta-msg--ok {
  color: var(--accent);
}

.beta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 400px) {
  .beta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .beta-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

body.beta-modal-open {
  overflow: hidden;
}

/* Mobile nav: larger tap targets + safe area */
@media (max-width: 1024px) {
  .nav-mobile-drawer > summary {
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile-panel {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .nav-mobile-panel a {
    padding: 0.65rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-header .inner {
    padding-inline: max(0.5rem, env(safe-area-inset-left, 0px)) max(0.5rem, env(safe-area-inset-right, 0px));
  }
}
