/* ============================================
   designroom.express — Marketing Website Styles
   Brand palette + typography per brand guide.
   ============================================ */

/* ===== Brand webfonts (self-hosted) =====
   Manrope (headings / UI / navigation / buttons / labels) and
   Work Sans (body, descriptive copy, captions, notes). Files live in
   ./assets/fonts and are declared here so the typography is identical
   locally and in normal deployed static-site use, with no dependency on
   a third-party font CDN (and no silent fallback to a system font).
   Bimini is reserved for the logo/wordmark only (see .logo-wordmark). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== CSS Custom Properties (Brand Tokens) ===== */
:root {
  /* Palette */
  --drx-aubergine: #6E4B5C;
  --drx-deep-aubergine: #4F3542;
  --drx-pink: #CDA3A9;
  --drx-mint: #A3B5A8;
  --drx-grey: #A6A19E;
  --drx-off-white: #F8F3F0;
  --drx-stone: #EDE6E1;
  --drx-soft-mauve: #E6D8DC;
  --drx-charcoal: #2B2225;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 2rem;     /* 32px */
  --space-lg: 3rem;     /* 48px */
  --space-xl: 4.5rem;   /* 72px */

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows (very soft) */
  --shadow-card: 0 1px 3px rgba(43, 34, 37, 0.08);
  --shadow-hover: 0 4px 12px rgba(43, 34, 37, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--drx-charcoal);
  background-color: var(--drx-off-white);
}

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

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

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-alt {
  background-color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Typography ===== */
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--drx-aubergine);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: #5A4F53;
  max-width: 700px;
  margin-bottom: var(--space-md);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--drx-aubergine);
  color: white;
  border-color: var(--drx-aubergine);
}

.btn-primary:hover {
  background-color: var(--drx-deep-aubergine);
  border-color: var(--drx-deep-aubergine);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--drx-charcoal);
  border-color: var(--drx-stone);
}

.btn-outline:hover {
  border-color: var(--drx-aubergine);
  color: var(--drx-aubergine);
  box-shadow: var(--shadow-hover);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 14px;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 16px;
}

.full-width {
  width: 100%;
}

/* ===== Top Navigation (Soft Mauve override) ===== */
.topnav {
  background-color: var(--drx-soft-mauve);
  border-bottom: 1px solid var(--drx-stone);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-base);
}

.topnav--scrolled {
  background-color: rgba(230, 216, 220, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-sm);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Bimini', var(--font-heading);
  font-size: 20px;
  color: var(--drx-aubergine);
  letter-spacing: -0.01em;
}

.logo-express {
  color: var(--drx-grey);
  font-weight: 400;
}

.logo-wordmark--light .logo-express {
  color: var(--drx-grey);
}

/* Grid Mark logo (inline SVG) — two overlapping rounded squares */
.logo-mark,
.logo-grid-mark {
  flex-shrink: 0;
}

.topnav-links {
  display: none;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .topnav-actions {
    display: flex;
  }
}

.topnav-links a {
  color: var(--drx-charcoal);
  transition: color var(--transition-fast);
}

.topnav-links a:hover {
  color: var(--drx-aubergine);
}

@media (max-width: 767px) {
  .topnav-actions,
  .topnav-links {
    display: none;
  }
}

.topnav-actions {
  display: flex;
  gap: var(--space-sm);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--drx-charcoal);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  padding: var(--space-xl) 0;
}

.hero-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--drx-aubergine);
  margin-bottom: var(--space-sm);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: #5A4F53;
  margin-bottom: var(--space-md);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===== Hero with Background Image ===== */
.hero--bg {
  position: relative;
  padding: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-image: url('assets/images/hero-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(43, 34, 37, 0.3) 0%, rgba(43, 34, 37, 0.1) 45%, transparent 70%);
  z-index: 1;
}

.hero-inner--bg {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-sm);
  padding-top: calc(var(--space-xl) - 47px);
}

.hero-content--bg {
  max-width: 620px;
}

.hero--bg .hero-eyebrow {
  color: var(--drx-pink);
}

.hero--bg .hero-heading {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero--bg .hero-subtitle-wrap {
  max-width: 440px;
}

.hero--bg .hero-subtitle {
  color: white;
  font-weight: 600;
}

.hero--bg .btn-primary {
  background-color: var(--drx-aubergine);
  border-color: var(--drx-aubergine);
  color: white;
}

.hero--bg .btn-primary:hover {
  background-color: var(--drx-deep-aubergine);
  border-color: var(--drx-deep-aubergine);
}

.hero--bg .btn-outline {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero--bg .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.hero--bg .hero-actions {
  margin-top: calc(var(--space-md) + 60px);
}

@media (max-width: 767px) {
  .hero--bg {
    min-height: 400px;
    background-position: center top;
  }

  .hero-inner--bg {
    padding: var(--space-lg) var(--space-xs);
  }

  .hero-content--bg {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero--bg {
    min-height: 440px;
  }
}

@media (min-width: 1100px) {
  .hero--bg {
    min-height: 520px;
  }
}

/* ===== Problem Section ===== */
.problem {
  padding: var(--space-xl) 0;
}

.problem-grid {
  display: grid;
  gap: var(--space-md);
}

.problem-card {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--drx-charcoal);
}

.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #5A4F53;
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: var(--space-xl) 0;
}

.steps-grid {
  display: grid;
  gap: var(--space-md);
}

.step-card {
  background-color: var(--drx-off-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--drx-aubergine);
  margin-bottom: var(--space-xs);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--drx-charcoal);
}

