/* ============================================================================
   Stow8 Design System

   Shared design tokens and components for stow8.fr8labs.co.
   Mirrors the Fr8Labs V3 marketing site aesthetic (Option F, locked 2026-04-09):
   - IBM Plex Sans Condensed (display) + Inter (body) + IBM Plex Mono (labels)
   - Brand blue #053895 with soft glow
   - Dark hero (#071028) + light content (#F7F8FA + white cards)
   - Section labels with mono font + accent line
   - Fade-up scroll animations

   Loaded by every stow8-*.html page. Google Fonts linked separately in <head>
   for faster first paint.
   ============================================================================ */

:root {
  /* Brand — Fr8Labs townhall deck exact values */
  --brand-blue: #053895;
  --brand-blue-hover: #0648b8;
  --accent-bright: #3B6FD4;
  --accent-light: #8DA9DB;
  --gold: #F5C542;
  --green: #70AD47;
  --orange: #ED7D31;

  /* Dark surfaces */
  --bg-dark: #071028;
  --bg-raised: #0A1628;
  --bg-elevated: #0D1B30;
  --border-dark: rgba(141, 169, 219, 0.12);
  --border-dark-strong: rgba(141, 169, 219, 0.22);

  /* Light surfaces */
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;
  --bg-grid: #F0F4F9;
  --border-light: #E1E5ED;
  --border-light-strong: #CFDAE6;

  /* Text on dark */
  --text-dark-bg: #F1F4F9;
  --text-dark-bg-secondary: #8DA9DB;
  --text-dark-bg-muted: #5A7AB5;

  /* Text on light */
  --text-strong: #1A202C;
  --text-primary: #2D3748;
  --text-secondary: #5E758D;
  --text-muted: #8A96A8;

  /* Typography */
  --font-display: 'IBM Plex Sans Condensed', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --section-pad-sm: clamp(2.5rem, 6vw, 4.5rem);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ============================================================================
   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-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ============================================================================
   Typography
   ============================================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.h4 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

.body-lg { font-size: 1.125rem; line-height: 1.7; font-weight: 400; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(5, 56, 149, 0.35);
}
.btn-primary:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 0 40px rgba(5, 56, 149, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-secondary:hover {
  background: rgba(5, 56, 149, 0.06);
}

/* On dark backgrounds */
.btn-secondary--on-dark {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dark-bg);
  border-color: rgba(141, 169, 219, 0.25);
}
.btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover {
  color: var(--brand-blue);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================================
   Header / nav
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-header--on-dark {
  background: rgba(7, 16, 40, 0.7);
  border-bottom-color: var(--border-dark);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.875rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1;
}

.site-header--on-dark .brand { color: var(--text-dark-bg); }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0;
  box-shadow: 0 0 18px rgba(5, 56, 149, 0.4);
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header--on-dark .brand__sub { color: var(--text-dark-bg-secondary); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Scope the muted-link treatment to NON-button anchors so .btn-primary /
   .btn-secondary anchors keep their own color (white on brand-blue, etc.).
   Without :not(.btn) the nav selector beats .btn-primary on specificity
   (1,1 vs 1,0) and the "Try free" CTA text ends up muted gray. */
.primary-nav a:not(.btn) {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.primary-nav a:not(.btn):hover { color: var(--text-strong); }

.site-header--on-dark .primary-nav a:not(.btn) { color: var(--text-dark-bg-secondary); }
.site-header--on-dark .primary-nav a:not(.btn):hover { color: var(--text-dark-bg); }

.primary-nav .btn {
  padding: 0.55rem 1.125rem;
  font-size: 0.875rem;
}
.primary-nav .btn-primary,
.primary-nav .btn-primary:hover {
  color: #fff;
}

.primary-nav-mobile {
  display: none;
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .primary-nav-mobile {
    display: block;
    position: relative;
  }
  .primary-nav-mobile summary {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
  }
  .primary-nav-mobile summary::-webkit-details-marker { display: none; }
  .primary-nav-mobile summary::before {
    content: '';
    width: 16px; height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
  }
  .primary-nav-mobile summary::after {
    content: '';
    width: 16px;
    height: 0;
    border-top: 2px solid currentColor;
    margin-top: 4px;
    margin-left: -16px;
  }
  .primary-nav-mobile[open] > div {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(7, 16, 40, 0.12);
    padding: 0.625rem;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .primary-nav-mobile[open] > div a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border-radius: 6px;
    color: var(--text-primary);
  }
  .primary-nav-mobile[open] > div a:hover { background: var(--bg-light); }
  .site-header--on-dark .primary-nav-mobile summary { border-color: var(--border-dark-strong); color: var(--text-dark-bg); }
  .site-header--on-dark .primary-nav-mobile[open] > div {
    background: var(--bg-raised);
    border-color: var(--border-dark-strong);
  }
  .site-header--on-dark .primary-nav-mobile[open] > div a { color: var(--text-dark-bg); }
  .site-header--on-dark .primary-nav-mobile[open] > div a:hover { background: var(--bg-elevated); }
}

/* ============================================================================
   Hero (dark variant)
   ============================================================================ */
.hero-dark {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-dark-bg);
  padding: calc(var(--section-pad) + 1.5rem) 0 var(--section-pad);
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(59, 111, 212, 0.2), transparent 60%),
    radial-gradient(800px 400px at 80% 100%, rgba(5, 56, 149, 0.25), transparent 65%);
  pointer-events: none;
}

.hero-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 169, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 169, 219, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 40%, transparent 75%);
  pointer-events: none;
}

