/* ============================================================
   supplier-template.css
   Shared stylesheet for all generated supplier pages.
   Default theme: dark navy (#151929) + pink (#FE1C6A).
   Kendal AI override: --ink:#0a0816 --accent:#7C3AED --highlight:#22D3EE
   Applied via CSS custom props set in supplier-renderer.js.
   ============================================================ */

/* ---- CSS Custom Properties (defaults) ---- */
:root {
  --ink:       #151929;
  --accent:    #FE1C6A;
  --highlight: #4ade80;

  --white:     #ffffff;
  --grey-light: #c8cfe0;
  --grey:       #8892a4;
  --surface:    #1e2640;
  --surface-2:  #242c47;
  --border:     rgba(255,255,255,0.08);

  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --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;
  --space-24:6rem;

  --radius-sm:0.375rem;
  --radius:   0.75rem;
  --radius-lg:1.25rem;
  --radius-xl:2rem;

  --font-sans:"DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif:"DM Serif Display", Georgia, serif;

  --max-w: 1120px;
  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-body {
  font-size: var(--text-base);
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.section-heading em {
  font-style: normal;
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-24) var(--space-6);
  background: var(--ink);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--grey-light);
  max-width: 640px;
  margin: 0 auto var(--space-4);
  line-height: 1.6;
}

.hero-meta {
  font-size: var(--text-sm);
  color: var(--grey);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-12);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--grey-light);
  line-height: 1.4;
}

/* ---- Sticky Nav ---- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21,25,41,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-light);
  padding: var(--space-4) var(--space-3);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

/* ---- Overview card grid ---- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .overview-grid { grid-template-columns: 1fr 1fr; }
}

.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.overview-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.overview-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.overview-facts li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.5;
}

.fact-label {
  flex-shrink: 0;
  width: 90px;
  font-weight: 600;
  color: var(--grey);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

/* ---- Leadership ---- */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
}

.leader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.leader-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.leader-role {
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.leader-bio {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.leader-linkedin {
  font-size: var(--text-xs);
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.leader-linkedin:hover { color: var(--accent); text-decoration: none; }

/* ---- Product modules ---- */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-top: 3px solid var(--accent);
}

.module-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.module-desc {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.7;
}

/* ---- Integrations ---- */
.integrations-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.integration-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--grey-light);
}

/* ---- Press coverage ---- */
.press-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.press-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.press-date {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
  min-width: 60px;
}

.press-content {}

.press-outlet {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.press-title {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.5;
}
.press-title a { color: var(--grey-light); }
.press-title a:hover { color: var(--white); text-decoration: underline; }

/* ---- Kerfuffle Fit ---- */
.fit-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
}

.fit-box p {
  font-size: var(--text-base);
  color: var(--grey-light);
  line-height: 1.9;
}

.fit-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.fit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .fit-row { grid-template-columns: 180px 1fr; gap: var(--space-5); }
}
.fit-row-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.15rem;
}
.fit-row-value {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.6;
}
.fit-hook {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.fit-hook-label {
  font-size: var(--text-xs) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-2) !important;
  line-height: 1.4 !important;
}
.fit-hook p { margin-bottom: var(--space-3); }
.fit-hook-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.fit-hook-link:hover { text-decoration: underline; }

/* ---- Videos ---- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  padding: var(--space-4) var(--space-5) var(--space-1);
  line-height: 1.4;
}
.video-caption {
  font-size: var(--text-xs);
  color: var(--grey);
  padding: 0 var(--space-5) var(--space-5);
  line-height: 1.6;
}

/* ---- Landing pages ---- */
.landing-pages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (min-width: 640px) {
  .landing-pages-grid { grid-template-columns: repeat(2, 1fr); }
}

.landing-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.landing-page-badge {
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  flex-shrink: 0;
}

.landing-page-url {
  font-size: var(--text-sm);
  color: var(--grey-light);
  word-break: break-all;
}
.landing-page-url a { color: var(--highlight); }
.landing-page-url a:hover { color: var(--white); text-decoration: underline; }

/* ---- Tiers table ---- */
.tiers-table {
  overflow-x: auto;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tiers-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.tiers-table th, .tiers-table td {
  padding: var(--space-3) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tiers-table .tier-feature-col {
  text-align: left;
  color: var(--grey-light);
  min-width: 200px;
}

.tiers-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--white);
  vertical-align: bottom;
}

.tiers-table .tier-name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
}

.tiers-table .tier-price {
  display: block;
  font-size: var(--text-xs);
  color: var(--grey);
  margin-top: var(--space-1);
}

