/* Abscode DMS — Shared brand stylesheet
 * Used across all pages of dms.abscode.com
 */

:root {
  --dark: #1A1A2E;
  --dark-light: #2D2D5F;
  --accent: #00C896;
  --accent-dark: #00A878;
  --blue: #1F6FEB;
  --purple: #5530E0;
  --orange: #FF6B35;
  --soft: #E8F8F1;
  --grey-text: #5A6573;
  --grey-line: #E0E5EB;
  --grey-bg: #F7F9FB;
  --biz-highlight: #FFFAE8;
  --warn-bg: #FFF7F0;
  --highlight-bg: #F0EBFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; } /* offset for sticky nav on anchor jumps */

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  /* Subtle dot-grid texture on white areas (vector, GPU-cheap) */
  background: #FFFFFF radial-gradient(circle at 1px 1px, rgba(26, 26, 46, 0.035) 1px, transparent 0) 0 0 / 30px 30px fixed;
  line-height: 1.55;
  font-size: 16px;
}

/* ===== ICONS (inline SVG) ===== */
.card-icon svg { width: 23px; height: 23px; }
.feature-visual .fviz-icon { line-height: 0; }
.feature-visual .fviz-icon svg { width: 60px; height: 60px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-line);
  z-index: 100;
  padding: 14px 0;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--accent); }
.nav-logo .subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-text);
  letter-spacing: 1px;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Country selector dropdown in nav */