.hero-dark__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.hero-dark h1 {
  color: var(--text-dark-bg);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}

.hero-dark .lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-dark-bg-secondary);
  max-width: 58ch;
  margin: 0 auto 2.25rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-dark .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-dark .hero-demo {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(59, 111, 212, 0.16), rgba(5, 56, 149, 0.05)),
    var(--bg-elevated);
  border: 1px solid var(--border-dark-strong);
  box-shadow:
    0 40px 120px -20px rgba(5, 56, 149, 0.4),
    0 20px 60px -10px rgba(7, 16, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-dark .hero-demo::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background-image:
    linear-gradient(rgba(141, 169, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 169, 219, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-dark .hero-demo__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-sm);
  background: rgba(13, 27, 48, 0.7);
}

.hero-dark .hero-demo__canvas {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 2;
}
.hero-dark .hero-demo__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================================
   Hero (light variant — for signup/login/account/seo)
   ============================================================================ */
.hero-light {
  padding: calc(var(--section-pad) - 1rem) 0 var(--section-pad-sm);
  background: var(--bg-white);
  text-align: center;
}

.hero-light h1 {
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}

.hero-light .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* ============================================================================
   Section labels (mono-font, accent line)
   ============================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label__line {
  width: 28px;
  height: 2px;
  background: var(--brand-blue);
}
.section-label__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
}

.section-label--dark .section-label__line { background: var(--accent-bright); }
.section-label--dark .section-label__text { color: var(--accent-light); }

/* ============================================================================
   Sections
   ============================================================================ */
.section {
  padding: var(--section-pad) 0;
}

.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }
.section-dark { background: var(--bg-dark); color: var(--text-dark-bg); }

.section__head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 3rem;
}
.section__head h2 { margin-bottom: 0.875rem; }
.section__head p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.65; }
.section-dark .section__head h2 { color: var(--text-dark-bg); }
.section-dark .section__head p { color: var(--text-dark-bg-secondary); }

/* ============================================================================
   Cards
   ============================================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(7, 16, 40, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card--hover:hover {
  box-shadow: 0 18px 48px -12px rgba(5, 56, 149, 0.18);
  transform: translateY(-2px);
  border-color: var(--border-light-strong);
}

.card-dark {
  background: var(--bg-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--text-dark-bg);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: var(--text-strong);
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================================
   Feature grid (3 columns on desktop, 1 on mobile)
   ============================================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(5, 56, 149, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ============================================================================
   Pricing cards
   ============================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pricing-card--featured {
  border-color: var(--brand-blue);
  box-shadow:
    0 0 0 1px var(--brand-blue),
    0 20px 60px -10px rgba(5, 56, 149, 0.25);
  transform: translateY(-4px);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.pricing-card__sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-card__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
}

.pricing-card__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(5, 56, 149, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%23053895' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card__list li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}
.pricing-card__list li.disabled::before {
  background-color: #f1f3f6;
  background-image: none;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-grid);
  border: 1px solid var(--border-light);
  padding: 0.25rem;
  border-radius: 999px;
  margin: 0 auto 2.5rem;
}

.pricing-toggle label {
  position: relative;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.pricing-toggle label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pricing-toggle label:has(input:checked) {
  background: var(--bg-white);
  color: var(--text-strong);
  box-shadow: 0 1px 3px rgba(7, 16, 40, 0.08);
}

.pricing-toggle__savings {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  background: rgba(112, 173, 71, 0.16);
  color: #3b6720;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================================
   Auth card (signup / login / account)
   ============================================================================ */
