/* Base styles with performance optimizations and improved accessibility */
:root {
  --bg: #f6f7f8;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #374151; /* Improved contrast from #475569 to #374151 for better accessibility */
  --brand: #1e7a4b;
  --brand-ink: #0f3f2a;
  --accent: #e7f6ee;
  --ring: rgba(30, 122, 75, 0.25);
  --shadow: 0 10px 20px rgba(2, 6, 23, 0.06), 0 2px 6px rgba(2, 6, 23, 0.06);
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

/* Ensure the body fills the viewport so flex layout can pin the footer correctly. */
body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans';
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* Prevent font loading shifts */
  font-display: swap;
  /* Improve scrolling performance */
  scroll-behavior: smooth;
  /* Footer at bottom utility */
  display: flex;
  flex-direction: column;
}

/* Prevent excessive overscroll on short pages (mobile & desktop) */
html,
body {
  overscroll-behavior-y: contain;
}

/* Small safe padding at bottom so footer isn't flush on some viewports */
footer {
  padding-top: 14px;
  padding-bottom: 24px;
}

/* Improve link accessibility */
a {
  color: var(--brand);
  text-decoration: none;
}

a:focus {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  /* Ensure focus is always visible */
  text-decoration: underline;
}

/* Prevent layout shifts with consistent container sizing */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 24px;
  /* Reserve space to prevent shifts */
  contain: layout;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
/* Additional performance optimizations to prevent layout shifts */

/* Stabilize navigation */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(246, 247, 248, 0.8);
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
  /* Prevent header layout shifts */
  min-height: 70px;
  contain: layout style;
}

/* Improve section layout stability */
section {
  contain: layout;
}

.hero {
  padding: 60px 0 40px;
  min-height: 400px; /* Reserve space to prevent shifts */
}

/* Stabilize pricing cards */
.snap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  /* Prevent grid layout shifts */
  contain: layout;
}

.snap {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  /* Ensure consistent card height */
  min-height: 180px;
  contain: layout style;
}

/* Improve testimonial stability */
.testimonials {
  padding: 10px 0;
  min-height: 200px;
}

/* Stabilize FAQ section */
.faq {
  padding: 10px 0 30px;
  min-height: 300px;
}

details {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  /* Prevent details expansion shifts */
  contain: layout;
}
/* Add comfortable horizontal breathing room in header */
header .container {
  padding-left: 32px;
  padding-right: 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand a {
  color: var(--ink);
  text-decoration: none;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #2ea36a);
  display: grid;
  place-items: center;
  color: white;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:not(.cta):hover {
  background: #eef2f1;
  color: var(--brand-ink);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
  border-radius: 0;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--brand);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}
.mobile-menu-btn:hover {
  background: #eef2f1;
}

/* Hamburger dropdown menu */
.hamburger-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.hamburger-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.hamburger-menu a:last-child {
  border-bottom: none;
}

.hamburger-menu a:hover {
  background: #f8fafc;
  color: var(--brand);
}

/* Desktop positioning */
.nav {
  position: relative;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Hide main navigation links on mobile */
  .nav nav a,
  .nav nav .dropdown {
    display: none;
  }

  /* Show only the hamburger menu button */
  .mobile-menu-btn {
    display: flex;
  }

  .hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 80px 40px 40px;
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .hamburger-menu.open {
    transform: translateX(0);
  }

  .hamburger-menu a {
    display: block;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .hamburger-menu a:hover {
    background: #f8fafc;
    color: var(--brand);
  }

  .menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .menu-close-btn:hover {
    background: #f8fafc;
    color: var(--brand);
  }

  .hamburger-menu a.cta {
    background: var(--brand);
    color: white !important;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 8px 0;
    border-bottom: none;
  }

  .hamburger-menu a.cta:hover {
    background: var(--brand-ink);
  }

  .mobile-menu-btn.open {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--ink);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1003;
  }
}

/* Ensure proper spacing on smaller mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    padding: 12px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand a {
    font-size: 16px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-btn.open {
    right: 16px;
  }
}
.cta {
  background: var(--brand);
  color: #fff !important; /* ensure text contrast */
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: inline-block;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.cta:hover {
  background: #2ea36a;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .hero {
    padding: 18px 0 40px; /* Half of the original values */
  }
}
.hero .wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
}

