/* ============================================================
   MyCrewTracker — Design System
   Mobile-First · Light & Dark Themes
   Target: US Contractors on-site (outdoor glare, gloves, etc.)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES — DARK THEME (PERMANENT)
   ============================================================ */
:root {
  /* Brand - Construction Amber (matches backend app) */
  --brand: #FFB000;
  --brand-dark: #D49200;
  --brand-light: #FFC440;
  --brand-subtle: rgba(255, 176, 0, 0.12);

  /* Neutrals — Dark Navy (matches backend app's brand-navy palette) */
  --bg: #020617;           /* brand-navy */
  --bg-card: #0F172A;      /* brand-navy-light */
  --bg-card2: #1E293B;     /* brand-dark3 */
  --bg-input: #0F172A;
  --border: #1E293B;
  --border-strong: #334155;

  /* Text — High Contrast on Dark */
  --text-1: #F8FAFC;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;
  --text-inv: #020617;

  /* Semantic */
  --green: #4ADE80;
  --green-bg: rgba(74, 222, 128, 0.12);
  --red: #FB7185;
  --red-bg: rgba(251, 113, 133, 0.12);
  --yellow: #FBBF24;
  --yellow-bg: rgba(251, 191, 36, 0.12);
  --blue: #38BDF8;
  --blue-bg: rgba(56, 189, 248, 0.12);

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;

  /* Spacing scale (4-pt grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Nav height — used for scroll-padding */
  --nav-h: 60px;
}



/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  transition: background-color var(--t-base), color var(--t-base);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   4. TYPOGRAPHY SCALE
   ============================================================ */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-1);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-1);
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-base {
  font-size: 1rem;
  line-height: 1.65;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.body-xs {
  font-size: 0.78rem;
  line-height: 1.5;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

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

.text-strong {
  color: var(--text-1);
  font-weight: 600;
}

.text-brand {
  color: var(--brand);
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  /* 16px mobile */
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--sp-8);
  }
}

.section {
  padding-block: var(--sp-12);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-16);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--sp-20);
  }
}

.grid-2 {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

.grid-3 {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.flow>*+* {
  margin-top: var(--sp-4);
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: #0F172A;
  /* Fixed dark mode bg-card */
  border-bottom: 1px solid #1E293B;
  /* Fixed dark mode border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: background var(--t-base), border-color var(--t-base);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: clamp(32px, 10vw, 38px);
  width: auto;
  display: block;
  margin-block: 0;
  flex-shrink: 0;
  object-fit: contain;
}

/* Dual logo logic removed - single dark-friendly logo used instead */


.footer .nav__logo img {
  max-height: 100px;
  /* Keep it larger in the footer */
}

.nav__logo span {
  color: var(--brand);
}

/* Desktop nav links — hidden on mobile */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94A3B8;
  /* Fixed dark mode text-3 */
  transition: color var(--t-fast);
}

.nav__links a:hover {
  color: #F8FAFC;
  /* Fixed dark mode text-1 */
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Hamburger navigation trigger */
.nav__hamburger {
  display: flex !important; /* Force visibility on all screens */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: #1E293B;
  /* Fixed dark mode bg-card2 */
  border: 1px solid #1E293B;
  /* Fixed dark mode border */
  color: #CBD5E1;
  /* Fixed dark mode text-2 */
  padding: 8px;
  transition: all var(--t-fast);
}

.nav__hamburger:hover {
  background: var(--brand-subtle);
  border-color: var(--brand);
  color: var(--brand);
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Drawer navigation panel */
.nav__drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #0F172A;
  /* Fixed dark mode bg-card */
  border-top: 1px solid #1E293B;
  /* Fixed dark mode border */
  z-index: 199;
  padding: var(--sp-8) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-4);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .nav__drawer {
    left: auto;
    width: 380px;
    border-left: 1px solid #1E293B;
  }
}


.nav__drawer.open {
  display: flex;
}

.nav__drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F8FAFC;
  /* Fixed dark mode text-1 */
  padding: var(--sp-3) 0;
  border-bottom: 1px solid #1E293B;
  /* Fixed dark mode border */
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
  /* Minimum 48px touch target for mobile */
  min-height: 48px;
}

.btn--primary {
  background: var(--brand);
  color: #0A1D35;
  /* Permanent dark navy for legibility on yellow */
  box-shadow: 0 2px 8px rgba(255, 176, 0, .40);
}

.btn--primary:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 176, 0, .50);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--text-1);
  border: 2px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--ghost {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-card2);
  color: var(--text-1);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  min-height: 56px;
}

.btn--block {
  width: 100%;
}

