/* ============================================================
   SwitchDom home page
   Append this file to /css/style.css, or save it as /css/home.css
   and link it from the main layout after style.css.

   Brand
     Blue:        #3D87BE  (logo, icons, accents)
     Blue dark:   #2F6C98  (links and step numbers; 5.65:1 on white)
     Black:       #111111  (buttons, to match the existing site)
     Dark:        #212529  (header/footer, headings)
     Muted text:  #4A5560  (7.61:1 on white)
   ============================================================ */

.sd-home {
  --sd-blue: #3d87be;
  --sd-blue-dark: #2f6c98;
  --sd-blue-darker: #24557a;
  --sd-blue-soft: #e8f3f9;
  --sd-black: #111111;
  --sd-dark: #212529;
  --sd-text: #212529;
  --sd-muted: #4a5560;
  --sd-bg: #f7f8fa;
  --sd-white: #ffffff;
  --sd-border: #e5e7eb;
  --sd-shadow: 0 0.5rem 1.25rem rgba(17, 17, 17, 0.06);
  --sd-shadow-hover: 0 0.85rem 1.75rem rgba(17, 17, 17, 0.1);
  --sd-radius: 0.75rem;
  --sd-btn-radius: 0.5rem;
  color: var(--sd-text);
}

.sd-home a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: var(--sd-blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sd-home a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--sd-blue-darker);
}

.sd-home h1,
.sd-home h2,
.sd-home h3 {
  color: var(--sd-dark);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sd-home h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
}

.sd-home h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.sd-home h3 {
  font-size: 1.2rem;
}

.sd-home p,
.sd-home li {
  line-height: 1.65;
}

.sd-lead {
  color: var(--sd-muted);
  font-size: 1.125rem;
  max-width: 36rem;
}

.sd-section {
  padding: 3.5rem 0;
}

@media (min-width: 992px) {
  .sd-section {
    padding: 5rem 0;
  }
}

.sd-section--alt {
  background-color: var(--sd-bg);
}

.sd-section-intro {
  color: var(--sd-muted);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons: one style, black with white text */
.sd-home .sd-btn,
.sd-home a.sd-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sd-black);
  --bs-btn-border-color: var(--sd-black);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-focus-shadow-rgb: 17, 17, 17;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  background-color: var(--sd-black);
  border-color: var(--sd-black);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--sd-btn-radius);
  padding: 0.7rem 1.35rem;
  line-height: 1.3;
  box-shadow: none;
}

.sd-home .sd-btn:hover,
.sd-home .sd-btn:focus-visible,
.sd-home a.sd-btn:hover,
.sd-home a.sd-btn:focus-visible {
  background-color: #000;
  border-color: #000;
  color: #fff !important;
}

.sd-home .sd-btn:focus-visible,
.sd-home a:focus-visible,
.sd-home .form-control:focus {
  outline: 3px solid var(--sd-blue);
  outline-offset: 2px;
  box-shadow: none;
}

/* Domain search */
.sd-search {
  max-width: 40rem;
}

.sd-search-help {
  color: var(--sd-muted);
}

.sd-search .form-control,
.sd-search .sd-btn {
  height: 3.25rem;
}

.sd-search .form-control {
  border: 1px solid #cfd6dd;
  padding: 0 1.1rem;
  font-size: 1.05rem;
  border-radius: var(--sd-btn-radius) 0 0 var(--sd-btn-radius);
  color: var(--sd-text);
  box-shadow: none;
}

.sd-search .form-control::placeholder {
  color: #6b7280;
}

.sd-search .sd-btn {
  border-radius: 0 var(--sd-btn-radius) var(--sd-btn-radius) 0;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 419px) {
  .sd-search .input-group {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .sd-search .form-control,
  .sd-search .sd-btn {
    width: 100%;
    border-radius: var(--sd-btn-radius);
  }

  .sd-search .sd-btn {
    margin-top: 0.6rem;
  }
}

.sd-hero-logo {
  max-width: 210px;
  height: auto;
}

@media (min-width: 768px) {
  .sd-hero-logo {
    max-width: 280px;
  }
}

/* Cards */
.sd-card {
  background: var(--sd-white);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  box-shadow: var(--sd-shadow);
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.sd-card-icon,
.sd-trust-item i,
.sd-step-num {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sd-card:hover .sd-card-icon,
.sd-trust-item:hover i,
.sd-step:hover .sd-step-num {
  transform: scale(1.08);
}

.sd-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  background: var(--sd-blue-soft);
  color: var(--sd-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.sd-card p {
  color: var(--sd-muted);
  flex-grow: 1;
}

.sd-card .sd-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Trust row */
.sd-trust-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.sd-trust-item i {
  color: var(--sd-blue-dark);
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  display: block;
}

.sd-trust-item p {
  margin: 0;
  color: var(--sd-text);
  font-weight: 600;
  line-height: 1.45;
}

.sd-trust-item span {
  display: block;
  font-weight: 400;
  color: var(--sd-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Plans */
.sd-plan {
  position: relative;
  padding-top: 2rem;
}

.sd-plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.35rem 0 1.15rem;
}

.sd-plan-price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sd-muted);
  letter-spacing: 0;
}

.sd-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.sd-plan-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
  color: var(--sd-text);
}

.sd-plan-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--sd-blue-dark);
  font-size: 0.9rem;
}

