/* ═══════════════════════════════════════════════════════════════════════════
   WALDUP REDESIGN — main stylesheet
   Loaded after bootstrap.min.css and fontawesome-all.min.css so it can
   override legacy styles without touching those files.

   Design tokens
   ─────────────
   Navy dark  #012138   (primary brand, footer bg)
   Navy mid   #014d72   (button hover, link mid)
   Blue       #039edb   (accent / interactive)
   Crimson    #aa1939   (upgrade / danger)
   Orange     #E07020   (trail accent — new)
   Grey bg    #f4f7fa   (page backgrounds)
   Border     #dce8f0   (dividers)
   Text dark  #01182a
   Text mid   #3a5a72
   Text muted #7a9bb0

   Typography
   ─────────────
   Headings : Aileron (Bold / Black)  — loaded via @font-face in inline_styles.css
   Body     : Open Sans 400 / 700
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS custom properties ──────────────────────────────────────────────── */

:root {
  --wd-navy:    #012138;
  --wd-navy-m:  #014d72;
  --wd-blue:    #039edb;
  --wd-red:     #aa1939;
  --wd-orange:  #E07020;
  --wd-grey-bg: #f4f7fa;
  --wd-border:  #dce8f0;
  --wd-text:    #01182a;
  --wd-mid:     #3a5a72;
  --wd-muted:   #7a9bb0;
  --wd-radius:  8px;
  --wd-nav-h:   52px;
  --wd-font-head: 'Aileron', sans-serif;
  --wd-font-body: 'Open Sans', sans-serif;
}

/* ─── Global resets & base ────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--wd-font-body);
  color: var(--wd-text);
  background: #ffffff;
  margin: 0;
}

/* Remove legacy spinner/preloader */
.spinner-wrapper { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

/* Override old Bootstrap navbar */
.navbar-custom {
  background: #ffffff !important;
  border-bottom: 1px solid var(--wd-border);
  box-shadow: 0 1px 3px rgba(0, 33, 56, 0.05);
  height: var(--wd-nav-h);
  padding: 0 1rem;
  /* remove legacy gradient/fade */
  background-image: none !important;
  transition: none;
}

/* Keep it fixed but remove any coloured shadow the old theme added */
.navbar-custom.fixed-top {
  top: 0;
}

/* Logo */
.navbar-custom .navbar-brand img {
  height: 26px;
  width: auto;
}

/* Nav links */
.navbar-custom .navbar-nav .nav-link {
  font: 600 0.8rem/1 var(--wd-font-body);
  color: var(--wd-mid) !important;
  padding: 5px 10px;
  border-radius: 5px;
  transition: color 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: var(--wd-blue) !important;
  background: #f0f7fb;
  text-decoration: none;
}

/* Auth buttons (logged-out) */
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 6px;
  font: 700 0.75rem/1 var(--wd-font-body);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}

/* Sign In */
.btn-outline-sm.btn-line:not(.btn-signup):not(.btn-signout) {
  border-color: var(--wd-border);
  color: var(--wd-mid) !important;
  background: transparent;
}

.btn-outline-sm.btn-line:not(.btn-signup):not(.btn-signout):hover {
  background: #f0f7fb;
  border-color: #b8d5e8;
  color: var(--wd-navy) !important;
}

/* Sign Up Free */
.btn-outline-sm.btn-signup {
  background: var(--wd-navy) !important;
  color: #ffffff !important;
  border-color: var(--wd-navy);
  line-height: 1;
}

.btn-outline-sm.btn-signup:hover {
  background: var(--wd-blue) !important;
  border-color: var(--wd-blue);
  color: #ffffff !important;
}

/* Sign Out */
.btn-outline-sm.btn-signout {
  color: var(--wd-mid) !important;
  border-color: var(--wd-border);
  background: transparent;
  line-height: 1;
}

.btn-outline-sm.btn-signout:hover {
  background: #fff0f3;
  border-color: #f5c6cf;
  color: var(--wd-red) !important;
}

/* Upgrade link in nav */
.nav__upgrade__link {
  color: var(--wd-orange) !important;
  font-weight: 700 !important;
}