/* ============================================================
   8. CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

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

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* ============================================================
   9. BADGE / STATUS PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--brand {
  background: var(--brand-subtle);
  color: var(--text-1);
}

.badge--green {
  background: var(--green-bg);
  color: var(--green);
}

.badge--red {
  background: var(--red-bg);
  color: var(--red);
}

.badge--yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge--blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.badge--muted {
  background: var(--bg-card2);
  color: var(--text-3);
}

/* ============================================================
   10. FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-subtle);
}

.form-input::placeholder {
  color: var(--text-3);
}

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
  padding-block: var(--sp-12);
  min-height: 550px;
  display: flex;
  align-items: center;
  padding-inline: var(--sp-4);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      var(--bg) 0%,
      var(--bg) 40%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}


.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
  background: var(--text-1);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--sp-4);
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-3);
  max-width: 560px;
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}

@media (min-width: 1024px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: var(--sp-12);
  }
}

.hero__visual {
  position: relative;
  margin-top: var(--sp-10);
  z-index: 1;
  min-height: 80px;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 650px;
  }

  .hero__visual {
    margin-top: 0;
    min-height: 550px;
    display: flex;
    align-items: center;
  }
}

.hero__image-wrapper {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__main-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
}

.floating-card {
  position: absolute;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  background: var(--brand);
  color: #020617;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.floating-card--top {
  bottom: 150px;
  left: 10px;
}

.floating-card--bottom {
  bottom: 100px;
  left: 10px;
  animation-delay: -3s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__note {
  font-size: 0.82rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero__note span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__note span::before {
  content: '·';
  color: var(--border-strong);
  margin-right: 4px;
}

.hero__note span:first-child::before {
  display: none;
}

/* ============================================================
   12. PROOF / STATS BAR
   ============================================================ */
.proof-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-5);
  color: var(--text-2);
}


.proof-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-6);
}

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

.proof-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

.proof-item__label {
  font-size: 0.78rem;
  color: inherit;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================================
   13. PAIN / PROBLEM CARDS
   ============================================================ */
.pain-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.pain-card {
  background: var(--bg-card);
  padding: var(--sp-6);
  transition: background var(--t-fast);
}

.pain-card:hover {
  background: var(--bg-card2);
}

.pain-card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
  display: block;
}

.pain-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}

.pain-card__body {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ============================================================
   14. FEATURE BLOCKS
   ============================================================ */
.feature-block {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  margin-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
  }

  .feature-block--reverse .feature-block__visual {
    order: -1;
  }
}

.feature-block__label {
  margin-bottom: var(--sp-3);
}

.feature-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.feature-block__body {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--text-2);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  margin-top: 7px;
}

/* ============================================================
   15. MOCKUP / UI PREVIEW BOX
   ============================================================ */
.mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__dot--red {
  background: #FF5F57;
}

.mockup__dot--yellow {
  background: #FEBC2E;
}

.mockup__dot--green {
  background: #28C840;
}

.mockup__label {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: 6px;
  font-weight: 500;
}

.mockup__body {
  padding: var(--sp-4);
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--sp-3);
}

.project-row:last-of-type {
  border-bottom: none;
}

.project-row__info {
  flex: 1;
  min-width: 0;
}

.project-row__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-row__meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}

.ai-insight {
  margin-top: var(--sp-3);
  background: var(--brand-subtle);
  border-left: 3px solid var(--brand);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.ai-insight__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

.ai-insight__text {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   16. TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.testimonial {
  background: var(--bg-card);
  padding: var(--sp-6);
}

.testimonial__stars {
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: var(--sp-4);
}

.testimonial blockquote {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  font-style: italic;
}

.testimonial__author {
  font-size: 0.82rem;
  color: var(--text-3);
}

.testimonial__author strong {
  display: block;
  color: var(--text-1);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ============================================================
   17. PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  gap: var(--sp-4);
}

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

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

/* 4-column variant used on homepage */
@media (min-width: 900px) {
  .pricing-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.price-card:hover {
  border-color: var(--brand-dark);
}

.price-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #020617;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 1rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.price-card__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}

.price-card__amount sup {
  font-size: 1.3rem;
  vertical-align: top;
  margin-top: 8px;
}

.price-card__period {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}

.price-card__savings {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
  padding: 2px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
}

.price-card__total {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}

.price-card__desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex: 1;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-2);
}

.price-features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   18. SECTION HEADERS (reusable)
   ============================================================ */
.section-header {
  margin-bottom: var(--sp-8);
}

.section-header .label {
  margin-bottom: var(--sp-3);
}

.section-header .display-2 {
  margin-bottom: var(--sp-4);
}

.section-header__sub {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   19. CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  padding-block: var(--sp-16);
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-2);
}


.cta-section .display-2 {
  margin-bottom: var(--sp-4);
}

