/* ==========================================================================
   DOMAIN UNICORNS — Stylesheet
   Modernisierte, responsive Fassung des Originaldesigns.
   Farben, Schriftart und Bildsprache 1:1 aus der Originalseite übernommen.
   ========================================================================== */

:root {
  /* --- Originalfarben --- */
  --ink: #474747;          /* dunkles Grau: Header/Footer/aktive Nav */
  --heading: #707070;      /* mittleres Grau: Domainnamen, Überschriften in hellen Bereichen */
  --muted: #909090;        /* helleres Grau: Nebentext, inaktive Nav */
  --footer-link: #808080;  /* Footer-Linkfarbe */
  --line: #b7b7b7;         /* Trennlinien */
  --canvas: #dbdbdb;       /* helle Flächenfarbe (Original-Canvas) */
  --paper: #ffffff;        /* Seiten-Grundfläche */
  --accent: #ee017f;       /* Pink/Magenta-Akzent (CTAs, Links) */
  --accent-dark: #c4016a;
  --accent-soft: rgba(238, 1, 127, 0.08);
  --accent-soft-2: rgba(238, 1, 127, 0.16);

  /* --- Typografie --- */
  --font-main: "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* --- Abstände (aus dem 40px-Originalraster abgeleitet) --- */
  --gutter: clamp(20px, 4vw, 40px);
  --block-w: 800px;        /* einheitliche Breite aller zentrierten Text-/Formular-/Video-Blöcke (Desktop) */
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1240px;
  --page-top: 44px;        /* einheitlicher Abstand Header -> H1 auf allen Seiten */

  /* --- Schatten --- */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.14);
  --shadow-card-hover: 0 16px 34px rgba(71, 71, 71, 0.22);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--heading);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
footer.site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 { color: var(--heading); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; font-size: 17px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--heading); }