.nav__upgrade__link:hover {
  color: #bf5e1a !important;
  background: #fff5ee !important;
}

/* ── Profile dropdown (logged-in state) ────────────────────────────────── */

.nav-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-profile-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--wd-border);
  border-radius: 20px;
  padding: 4px 10px 4px 7px;
  cursor: pointer;
  color: var(--wd-mid);
  font: 600 0.75rem/1 var(--wd-font-body);
  height: 32px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.nav-profile-trigger:hover {
  background: #f0f7fb;
  border-color: #b8d5e8;
  color: var(--wd-navy);
}

.nav-profile-trigger svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
}

.nav-profile-trigger .nav-chevron {
  width: 13px;
  height: 13px;
  color: var(--wd-muted);
  transition: transform 0.15s ease;
}

.nav-profile-wrap.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 188px;
  background: #ffffff;
  border: 1px solid var(--wd-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 33, 56, 0.14);
  padding: 6px;
  z-index: 1050;
  animation: nav-drop-in 0.12s ease;
}

.nav-profile-wrap.open .nav-profile-menu {
  display: block;
}

@keyframes nav-drop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-profile-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  font: 500 12.5px/1.3 var(--wd-font-body);
  color: var(--wd-mid);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-profile-item:hover {
  background: #f0f7fb;
  color: var(--wd-navy);
  text-decoration: none;
}

.nav-profile-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--wd-muted);
}

.nav-profile-item:hover svg { color: var(--wd-blue); }

.nav-profile-item--upgrade {
  color: var(--wd-orange);
  font-weight: 700;
}

.nav-profile-item--upgrade svg { color: var(--wd-orange); }

.nav-profile-item--upgrade:hover {
  background: #fff5ee;
  color: #bf5e1a;
}

.nav-profile-item--signout { color: var(--wd-muted); }

.nav-profile-item--signout:hover {
  background: #fff0f3;
  color: var(--wd-red);
}

.nav-profile-item--signout:hover svg { color: var(--wd-red); }

.nav-profile-divider {
  height: 1px;
  background: #f0f5f9;
  margin: 4px 0;
}

/* ── Mobile hamburger ─────────────────────────────────────────────────────── */

/* Bootstrap handles collapse; keep our overrides minimal */
@media (max-width: 991px) {
  .navbar-custom .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid var(--wd-border);
    padding: 8px 0;
  }

  .navbar-custom .navbar-toggler {
    border-color: var(--wd-border);
    color: var(--wd-mid);
  }

  .nav-profile-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--wd-border);
    margin-top: 6px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER  —  mirrors React footer.css exactly
   ══════════════════════════════════════════════════════════════════════════ */

.wd-footer {
  background-color: var(--wd-navy);
  color: #b0c8d8;
  font-family: var(--wd-font-body);
  font-size: 13px;
  line-height: 1.6;
}

/* Override old .footer/.copyright rules */
.footer:not(.wd-footer),
.copyright.footer {
  display: none;
}

.wd-footer__inner {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr 1fr;
  gap: 1.5rem 2.5rem;
  padding: 2rem 2rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.wd-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wd-footer__logo {
  width: 90px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.wd-footer__tagline {
  font-size: 11px;
  color: #7a9bb0;
  margin: 0;
  line-height: 1.5;
}

/* Social icons */
.wd-footer__social {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.wd-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  color: #7a9bb0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.wd-footer__social-link svg {
  width: 14px;
  height: 14px;
}

.wd-footer__social-link:hover {
  color: #ffffff;
  background: rgba(3, 158, 219, 0.25);
  border-color: rgba(3, 158, 219, 0.4);
}

/* Link columns */
.wd-footer__col-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.6rem;
}

.wd-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wd-footer__col a {
  color: #7a9bb0;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}

.wd-footer__col a:hover { color: #ffffff; }

/* Copyright bar */
.wd-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  font-size: 11px;
  color: #4a6a80;
}

@media (max-width: 600px) {
  .wd-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .wd-footer__brand { grid-column: 1 / -1; }

  .wd-footer__bar { padding: 0.6rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NEWSLETTER POPUP
   ══════════════════════════════════════════════════════════════════════════ */

.nl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 33, 56, 0.35);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nl-overlay.visible { display: flex; }

.nl-modal {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 33, 56, 0.22);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  position: relative;
  animation: nl-pop-in 0.2s ease;
}

@keyframes nl-pop-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nl-modal__accent {
  height: 4px;
  background: var(--wd-orange);
}

.nl-modal__body {
  padding: 28px 28px 24px;
}

.nl-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wd-muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color 0.12s ease;
}

.nl-modal__close:hover { color: var(--wd-text); }

.nl-modal__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 8px;
}