/* Brands page card styles */
.brands .section-title {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.brands .section-sub {
  margin-bottom: 1.25rem;
  color: #6b7280;
}

.brands .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition:
    transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 220ms;
  border: 1px solid rgba(15, 23, 42, 0.03);
  text-decoration: none;
  color: inherit;
}

.brand-card:hover,
.brand-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  border-color: rgba(15, 23, 42, 0.06);
}

.brand-card .brand-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #f6f6f6;
  flex: 0 0 48px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 6px;
}

.brand-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.brand-card p.muted {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.35;
}

.brand-card .visit {
  margin-top: auto;
  font-weight: 600;
  color: #0b66ff;
  text-decoration: none;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.brand-card .visit::after {
  content: '→';
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .brand-card {
    transition: none;
  }
}

/* Footer/layout helpers
   Use flexbox correctly: let the primary content area grow (flex:1) and allow the footer to
   be pushed to the bottom via margin-top:auto. Avoid hard min-heights so pages with
   additional sections (mini-sitemap, CTA blocks) behave consistently. */
main,
main.legal,
.content,
#content,
.page,
.site-main,
.catalog-page,
.legal-page {
  /* Allow the main/content region to take available space without forcing a fixed min-height. */
  flex: 1 0 auto;
}

/* Ensure footer always sits at the bottom when content is short */
footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Page CTA styling and alignment */
.page-cta {
  text-align: center;
  margin: 40px 0 32px;
  font-size: 18px;
  font-weight: 500;
}

/* mini-sitemap layout tweaks */
.mini-sitemap {
  padding: 28px 0 20px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  border-top: 1px solid #eef2f6;
}
.sitemap-groups {
  display: flex;
  gap: 48px; /* wider spacing to match screenshot */
  align-items: flex-start;
  flex-wrap: nowrap; /* keep four columns on wide viewports */
}
.sitemap-col {
  /* Force four equal columns while preserving the gap between them.
     (100% - totalGap) / 4 => (100% - 3*48px) / 4 */
  flex: 0 0 calc((100% - 144px) / 4);
  min-width: 0; /* allow columns to shrink as needed */
}

/* Responsive fallbacks: two columns on medium, single column on small */
@media (max-width: 900px) {
  .sitemap-groups {
    gap: 24px;
    flex-wrap: wrap;
  }
  .sitemap-col {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .sitemap-col {
    flex: 1 1 100%;
    min-width: 0;
  }
}
.sitemap-head {
  margin: 0 0 8px;
  font-size: 16px;
}
.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sitemap-links a {
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0;
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}
.hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 12px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--accent);
  color: var(--brand-ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px; /* new padding under buttons */
}

/* When a card contains actions, push them to the bottom so buttons align across cards */
.card .hero-actions {
  margin-top: auto;
}
.subtle {
  color: var(--muted);
  font-size: 14px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1f2937; /* Improved contrast from #334155 to #1f2937 */
  font-weight: 600;
  font-size: 13px;
}

.features {
  padding: 40px 0;
}
/* Improve layout stability for cards and grids */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  /* Prevent layout shifts */
  contain: layout;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  /* Improve rendering performance */
  contain: layout style;
}

.card h3 {
  margin: 6px 0 6px;
  font-size: 18px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
  /* Prevent icon layout shifts */
  flex-shrink: 0;
}

/* Ensure icons don't cause layout shifts */
.icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  /* Improve icon rendering */
  contain: size style;
}
/* Improve image loading performance and prevent layout shifts */
img {
  max-width: 100%;
  height: auto;
  /* Prevent layout shifts during image loading */
  vertical-align: middle;
}

/* Specific image optimization classes */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure icon images don't cause layout shifts */
.icon img,
img.icon {
  width: inherit;
  height: inherit;
  object-fit: contain;
}

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