.step-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #5A4F53;
}

.step-card .status-pill {
  margin-top: var(--space-xs);
}

.step-card a {
  color: var(--drx-aubergine);
  font-weight: 600;
}

.step-card a:hover {
  text-decoration: underline;
}

/* ===== Features Section ===== */
.features {
  padding: var(--space-xl) 0;
}

.feature-grid {
  display: grid;
  gap: var(--space-md);
}

.feature-card {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--drx-charcoal);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #5A4F53;
}

/* ===== Use Cases Section ===== */
.use-cases {
  padding: var(--space-xl) 0;
}

.use-case-grid {
  display: grid;
  gap: var(--space-md);
}

.use-case-card {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.use-case-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: white;
  background-color: var(--drx-aubergine);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.use-case-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--drx-charcoal);
}

.use-case-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #5A4F53;
}

/* ===== CTA Section ===== */
.cta {
  padding: var(--space-xl) 0;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.cta-subtitle {
  font-size: 17px;
  color: #5A4F53;
  margin-bottom: var(--space-md);
}

/* ===== Early Access Form Section ===== */
.early-access {
  padding: var(--space-xl) 0;
}

.early-access-inner {
  max-width: 640px;
  margin: 0 auto;
}

.early-access-content {
  text-align: left;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto var(--space-md);
  text-align: left;
}

.ea-form-row {
  display: flex;
  gap: var(--space-xs);
}

.ea-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  background-color: white;
  color: var(--drx-charcoal);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ea-input:focus {
  border-color: var(--drx-aubergine);
  box-shadow: 0 0 0 3px rgba(110, 75, 92, 0.1);
}

.ea-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23A6A19E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.ea-submit-btn {
  width: 100%;
  margin-top: var(--space-xs);
}

.cta-note {
  font-size: 13px;
  color: var(--drx-grey);
  margin-top: var(--space-xs);
  text-align: left;
}

.early-access-success {
  padding: var(--space-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.early-access-success h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--drx-charcoal);
}

.early-access-success p {
  font-size: 15px;
  color: #5A4F53;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--drx-charcoal);
  padding: var(--space-lg) 0 var(--space-md);
  color: #C4B8BC;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #C4B8BC;
  margin-top: var(--space-xs);
  max-width: 320px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: #C4B8BC;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
}

.footer-bottom p {
  font-size: 14px;
  color: #8A7F83;
}

/* ============================================
   Multi-page nav support
   ============================================ */

.topnav-links a[aria-current="page"] {
  color: var(--drx-aubergine);
  font-weight: 600;
}

@media (max-width: 767px) {
  .topnav-links.is-open a[aria-current="page"] {
    background-color: rgba(110, 75, 92, 0.08);
    color: var(--drx-aubergine);
  }
}

/* ============================================
   Page header (for sub-pages)
   ============================================ */

.page-header {
  padding: var(--space-xl) 0;
  background-color: white;
}

/* Editorial left alignment — the page header sets the left edge for the
   whole page, so every section below it aligns to the same rule. The header
   keeps the shared container geometry (max-width, auto margins, gutters) so
   the intro sits on the same left edge as the content below it; only the
   text measure is constrained. */
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.page-header .section-heading {
  max-width: 820px;
  margin-bottom: var(--space-sm);
}

.page-header .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Image panels for sub-pages */
.image-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.image-panel img,
.image-panel svg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Video panels for walkthrough clips */
.video-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
  background-color: var(--drx-off-white);
}

.video-panel video {
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--drx-off-white);
}

/* ============================================
   Feature detail page styles
   ============================================ */

.feature-detail-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .feature-detail-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.feature-detail-block {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.feature-detail-block h2,
.feature-detail-block h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.feature-detail-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.meta-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.meta-tag--mvp {
  background-color: var(--drx-mint);
  color: white;
}

.meta-tag--planned {
  background-color: var(--drx-stone);
  color: var(--drx-grey);
}

.feature-detail-body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: #5A4F53;
}

.feature-detail-list {
  list-style: none;
  padding: 0;
}

.feature-detail-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 15px;
  line-height: 1.6;
  color: #5A4F53;
}