.nl-modal__title {
  font-family: var(--wd-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.nl-modal__sub {
  font-size: 13px;
  color: var(--wd-mid);
  margin: 0 0 20px;
  line-height: 1.6;
}

.nl-form {
  display: flex;
  gap: 8px;
}

.nl-form__input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--wd-border);
  border-radius: var(--wd-radius);
  font: 400 13px/1 var(--wd-font-body);
  color: var(--wd-text);
  outline: none;
  transition: border-color 0.12s ease;
}

.nl-form__input:focus { border-color: var(--wd-blue); }

.nl-form__btn {
  height: 40px;
  padding: 0 18px;
  background: var(--wd-orange);
  color: #ffffff;
  border: none;
  border-radius: var(--wd-radius);
  font: 700 13px/1 var(--wd-font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}

.nl-form__btn:hover { background: #bf5e1a; }

.nl-modal__fine {
  font-size: 11px;
  color: var(--wd-muted);
  margin: 12px 0 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.wd-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--wd-nav-h));
  padding: 64px 0 48px;
  background: #ffffff;
}

.wd-hero__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wd-hero__text {}

.wd-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 14px;
}

.wd-hero__h1 {
  font-family: var(--wd-font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--wd-text);
  line-height: 1.1;
  margin: 0 0 18px;
}

.wd-hero__sub {
  font-size: 16px;
  color: var(--wd-mid);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 480px;
}

.wd-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wd-btn--primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: var(--wd-navy);
  color: #ffffff;
  border-radius: var(--wd-radius);
  font: 700 14px/1 var(--wd-font-body);
  text-decoration: none;
  transition: background 0.12s ease;
  border: none;
  cursor: pointer;
}

.wd-btn--primary:hover {
  background: var(--wd-blue);
  color: #ffffff;
  text-decoration: none;
}

.wd-btn--ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid var(--wd-border);
  color: var(--wd-mid);
  border-radius: var(--wd-radius);
  font: 600 14px/1 var(--wd-font-body);
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
  background: transparent;
  cursor: pointer;
}

.wd-btn--ghost:hover {
  border-color: var(--wd-blue);
  color: var(--wd-blue);
  text-decoration: none;
}

.wd-hero__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wd-hero__media img,
.wd-hero__media video {
  width: 100%;
  max-width: 540px;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .wd-hero {
    min-height: auto;
    padding: 48px 0 32px;
  }

  .wd-hero__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wd-hero__media { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURE TILES  (OrangeYouGlad style)
   ══════════════════════════════════════════════════════════════════════════ */

.wd-features {
  background: var(--wd-grey-bg);
  padding: 80px 0;
}

.wd-features__header {
  text-align: center;
  margin-bottom: 48px;
}

.wd-features__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 10px;
}

.wd-features__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--wd-text);
  margin: 0;
  line-height: 1.15;
}

.wd-features__grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

/* Tile */
.wd-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--wd-navy);
  aspect-ratio: 1 / 1;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* First and fourth tiles are rectangular (span 2 cols) */
.wd-tile--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.wd-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wd-tile:hover .wd-tile__img {
  transform: scale(1.04);
}

.wd-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 33, 56, 0) 30%,
    rgba(1, 33, 56, 0.82) 100%
  );
  transition: background 0.3s ease;
}

.wd-tile:hover .wd-tile__overlay {
  background: linear-gradient(
    to bottom,
    rgba(1, 33, 56, 0.1) 0%,
    rgba(1, 33, 56, 0.88) 100%
  );
}

.wd-tile__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 18px;
}

.wd-tile__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin-bottom: 6px;
}