.plans {
  padding: 20px 0 10px;
}
.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan .top {
  padding: 18px 18px 8px;
}
.tag {
  font-size: 12px;
  background: #f1f5f9;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
}
.price {
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0 0;
}
.per {
  color: var(--muted);
  font-size: 14px;
}
.includes {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}
.includes li {
  list-style: none;
  display: block; /* don't split text around inline <strong> elements */
}

/* If an item includes an icon/SVG, keep it inline and add spacing to the right */
.includes li svg,
.includes li .icon-inline {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  margin-top: 2px;
}
.plan .bottom {
  margin-top: auto;
  padding: 16px 18px 18px;
}
.plan .btn {
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 800;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 6px;
}
.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.faq-toggle {
  background: transparent;
  color: var(--brand);
  border: 2px solid #14592f; /* dark green outline */
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.faq-toggle:hover,
.faq-toggle:focus {
  background: rgba(20, 89, 47, 0.04);
  outline: none;
}

.section-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.why {
  padding: 20px 0;
}
.why .list {
  display: grid;
  gap: 12px;
}
.why .li {
  display: block; /* keep bold and following copy inline without large gaps */
}

.why .li strong {
  display: inline-block;
  margin-right: 6px; /* small, consistent separation between bold heading and body text */
  font-weight: 800;
}

.testimonials {
  padding: 10px 0;
}
.quote {
  background: var(--card);
  border-left: 4px solid var(--brand);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}

.faq {
  padding: 10px 0 30px;
}
details {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
details + details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}

.contact {
  padding: 20px 0 56px;
}
/* Form styles with layout stability improvements */
form {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  /* Prevent form layout shifts */
  contain: layout;
}

label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
}

/* Fieldset and legend styling for better accessibility */
fieldset {
  border: none;
  padding: 0;
  margin: 8px 0;
}

legend {
  font-weight: 500;
  margin-bottom: 4px;
  padding: 0;
  color: var(--ink);
}

/* Form fields (exclude checkboxes/radios) with consistent sizing */
input:not([type='checkbox']):not([type='radio']),
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  /* Prevent input layout shifts */
  box-sizing: border-box;
  min-height: 44px; /* Ensure consistent height */
}

/* Textarea specific height */
textarea {
  min-height: 120px;
  resize: vertical; /* Only allow vertical resize */
}

/* Reset checkboxes so they don't stretch */
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  accent-color: var(--brand);
  /* Prevent checkbox layout shifts */
  flex-shrink: 0;
}

/* Range slider shouldn't look like a text input */
input[type='range'] {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 20px;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand);
}

.actions {
  margin-top: 14px;
}

button {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  /* Improve button performance */
  min-height: 44px;
  transition: background-color 0.2s ease;
}

/* Improve button accessibility */
button:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

button:hover {
  background: var(--brand-ink);
}

footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 0 40px;
  color: #64748b;
}

.snapshot {
  padding: 10px 0 20px;
}
.snap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.snap {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
/* Domain checker cards: wrap long domains and let the CTA drop below when tight */
.snap h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap; /* allow button to flow to next line */
}
.snap h3 span {
  min-width: 0; /* allow shrinking */
  overflow-wrap: anywhere; /* break long domain labels */
  word-break: break-word;
}
.snap h3 .cta {
  flex: 0 0 auto; /* keep button width, but allow wrap */
}
/* Wrap the small badges row neatly under the title */
.snap .subtle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Prevent internal overflow from spilling outside rounded corners */
.snap {
  overflow: hidden;
}
.snap h3 {
  margin: 6px 0 2px;
}
.snap .price {
  font-size: 28px;
}
.snap small {
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .grid,
  .plan-grid,
  .snap-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal .card + .card {
  margin-top: 12px;
}
.legal-list {
  display: block;
  padding-left: 1.25rem;
  margin: 0 0 12px 0;
}
.legal-list li {
  list-style: disc;
  margin-left: 0.5rem;
  color: var(--ink);
  display: list-item;
  align-items: unset;
  gap: 0;
}
.legal h3 {
  margin: 6px 0 8px;
}

/* Legal definition lists */
.legal-def {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 16px;
  margin: 0 0 12px 0;
  align-items: start;
}
.legal-def dt {
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.legal-def dd {
  margin: 0;
  color: var(--ink);
}
@media (max-width: 700px) {
  .legal-def {
    grid-template-columns: 1fr;
  }
  .legal-def dt {
    margin-top: 8px;
  }
}

/* Legal definition list paragraph spacing */
.legal-def dd p {
  margin: 0 0 8px;
}
.legal-def dd p:last-child {
  margin-bottom: 0;
}

/* Tools: options grid + branded checkboxes */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 700px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}
.checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}
.checkbox input[type='checkbox']:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.pg-actions {
  margin: 0 0 8px 0;
}