.tiers-table .tier-highlight th {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface-2));
  border-top: 3px solid var(--accent);
}

.tiers-table .tier-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.tiers-table .tier-group-header td {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-2);
  text-align: left;
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.tiers-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.tiers-table .tier-highlight-cell {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  font-weight: 600;
  color: var(--white);
}

.tiers-table .tier-summary-row td {
  font-style: italic;
  color: var(--grey-light);
  border-top: 1px solid var(--border);
}

/* ---- VT+VA callout ---- */
.vt-va-callout {
  margin-top: var(--space-8);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.vt-va-callout h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.vt-va-callout p {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.vt-va-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
@media (min-width: 640px) {
  .vt-va-tools { grid-template-columns: 1fr 1fr; }
}

.vt-tool-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.vt-tool-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.vt-tool-price {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.vt-tool-desc {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.6;
}

.vt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.vt-total-label {
  font-size: var(--text-sm);
  color: var(--grey-light);
}

.vt-total-value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--accent);
}

.vt-total-note {
  font-size: var(--text-xs);
  color: var(--highlight);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---- Floating CTA ---- */
.floating-cta {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: 999px;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 60%, transparent);
  text-decoration: none;
  color: var(--white);
}

/* ---- Enquiry modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-10);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: none;
  border: none;
  color: var(--grey-light);
  font-size: var(--text-2xl);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--white); }

.modal-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--grey-light);
  margin-bottom: var(--space-6);
}

/* Modal tabs */
.modal-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--grey-light);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.modal-tab.active, .modal-tab:hover { color: var(--white); }
.modal-tab.active { border-bottom-color: var(--accent); }

.modal-tab-panel { display: none; }
.modal-tab-panel.active { display: block; }

/* Tier selector */
.tier-selector {
  border: none;
  margin-bottom: var(--space-6);
}

.tier-option { cursor: pointer; }
.tier-option input[type="radio"] { position: absolute; opacity: 0; }

.tier-cards-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.tier-card {
  flex: 1;
  min-width: 100px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  transition: border-color var(--transition);
}

.tier-option input:checked + .tier-card,
.tier-option:hover .tier-card { border-color: var(--accent); }

.tier-card-recommended {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
}

.tier-card-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.tier-card-name {
  display: block;
  font-weight: 700;
  font-size: var(--text-base);
}

.tier-card-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--grey-light);
  margin-top: var(--space-1);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-light);
}

.form-group input, .form-group textarea {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
}

.required { color: var(--accent); }
.optional { color: var(--grey); font-size: var(--text-xs); }