.sd-plan--popular {
  border: 2px solid var(--sd-blue);
  box-shadow: var(--sd-shadow-hover);
  padding-top: 2.35rem;
}

@media (min-width: 992px) {
  .sd-plan--popular {
    transform: translateY(-8px) scale(1.02);
  }

  .sd-plan--popular:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

.sd-popular-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sd-blue-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sd-plan .sd-btn {
  width: 100%;
  text-align: center;
  align-self: stretch;
}

/* Switching steps */
.sd-step {
  text-align: center;
  padding: 0.5rem 0.75rem;
  height: 100%;
}

.sd-step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--sd-blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sd-step h3 {
  margin-bottom: 0.5rem;
}

.sd-step p {
  color: var(--sd-muted);
  margin: 0;
}

/* Keep It Simple */
.sd-simple-logo {
  max-width: 140px;
  width: 100%;
  height: auto;
}

/* Final call to action — soft blue band, same black buttons */
.sd-cta {
  background: var(--sd-blue-soft);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .sd-cta {
    padding: 3.25rem 2.5rem;
  }
}

.sd-cta .sd-search {
  margin-left: auto;
  margin-right: auto;
}

.sd-cta-or {
  color: var(--sd-muted);
  margin: 1rem 0;
}

/* Hidden line: visually hidden, also hidden from assistive tech */
.sd-hidden-truth {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Reveal on load, and slightly richer hover (above).
   Fill mode is backwards so hover transforms work after the animation ends.
   Honors prefers-reduced-motion. No JavaScript required. */
@keyframes sd-reveal {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sd-home .sd-section .container {
    animation: sd-reveal 0.55s ease backwards;
  }

  .sd-home .row > [class*="col-"]:nth-child(1) .sd-card,
  .sd-home .row > [class*="col-"]:nth-child(1) .sd-step,
  .sd-home .row > [class*="col-"]:nth-child(1) .sd-trust-item {
    animation: sd-reveal 0.55s ease backwards;
    animation-delay: 0.05s;
  }

  .sd-home .row > [class*="col-"]:nth-child(2) .sd-card,
  .sd-home .row > [class*="col-"]:nth-child(2) .sd-step,
  .sd-home .row > [class*="col-"]:nth-child(2) .sd-trust-item {
    animation: sd-reveal 0.55s ease backwards;
    animation-delay: 0.12s;
  }

  .sd-home .row > [class*="col-"]:nth-child(3) .sd-card,
  .sd-home .row > [class*="col-"]:nth-child(3) .sd-step,
  .sd-home .row > [class*="col-"]:nth-child(3) .sd-trust-item {
    animation: sd-reveal 0.55s ease backwards;
    animation-delay: 0.19s;
  }

  .sd-home .row > [class*="col-"]:nth-child(4) .sd-card,
  .sd-home .row > [class*="col-"]:nth-child(4) .sd-step,
  .sd-home .row > [class*="col-"]:nth-child(4) .sd-trust-item,
  .sd-home .row > [class*="col-"]:nth-child(n+5) .sd-card {
    animation: sd-reveal 0.55s ease backwards;
    animation-delay: 0.26s;
  }

  .sd-home .sd-cta,
  .sd-home .sd-page-callout,
  .sd-home .sd-page-details {
    animation: sd-reveal 0.55s ease backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-home .sd-card,
  .sd-home .sd-trust-item,
  .sd-home .sd-step,
  .sd-home .sd-cta {
    transition: none;
  }

  .sd-card:hover {
    transform: none;
  }

  .sd-card:hover .sd-card-icon,
  .sd-trust-item:hover i,
  .sd-step:hover .sd-step-num {
    transform: none;
  }
}