.wd-tile__name {
  font-family: var(--wd-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.wd-tile__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: 4px;
}

.wd-tile:hover .wd-tile__arrow {
  color: var(--wd-orange);
  gap: 8px;
}

@media (max-width: 768px) {
  .wd-features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .wd-tile--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 500px) {
  .wd-features__grid {
    grid-template-columns: 1fr;
  }

  .wd-tile--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .wd-tile        { aspect-ratio: 4 / 3; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════════════ */

.wd-pricing {
  padding: 80px 0;
  background: #ffffff;
}

.wd-pricing__header {
  text-align: center;
  margin-bottom: 16px;
}

.wd-pricing__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 10px;
}

.wd-pricing__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--wd-text);
  margin: 0 0 8px;
}

.wd-pricing__promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff5ee;
  border: 1px solid #fad5b8;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wd-orange);
  margin-bottom: 12px;
}

.wd-pricing__promo-code {
  background: var(--wd-orange);
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.wd-pricing__fine {
  font-size: 12px;
  color: var(--wd-muted);
  margin: 0 0 40px;
}

.wd-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* Card */
.wd-plan {
  border: 1.5px solid var(--wd-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.wd-plan:hover {
  box-shadow: 0 6px 24px rgba(0, 33, 56, 0.1);
}

.wd-plan--highlight {
  border-color: var(--wd-navy);
  box-shadow: 0 4px 20px rgba(1, 33, 56, 0.1);
}

.wd-plan__badge {
  position: absolute;
  top: 0;
  right: 16px;
  background: var(--wd-navy);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
}

.wd-plan__header {
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--wd-border);
}

.wd-plan__name {
  font-family: var(--wd-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wd-plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.wd-plan__currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wd-navy);
  line-height: 1;
  align-self: flex-start;
  margin-top: 6px;
}

.wd-plan__amount {
  font-family: var(--wd-font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--wd-navy);
  line-height: 1;
}

.wd-plan__period {
  font-size: 12px;
  color: var(--wd-muted);
  line-height: 1.4;
}

/* Feature list */
.wd-plan__features {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-bottom: 1px solid var(--wd-border);
}

.wd-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--wd-mid);
  line-height: 1.4;
}

.wd-plan__feature--off { opacity: 0.45; }

.wd-plan__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
}

.wd-plan__check--on {
  background: #e4f7ee url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%230e6e40' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wd-plan__check--off {
  background: #f4f7fa url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11l6-6M11 11L5 5' stroke='%23b0c8d8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* CTA */
.wd-plan__cta {
  padding: 18px 22px 22px;
}

.wd-plan__btn {
  display: block;
  width: 100%;
  height: 42px;
  border-radius: var(--wd-radius);
  font: 700 13px/42px var(--wd-font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  border: none;
}

.wd-plan__btn--primary {
  background: var(--wd-navy);
  color: #ffffff;
}

.wd-plan__btn--primary:hover {
  background: var(--wd-blue);
  color: #ffffff;
}

.wd-plan__btn--outline {
  background: transparent;
  border: 1.5px solid var(--wd-navy);
  color: var(--wd-navy);
  line-height: 39px;
}

.wd-plan__btn--outline:hover {
  background: var(--wd-navy);
  color: #ffffff;
}

/* Pricing footer notes */
.wd-pricing__notes {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: 12px;
  color: var(--wd-muted);
  line-height: 1.8;
}

.wd-pricing__stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--wd-muted);
}

.wd-pricing__stripe i {
  font-size: 24px;
  color: #635bff;
}

@media (max-width: 768px) {
  .wd-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   VALUES / GET TO KNOW US
   ══════════════════════════════════════════════════════════════════════════ */

.wd-values {
  background: var(--wd-grey-bg);
  padding: 72px 0;
}

.wd-values__header {
  text-align: center;
  margin-bottom: 40px;
}

.wd-values__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 10px;
}

.wd-values__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 900;
  color: var(--wd-text);
  margin: 0;
}

.wd-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.wd-value-card {
  background: #ffffff;
  border: 1px solid var(--wd-border);
  border-radius: 10px;
  padding: 28px 24px;
  border-top: 3px solid var(--wd-orange);
}