.form-actions { margin-top: var(--space-4); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-error { color: #f87171; font-size: var(--text-sm); margin-top: var(--space-3); }
.form-success { color: var(--highlight); font-size: var(--text-sm); margin-top: var(--space-3); }

/* Chat */
.chat-container { display: flex; flex-direction: column; height: 300px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-welcome {
  font-size: var(--text-sm);
  color: var(--grey-light);
  line-height: 1.6;
}
.chat-welcome strong { display: block; color: var(--accent); margin-bottom: var(--space-1); }

.chat-message { font-size: var(--text-sm); line-height: 1.6; }
.chat-message.user { text-align: right; color: var(--white); }
.chat-message.assistant { color: var(--grey-light); }

.chat-input-row {
  display: flex;
  gap: var(--space-2);
}

.chat-input {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  padding: var(--space-3) var(--space-5);
  outline: none;
}
.chat-input:focus { border-color: var(--accent); }

.chat-send {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send svg { width: 16px; height: 16px; color: var(--white); }

/* ---- Internal view banner ---- */
.internal-banner {
  background: #3b1010;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
}

.internal-section {
  background: #1a0505;
  border: 2px solid #7f1d1d;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

.internal-section h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: #f87171;
  margin-bottom: var(--space-4);
}

.internal-section p {
  font-size: var(--text-sm);
  color: #fca5a5;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.internal-section ul {
  list-style: disc;
  padding-left: var(--space-5);
  color: #fca5a5;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--grey);
}

.site-footer a { color: var(--grey-light); }
.site-footer a:hover { color: var(--white); }

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* ---- Rec banner ---- */
.rec-banner {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, var(--ink)) 0%, var(--ink) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) var(--space-6);
}

.rec-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.rec-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.rec-heading {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.rec-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rec-bullets li {
  font-size: var(--text-sm);
  color: var(--grey-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.6;
}
.rec-bullets li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ---- Fade-in animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.5s ease forwards; }

/* ---- UK presence ---- */
.uk-presence-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-base);
  color: var(--grey-light);
  line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 639px) {
  /* Section spacing */
  .section { padding: var(--space-12) 0; }
  .section-heading { font-size: var(--text-3xl); }

  /* Hero — ensure horizontal padding so text doesn't bleed to edges */
  .hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    padding-top: var(--space-20);
    padding-bottom: var(--space-12);
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-subtitle { font-size: var(--text-base); }

  /* Container safe gutters */
  .container { padding: 0 var(--space-4); }

  /* Fit box — reduce side padding to avoid overflow */
  .fit-box { padding: var(--space-6) var(--space-5); }
  .uk-presence-box { padding: var(--space-5) var(--space-5); }

  /* Rec banner heading — scale down so it doesn't overflow at 320px */
  .rec-heading { font-size: var(--text-3xl); }
  .rec-banner { padding: var(--space-8) var(--space-4); }

  /* Nav links — ensure tap targets ≥ 44px tall */
  .nav-link { padding: var(--space-3) var(--space-3); min-height: 44px; display: flex; align-items: center; }

  /* Floating CTA — smaller, above bottom safe area, ensure 44px touch target */
  .floating-cta {
    bottom: var(--space-4);
    right: var(--space-4);
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-5);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Modal — tighter padding, full safe scroll */
  .modal-card { padding: var(--space-6) var(--space-4); }
  .modal-overlay { padding: var(--space-2); }

  /* Overview cards — reduce padding */
  .overview-card { padding: var(--space-5); }
  .vt-va-callout { padding: var(--space-5); }

  /* Tiers table — tighter cell padding so columns fit */
  .tiers-table th, .tiers-table td { padding: var(--space-2) var(--space-3); }
  .tiers-table table { font-size: var(--text-xs); }
  .tiers-table .tier-feature-col { min-width: 130px; }

  /* Tier selector in modal — single column */
  .tier-selector { grid-template-columns: 1fr; }

  /* Who-uses callout button full-width */
  .who-uses-btn { width: 100%; text-align: center; }
}
/* ============================================================
   WHO USES — named references block
============================================================ */

.who-uses-section {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: transparent;
}

.who-uses-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.who-uses-callout {
  background: #FE1C6A;
  color: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
  box-shadow: 0 10px 30px rgba(254, 28, 106, 0.18);
}

.who-uses-callout p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
}

.who-uses-callout strong { color: #ffffff; }

.who-uses-btn {
  display: inline-block;
  background: #ffffff;
  color: #FE1C6A;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.who-uses-btn:hover,
.who-uses-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  outline: none;
}

.who-uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ref-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 170px;
}

.ref-card.is-placeholder {
  opacity: 0.55;
  border-style: dashed;
}

.ref-card .ref-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
}

.ref-card .ref-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.ref-card .ref-agency {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.6rem;
}

.ref-card.is-placeholder .ref-name,
.ref-card.is-placeholder .ref-role,
.ref-card.is-placeholder .ref-agency {
  color: rgba(255, 255, 255, 0.4);
}

.ref-card .ref-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ref-card .ref-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(254, 28, 106, 0.12);
  color: #FE1C6A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.ref-card .ref-icon:hover { background: rgba(254, 28, 106, 0.22); }

.ref-card.is-placeholder .ref-icon {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
}

/* Light-surface variant */
.who-uses-section.is-light .ref-card {
  background: #f4f4f6;
  border-color: #e2e2e8;
}
.who-uses-section.is-light .ref-card .ref-name { color: #1a1a1a; }
.who-uses-section.is-light .ref-card .ref-role { color: #6a7080; }
.who-uses-section.is-light .ref-card .ref-agency { color: #3a3f50; }

@media (max-width: 780px) {
  .who-uses-grid {
    grid-template-columns: 1fr;
  }
  .who-uses-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .who-uses-btn { width: 100%; text-align: center; }
}

/* RAN worked-example card with thumbnail */
.landing-pages-grid:has(.ran-example-card) { display: block; }
.ran-example-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-6);
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.ran-example-card:hover {
  border-color: var(--accent);
  background: rgba(254, 28, 106, 0.04);
  transform: translateY(-2px);
}
.ran-example-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d12;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ran-example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ran-example-body { min-width: 0; }
.ran-example-body .landing-page-badge {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: var(--space-3);
}
.ran-example-copy {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.ran-example-url {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: var(--font-mono, monospace);
  word-break: normal;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ran-example-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .ran-example-url { white-space: normal; word-break: break-word; }
}