.feature-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--drx-aubergine);
}

/* ============================================
   Workflow step styles (multi-page)
   ============================================ */

/* The numbered workflow column lines up with the section heading above it. */
.workflow-timeline {
  position: relative;
  max-width: 820px;
  margin: 0;
}

@media (min-width: 768px) {
  .workflow-timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--drx-stone);
  }
}

@media (max-width: 767px) {
  .workflow-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--drx-stone);
  }
}

.workflow-step-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

@media (max-width: 767px) {
  .workflow-step-item {
    gap: var(--space-sm);
  }
}

.workflow-step-number-wrap {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--drx-aubergine);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

@media (max-width: 767px) {
  .workflow-step-number-wrap {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }
}

.workflow-step-number {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--drx-aubergine);
}

@media (max-width: 767px) {
  .workflow-step-number {
    font-size: 11px;
  }
}

.workflow-step-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

@media (max-width: 767px) {
  .workflow-step-content h3 {
    font-size: 17px;
  }
}

.workflow-step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #5A4F53;
  margin-bottom: var(--space-xs);
}

.workflow-step-content .status-pill {
  margin-top: 0.2rem;
}

/* ============================================
   PatternScan / calibration mat page styles
   ============================================ */

.calibration-workflow {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .calibration-workflow {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.calibration-step-card {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.calibration-step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: rgba(110, 75, 92, 0.12);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.calibration-step-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.calibration-step-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #5A4F53;
}

/* ============================================
   PatternScan workflow diagram (8-step summary)
   ============================================ */

.psscan-flow {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.psscan-flow__step {
  position: relative;
}

.psscan-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--drx-soft-mauve);
  color: var(--drx-deep-aubergine);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.psscan-flow__card {
  height: 100%;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.psscan-flow__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--drx-charcoal);
  margin: 0 0 var(--space-xs);
}

.psscan-flow__text {
  font-size: 14px;
  line-height: 1.6;
  color: #5A4F53;
  margin: 0;
}

/* Decorative connectors between steps (never announced as content) */
.psscan-flow__step::after {
  content: "";
  display: none;
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5l7 7-7 7' stroke='%236E4B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Single column: connector points down, centred in the gap */
.psscan-flow__step:not(:last-child)::after {
  display: block;
  left: 50%;
  bottom: calc(-1 * var(--space-md) / 2 - 11px);
  transform: translateX(-50%) rotate(90deg);
}

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

  /* Two columns: connector points right, centred in the column gap */
  .psscan-flow__step:not(:last-child)::after {
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(-1 * var(--space-md) / 2 - 11px);
    transform: translateY(-50%);
  }

  /* Hide the connector at the end of each row */
  .psscan-flow__step:nth-child(even)::after {
    display: none;
  }
}

@media (min-width: 1100px) {
  .psscan-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Four columns: restore connectors, then hide at the end of each row */
  .psscan-flow__step:nth-child(even)::after {
    display: block;
  }

  .psscan-flow__step:nth-child(4n)::after {
    display: none;
  }
}

/* ============================================
   Use case styles (multi-page)
   ============================================ */

.use-case-detail {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
}

.use-case-detail h2,
.use-case-detail h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

@media (max-width: 767px) {
  .use-case-detail h3 {
    font-size: 20px;
  }
}

.use-case-problem,
.use-case-solution {
  font-size: 15px;
  line-height: 1.7;
  color: #5A4F53;
  margin-bottom: var(--space-sm);
}

.use-case-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  background-color: var(--drx-aubergine);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

.use-case-solution .use-case-label {
  background-color: var(--drx-mint);
}

/* Pricing styles removed — pricing page consolidated into Contact */

/* ============================================
   Pattern Assistant section (homepage + deep-dive)
   ============================================ */

.pa-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .pa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pa-card {
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.pa-card .pa-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--drx-off-white);
  border: 1px solid var(--drx-stone);
}

.pa-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.pa-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #5A4F53;
}

/* Three-column explainer for Pattern Assistant */
.explainer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 768px) {
  .explainer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.explainer-card {
  text-align: left;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.explainer-card .explainer-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--drx-stone);
}

.explainer-card .explainer-icon.ai { background-color: var(--drx-soft-mauve); }
.explainer-card .explainer-icon.det { background-color: var(--drx-off-white); border-color: var(--drx-pink); }
.explainer-card .explainer-icon.ctrl { background-color: var(--drx-off-white); }

.explainer-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.explainer-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #5A4F53;
}

/* ============================================
   Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children for grids */
.problem-grid .reveal:nth-child(1),
.steps-grid .reveal:nth-child(1) { transition-delay: 50ms; }
.problem-grid .reveal:nth-child(2),
.steps-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.problem-grid .reveal:nth-child(3),
.steps-grid .reveal:nth-child(3) { transition-delay: 190ms; }
.problem-grid .reveal:nth-child(4),
.steps-grid .reveal:nth-child(4) { transition-delay: 260ms; }