/* --- Domain Checker TLD grids --- */
.tld-section .options-grid,
.tld-section .tld-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px; /* row x column gap */
  align-items: center;
}

/* Make checkbox labels inline, compact, and on-brand */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
}
.checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* Details accordion spacing for the extra TLD list */
.tld-accordion {
  margin-top: 10px;
}
.tld-accordion > summary {
  cursor: pointer;
  font-weight: 700;
  /* list-style: none; */
}
.tld-accordion[open] > summary {
  margin-bottom: 8px;
}

/* Stack to one column on small screens */
@media (max-width: 640px) {
  .tld-section .options-grid,
  .tld-section .tld-grid {
    grid-template-columns: 1fr;
  }
}

/* Smaller & subtler CTA variants */
.cta--sm {
  padding: 2px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}
/* Make sure we override the base .cta !important color */
.cta--subtle {
  background: var(--accent);
  color: var(--brand-ink) !important;
  border: 1px solid var(--brand-ink); /* adds clear boundary */
  box-shadow: none;
}
.cta--subtle:hover {
  transform: translateY(-1px); /* slight lift */

  background: #d8efe4;
  border-color: var(--brand); /* slight strengthen on hover */
}

.mini-sitemap {
  padding: 20px 0 40px;
  border-top: 1px solid #e5e7eb;
}
.mini-sitemap .sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0;
  margin: 8px 0 0;
}
.mini-sitemap .sitemap-links li {
  list-style: none;
}
.mini-sitemap .sitemap-links a {
  color: var(--muted);
}
.mini-sitemap .sitemap-links a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* Grouped sitemap columns */
.mini-sitemap .sitemap-groups {
  display: grid;
  /* Four columns with equal width; horizontal gap set to match sitemap spacing */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 48px; /* row gap 16px, column gap 48px */
  margin-top: 8px;
}
.mini-sitemap .sitemap-head {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: var(--brand-ink);
}
.mini-sitemap .sitemap-col .sitemap-links {
  display: block;
  padding: 0;
  margin: 0;
}
.mini-sitemap .sitemap-col .sitemap-links li {
  list-style: none;
  margin: 4px 0;
}
.mini-sitemap .sitemap-col .sitemap-links a {
  color: var(--muted);
}
.mini-sitemap .sitemap-col .sitemap-links a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .mini-sitemap .sitemap-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  .mini-sitemap .sitemap-groups {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
}

/* Cookie Notice Bar - Optimized to prevent layout shift */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  /* Reserve space to prevent layout shift */
  contain: layout style paint;
  will-change: transform;
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.cookie-notice-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.cookie-notice-text a {
  color: var(--brand);
  text-decoration: underline;
}

.cookie-notice-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-accept-all-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-accept-all-btn:hover {
  background: var(--brand-ink);
}

.cookie-essential-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-essential-btn:hover {
  background: #f9fafb;
  border-color: var(--ink);
}

@media (max-width: 768px) {
  .cookie-notice .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-notice-text {
    font-size: 13px;
  }

  .cookie-notice-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .cookie-accept-all-btn,
  .cookie-essential-btn {
    width: 100%;
    justify-content: center;
  }
}