.auth-wrap {
  min-height: calc(100vh - 72px - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  background: var(--bg-light);
}

.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px -20px rgba(7, 16, 40, 0.15);
  width: 100%;
  max-width: 440px;
}

.auth-card--wide { max-width: 880px; }

.auth-card__head {
  margin-bottom: 1.75rem;
}

.auth-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.auth-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .auth-split { grid-template-columns: 1fr; }
}

.auth-split__divider {
  border-left: 1px solid var(--border-light);
  padding-left: 2rem;
}

@media (max-width: 800px) {
  .auth-split__divider {
    border-left: 0;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 1rem;
  }
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.oauth-btn:hover {
  background: var(--bg-light);
  border-color: var(--brand-blue);
}
.oauth-btn__icon { width: 18px; height: 18px; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ============================================================================
   Form fields
   ============================================================================ */
.field {
  margin-bottom: 1.125rem;
}

.field__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.field__input,
.field__textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(5, 56, 149, 0.1);
}

.field__hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.field.has-error .field__input { border-color: #c53030; }
.field__error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #c53030;
  min-height: 1.1rem;
}

.form-error {
  padding: 0.75rem 1rem;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.25);
  border-radius: var(--radius-sm);
  color: #9b2c2c;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  padding: 0.75rem 1rem;
  background: rgba(56, 161, 105, 0.08);
  border: 1px solid rgba(56, 161, 105, 0.25);
  border-radius: var(--radius-sm);
  color: #276749;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.form-success.visible { display: block; }

/* ============================================================================
   Tier badge (account page)
   ============================================================================ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tier-badge--free {
  background: var(--bg-grid);
  color: var(--text-secondary);
  border: 1px solid var(--border-light-strong);
}

.tier-badge--starter {
  background: rgba(59, 111, 212, 0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(59, 111, 212, 0.3);
}

.tier-badge--pro {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue);
  box-shadow: 0 0 12px rgba(5, 56, 149, 0.4);
}

/* ============================================================================
   Progress bar (quota)
   ============================================================================ */
.progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-grid);
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand-blue);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress__fill--warn { background: var(--orange); }
.progress__fill--danger { background: #c53030; }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-dark-bg-secondary);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 1.5rem;
}

@media (max-width: 760px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.site-footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-dark-bg);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-footer__brand-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-dark-bg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__tagline {
  font-size: 0.9375rem;
  color: var(--text-dark-bg-secondary);
  max-width: 32ch;
  line-height: 1.6;
}

.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-bg-muted);
  margin-bottom: 0.875rem;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  color: var(--text-dark-bg-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.site-footer__links a:hover { color: var(--text-dark-bg); }

.site-footer__bottom {
  font-size: 0.8125rem;
  color: var(--text-dark-bg-muted);
  line-height: 1.5;
}

.site-footer__bottom a { color: var(--text-dark-bg-secondary); }
.site-footer__bottom a:hover { color: var(--text-dark-bg); }

/* ============================================================================
   Scroll animations
   ============================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   SEO article layout (flat-rack, oog-cargo pages)
   ============================================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2rem);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.article h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}

.article .lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.article section {
  margin-top: 3rem;
}

.article h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.1875rem;
  margin: 1.75rem 0 0.625rem;
  color: var(--text-strong);
}

.article p {
  margin-bottom: 1.125rem;
}

.article ul {
  margin: 1rem 0 1.25rem 1.125rem;
  padding: 0;
}

.article li {
  margin-bottom: 0.5rem;
}

.article li strong {
  color: var(--text-strong);
}

.article__hero-cta {
  display: inline-block;
  margin-top: 1rem;
}

.article__final-cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
}

.article__final-cta h2 {
  margin-bottom: 0.75rem;
}

.article__final-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================================================
   Utility
   ============================================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