.feature-grid .reveal:nth-child(1) { transition-delay: 50ms; }
.feature-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.feature-grid .reveal:nth-child(3) { transition-delay: 190ms; }
.feature-grid .reveal:nth-child(4) { transition-delay: 260ms; }

.use-case-grid .reveal:nth-child(1) { transition-delay: 50ms; }
.use-case-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.use-case-grid .reveal:nth-child(3) { transition-delay: 190ms; }
.use-case-grid .reveal:nth-child(4) { transition-delay: 260ms; }

.steps-grid .reveal:nth-child(5) { transition-delay: 330ms; }
.steps-grid .reveal:nth-child(6) { transition-delay: 400ms; }
.steps-grid .reveal:nth-child(7) { transition-delay: 470ms; }

.pricing-grid .reveal:nth-child(1) { transition-delay: 80ms; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 160ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 240ms; }

/* Fade-in from left/right for hero */
.hero-content {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content--bg {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 700ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Design ===== */

@media (min-width: 1100px) {
  /* Desktop: show nav links and actions, hide hamburger */
  .topnav-links,
  .topnav-actions {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

@media (max-width: 1099px) {
  .topnav-links,
  .topnav-actions {
    display: none;
  }

  /* Mobile nav dropdown (tablet and mobile) */
  .mobile-toggle {
    display: flex !important;
  }

  /* Hero stack on mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  /* Full width cards on mobile */
  .problem-grid,
  .steps-grid,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  /* Footer stack on mobile */
  .footer-nav {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-inner {
    text-align: left;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile-only spacing reduction */
@media (max-width: 767px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 3rem;
  }

  .container {
    padding: 0 var(--space-xs);
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid,
  .steps-grid,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card--wide {
    grid-column: span 2;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: var(--space-lg);
  }

  /* Product, Resources, Integrations and Company all sit on one row. */
  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
  }
}

@media (min-width: 1024px) {
  /* Desktop layout */
  .container {
    max-width: 1200px;
  }

  /* Desktop grid columns */
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-card .btn {
    margin-top: var(--space-sm);
  }
}

/* ============================================
   Multi-page: desktop nav with new labels
   ============================================ */

@media (min-width: 1100px) {
  .topnav-links {
    display: flex;
    gap: 1.75rem;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
  }

  /* Hide Home, Pattern Assistant, and Contact from desktop primary nav */
  .topnav-links .nav-home,
  .topnav-links .nav-pa,
  .topnav-links .nav-contact {
    display: none;
  }
}

/* ============================================
   Image panel with caption
   ============================================ */

.image-panel-caption {
  padding: 0.75rem 1rem;
  font-size: 14px;
  color: var(--drx-grey);
  background-color: var(--drx-stone);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ============================================
   Feature card with link (teaser cards on homepage)
   ============================================ */

.feature-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-card-link .feature-card {
  position: relative;
}

.feature-card-link .feature-card::after {
  content: "→";
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--drx-aubergine);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
  transform: translateX(-4px);
}

.feature-card-link:hover .feature-card::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Content sections for sub-pages
   ============================================ */

.content-section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.content-section + .content-section {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--drx-stone);
}

.content-section--alt {
  background-color: white;
}

/* ============================================
   Split layout (text + image)
   ============================================ */

.split-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout--reverse {
    direction: rtl;
  }

  .split-layout--reverse > * {
    direction: ltr;
  }
}

.split-layout-text h2,
.split-layout-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.split-layout-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #5A4F53;
  margin-bottom: var(--space-sm);
}

/* ============================================
   Workflow step highlight (for PatternScan page)
   ============================================ */

.step-highlight {
  background-color: var(--drx-soft-mauve);
  border: 1px solid var(--drx-pink);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.step-highlight p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--drx-charcoal);
}

/* ============================================
   Early access CTA block (reusable)
   ============================================ */

.cta-block {
  text-align: left;
  padding: var(--space-xl) 0;
  background-color: var(--drx-charcoal);
  color: white;
}

/* The CTA block uses the same container as the footer, so the copy starts on
   the footer's left edge instead of floating in the middle of the page. */
.cta-block__inner {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-block__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-lg);
  }
}

.cta-block__copy .cta-subtitle {
  max-width: 60ch;
}

.cta-block .cta-heading {
  color: white;
}

.cta-block .cta-subtitle {
  color: #C4B8BC;
}

.cta-block .btn-primary {
  background-color: var(--drx-pink);
  border-color: var(--drx-pink);
  color: var(--drx-charcoal);
}

.cta-block .btn-primary:hover {
  background-color: var(--drx-aubergine);
  border-color: var(--drx-aubergine);
  color: white;
}

/* ============================================
   Responsive pricing tier grid for 5 tiers
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-tier-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-tier-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Breadcrumb / page indicator
   ============================================ */