.wd-value-card__title {
  font-family: var(--wd-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 8px;
}

.wd-value-card__body {
  font-size: 13px;
  color: var(--wd-mid);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 680px) {
  .wd-values__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURE DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.fd-page {
  min-height: calc(100vh - var(--wd-nav-h));
  background: #ffffff;
}

.fd-hero {
  background: var(--wd-navy);
  color: #ffffff;
  padding: 64px 0 56px;
}

.fd-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.fd-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7a9bb0;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.12s ease;
}

.fd-hero__back:hover { color: #ffffff; }

.fd-hero__back svg { width: 14px; height: 14px; }

.fd-hero__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 10px;
}

.fd-hero__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.1;
}

.fd-hero__desc {
  font-size: 16px;
  color: #b0c8d8;
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.fd-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.fd-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--wd-border);
  margin-bottom: 40px;
  display: block;
}

.fd-content h2 {
  font-family: var(--wd-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 40px 0 12px;
}

.fd-content p {
  font-size: 15px;
  color: var(--wd-mid);
  line-height: 1.75;
  margin: 0 0 16px;
}

.fd-content ul {
  padding-left: 20px;
  margin: 0 0 20px;
}

.fd-content li {
  font-size: 15px;
  color: var(--wd-mid);
  line-height: 1.7;
  margin-bottom: 6px;
}

.fd-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--wd-grey-bg);
  border-radius: 12px;
  border: 1px solid var(--wd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fd-cta__text h3 {
  font-family: var(--wd-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 4px;
}

.fd-cta__text p {
  font-size: 13px;
  color: var(--wd-mid);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SUPPORT / DOC PAGES
   ══════════════════════════════════════════════════════════════════════════ */

.wd-doc-page {
  background: #ffffff;
  min-height: calc(100vh - var(--wd-nav-h));
}

.wd-doc-hero {
  background: var(--wd-grey-bg);
  border-bottom: 1px solid var(--wd-border);
  padding: 48px 0 40px;
}

.wd-doc-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.wd-doc-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 8px;
}

.wd-doc-hero__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--wd-text);
  margin: 0 0 8px;
}

.wd-doc-hero__sub {
  font-size: 15px;
  color: var(--wd-mid);
  margin: 0 0 20px;
  line-height: 1.6;
}

.wd-doc-tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}

.wd-doc-tab {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font: 600 13px/1 var(--wd-font-body);
  text-decoration: none;
  color: var(--wd-mid);
  border: 1px solid transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

.wd-doc-tab:hover {
  background: #e8f3f9;
  color: var(--wd-navy);
  text-decoration: none;
}

.wd-doc-tab--active {
  background: var(--wd-navy);
  color: #ffffff;
  border-color: var(--wd-navy);
}

.wd-doc-tab--active:hover {
  background: var(--wd-navy-m);
  color: #ffffff;
}

/* Layout */
.wd-doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.wd-doc-sidebar {
  position: sticky;
  top: calc(var(--wd-nav-h) + 24px);
  padding: 32px 0;
}

.wd-doc-sidebar__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-muted);
  margin: 0 0 10px;
  padding: 0 0 0 2px;
}

.wd-doc-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-doc-sidebar__nav li a {
  display: block;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--wd-mid);
  text-decoration: none;
  transition: background 0.1s ease, color 0.1s ease;
}

.wd-doc-sidebar__nav li a:hover {
  background: #f0f7fb;
  color: var(--wd-navy);
}

.wd-doc-sidebar__nav li a.active {
  background: #e8f3f9;
  color: var(--wd-navy);
  font-weight: 700;
}

/* Doc content */
.wd-doc-content {
  padding: 40px 0 72px 40px;
  border-left: 1px solid var(--wd-border);
}

.wd-doc-section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--wd-nav-h) + 20px);
}

.wd-doc-section h2 {
  font-family: var(--wd-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wd-orange);
  display: inline-block;
}

.wd-doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 24px 0 10px;
}

.wd-doc-section p,
.wd-doc-section li {
  font-size: 14px;
  color: var(--wd-mid);
  line-height: 1.75;
}

.wd-doc-section ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.wd-doc-section li { margin-bottom: 4px; }

