/* ═══════════════════════════════════════════════════════════════
   Topmail — Main Stylesheet
   Fonts: Fraunces (headings) + Nunito (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy:          #063c6a;
  --navy-deep:     #0d3358;
  --navy-mid:      #0a4a80;
  --teal:          #7fcaad;
  --teal-dark:     #5aaf93;
  --teal-light:    #b8e4d4;
  --teal-pale:     #e8f7f2;
  --orange:        #ff8000;
  --orange-hover:  #e67300;
  --orange-pale:   #fff3e0;

  /* Neutrals — warm-tinted, not cold grey */
  --cream:         #fdf9f5;
  --cream-mid:     #f7f1ea;
  --warm-white:    #fffcf9;
  --border:        #e8e0d8;
  --border-mid:    #d6cdc4;
  --text:          #1f1a14;
  --text-mid:      #4a4039;
  --text-muted:    #7a6f65;
  --success:       #1e8c5a;
  --success-bg:    #eaf7f1;
  --success-bdr:   #68d39a;
  --error:         #c0392b;
  --error-bg:      #fdf2f2;
  --warning-bg:    #fff8e6;
  --warning-bdr:   #ffc107;

  /* Typography */
  --font-head:   'Fraunces', Georgia, serif;
  --font-body:   'Nunito', system-ui, sans-serif;

  /* Spacing & Shape */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --shadow-warm: 0 2px 12px rgba(6,60,106,0.08);
  --shadow:      0 4px 28px rgba(6,60,106,0.11);
  --shadow-lg:   0 10px 52px rgba(6,60,106,0.15);
  --transition:  0.2s ease;

  --max-width:   1160px;
  --nav-h:       70px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul[role="list"] { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { max-width: 66ch; }

/* ── Utilities ──────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,128,0,0.28);
}
.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  box-shadow: 0 6px 24px rgba(255,128,0,0.38);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.btn--lg  { padding: 18px 38px; font-size: 1.1rem; }
.btn--sm  { padding: 9px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--warm-white);
  border-bottom: 1.5px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(6,60,106,0.06);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo img { display: block; max-height: 64px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__link {
  color: var(--text-mid);
  font-weight: 700;
  font-size: 0.925rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: var(--transition);
  text-decoration: none;
}
.nav__link:hover {
  color: var(--navy);
  background: var(--cream-mid);
  text-decoration: none;
}
.nav__link--active {
  color: var(--navy);
  background: var(--teal-pale);
}
.nav__link--cta {
  background: var(--orange);
  color: #fff !important;
  margin-left: 10px;
  box-shadow: 0 3px 12px rgba(255,128,0,0.3);
}
.nav__link--cta:hover {
  background: var(--orange-hover) !important;
  box-shadow: 0 4px 18px rgba(255,128,0,0.4);
  color: #fff;
}
.nav__link--login {
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.875rem;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav__toggle--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1.5px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(6,60,106,0.1);
  }
  .nav__links--open { display: flex; }
  .nav__link { padding: 13px 18px; border-radius: var(--radius); }
  .nav__link--cta { margin-left: 0; text-align: center; }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 127px 28px 144px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  z-index: 0;
}

/* Warm organic blob accents */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,202,173,0.18) 0%, transparent 70%);
  top: -200px; left: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,128,0,0.12) 0%, transparent 70%);
  bottom: -150px; right: -80px;
  pointer-events: none;
}
/* Wave bottom divider */
.hero .hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero .hero__wave svg { width: 100%; height: 60px; display: block; }
.hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(127,202,173,0.18);
  border: 1.5px solid rgba(127,202,173,0.4);
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
}
.hero__highlight {
  color: var(--teal);
}
.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  margin: 0 auto 40px;
  max-width: 54ch;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 36px;
  color: rgba(255,255,255,0.48);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.03em;
  max-width: none;
  width: 100%;
}
.hero__trust::before,
.hero__trust::after {
  content: '';
  display: block;
  height: 1px;
  width: 48px;
  background: rgba(255,255,255,0.2);
}

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 88px 28px; }
.hero + .section { padding-top: 48px; }
.section--alt { background: var(--cream); }
.section--primary { background: var(--navy); color: #fff; }
.section--primary h2 { color: #fff; }
.section__header { text-align: center; margin-bottom: 60px; }
.section__header h2 { margin-bottom: 14px; }
.section__header p { margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
.section--primary .section__header p { color: rgba(255,255,255,0.7); }

/* ── Grid ───────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--teal-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card__icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.975rem; line-height: 1.65; }

/* Dark section cards */
.section--primary .card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.section--primary .card h3 { color: #fff; }
.section--primary .card p { color: rgba(255,255,255,0.68); }
.section--primary .card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(127,202,173,0.5);
}

/* ── Feature list ───────────────────────────────────────────────── */
.feature-list { list-style: none; }
.feature-list li {
  padding: 11px 0;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.975rem;
  color: var(--text-mid);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list__check {
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 88px 28px;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,202,173,0.12) 0%, transparent 65%);
  top: -300px; right: -100px;
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.74); margin: 0 auto 38px; font-size: 1.05rem; max-width: 48ch; position: relative; }
.cta-banner .btn--primary { font-size: 1.1rem; padding: 18px 42px; position: relative; }

/* ── Page header (non-hero pages) ───────────────────────────────── */
.page-header {
  background: var(--navy) url('/static/img/inner-jumbotron.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 60px 28px 68px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 60, 106, 0.42);
  z-index: 0;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,202,173,0.14) 0%, transparent 70%);
  top: -150px; right: 5%;
  pointer-events: none;
  z-index: 1;
}
.page-header__inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.25rem; max-width: 52ch; margin: 0; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--warm-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow); border-color: var(--teal-dark); }
.pricing-card--featured {
  border-color: var(--orange);
  position: relative;
  background: linear-gradient(160deg, #fff9f5 0%, var(--warm-white) 100%);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255,128,0,0.35);
}
.pricing-card__name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.pricing-card__price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin: 14px 0 4px;
}
.pricing-card__price sup { font-size: 1.3rem; font-weight: 700; vertical-align: super; }
.pricing-card__period { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; font-weight: 600; }
.pricing-card__trial {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: center;
}
.pricing-card ul { flex: 1; margin-bottom: 28px; }
.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1.5px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  color: var(--text-mid);
}
.pricing-card ul li:last-child { border-bottom: none; }