.breadcrumb {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--drx-grey);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: var(--drx-aubergine);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--drx-deep-aubergine);
}

/* ============================================
   Mobile nav open state (tablet and mobile)
   ============================================ */

@media (max-width: 1099px) {
  .topnav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid var(--drx-stone);
    box-shadow: 0 4px 12px rgba(43, 34, 37, 0.08);
    flex-direction: column;
    padding: var(--space-sm);
    gap: 0;
    z-index: 99;
  }

  .topnav-links.is-open a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--drx-charcoal);
    font-size: 16px;
  }

  .topnav-links.is-open a:hover {
    background-color: var(--drx-off-white);
    color: var(--drx-aubergine);
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Hover state for feature detail blocks
   ============================================ */

.feature-detail-block:hover {
  box-shadow: var(--shadow-hover);
}

/* ============================================
   Workflow callout
   ============================================ */

.workflow-callout {
  background-color: var(--drx-off-white);
  border-left: 4px solid var(--drx-aubergine);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
}

.workflow-callout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--drx-charcoal);
  font-weight: 500;
  max-width: 80ch;
}

.workflow-callout h2 {
  max-width: 80ch;
}

/* ============================================
   Use case detail image
   ============================================ */

.use-case-detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.use-case-detail-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ============================================
   Genuine application screenshots
   ============================================ */

.shot-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Application screenshots stack full-width so interface text stays legible;
   two-up columns render real UI text too small to read. */

.shot-grid .image-panel {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .image-panel-caption,
  .shot-grid .image-panel-caption {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* ============================================
   Plans page — pricing, cards, comparison
   ============================================ */

.plans-beta-note {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--drx-deep-aubergine);
  background-color: var(--drx-soft-mauve);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
}

/* ===== Billing period toggle ===== */
.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background-color: var(--drx-stone);
  border-radius: 999px;
}

.billing-toggle-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #5A4F53;
  background-color: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.billing-toggle-btn[aria-pressed="true"] {
  background-color: white;
  color: var(--drx-charcoal);
  box-shadow: var(--shadow-card);
}

.billing-toggle-btn:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 2px;
}

.billing-toggle-note {
  font-size: 14px;
  color: var(--drx-grey);
  text-align: center;
  max-width: 42ch;
}

/* ===== Plan cards ===== */
.plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 360px;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.plan-card--featured {
  border-color: var(--drx-aubergine);
  box-shadow: var(--shadow-hover);
}

.plan-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  background-color: var(--drx-aubergine);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--drx-charcoal);
}

.plan-positioning {
  font-size: 14px;
  line-height: 1.5;
  color: #5A4F53;
  margin-bottom: var(--space-sm);
}

.plan-price {
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.plan-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--drx-charcoal);
}

.plan-amount--tailored {
  font-size: 28px;
}

.plan-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--drx-grey);
  margin-left: 2px;
}

.plan-users {
  font-size: 14px;
  font-weight: 600;
  color: var(--drx-aubergine);
  margin-bottom: var(--space-sm);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 14px;
  line-height: 1.5;
  color: #5A4F53;
  margin-bottom: 0.55rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--drx-mint);
  font-weight: 700;
}

.plan-features li.plan-feature-pending::before {
  content: "";
}

.plan-team-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--drx-grey);
  margin: 0 0 var(--space-sm);
}

.plan-team-note a {
  color: var(--drx-aubergine);
  font-weight: 600;
}

.plan-card .btn {
  margin-top: auto;
}

.feat-status {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.feat-status--mvp {
  background-color: var(--drx-mint);
  color: #22301F;
}

.feat-status--live {
  background-color: var(--drx-mint);
  color: #22301F;
}

.feat-status--soon {
  background-color: var(--drx-soft-mauve);
  color: var(--drx-deep-aubergine);
}

.feat-status--planned {
  background-color: var(--drx-stone);
  color: #6B6165;
}

/* ===== Comparison matrix ===== */
.matrix-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding: 0;
  margin: 0 0 var(--space-md);
  font-size: 14px;
  color: #5A4F53;
}

.matrix-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.st {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.st-included { background-color: var(--drx-mint); color: #22301F; }
.st-higher { background-color: var(--drx-soft-mauve); color: var(--drx-deep-aubergine); }
.st-mvp { background-color: var(--drx-pink); color: #3A2228; }
.st-soon { background-color: var(--drx-soft-mauve); color: var(--drx-deep-aubergine); }
.st-planned { background-color: var(--drx-off-white); color: var(--drx-grey); border: 1px solid var(--drx-stone); }
.st-available { background-color: white; color: var(--drx-aubergine); border: 1px solid var(--drx-aubergine); }
.st-none { background-color: transparent; color: #8A7F83; border: 1px solid var(--drx-stone); }

.matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  background-color: white;
}

.matrix-scroll:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 2px;
}

.matrix {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

.matrix th,
.matrix td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--drx-stone);
  vertical-align: top;
}

.matrix thead th {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--drx-charcoal);
  background-color: var(--drx-soft-mauve);
}