.wd-doc-section a {
  color: var(--wd-blue);
  text-decoration: none;
}

.wd-doc-section a:hover { text-decoration: underline; }

/* Callout box */
.wd-callout {
  background: #fff5ee;
  border-left: 3px solid var(--wd-orange);
  border-radius: 0 var(--wd-radius) var(--wd-radius) 0;
  padding: 14px 16px;
  margin: 16px 0;
}

.wd-callout p { margin: 0; font-size: 13.5px; color: var(--wd-mid); }

/* FAQ accordion */
.wd-faq { margin-bottom: 52px; }

.wd-faq-item {
  border-bottom: 1px solid var(--wd-border);
}

.wd-faq-item:first-child { border-top: 1px solid var(--wd-border); }

.wd-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font: 600 14px/1.4 var(--wd-font-body);
  color: var(--wd-text);
  transition: color 0.12s ease;
}

.wd-faq-q:hover { color: var(--wd-blue); }

.wd-faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--wd-muted);
  transition: transform 0.2s ease;
}

.wd-faq-item.open .wd-faq-q svg {
  transform: rotate(180deg);
}

.wd-faq-a {
  display: none;
  padding: 0 4px 18px;
  font-size: 14px;
  color: var(--wd-mid);
  line-height: 1.75;
}

.wd-faq-item.open .wd-faq-a { display: block; }

@media (max-width: 720px) {
  .wd-doc-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .wd-doc-sidebar {
    position: static;
    padding: 24px 0 0;
    border-bottom: 1px solid var(--wd-border);
    margin-bottom: 24px;
  }

  .wd-doc-content {
    padding: 24px 0 48px;
    border-left: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.wd-about-page {
  background: #ffffff;
  min-height: calc(100vh - var(--wd-nav-h));
}

.wd-about-hero {
  background: var(--wd-navy);
  color: #ffffff;
  padding: 64px 0 56px;
  text-align: center;
}

.wd-about-hero__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 10px;
}

.wd-about-hero__title {
  font-family: var(--wd-font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 14px;
}

.wd-about-hero__sub {
  font-size: 16px;
  color: #b0c8d8;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.wd-about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.wd-about-section {
  margin-bottom: 52px;
}

.wd-about-section h2 {
  font-family: var(--wd-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wd-orange);
  display: inline-block;
}

.wd-about-section p {
  font-size: 15px;
  color: var(--wd-mid);
  line-height: 1.8;
  margin: 0 0 14px;
}

.wd-oss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-oss-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  font-size: 13.5px;
  color: var(--wd-mid);
  line-height: 1.5;
}

.wd-oss-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wd-orange);
  flex-shrink: 0;
  margin-top: 7px;
}

.wd-oss-item a {
  color: var(--wd-blue);
  text-decoration: none;
  font-weight: 600;
}

.wd-oss-item a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   TERMS & CONDITIONS PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.wd-legal-page {
  background: #ffffff;
  min-height: calc(100vh - var(--wd-nav-h));
}

.wd-legal-hero {
  background: var(--wd-grey-bg);
  border-bottom: 1px solid var(--wd-border);
  padding: 48px 0 40px;
}

.wd-legal-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.wd-legal-hero__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-orange);
  margin: 0 0 8px;
}

.wd-legal-hero__title {
  font-family: var(--wd-font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--wd-text);
  margin: 0;
}

.wd-legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.wd-legal-sidebar {
  position: sticky;
  top: calc(var(--wd-nav-h) + 24px);
  padding: 36px 0;
}

.wd-legal-sidebar h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-muted);
  margin: 0 0 10px;
}

.wd-legal-sidebar .toc {
  font-size: 13px;
}

.wd-legal-sidebar .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-legal-sidebar .toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--wd-mid);
  text-decoration: none;
  transition: background 0.1s ease, color 0.1s ease;
}

.wd-legal-sidebar .toc a:hover {
  background: #f0f7fb;
  color: var(--wd-navy);
}

.wd-legal-content {
  padding: 36px 0 72px 40px;
  border-left: 1px solid var(--wd-border);
}

.wd-legal-content h1 {
  font-family: var(--wd-font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--wd-text);
  margin: 0 0 6px;
}