.cta-section p {
  color: inherit;
  opacity: 0.9;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

@media (min-width: 480px) {
  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer {
  background: #0F172A;
  /* Fixed dark mode bg-card */
  border-top: 1px solid #1E293B;
  /* Fixed dark mode border */
  padding-block: var(--sp-8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__copy {
  font-size: 0.82rem;
  color: #94A3B8;
  /* Fixed dark mode text-3 */
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.footer__links a {
  font-size: 0.82rem;
  color: #94A3B8;
  /* Fixed dark mode text-3 */
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: #F8FAFC;
  /* Fixed dark mode text-1 */
}

/* ============================================================
   21. DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 0;
}

/* ============================================================
   22. SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-4);
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #020617;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  font-size: 1.2rem;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   23. UTILITY OVERRIDES
   ============================================================ */
.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.d-none {
  display: none;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════
   FEATURE IMAGES
   ════════════════════════════════════════════════════════════ */
.feature-block__image-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-base);
}

.feature-block__image-wrapper:hover {
  transform: translateY(-4px);
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
}

/* ============================================================
   24. BLOG & RICH CONTENT FEATURES
   ============================================================ */
.post-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-2);
}

.post-content h2 {
  margin-block: var(--sp-10) var(--sp-4);
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--text-1);
  line-height: 1.1;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}

.post-content h3 {
  margin-block: var(--sp-6) var(--sp-3);
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--text-1);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.post-content p {
  margin-bottom: var(--sp-6);
}

.post-content img {
  max-width: 100%;
  border-radius: var(--r-xl);
  margin-block: var(--sp-10);
  box-shadow: var(--shadow-lg);
}

.post-content blockquote {
  border-left: 5px solid var(--brand);
  padding: var(--sp-6) var(--sp-10);
  margin: var(--sp-12) 0;
  font-style: italic;
  color: var(--text-1);
  font-size: 1.35rem;
  background: var(--bg-card2);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}

/* ── Content Elements ── */
.callout {
  background: var(--bg-card2);
  border-left: 4px solid var(--brand);
  padding: var(--sp-6);
  margin-block: var(--sp-8);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.callout p {
  margin-bottom: 0;
  font-size: 1rem;
  font-style: italic;
}

.callout strong {
  color: var(--brand);
}

.callout.warning {
  border-color: var(--red);
}

.callout.warning strong {
  color: var(--red);
}

.table-wrap {
  overflow-x: auto;
  margin-block: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.post-content th {
  background: var(--bg-card2);
  text-align: left;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.post-content td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.highlight-row {
  background: var(--brand-subtle);
}

.text-good {
  color: var(--green);
  font-weight: 700;
}

.text-bad {
  color: var(--red);
  font-weight: 700;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-block: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.tool-card--featured {
  border: 2px solid var(--brand);
  position: relative;
}

.tool-card--featured::before {
  content: 'Our #1 Pick';
  position: absolute;
  top: -14px;
  left: var(--sp-8);
  background: var(--brand);
  color: white;
  padding: 2px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--text-1);
}

.tool-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-subtle);
  padding: 4px 10px;
  border-radius: var(--r-md);
}

.pros-cons {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}

.pros h4 {
  color: var(--green);
}

.cons h4 {
  color: var(--red);
}

.pros-cons ul {
  list-style: none;
  padding: 0;
}

.pros-cons li {
  font-size: 0.875rem;
  color: var(--text-3);
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.pros li::before {
  content: '✓';
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.cons li::before {
  content: '✕';
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-6);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Interactive Blog Sidebar Elements ── */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-6);
}

.sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
  border-bottom: 2px solid var(--brand-subtle);
  padding-bottom: 8px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--bg-card2);
  padding-bottom: var(--sp-3);
}

.sidebar-list a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-list a:hover {
  color: var(--brand);
}

.blog-search-form {
  display: flex;
  gap: 8px;
}

.blog-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-1);
}

/* ── Social Floating Bar (Mobile First) ── */
.social-floating {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px;
  justify-content: space-around;
  z-index: 500;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.social-floating .icon-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.social-floating a,
.social-floating button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.social-floating span {
  font-size: 0.7rem;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .social-floating {
    position: sticky;
    top: calc(var(--nav-h) + var(--sp-8));
    bottom: auto;
    width: auto;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }
}

/* ── Blog Grid & Container (Mobile First) ── */
.blog-container {
  padding-top: var(--sp-8);
  padding-bottom: 120px;
  /* Space for fixed bottom bar on mobile */
}

@media (min-width: 1024px) {
  .blog-grid {
    display: grid;
    grid-template-columns: 80px 1fr 340px;
    gap: var(--sp-12);
    align-items: start;
    margin-top: var(--sp-12);
  }

  .blog-container {
    padding-top: 0;
    padding-bottom: var(--sp-20);
  }
}

.social-wrapper {
  grid-row: span 2;
}

.sidebar-wrapper {
  grid-row: span 2;
}

@media (max-width: 1023px) {
  .sidebar-wrapper {
    margin-top: var(--sp-16);
  }
}

/* ── Comments & Interactivity ── */
.comments-area {
  margin-top: var(--sp-20);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border);
}