.matrix th[scope="row"] {
  font-weight: 500;
  color: var(--drx-charcoal);
  width: 26%;
}

.matrix tbody td {
  color: #5A4F53;
  white-space: nowrap;
}

.matrix-cat th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--drx-aubergine);
  background-color: var(--drx-off-white);
}

.matrix-note {
  margin-top: var(--space-sm);
  font-size: 13px;
  line-height: 1.6;
  color: var(--drx-grey);
}

/* ============================================
   Status pills — status is always written as
   text as well as colour, never colour alone.
   ============================================ */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill--now,
.status-pill--included {
  background-color: var(--drx-mint);
  color: #22301F;
}

.status-pill--soon {
  background-color: var(--drx-soft-mauve);
  color: var(--drx-deep-aubergine);
}

.status-pill--planned {
  background-color: var(--drx-stone);
  color: #6B6165;
  border: 1px solid #DFD5CF;
}

/* ============================================
   Compact media gallery
   Application screenshots and walkthroughs are
   shown as compact cards, two-up on desktop and
   tablet, and open in an accessible modal.
   ============================================ */

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
  list-style: none;
  padding: 0;
}

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

.media-grid--three {
  grid-template-columns: 1fr;
}

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

.media-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.media-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--drx-pink);
}

.media-card:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 3px;
}

.media-card__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--drx-stone);
  overflow: hidden;
  border-bottom: 1px solid var(--drx-stone);
}

.media-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Inline (ambient) video preview inside a media card — the Workspace in
   Motion card loops on mute. Same crop/aspect treatment as the image
   cards so the layout is unchanged. */
.media-card__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  pointer-events: none;
}

/* Walkthrough video cards reuse the standard card frame with the poster and
   play treatment, but the approved web captures are native 16:9. They are
   letterboxed on the frame's neutral background rather than cropped like the
   16:10 screenshots, so the application UI is shown in full. */
.media-card__frame--video img {
  object-fit: contain;
  object-position: center;
}

.media-card__expand {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--drx-charcoal);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--drx-stone);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.media-card__expand svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.media-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(43, 34, 37, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.media-card__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  fill: white;
}

.media-card__body {
  display: block;
  padding: 0.9rem 1.05rem 1.05rem;
}

.media-card__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: 0.2rem;
}

.media-card__desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #5A4F53;
}

.media-card__meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--drx-grey);
}

/* Non-clickable placeholder card for a walkthrough video that is being
   produced. It reuses the real media-card dimensions and treatment, but
   carries no trigger, no player and no video URL. */
.media-card--placeholder {
  cursor: default;
}

.media-card--placeholder:hover {
  box-shadow: var(--shadow-card);
  transform: none;
  border-color: var(--drx-stone);
}

.media-card__frame--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--drx-soft-mauve);
  background-image: linear-gradient(135deg, var(--drx-soft-mauve) 0%, #EDE6E1 55%, var(--drx-stone) 100%);
  color: var(--drx-deep-aubergine);
}

.media-card__placeholder-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(110, 75, 92, 0.25);
}

.media-card__placeholder-mark svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.media-card__placeholder-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--drx-deep-aubergine);
}

/* ============================================
   Media modal (screenshots and video)
   ============================================ */

.media-modal[hidden] {
  display: none;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background-color: rgba(43, 34, 37, 0.9);
}

.media-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.media-modal__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #191416;
  overflow: auto;
  min-height: 0;
}

.media-modal__stage img,
.media-modal__stage video {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-modal__stage video {
  background-color: #000;
}

.media-modal__stage iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 60vh;
  border: 0;
  background-color: #191416;
}

.media-modal__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.85rem 1.1rem;
  background-color: white;
  border-top: 1px solid var(--drx-stone);
}

.media-modal__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-modal__download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: var(--drx-aubergine);
  border: 1px solid var(--drx-aubergine);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.media-modal__download:hover {
  background-color: var(--drx-deep-aubergine);
  border-color: var(--drx-deep-aubergine);
}

.media-modal__download[hidden] {
  display: none;
}

.media-modal__heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: 0.15rem;
}

.media-modal__caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--drx-grey);
  max-width: 70ch;
}

.media-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--drx-charcoal);
  background-color: var(--drx-stone);
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.media-modal__close:hover {
  background-color: var(--drx-soft-mauve);
  border-color: var(--drx-pink);
}

.media-modal__close:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 2px;
}

.media-modal__close svg {
  width: 14px;
  height: 14px;
}

/* Page body must not scroll awkwardly behind an open modal. */
body.has-modal-open {
  overflow: hidden;
}

/* ============================================
   Resources — buyer's guide article card
   ============================================ */