.wd-legal-content h2 {
  font-family: var(--wd-font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--wd-orange);
  display: inline-block;
  scroll-margin-top: calc(var(--wd-nav-h) + 20px);
}

.wd-legal-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wd-text);
  margin: 24px 0 8px;
}

.wd-legal-content p,
.wd-legal-content li {
  font-size: 14px;
  color: var(--wd-mid);
  line-height: 1.8;
}

.wd-legal-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.wd-legal-content li { margin-bottom: 4px; }

.wd-legal-content a {
  color: var(--wd-blue);
  text-decoration: none;
}

.wd-legal-content a:hover { text-decoration: underline; }

.wd-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.wd-legal-content th,
.wd-legal-content td {
  padding: 10px 14px;
  border: 1px solid var(--wd-border);
  text-align: left;
  color: var(--wd-mid);
}

.wd-legal-content th {
  background: var(--wd-grey-bg);
  font-weight: 700;
  color: var(--wd-text);
}

.wd-legal-content hr {
  border: none;
  border-top: 1px solid var(--wd-border);
  margin: 36px 0;
}

@media (max-width: 720px) {
  .wd-legal-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .wd-legal-sidebar {
    position: static;
    padding: 24px 0 0;
    border-bottom: 1px solid var(--wd-border);
    margin-bottom: 24px;
  }

  .wd-legal-content {
    padding: 24px 0 48px;
    border-left: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   GENERAL PAGE PADDING  (push content below fixed nav)
   ══════════════════════════════════════════════════════════════════════════ */

/* All pages that extend base.html inherit this via body padding-top */
body {
  padding-top: var(--wd-nav-h);
}

/* But the hero on the main page already accounts for the nav */
.wd-hero { margin-top: calc(-1 * var(--wd-nav-h)); padding-top: calc(var(--wd-nav-h) + 48px); }

/* ══════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════════════════════ */

/* Ensure the [hidden] attribute always wins regardless of specificity */
[hidden] { display: none !important; }

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wd-navy);
  color: #b0c8d8;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 12.5px;
  max-width: 520px;
  width: calc(100% - 40px);
  text-align: center;
  z-index: 1500;
  box-shadow: 0 4px 20px rgba(0, 33, 56, 0.3);
}

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

.allow-button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  background: var(--wd-orange);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font: 700 12px/1 var(--wd-font-body);
  cursor: pointer;
  transition: background 0.12s ease;
  margin-top: 10px;
}

.allow-button:hover { background: #bf5e1a; }

/* ── 404 Error page ──────────────────────────────────────────────────────── */

.wd-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wd-navy);
}

.wd-error-hero {
  text-align: center;
  padding: 80px 24px;
}

.wd-error-hero__inner {
  max-width: 540px;
  margin: 0 auto;
}

.wd-error-hero__code {
  font: 700 120px/1 var(--wd-font-heading);
  color: var(--wd-orange);
  margin: 0 0 8px;
  letter-spacing: -4px;
}