/* ── Features split layout ──────────────────────────────────────── */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 780px) { .features-split { grid-template-columns: 1fr; gap: 36px; } }
.features-split__text h2 { margin-bottom: 18px; }
.features-split__text p { color: var(--text-muted); margin-bottom: 24px; }
.features-split__visual {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1.5px solid var(--border);
}

/* ── Support / Contact ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 52px; }
.contact-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--teal-dark); box-shadow: var(--shadow-warm); }
.contact-card__icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.contact-card a { color: var(--navy); font-weight: 700; }
.contact-card a:hover { color: var(--orange); }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  position: relative;
}
.footer__wave {
  line-height: 0;
  background: var(--warm-white); /* matches the section above */
}
.footer__wave svg { display: block; width: 100%; }
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 28px 52px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px)  { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__col--brand { grid-column: span 2; } }
@media (max-width: 500px)  { .footer__inner { grid-template-columns: 1fr; } .footer__col--brand { grid-column: span 1; } }
.footer__logo { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer__tagline { font-size: 0.9rem; line-height: 1.7; max-width: 26ch; margin-bottom: 20px; }
.footer__contact-mini { display: flex; flex-direction: column; gap: 6px; }
.footer__contact-mini a { color: var(--teal-light); font-size: 0.875rem; font-weight: 600; }
.footer__contact-mini a:hover { color: #fff; text-decoration: none; }
.footer__heading {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Trial / success notices ────────────────────────────────────── */
.trial-notice {
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: #1a5c3a;
  font-weight: 700;
  text-align: center;
}
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 700;
}
.alert--error {
  background: var(--error-bg);
  border: 1.5px solid #e57373;
  color: var(--error);
}

/* ── Signup ─────────────────────────────────────────────────────── */
.page-header__sub-link { margin-top: 14px; }
.page-header__sub-link a { color: var(--teal-light); font-size: 1.125rem; }
.step-alt-link { margin-top: 32px; font-size: 1rem; color: var(--text-muted); text-align: left; }

.signup-section {
  background: var(--warm-white);
  padding: 52px 0 96px;
}
.signup-form {
  max-width: 660px;
}
.signup-form h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .signup-section { padding: 32px 0 64px; }
  .signup-form h2 { font-size: 1.3rem; }
}

/* Progress steps */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  font-size: 0.975rem;
  font-weight: 800;
  background: var(--cream);
  color: var(--text-muted);
  border-radius: 999px;
  border: 2px solid var(--border);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.step--active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.step--done {
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* Form elements */
.form-step { display: none; }
.form-step--active { display: block; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form-group label .required { color: var(--error); margin-left: 2px; }
.form-group label .form-optional { color: var(--text-muted); font-weight: 400; margin-left: 4px; font-size: 0.9em; }
.form-control {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--text);
  background: var(--warm-white);
  transition: var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6,60,106,0.1);
}
.form-control.is-invalid { border-color: var(--error); }
.form-control.is-valid { border-color: var(--success); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 1.025rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-check span { font-size: 1.19rem; }

/* Domain result banners */
.domain-result {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  display: none;
}
.domain-result--available  { background: var(--success-bg); border: 1.5px solid var(--success-bdr); color: #1a5c3a; }
.domain-result--unavailable { background: var(--orange-pale); border: 1.5px solid #ffad4a; color: #7a4500; }
.domain-result--error      { background: var(--error-bg); border: 1.5px solid #e57373; color: var(--error); }

/* Plan summary */
.plan-summary {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.plan-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1.5px solid var(--border);
  font-size: 1.19rem;
}
.plan-summary__row:last-child { border-bottom: none; }
.plan-summary__label { color: var(--text-muted); font-weight: 600; }
.plan-summary__value { font-weight: 800; color: var(--navy); }

/* Signup nav */
.signup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
}
.signup-nav--end { justify-content: flex-end; }

/* Success */
.signup-success { text-align: center; padding: 16px 0; }
.signup-success__icon { font-size: 4rem; margin-bottom: 18px; }
.signup-success h2 { color: var(--success); margin-bottom: 10px; }
.signup-success .credentials {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 22px 0;
  text-align: left;
}
.signup-success .credentials p { font-size: 1.125rem; margin-bottom: 8px; max-width: none; }
.signup-success .credentials strong { font-family: monospace; font-size: 1.3125rem; }
.password-warning {
  background: var(--warning-bg);
  border: 1.5px solid var(--warning-bdr);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 1.1rem;
  margin-top: 12px;
  color: #7a5800;
  font-weight: 600;
}

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error pages ────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px;
  min-height: 65vh;
}
.error-page__code {
  font-family: var(--font-head);
  font-size: 8rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}
.error-page h1 { margin-bottom: 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* ── Subtle entrance animation ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: fadeUp 0.6s ease both;
  }
  .hero__badge      { animation-delay: 0.05s; }
  .hero h1          { animation-delay: 0.15s; }
  .hero__sub        { animation-delay: 0.25s; }
  .hero__actions    { animation-delay: 0.35s; }
  .hero__trust      { animation-delay: 0.45s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Payment UI (Hosted Fields + PayPal) ────────────────────────── */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.payment-tab {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.payment-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.payment-tab--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Hosted field containers — styled to match .form-control */
.hosted-field {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  transition: var(--transition);
  height: 50px; /* fixed height so Braintree iframe has room */
}
.hosted-field.braintree-hosted-fields-focused {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6,60,106,0.1);
}
.hosted-field.braintree-hosted-fields-invalid {
  border-color: var(--error);
}
.hosted-field.braintree-hosted-fields-valid {
  border-color: var(--success);
}

/* PayPal panel */
.paypal-approved {
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a5c3a;
  margin-top: 16px;
  text-align: center;
}

#paypal-button-container {
  margin-top: 8px;
}

/* Card brand logos */
.card-logos {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}
.card-logo {
  width: 48px;
  height: 32px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: opacity 0.2s, filter 0.2s, border-color 0.2s, box-shadow 0.2s;
  opacity: 0.6;
  flex-shrink: 0;
}
.card-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.card-logo--active {
  opacity: 1;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(6,60,106,0.12);
}
.card-logo--dim {
  opacity: 0.18;
  filter: grayscale(0.4);
}