.resource-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .resource-article {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

/* The cover art is the only thing shown from the guide — clicking it opens
   the PDF in the on-site viewer. */
.resource-article__cover-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
}

.resource-article__cover-btn:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 3px;
}

.resource-article__cover {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  background-color: white;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.resource-article__cover-btn:hover .resource-article__cover {
  box-shadow: 0 10px 28px rgba(58, 42, 48, 0.16);
  transform: translateY(-2px);
}

.resource-article__cover-caption {
  display: block;
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--drx-grey);
}

.resource-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  color: var(--drx-grey);
}

.resource-article__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-sm);
}

.resource-article__standfirst {
  font-size: 17px;
  line-height: 1.65;
  color: #5A4F53;
  margin-bottom: var(--space-sm);
}

.resource-article__excerpt p {
  font-size: 15px;
  line-height: 1.7;
  color: #5A4F53;
  margin-bottom: 0.8rem;
  max-width: 68ch;
}

.resource-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}

/* ============================================
   Resources — feature matrix
   ============================================ */

.feature-matrix-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 78vh;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  background-color: white;
}

.feature-matrix-scroll:focus-visible {
  outline: 2px solid var(--drx-aubergine);
  outline-offset: 2px;
}

.feature-matrix {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.feature-matrix th,
.feature-matrix td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--drx-stone);
}

.feature-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--drx-charcoal);
  background-color: var(--drx-soft-mauve);
  border-bottom: 1px solid var(--drx-pink);
}

.feature-matrix thead th:first-child {
  left: 0;
  z-index: 4;
}

.feature-matrix th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 22%;
  min-width: 210px;
  font-weight: 600;
  color: var(--drx-charcoal);
  background-color: white;
}

.feature-matrix tbody td {
  color: #5A4F53;
  border-right: 1px solid var(--drx-stone);
}

.feature-matrix tbody td:last-child {
  border-right: 0;
}

.feature-matrix .matrix-cat th {
  position: static;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--drx-aubergine);
  background-color: var(--drx-off-white);
}

.fm-status {
  display: block;
  font-weight: 600;
  color: var(--drx-charcoal);
}

/* Feature-matrix status: plain coloured text, never a pill. The state is
   always written in words as well as colour, so it is never colour-alone. */
.fm-state {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.fm-state--yes {
  color: #1E6B3A;
}

.fm-state--varies {
  color: #8A5A16;
}

.fm-state--no {
  color: #A6301F;
}

.fm-state--soon {
  color: #1F5C99;
}

.fm-state--planned {
  color: #6B6165;
}

.fm-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 0;
  margin: 0 0 var(--space-sm);
  font-size: 13px;
  color: var(--drx-grey);
}

.fm-legend li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.fm-legend .fm-state {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fm-legend__label {
  color: var(--drx-grey);
}

.fm-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--drx-grey);
}

.matrix-scroll-hint {
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--drx-grey);
}

/* Phone: the matrix becomes a stack of labelled cards. */
@media (max-width: 767px) {
  .feature-matrix-scroll {
    max-height: none;
    overflow: visible;
    border: 0;
    background-color: transparent;
  }

  .feature-matrix,
  .feature-matrix thead,
  .feature-matrix tbody,
  .feature-matrix tr,
  .feature-matrix th,
  .feature-matrix td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .feature-matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .feature-matrix tbody tr {
    background-color: white;
    border: 1px solid var(--drx-stone);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-card);
  }

  .feature-matrix tbody tr.matrix-cat {
    background-color: var(--drx-off-white);
    box-shadow: none;
  }

  .feature-matrix tbody tr.matrix-cat th {
    position: static;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .feature-matrix th[scope="row"] {
    position: static;
    min-width: 0;
    width: auto;
    font-family: var(--font-heading);
    font-size: 16px;
    padding: 0 0 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--drx-stone);
  }

  .feature-matrix td {
    border: 0;
    border-right: 0;
    padding: 0.5rem 0 0.5rem;
  }

  .feature-matrix td + td {
    border-top: 1px solid var(--drx-stone);
  }

  .feature-matrix td::before {
    content: attr(data-col);
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--drx-aubergine);
    margin-bottom: 0.2rem;
  }
}

/* ============================================
   Resources — guides and checklists
   ============================================ */

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

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

.guide-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.guide-list__item h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--drx-charcoal);
  margin-bottom: 0.15rem;
}

.guide-list__item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--drx-grey);
}

.guide-list__marker {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ============================================
   Calibration mat request form
   ============================================ */

.req-form {
  width: 100%;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

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

.req-field {
  display: block;
}

.req-field > label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--drx-charcoal);
  margin-bottom: 0.35rem;
}

.req-required {
  color: var(--drx-aubergine);
}

.req-optional {
  font-weight: 400;
  color: var(--drx-grey);
}