.wd-error-hero__title {
  font: 700 36px/1.15 var(--wd-font-heading);
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.wd-error-hero__sub {
  font-size: 17px;
  color: #b0c8d8;
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ── Race plans page ─────────────────────────────────────────────────────── */

.wd-doc-hero {
  background: var(--wd-navy);
  padding: 100px 24px 56px;
}

.wd-doc-hero__tag {
  font: 700 11px/1 var(--wd-font-body);
  color: var(--wd-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
}

.wd-doc-hero__title {
  font: 700 42px/1.1 var(--wd-font-heading);
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.wd-doc-hero__sub {
  font-size: 17px;
  color: #b0c8d8;
  margin: 0;
  line-height: 1.6;
}

.wd-race-group {
  margin-bottom: 32px;
}

.wd-race-group h3 {
  font: 700 17px/1.3 var(--wd-font-heading);
  color: var(--wd-navy);
  margin: 0 0 2px;
}

.wd-race-group time {
  display: block;
  font-size: 12.5px;
  color: #888;
  margin-bottom: 10px;
}

.wd-race-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wd-race-list li {
  background: var(--wd-bg-subtle);
  border: 1px solid var(--wd-border);
  border-left: 3px solid var(--wd-orange);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.wd-race-list li a {
  color: var(--wd-blue);
  font-weight: 700;
  text-decoration: none;
}

.wd-race-list li a:hover { text-decoration: underline; }

.wd-race-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.wd-race-stats span { white-space: nowrap; }

.wd-race-website {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #888 !important;
  font-weight: 400 !important;
}

.wd-race-website:hover { color: var(--wd-blue) !important; }

@media (max-width: 767px) {
  .wd-error-hero__code { font-size: 80px; }
  .wd-error-hero__title { font-size: 28px; }
  .wd-doc-hero__title { font-size: 30px; }
}

/* ── Auth pages (register / login / reset) ───────────────────────────────── */

/*
 * Layout: alpine photo full-bleed background with dark overlay,
 * white card centered over it, navbar at top, footer below.
 * The photo fills the space between navbar and footer.
 */
.wd-auth-bg {
  position: relative;
  background: url('../images/bg_swiss_alps.jpeg') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 80px;
  min-height: 560px;
}

/* Navy overlay so the form card reads cleanly over the photo */
.wd-auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 33, 56, 0.68);
}

/* Centred column holds the card */
.wd-auth-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

/* White form card */
.wd-auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 44px 44px 40px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
}

/* ── Heading — the CTA: large, heavy, navy ── */
.wd-auth-card h1 {
  font-family: var(--wd-font-heading);
  font-weight: 900;          /* Aileron Heavy */
  font-size: 30px;
  line-height: 1.15;
  color: var(--wd-navy);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

/* Orange accent bar under the h1 */
.wd-auth-card h1::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--wd-orange);
  border-radius: 2px;
  margin-top: 10px;
}

.wd-auth-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Form fields */
.wd-auth-card .form-group { margin-bottom: 14px; }

.wd-auth-card .form-control {
  display: block;
  width: 100%;
  height: 46px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  padding: 0 14px;
  background: #fff;
  color: var(--wd-navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.wd-auth-card .form-control:focus {
  border-color: var(--wd-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3,158,219,0.14);
}

.wd-auth-card .form-control.is-invalid { border-color: #dc3545; }

/* Submit button */
.wd-auth-card .form-control-submit-button {
  display: block;
  width: 100%;
  height: 50px;
  background: var(--wd-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--wd-font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
  letter-spacing: 0.2px;
}

.wd-auth-card .form-control-submit-button:hover {
  background: #027db8;
  transform: translateY(-1px);
}

/* Or divider */
.wd-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
  color: #9ca3af;
}

.wd-auth-divider::before,
.wd-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Google button */
.wd-auth-google {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

/* EULA */
.wd-auth-eula {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 14px;
}

.wd-auth-eula input[type=checkbox] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--wd-blue);
}

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

/* Helper links */
.wd-auth-links {
  margin-top: 20px;
  font-size: 13.5px;
  color: #6b7280;
  text-align: center;
  line-height: 2;
}

.wd-auth-links a {
  color: var(--wd-blue);
  font-weight: 600;
  text-decoration: none;
}

.wd-auth-links a:hover { text-decoration: underline; }

/* Alert messages */
.wd-auth-card .alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.wd-auth-card .alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.wd-auth-card .alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.wd-auth-card .alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.wd-auth-card .alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.wd-auth-card .invalid-feedback,
.wd-auth-card .text-danger {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* reCAPTCHA */
.wd-auth-card .recaptcha-padding { margin-bottom: 14px; }

/* Mobile: tighten padding, full-width card */
@media (max-width: 480px) {
  .wd-auth-bg    { padding: 40px 16px 56px; }
  .wd-auth-card  { padding: 36px 24px 32px; }
}

/* Back To Top Button */
a.back-to-top {
  position: fixed;
  z-index: 999;
  right: 0.75rem;
  bottom: 0.75rem;
  display: none;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 1.875rem;
  background: #212529 url("../images/up-arrow.png") no-repeat center 47%;
  background-size: 1.125rem 1.125rem;
  text-indent: -9999px;
}

a:hover.back-to-top {
  background-color: #6DC0E0;
}