.small { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(238, 1, 127, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(238, 1, 127, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.2px;
  line-height: 1.05;
}
.brand img { height: 44px; width: 44px; border-radius: 10px; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.brand span.tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  line-height: 1.05;
}
.brand .tag-part { display: block; }

/* Overlay only exists on mobile; on desktop it must not be a flex item (it pushed the nav away from the right edge). */
.nav-overlay { display: none; }
nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav > a, nav.main-nav > .has-dropdown > .nav-domains-link {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
nav.main-nav > a:hover,
nav.main-nav > a.active,
nav.main-nav > .has-dropdown:hover > .nav-domains-link,
nav.main-nav > .has-dropdown.active > .nav-domains-link,
nav.main-nav > .has-dropdown > .nav-domains-link.active {
  color: var(--ink);
  background: var(--canvas);
}
.has-dropdown { position: relative; display: flex; align-items: center; gap: 0; }
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.has-dropdown:hover .dropdown-toggle,
.has-dropdown.active .dropdown-toggle,
.has-dropdown.open .dropdown-toggle {
  color: var(--ink);
  background: var(--canvas);
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 190px;
  display: none;
  flex-direction: column;
}
.has-dropdown.open .dropdown-panel { display: flex; }
.dropdown-panel a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown-panel a.active { color: var(--accent); }

.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 10px 22px !important;
}
.nav-cta:hover { background: var(--accent) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.hero img.hero-bg, .page-hero img.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}
.page-title {
  padding: var(--page-top) 0 0;
  text-align: center;
}
.page-title h1 { margin: 0 auto 16px; max-width: var(--block-w); }
.page-title .lead { width: fit-content; max-width: var(--block-w); margin: 0 auto; text-align: left; }
.hero-content h1 { text-align: center; max-width: var(--block-w); margin-left: auto; margin-right: auto; }
.hero-content .btn-row { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { padding: 72px 0; }
.section-canvas { background: var(--canvas); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark p { color: #fff; }
.section-tight { padding: 44px 0; }

.eyebrow-free-title { max-width: 760px; }

/* ==========================================================================
   CATEGORY TABS (Angebotsübersicht)
   ========================================================================== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
}
.category-tabs a {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  transition: all 0.15s ease;
}
.category-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.category-tabs a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Letter-count dual-range slider */
.length-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.length-filter label {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}
.dual-slider {
  position: relative;
  width: 180px;
  height: 24px;
}
.dual-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: 999px;
}
.dual-slider-range {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 999px;
}
.dual-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.dual-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.dual-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  margin-top: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.dual-slider input[type="range"]::-moz-range-track { background: none; border: none; }
.dual-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ==========================================================================
   DOMAIN GRID / CARDS  (atom.com / brandbucket.com style)
   ========================================================================== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.domain-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.domain-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--canvas);
}
/* Fallback for browsers without aspect-ratio support: classic padding-box hack */
@supports not (aspect-ratio: 1 / 1) {
  .domain-card .thumb { height: 0; padding-top: 100%; }
  .domain-card .thumb img { position: absolute; inset: 0; }
}
.domain-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.domain-card:hover .thumb img { transform: scale(1.06); }

/* Placeholder tile for domains without a custom branding graphic yet */
.ph-thumb {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  overflow: hidden;
}
.ph-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%);
}
.ph-thumb span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
  word-break: break-word;
}
.ph-0 { background: linear-gradient(135deg, #5c5c5c, #3a3a3a); }
.ph-1 { background: linear-gradient(135deg, #ee017f, #9c0c58); }
.ph-2 { background: linear-gradient(135deg, #707070, #474747); }
.ph-3 { background: linear-gradient(135deg, #8a8ea3, #474747); }
.ph-4 { background: linear-gradient(135deg, #b7517d, #474747); }
.ph-5 { background: linear-gradient(135deg, #909090, #5c5c5c); }

.simple-card .card-body { padding: 14px 16px; }
.simple-card .domain-name { font-size: 16px; margin-bottom: 0; }

/* Category search / filter box */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-bar .length-filter { margin-left: 0; }
.filter-bar input[type="search"] {
  flex: 0 1 340px;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  background: var(--paper);
}
.filter-bar input[type="search"]:focus { outline: none; border-color: var(--accent); }
.filter-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.no-results { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
.domain-card .thumb .visit-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}
.domain-card:hover .thumb .visit-pill { opacity: 1; transform: translateY(0); }
.domain-card .card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.domain-card .domain-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  word-break: break-word;
}
.domain-card .domain-desc { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }

.portfolio-note {
  margin-top: 44px;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   ABOUT / WHY / TEXT PAGES
   ========================================================================== */
.text-page { max-width: calc(var(--block-w) + 2 * var(--gutter)); margin: 0 auto; text-align: left; }
.text-page h2 { margin-top: 1.9em; }
.text-page > h2:first-child { margin-top: 0; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.value-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.value-card .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.value-card h3 { margin-bottom: 8px; color: var(--ink); }
.value-card p { font-size: 15px; margin: 0; color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer { background: var(--ink); color: #fff; padding: 50px 0 26px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 26px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col .footer-title { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: 0.3px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .lang-group { display: flex; gap: 6px; align-items: center; }
.footer-bottom .lang-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   MISC
   ========================================================================== */
.badge-strip {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
hr.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col .img-col { order: -1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; }
}

@media (max-width: 760px) {
  .brand img { height: 48px; width: 48px; }
  .brand { gap: 9px; }
  .brand .brand-text { gap: 0; }
  .brand span.tag { font-size: 10px; line-height: 1.05; }
  nav.main-nav {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 300px;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    padding-bottom: 100px;
    gap: 4px;
    box-shadow: -8px 0 24px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-overlay {
    display: block;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    background: rgba(20, 18, 32, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 150;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
  nav.main-nav > a, nav.main-nav > .has-dropdown > .nav-domains-link { text-align: left; width: 100%; font-size: 17px; }
  .has-dropdown { width: 100%; }
  .has-dropdown > .nav-domains-link { flex: 1; }
  .dropdown-toggle { display: flex; justify-content: center; }
  .dropdown-panel { position: static; transform: none; display: none; box-shadow: none; padding-left: 10px; width: 100%; }
  .has-dropdown.open .dropdown-panel { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: block; margin-top: 8px; text-align: center; }

  .domain-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .value-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .length-filter { margin-left: 0; }
  .filter-bar { justify-content: flex-start; gap: 12px 12px; }
  .filter-bar input[type="search"] { flex: 1 1 200px; }
  .filter-bar .length-filter { order: 3; flex-basis: 100%; }
  /* text container is as square as the logo above it */
  #domainGrid .domain-card .card-body { aspect-ratio: 1 / 1; padding: 10px 11px 12px; }
  #domainGrid .domain-card .domain-name { font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
  #domainGrid .domain-card .domain-desc { font-size: 12.5px; line-height: 1.4; flex: 0 1 auto; }
}

@media (max-width: 520px) {
  .domain-grid { gap: 12px; }
  .domain-card .card-body { padding: 12px 12px 16px; }
  .domain-card .domain-name { font-size: 15px; }
  .domain-card .domain-desc { font-size: 13px; }
  .category-tabs { gap: 8px; }
  .category-tabs a { padding: 9px 16px; font-size: 14px; }
}

/* Rank badge on the Top 20 cards */
.domain-card .thumb .rank-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}


/* ==========================================================================
   V22 ADDITIONS
   ========================================================================== */

/* Centered reading block: the block is centered, the text inside is left-aligned (ragged right). */
.copy-block { max-width: var(--block-w); margin: 0 auto; text-align: left; }
.copy-block h2 { margin-top: 1.6em; }
.copy-block > h2:first-child { margin-top: 0; }
.copy-block .btn-row { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-start; }
.hero-content .copy-block .btn-row { justify-content: center; }
.source-note { font-size: 14px; color: var(--muted); }
.source-note a, .copy-block a.text-link { color: var(--accent); font-weight: 700; }
.copy-block a.text-link:hover { text-decoration: underline; }
.section-canvas .copy-block { margin-bottom: 30px; }
.section-canvas .copy-block h2 { margin-top: 0; text-align: center; }
.section-canvas .copy-block p { margin-bottom: 0; }

/* Explainer video placeholder (FAQ) */
.video-placeholder {
  width: 100%;
  margin: 0 0 36px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--canvas);
  border: 2px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  color: var(--muted);
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.video-placeholder p { margin: 0; font-size: 15px; font-weight: 600; color: var(--heading); }
.video-placeholder p.small { font-weight: 400; color: var(--muted); }

/* Contact / offer form */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.contact-form .field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-form .field .opt { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field-error { color: #b00020; font-size: 13px; margin: 6px 0 0; min-height: 0; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #b00020; }
.contact-form .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.contact-form .privacy-note { font-size: 14px; color: var(--muted); margin: 0; }
.contact-form .privacy-note a { color: var(--accent); font-weight: 700; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[type="submit"] { align-self: flex-start; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-status.err { background: #fdecea; color: #7f0d1c; border: 1px solid #f5c6cb; }
.contact-details { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr; gap: 24px; margin-top: 8px; }
.contact-details .row strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.contact-details a.contact-link { color: var(--accent); font-weight: 700; word-break: break-word; }
.contact-details p { font-size: 16px; margin: 0; }

/* Footer column titles (kept visually identical to the former h4) */
.ai-note { margin-top: 28px; }

/* Visible keyboard focus for nav and cards */
nav.main-nav a:focus-visible, .domain-card:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .contact-form .row-2 { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
}

/* About page nests .text-page inside .container: keep the same 800px block width */
.container .text-page { max-width: var(--block-w); }
.lead { text-wrap: pretty; }

@media (max-width: 520px) {
  #domainGrid .domain-card .card-body { padding: 10px 11px 12px; }
  #domainGrid .domain-card .domain-name { font-size: 14px; }
  #domainGrid .domain-card .domain-desc { font-size: 12.5px; }
}

@media (max-width: 400px) {
  #domainGrid .domain-card .card-body { padding: 8px 9px 9px; }
  #domainGrid .domain-card .domain-name { font-size: 13px; margin-bottom: 3px; }
  #domainGrid .domain-card .domain-desc { font-size: 12px; line-height: 1.35; }
}

@media (max-width: 360px) {
  #domainGrid .domain-card .card-body { padding: 7px 8px 8px; }
  #domainGrid .domain-card .domain-name { font-size: 12.5px; }
  #domainGrid .domain-card .domain-desc { font-size: 11.5px; line-height: 1.3; }
}


/* ==========================================================================
   V25 ADDITIONS
   ========================================================================== */

/* --- Why page (layout of variant B): heading left, content right ---------- */
.b-page { padding-top: var(--page-top); padding-bottom: 88px; }
.b-hero,
.b-chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
}
.b-page h1 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; margin: 0; }
.b-page h2 { font-size: 26px; line-height: 1.25; margin: 0; }
.b-page h3 { font-size: 17px; line-height: 1.4; color: var(--accent); margin: 32px 0 0; }
.b-page p { margin: 0 0 16px; }
.b-lead { font-weight: 600; }
.b-chapter { margin-top: 72px; padding: 40px 0 0; border-top: 1px solid var(--canvas); }
.b-side h2 { position: sticky; top: 102px; }
.b-main > p:first-child { margin-top: 0; }
.b-list { list-style: none; margin: 8px 0 0; padding: 0; }
.b-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--canvas);
  font-size: 17px;
}
.b-list li:first-child { border-top: 1px solid var(--canvas); margin-top: 12px; }
.b-list strong { color: var(--ink); }
.b-page p.b-takeaway { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--ink); margin: 32px 0 0; }
.b-closing {
  margin-top: 72px;
  padding: 48px;
  background: var(--ink);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  align-items: start;
}
.b-closing h2 { color: #fff; }
.b-closing p { color: #fff; margin: 0 0 24px; }

@media (max-width: 980px) {
  .b-hero, .b-chapter, .b-closing { grid-template-columns: 1fr; }
  .b-side h2 { position: static; }
  .b-chapter, .b-closing { margin-top: 48px; }
  .b-closing { padding: 32px 24px; }
  .b-page p.b-takeaway { font-size: 22px; }
}

/* --- Domain cards with a white logo background: fine divider line -------- */
.domain-card .thumb.thumb-light::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--canvas);
  pointer-events: none;
}


/* ==========================================================================
   V26 ADDITIONS: why-page layout concept on all content pages
   ========================================================================== */
.b-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  margin: 0 0 40px;
}
.b-head h2 { font-size: 26px; line-height: 1.25; margin: 0; color: var(--ink); }
.b-head p { margin: 0; color: var(--ink); }
.section-canvas .b-head { margin-bottom: 40px; }

.b-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.b-main a.text-link { color: var(--accent); font-weight: 700; }
.b-main a.text-link:hover { text-decoration: underline; }
.b-main ul:not(.b-list) { margin: 0 0 16px; padding-left: 22px; }
.b-main ul:not(.b-list) li { margin-bottom: 4px; }
.b-intro > p:last-child { margin-bottom: 0; }
.b-hero:has(.b-intro:empty) { grid-template-columns: 1fr; }

/* FAQ: explainer video in the left column, questions on the right */
.b-side .video-placeholder { margin: 0; position: sticky; top: 102px; }
.b-main .faq-list { gap: 0; }
.b-main .faq-item { padding: 18px 0; border-bottom: 1px solid var(--canvas); }
.b-main .faq-item:first-child { border-top: 1px solid var(--canvas); }
.b-main .faq-item p { font-size: 17px; color: var(--heading); }

/* Closing block with a single sentence (FAQ) */
.b-closing-simple { grid-template-columns: 1fr; }
.b-closing-simple p { margin: 0; }
.b-closing a.contact-link { color: #fff; font-weight: 700; text-decoration: underline; }
.b-closing a.contact-link:hover { color: var(--accent); }

/* Contact page */
.b-main .contact-form { margin-bottom: 0; }
.b-main .contact-details { grid-template-columns: 1fr; gap: 0; margin: 0; }
.b-main .contact-details .row { padding: 16px 0; border-bottom: 1px solid var(--canvas); }
.b-main .contact-details .row:first-child { border-top: 1px solid var(--canvas); }
.b-main .contact-details .row strong { font-size: 17px; margin-bottom: 2px; }
.b-main .contact-details p { margin: 0; font-size: 17px; }

@media (max-width: 980px) {
  .b-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .b-side .video-placeholder { position: static; }
}
.b-btns .btn { padding: 14px 24px; }

/* A list that opens a column starts flush with the heading on the left */
.b-main > .b-list:first-child { margin-top: 0; }
.b-main > .b-list:first-child li:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.b-main > .faq-list:first-child .faq-item:first-child { padding-top: 0; border-top: 0; }
.b-main > .contact-details:first-child .row:first-child { padding-top: 0; border-top: 0; }

/* Long words / URLs must never widen the single-column layout */
.b-page { overflow-wrap: break-word; }
@media (max-width: 980px) {
  .b-hero, .b-chapter, .b-closing, .b-head { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   V27 ADDITIONS (SEO round)
   ========================================================================== */
.b-list + p { margin-top: 24px; }


/* ==========================================================================
   V28 ADDITIONS
   ========================================================================== */

/* --- Desktop header: nav spans the 7fr text column --------------------------
   "Welcome" starts flush with the text column below (same 5fr / 7fr grid as the
   content pages), "Get in touch" stays at the right edge, the links in between
   are spread with equal gaps. --nav-pad = inner padding of a nav link, so the
   *text* of "Welcome" (not its hover pill) lines up with the text column.     */
:root { --nav-pad: 16px; }
@media (min-width: 1100px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(max-content, 7fr);
    column-gap: 64px;
    justify-content: normal;
  }
  nav.main-nav {
    justify-content: space-between;
    gap: 0;
    margin-left: calc(-1 * var(--nav-pad));
  }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  :root { --nav-pad: 12px; }
  nav.main-nav > a { padding-left: 12px; padding-right: 12px; }
  .nav-cta { padding-left: 18px !important; padding-right: 18px !important; }
}

/* --- Category pages: same head layout as all other pages ---------------------
   heading left (5fr), intro text + tabs + search + slider right (7fr)         */
.cat-head { padding: var(--page-top) 0 44px; }
.cat-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  align-items: start;
}
.cat-head h1 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; margin: 0; }
.cat-head .b-lead { margin: 0 0 28px; }
.cat-head .category-tabs { margin: 0 0 32px; }

.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  margin: 0;
}
.search-wrap { position: relative; }
.filter-bar input[type="search"] {
  flex: none;
  width: 100%;
  min-width: 0;
  padding: 12px 84px 12px 18px;
  -webkit-appearance: none;
  appearance: none;
}
.filter-bar input[type="search"]::-webkit-search-cancel-button,
.filter-bar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.filter-bar .search-wrap .filter-count {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}
.filter-bar .length-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  order: 0;
  flex: none;
}
.filter-bar .length-filter label { min-width: 104px; }
.filter-bar .dual-slider { flex: 1 1 auto; width: auto; min-width: 0; }

@media (max-width: 980px) {
  .cat-head-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-head { padding-bottom: 32px; }
}

/* --- Landing page --------------------------------------------------------- */
.home-hero { padding-bottom: 56px; }
.home-hero .b-btns { margin-top: 24px; }
.home-collection { padding: 56px 0 72px; }
.home-more { padding-top: 24px; padding-bottom: 88px; }
.home-more .b-chapter { margin-top: 0; border-top: 0; padding-top: 40px; }

/* Text inside the accordions */
.faq-item .faq-body { padding-top: 14px; }
.b-main .faq-item .faq-body p { font-size: 17px; color: var(--heading); margin: 0 0 16px; }
.faq-body > :last-child { margin-bottom: 0 !important; }
.faq-body .b-list { margin: 8px 0 20px; }
.faq-body .b-list li:first-child { margin-top: 4px; }
.faq-body .b-list + p { margin-top: 0; }


/* ==========================================================================
   V29 ADDITIONS
   ========================================================================== */

/* Landing page: brand banner between intro text and collection */
.home-hero { padding-bottom: 40px; }
.home-banner { background: #f4f4f4; line-height: 0; }
.home-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .home-banner img { height: 210px; object-fit: cover; object-position: 50% 50%; }
}

/* FAQ page: explainer film replaces the placeholder */
.film-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(56.25% + 135px);   /* fallback; JS sets the exact height */
  border-radius: var(--radius);
  background: #f1f1f1;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.film-frame.is-sized { padding-bottom: 0; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.b-side .film-frame { position: sticky; top: 102px; }
@media (max-width: 980px) { .b-side .film-frame { position: relative; top: 0; } }


/* ==========================================================================
   V34 ADDITIONS
   ========================================================================== */
/* FAQ: group headings along the customer journey */
.b-main h3.faq-group {
  margin: 44px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.b-main > h3.faq-group:first-child { margin-top: 0; }

/* Collapsible list blocks inside chapters (Why page) */
.b-main .faq-list { margin: 8px 0 0; }
.b-main .faq-item .faq-body .b-list { margin: 4px 0 0; }


/* Explainer film: expands to the full layout width when played (desktop) */
.film-frame { scroll-margin-top: 100px; }
.film-shrink { display: none; }
.film-host.film-wide .film-shrink {
  display: block; position: absolute; top: 10px; right: 12px; z-index: 3;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
.film-host.film-wide .film-shrink:hover { border-color: var(--accent); color: var(--accent); }




/* ==========================================================================
   V37: Welcome page layout (banner, intro, film, numbered chapters)
   ========================================================================== */
.home-top { row-gap: 32px; align-items: start; }
.home-top .film-frame { grid-column: 2; position: relative; top: 0; }
.home-top.film-wide .film-frame { grid-column: 1 / -1; }
.home-hero { padding-top: 44px; padding-bottom: 8px; }
.home-chapters { padding-top: 0; }
@media (max-width: 980px) {
  .home-top .film-frame,
  .home-top.film-wide .film-frame { grid-column: 1; }
}