.comment-form {
  background: var(--bg-card2);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-12);
}

.comment-item {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: white;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

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

.comment-meta span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.comment-text {
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   25. AUTH-AWARE COMPONENTS
   ============================================================ */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: #1E293B;
  /* Fixed dark mode bg-card2 */
  border: 1px solid #1E293B;
  /* Fixed dark mode border */
  text-decoration: none;
  transition: background var(--t-fast);
}

.user-chip:hover {
  background: rgba(255, 176, 0, 0.12);
  border-color: var(--brand);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.user-chip__name {
  font-size: .8125rem;
  font-weight: 600;
  color: #F8FAFC;
  /* Fixed dark mode text-1 */
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media(max-width:480px) {
  .user-chip__name {
    display: none;
  }
}

.logout-btn {
  font-size: .8125rem;
  color: #94A3B8;
  /* Fixed dark mode text-3 */
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid #1E293B;
  /* Fixed dark mode border */
  transition: all var(--t-fast);
  background: #0F172A;
  /* Fixed dark mode bg-card */
  font-weight: 500;
  text-decoration: none;
}

.logout-btn:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.05);
}

/* ============================================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ============================================================ */

/* Hero banner shared by legal, support, and contact pages */
.legal-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-10);
}

.legal-hero__inner {
  max-width: 720px;
}

.legal-hero__inner .label {
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.legal-hero__inner .display-2 {
  margin-bottom: var(--sp-4);
}

.legal-hero__meta {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}

.legal-hero__sub {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 640px;
}

/* Two-column layout: TOC + article body */
.legal-layout {
  display: grid;
  gap: var(--sp-12);
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-20);
  align-items: start;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 240px 1fr;
  }
}

/* Sticky Table of Contents */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: none; /* mobile: hidden */
}

@media (min-width: 1024px) {
  .legal-toc {
    display: block;
  }
}

.legal-toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.legal-toc__list {
  list-style: none;
  counter-reset: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc__list li {
  margin: 0;
}

.legal-toc__list a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 4px 6px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1.4;
}

.legal-toc__list a:hover {
  background: var(--bg-card2);
  color: var(--brand);
}

/* Legal body: uses existing .post-content styles */
.legal-body section {
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--border);
}

.legal-body section:last-child {
  border-bottom: none;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

/* Channel cards (email, chat, bug report) */
.support-channels {
  display: grid;
  gap: var(--sp-4);
}

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

.support-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.support-channel-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-subtle);
}

.support-channel-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.support-channel-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0;
}

.support-channel-card p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

/* FAQ Grid — 2 or 3 columns of grouped Q&As */
.support-faq-grid {
  display: grid;
  gap: var(--sp-8);
}

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

@media (min-width: 1200px) {
  .support-faq-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.support-faq-group__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--brand-subtle);
}

/* Getting Started Guide Cards */
.support-guides {
  display: grid;
  gap: var(--sp-4);
}

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

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

.support-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--t-fast);
}

.support-guide-card:hover {
  border-color: var(--brand-dark);
}

.support-guide-card__step {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-subtle);
  line-height: 1;
  margin-bottom: var(--sp-3);
  color: var(--brand);
  opacity: 0.35;
}

.support-guide-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}

.support-guide-card p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Two-column: contact info + form */
.contact-layout {
  display: grid;
  gap: var(--sp-10);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-20);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-info-block {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.contact-info-block__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-block h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.contact-info-block a {
  font-size: 0.9rem;
  color: var(--brand);
  font-weight: 600;
  display: block;
  transition: color var(--t-fast);
}

.contact-info-block a:hover {
  color: var(--brand-light);
}

.contact-info-block p {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Response time bars */
.contact-response-time {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.contact-response-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
}

.contact-response-bar:last-child {
  border-bottom: none;
}

/* Contact form card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-form__row {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 480px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

@media (min-width: 480px) {
  .contact-form__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Select element styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text-1);
}

/* Flash success message */
.flash-success {
  background: var(--green-bg);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--sp-5);
}

/* Alternative contact cards (3-up) */
.contact-alt-cards {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .contact-alt-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-alt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--t-fast);
}

.contact-alt-card:hover {
  border-color: var(--border-strong);
}

.contact-alt-card--highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-subtle), var(--shadow-md);
}

.contact-alt-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0;
}

.contact-alt-card p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

/* ── Contact Form Flash Messages ─────────────────────────────── */
.contact-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: var(--sp-5);
  animation: flashIn 0.35s ease both;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-flash--success {
  background: var(--green-bg);
  border: 1px solid var(--green);
  color: var(--green);
}

.contact-flash--error {
  background: var(--red-bg);
  border: 1px solid var(--red);
  color: var(--red);
}

.contact-flash__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}