.req-field input[type="text"],
.req-field input[type="email"],
.req-field input[type="url"],
.req-field select,
.req-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--drx-charcoal);
  background-color: white;
  border: 1.5px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.req-field textarea {
  resize: vertical;
  min-height: 90px;
}

.req-field input:focus,
.req-field select:focus,
.req-field textarea:focus {
  border-color: var(--drx-aubergine);
  box-shadow: 0 0 0 3px rgba(110, 75, 92, 0.12);
}

.req-field--invalid input,
.req-field--invalid select,
.req-field--invalid textarea {
  border-color: #A6301F;
}

.req-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 13px;
  color: #8E2718;
}

.req-error:empty {
  display: none;
}

.req-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 12px;
  color: var(--drx-grey);
}

.req-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 14px;
  line-height: 1.55;
  color: #5A4F53;
}

.req-check input[type="checkbox"] {
  margin-top: 0.28rem;
  width: 16px;
  height: 16px;
  accent-color: var(--drx-aubergine);
  flex-shrink: 0;
}

.req-check--invalid input[type="checkbox"] {
  outline: 2px solid #A6301F;
  outline-offset: 2px;
}

.req-mat-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  background-color: var(--drx-off-white);
}

/* Digital Import Mat layout cards (Resources explanation) */
.mat-layouts-intro h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.mat-layouts-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #5A4F53;
  max-width: 72ch;
  margin-bottom: var(--space-md);
}

.mat-layouts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  padding: 0;
  margin: 0 0 var(--space-lg);
}

.mat-layout {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-md);
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-sm);
  background-color: var(--drx-off-white);
}

.mat-layout__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--drx-charcoal);
}

.mat-layout__dims {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--drx-aubergine);
}

.mat-layout__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #5A4F53;
}

@media (max-width: 899px) {
  .req-mat-sizes,
  .mat-layouts {
    grid-template-columns: 1fr;
  }
}

.req-privacy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--drx-grey);
  margin-top: var(--space-sm);
}

.req-privacy a {
  color: var(--drx-aubergine);
  font-weight: 600;
  text-decoration: underline;
}

.req-success {
  background-color: white;
  border: 1px solid var(--drx-mint);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.req-success h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--drx-charcoal);
  margin-bottom: var(--space-xs);
}

.req-success p {
  font-size: 15px;
  line-height: 1.65;
  color: #5A4F53;
  margin-bottom: 0.6rem;
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================
   Integrations — vendor cards
   ============================================ */

.vendor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.vendor-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.vendor-card--planned {
  background-color: #FBF9F8;
  border-color: #E3DAD5;
}

/* Planned cards are visually subdued but must stay readable (AA contrast
   on the planned background), and status is always spelled out in text. */
.vendor-card--planned .vendor-card__body p,
.vendor-card--planned .vendor-card__body li {
  color: #6B6165;
}

.vendor-card--planned .vendor-card__title {
  color: var(--drx-charcoal);
}

.vendor-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.vendor-card__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
}

.vendor-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--drx-charcoal);
}

.vendor-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 150px;
}

.vendor-logo--mark {
  height: 40px;
  width: 40px;
  max-width: none;
  border-radius: 9px;
}

.vendor-logo--qb {
  height: 42px;
  width: auto;
  max-width: 168px;
  padding: 0.5rem 0.75rem;
  background-color: #2CA01C;
  border-radius: 6px;
}

.vendor-logo--qb img {
  height: 24px;
  width: auto;
  display: block;
}

.vendor-card__body p {
  font-size: 15px;
  line-height: 1.65;
  color: #5A4F53;
  margin-bottom: 0.6rem;
}

.vendor-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.4rem;
}

.vendor-card__body li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 14px;
  line-height: 1.6;
  color: #5A4F53;
}

.vendor-card__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background-color: var(--drx-aubergine);
}

.vendor-card__foot {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--drx-stone);
  font-size: 13px;
  color: var(--drx-grey);
}

/* ============================================
   Editorial page layouts (About, Request access)
   ============================================ */

/* Stacked panels get real breathing room between them. */
.stacked-panels {
  display: grid;
  gap: var(--space-lg);
  justify-items: stretch;
}

/* A narrower reading column that still starts on the shared left edge.
   It sits inside the standard container, so its left edge matches the
   page header and every other section. */
.content-column {
  max-width: 880px;
}

/* The request-access page fills the page instead of leaving a small block
   floating in empty space. */
.request-access-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .request-access-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.request-access-layout .early-access-form {
  max-width: none;
  margin: 0;
  background-color: white;
  border: 1px solid var(--drx-stone);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.request-access-layout .early-access-form .ea-input {
  padding: 0.8rem 1rem;
  font-size: 16px;
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content,
  .hero-content--bg,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .media-card,
  .feature-card,
  .media-card:hover {
    transition: none;
    transform: none;
  }
}