.country-selector {
  padding: 7px 28px 7px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%235A6573' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.country-selector:hover { border-color: var(--accent); }

/* Nav dropdown menu (used for Our Solutions / Industries / Resources) */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: " ▾";
  font-size: 9px;
  color: var(--grey-text);
  margin-left: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #FFFFFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--soft);
  color: var(--accent-dark);
  text-decoration: none;
}
.nav-dropdown-menu .menu-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-text);
  letter-spacing: 1px;
  padding: 8px 12px 4px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover { background: var(--accent-dark); color: #FFF; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--grey-line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-dark {
  background: var(--dark);
  color: #FFF;
}
.btn-dark:hover { background: #000; color: #FFF; text-decoration: none; }
.btn-orange {
  background: var(--orange);
  color: #FFF;
}
.btn-orange:hover { background: #E55A28; color: #FFF; text-decoration: none; }
.btn-large {
  padding: 14px 26px;
  font-size: 16px;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section.compact { padding: 50px 0; }

/* ========== HERO ========== */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: #FFFFFF;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -10%; right: -5%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  max-width: 900px;
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 680px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.hero-trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ========== SECTIONS ========== */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--grey-text);
  margin-bottom: 50px;
  max-width: 720px;
  line-height: 1.55;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive two-column layouts — replaces non-responsive inline grids
   so they reliably collapse to one column on tablet/mobile. */
.grid-split, .grid-2col { display: grid; }
.grid-split { grid-template-columns: 1.4fr 1fr; }
.grid-2col  { grid-template-columns: 1fr 1fr; }

.card {
  background: #FFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
  border-color: var(--accent);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}
.card-icon-mint { background: var(--soft); color: var(--accent); }
.card-icon-blue { background: #E3F2FD; color: var(--blue); }
.card-icon-purple { background: var(--highlight-bg); color: var(--purple); }
.card-icon-orange { background: var(--warn-bg); color: var(--orange); }
.card-icon-dark { background: var(--dark); color: var(--accent); }

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.card-body {
  font-size: 14.5px;
  color: var(--grey-text);
  line-height: 1.6;
}
.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

/* ========== USE CASE CARD ========== */
.use-card {
  background: #FFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}
.use-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.use-card.blue::before { background: var(--blue); }
.use-card.purple::before { background: var(--purple); }
.use-card.orange::before { background: var(--orange); }
.use-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
}
.use-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.use-card.blue .use-card-tag { color: var(--blue); }
.use-card.purple .use-card-tag { color: var(--purple); }
.use-card.orange .use-card-tag { color: var(--orange); }

.use-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
.use-card-body {
  font-size: 15px;
  color: var(--grey-text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.use-card-list { list-style: none; padding: 0; }
.use-card-list li {
  font-size: 14px;
  color: var(--grey-text);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.use-card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ========== FEATURE ROW ========== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-row .feature-body {
  font-size: 16px;
  color: var(--grey-text);
  line-height: 1.65;
  margin-bottom: 18px;
}
.feature-row ul {
  list-style: none;
  padding: 0;
}
.feature-row ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--dark);
  font-size: 15px;
}
.feature-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}

.feature-visual {
  background: linear-gradient(135deg, var(--soft) 0%, #FFF 100%);
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ========== PRICING TABLE ========== */
.pricing-scroll-hint {
  display: none; /* shown only on small screens (see media query) */
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 12px;
}
.pricing-wrapper {
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  overflow: hidden;
  background: #FFF;
}
.pricing-tier-headers {
  display: grid;
  grid-template-columns: 2.4fr repeat(5, 1fr);
  background: var(--dark);
  color: #FFF;
}
.pricing-tier-header {
  padding: 28px 16px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.pricing-tier-header:first-child {
  text-align: left;
  padding-left: 24px;
  background: var(--dark);
}
.pricing-tier-header.biz {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--dark);
  position: relative;
}
.pricing-tier-header.biz::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.tier-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tier-price {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px;
}
.tier-price-sub {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
.tier-tag {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  line-height: 1.4;
}
.tier-cta {
  display: inline-block;
  background: #FFF;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: none;
}
.tier-cta:hover { background: var(--soft); color: var(--dark); text-decoration: none; }
.pricing-tier-header.biz .tier-cta {
  background: var(--orange);
  color: #FFF;
}
.pricing-tier-header.biz .tier-cta:hover { background: #E55A28; color: #FFF; }

.pricing-section-row {
  background: var(--grey-bg);
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey-text);
  letter-spacing: 1.5px;
  border-top: 2px solid var(--grey-line);
}
.pricing-data-row {
  display: grid;
  grid-template-columns: 2.4fr repeat(5, 1fr);
  border-top: 1px solid var(--grey-line);
}
.pricing-data-row > div {
  padding: 12px 16px;
  font-size: 13.5px;
  border-right: 1px solid var(--grey-line);
}
.pricing-data-row > div:first-child {
  font-weight: 600;
  color: var(--dark);
  padding-left: 24px;
}
.pricing-data-row > div:not(:first-child) {
  text-align: center;
  color: var(--grey-text);
}
.pricing-data-row > div.biz {
  background: var(--biz-highlight);
  font-weight: 600;
  color: var(--dark);
}
.check { color: var(--accent); font-weight: 800; font-size: 16px; }
.cross { color: var(--grey-line); font-size: 14px; }
.strong { font-weight: 700; color: var(--dark); }

/* ========== FORMS ========== */
.form {
  background: #FFF;
  padding: 36px;
  border-radius: 12px;
  border: 1px solid var(--grey-line);
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #FFF;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ========== FAQ ========== */
.faq-list {
  background: #FFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--grey-line);
  padding: 20px 24px;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.faq-answer {
  font-size: 14.5px;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: #FFF;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.18) 0%, transparent 60%);
}
.cta-banner h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  position: relative;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-banner .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========== INFO BAND ========== */
.info-band {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  border-radius: 6px;
  margin: 28px 0;
}
.info-band h4 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}
.info-band p {
  font-size: 14px;
  color: var(--grey-text);
  line-height: 1.6;
}
.info-band.warn { background: var(--warn-bg); border-left-color: var(--orange); }
.info-band.purple { background: var(--highlight-bg); border-left-color: var(--purple); }

/* ========== STEP FLOW (for digitization page) ========== */
.step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 50px 0;
  position: relative;
}
.step {
  background: #FFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-block;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 44px;
  margin-bottom: 14px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.step-body {
  font-size: 13.5px;
  color: var(--grey-text);
  line-height: 1.55;
}

/* ========== LOGO STRIP ========== */
.logo-strip {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.55;
  margin: 30px 0 0;
}
.logo-strip .logo-placeholder {
  padding: 8px 18px;
  border: 1px dashed var(--grey-line);
  border-radius: 4px;
  font-size: 13px;
  color: var(--grey-text);
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 12px;
}
.footer-brand .dot { color: var(--accent); }
.footer-promise {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 17px; }
  .section-title { font-size: 30px; }

  /* ----- Mobile nav ----- */
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-container { flex-wrap: wrap; row-gap: 12px; }
  .nav-links, .nav-actions {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }
  .nav.nav-open .nav-links,
  .nav.nav-open .nav-actions { display: flex; }
  .nav.nav-open .nav-links {
    border-top: 1px solid var(--grey-line);
    padding-top: 10px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .nav-links a { padding: 11px 6px; font-size: 15px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a::after { content: ""; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .nav.nav-open .nav-actions {
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--grey-line);
  }
  .nav-actions .btn { width: 100%; text-align: center; padding: 12px; }
  .country-selector { width: 100%; }

  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .feature-row.reverse { direction: ltr; }
  .grid-split, .grid-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step-flow { grid-template-columns: 1fr 1fr; }
  .pricing-tier-headers, .pricing-data-row { grid-template-columns: 1.5fr repeat(5, 1fr); font-size: 12px; }
  .pricing-tier-header { padding: 16px 8px; font-size: 11px; }
  .tier-name { font-size: 13px; }
  .tier-price { font-size: 14px; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 70px; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 24px; }
  section { padding: 50px 0; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Comparison table: scroll horizontally with a FROZEN feature column so
     you never lose track of what each value refers to. */
  .pricing-scroll-hint { display: flex; }
  .pricing-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--grey-line);
    border-radius: 12px;
  }
  .pricing-tier-headers, .pricing-data-row {
    grid-template-columns: 150px repeat(5, 126px);
    font-size: 12.5px;
  }
  .pricing-section-row { min-width: 780px; }
  .pricing-section-row span { position: sticky; left: 14px; display: inline-block; }
  /* freeze first (feature-name) column */
  .pricing-tier-header:first-child,
  .pricing-data-row > div:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
  }
  .pricing-data-row > div:first-child {
    background: #FFF;
    padding-left: 14px;
    box-shadow: 6px 0 8px -6px rgba(26, 26, 46, 0.18);
  }
  .pricing-data-row > div.biz { background: var(--biz-highlight); }
  .pricing-tier-header:first-child {
    background: var(--dark);
    z-index: 4;
    box-shadow: 6px 0 8px -6px rgba(0, 0, 0, 0.35);
  }
  .pricing-tier-header { padding: 14px 8px; }
  .tier-name { font-size: 13px; }
  .tier-price { font-size: 15px; }
  .pricing-data-row > div { padding: 11px 10px; }
}

/* ========== LEGAL / DOC PAGES ========== */
.legal { color: var(--dark); }
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 34px 0 12px;
  letter-spacing: -0.3px;
}
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p { color: var(--grey-text); line-height: 1.75; margin-bottom: 14px; font-size: 15.5px; }
.legal ul { margin: 0 0 16px 0; padding-left: 22px; }
.legal li { color: var(--grey-text); line-height: 1.7; margin-bottom: 8px; font-size: 15.5px; }
.legal a { color: var(--blue); }
.legal code {
  background: var(--grey-bg);
  border: 1px solid var(--grey-line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}
.legal strong { color: var(--dark); }

/* ========== COOKIE / PRIVACY BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.18);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--grey-text);
}
.cookie-banner p a { color: var(--blue); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 18px; font-size: 13.5px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 520px) {
  .cookie-banner { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}
