/* Shared V2 components
   Existing EJS class names are deliberately retained so page contracts stay intact. */

/* Shared pricing cards */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 32px;
  border: 1.5px solid var(--sand-3);
  border-radius: var(--r-card);
  background: var(--paper);
  transition: transform .2s var(--ease), border-color .2s;
}

.price:hover,
.price.is-hover {
  transform: translateY(-4px);
  border-color: var(--ink-faint);
}

.price:focus-within,
.price.is-focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--p-100);
}

.price__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.price__amt {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price__amt b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.price__amt span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.price__line {
  min-height: 2.9em;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}

.price__ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-top: 1px solid var(--sand-3);
  list-style: none;
}

.price__ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sand-3);
  font-size: 15.5px;
  line-height: 1.45;
}

.price__ul .ic {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}

.price__ul li.no {
  color: var(--ink-faint);
}

.price__ul li.no .ic {
  color: var(--ink-faint);
}

.price__cta {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
}

.price--pop {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-dark);
}

.price--pop .meta {
  color: var(--a-300);
}

.price--pop .price__amt b {
  color: var(--sand);
}

.price--pop .price__amt span,
.price--pop .price__line {
  color: var(--on-dark);
}

.price--pop .price__ul,
.price--pop .price__ul li {
  border-color: var(--line-on-dark);
}

.price--pop .price__ul .ic {
  color: var(--p-200);
}

.price--pop:hover,
.price--pop.is-hover {
  border-color: var(--p-400);
}

.price--pop:focus-within,
.price--pop.is-focus {
  border-color: var(--p-200);
  box-shadow: 0 0 0 4px rgba(159, 210, 213, .35);
}

.price__notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.price__notes b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 980px) {
  .prices {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .price__line {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .price {
    padding: 26px;
  }

  .price__amt b {
    font-size: 48px;
  }
}

/* Announcement and primary navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-3);
}

.vendor-promo {
  color: var(--ink);
  background: var(--sand-2);
  border-bottom: 1px solid var(--sand-3);
}

.vendor-promo__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 48px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 132px;
}

.vendor-promo p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.vendor-promo p strong {
  color: var(--ink);
  font-weight: 700;
}

.vendor-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease);
}

.vendor-promo__cta:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.vendor-promo__cta:focus-visible,
.vendor-promo__signin:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.vendor-promo__cta .ic {
  width: 15px;
  height: 15px;
}

.vendor-promo__signin {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  color: var(--primary-strong);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-50%);
  white-space: nowrap;
}

.vendor-promo__signin:hover {
  color: var(--night);
  background: rgba(9, 53, 57, .06);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-h);
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  flex: none;
}

.logo__img {
  width: auto;
  height: 42px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0 auto;
}

.nav__links a {
  padding: 10px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(9, 53, 57, .07);
}

.nav__actions,
.nav__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.nav__actions {
  flex: none;
}

.nav__cta .btn {
  min-height: 48px;
  padding: 0 15px;
  font-size: 13.5px;
  white-space: nowrap;
}

.nav__cta .nav__quote .ic {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

.nav__burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--sand-3);
  border-radius: 50%;
  background: transparent;
  color: var(--night);
  cursor: pointer;
}

.nav__burger:hover {
  background: var(--sand-2);
}

.nav__burger .ic {
  width: 22px;
  height: 22px;
}

/* Full-screen mobile navigation with an explicit close control */
.nav__mobile {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.nav__mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex: none;
  border-bottom: 1px solid var(--line-on-dark);
}

.nav__mobile-heading {
  color: var(--p-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav__mobile-close {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line-on-dark-2);
  border-radius: 50%;
  background: transparent;
  color: var(--sand);
  cursor: pointer;
}

.nav__mobile-close::before,
.nav__mobile-close::after {
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav__mobile-close::after {
  transform: rotate(-45deg);
}

.nav__mobile-close:hover {
  background: rgba(251, 245, 236, .1);
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.nav__mobile-links a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-decoration: none;
}

.nav__mobile-links a[aria-current="page"] {
  color: var(--a-300);
}

.nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.nav__mobile-actions .btn {
  width: 100%;
  min-height: 54px;
  justify-content: space-between;
}

.nav__mobile-actions a.btn {
  display: flex;
  border-bottom-width: 1.5px;
}

.nav__mobile-actions .btn--ghost {
  color: var(--sand);
  border-color: var(--line-on-dark-2);
}

.nav__mobile-actions .btn--ghost:hover {
  background: rgba(251, 245, 236, .1);
}

.nav__mobile-actions .nav__quote {
  color: var(--white);
  background: var(--primary);
}

/* Buttons: preserve .btn API and use the Component Library pill geometry */
.btn {
  min-height: 54px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: var(--primary);
  box-shadow: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--sh-2);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn--accent {
  background: var(--accent-strong);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--sand-3);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--p-300);
  background: var(--white);
  box-shadow: none;
  color: var(--ink);
}

.btn--quiet {
  border-color: transparent;
  background: var(--sand-2);
  color: var(--ink);
}

.btn--quiet:hover {
  background: var(--sand-3);
  color: var(--ink);
}

.btn--lg {
  min-height: 60px;
  padding: 0 28px;
  font-size: 18px;
}

.btn--sm {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn .ic {
  width: 18px;
  height: 18px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* Small labels, selectable chips, and status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--p-50);
  color: var(--primary-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--a-50);
  color: var(--accent-text);
}

.badge--verified {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge--sponsored {
  background: var(--night);
  color: var(--sand);
}

.badge .ic {
  width: 14px;
  height: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--sand-3);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

button.chip {
  cursor: pointer;
}

.chip:hover {
  border-color: var(--p-300);
  color: var(--ink);
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--night);
  background: var(--night);
  color: var(--sand);
}

.chip:disabled,
.chip[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

/* Inputs keep their existing names, validation hooks, and native behavior */
.field {
  gap: 8px;
  min-width: 0;
}

.label {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hint {
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.45;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--sand-3);
  border-radius: var(--r-chip);
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  outline: 0;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.textarea {
  min-height: 148px;
  padding: 16px 18px;
  line-height: 1.5;
  resize: vertical;
}

.select {
  padding-right: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1A17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--p-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--p-100);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.input--error,
.is-error .input,
.is-error .select,
.is-error .textarea {
  border-color: var(--danger);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  border-color: var(--sand-3);
  background-color: var(--sand-2);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
}

.err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* Shared cards and interior page headers */
.card {
  overflow: hidden;
  border: 1px solid var(--sand-3);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.card.is-hover:hover {
  box-shadow: var(--sh-3);
  transform: translateY(-3px);
}

.phead,
.phead--tint,
.phead--grad {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--night);
  color: var(--on-dark);
}

.phead::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(540px 260px at 90% 0%, rgba(95, 177, 182, .14), transparent 72%);
  content: "";
  pointer-events: none;
}

.phead::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0 70%, var(--accent) 70%);
  content: "";
}

.phead__deco {
  opacity: 0;
}

.phead__in {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 72px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--p-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.crumbs a {
  color: var(--sand);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs .sep {
  color: var(--p-200);
  opacity: .8;
}

.crumbs .cur {
  color: var(--p-200);
}

.phead--tint .crumbs,
.phead--grad .crumbs {
  color: var(--p-200);
}

.phead--tint .crumbs a,
.phead--grad .crumbs a {
  color: var(--sand);
}

.phead--tint .crumbs a:hover,
.phead--grad .crumbs a:hover {
  color: var(--white);
}

.phead--tint .crumbs .cur,
.phead--grad .crumbs .cur {
  color: var(--p-200);
}

.phead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--a-300);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.phead--tint .phead__kicker,
.phead--grad .phead__kicker {
  color: var(--a-300);
}

.phead__title,
.phead--tint .phead__title,
.phead--grad .phead__title {
  max-width: 18ch;
  color: var(--sand);
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: var(--disp-track);
  line-height: 1.02;
}

.phead__lede,
.phead--tint .phead__lede,
.phead--grad .phead__lede {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--on-dark);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.phead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Site footer */
.site-foot {
  padding: 76px 0 28px;
  background: var(--night);
  color: var(--on-dark);
}

.site-foot__in {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2.2fr);
  gap: 52px;
}

.site-foot__brand {
  min-width: 0;
}

.site-foot .logo__img {
  height: 46px;
}

.site-foot__brand p {
  max-width: 36ch;
  margin: 18px 0;
  color: var(--on-dark);
  font-size: 15.5px;
  line-height: 1.6;
  opacity: .86;
}

.site-foot__contact {
  display: block;
  color: var(--on-dark);
  font-size: 14.5px;
  line-height: 1.8;
  opacity: .86;
}

a.site-foot__contact:hover {
  color: var(--white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.fcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.fcol h5 {
  margin: 0 0 5px;
  color: var(--p-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fcol a {
  color: var(--on-dark);
  font-size: 14.5px;
  line-height: 1.45;
  opacity: .86;
  text-decoration: none;
}

.fcol a:hover {
  color: var(--white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot__btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-dark);
  color: var(--p-100);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-foot__legal a {
  color: var(--p-100);
  text-decoration: none;
}

.site-foot__legal a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Accessible focus remains conspicuous on both warm and dark surfaces */
.site-foot a:focus-visible,
.nav__mobile a:focus-visible,
.nav__mobile button:focus-visible {
  outline-color: var(--a-300);
  outline-offset: 4px;
}

@media (max-width: 1160px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .vendor-promo__in {
    min-height: 60px;
    gap: 6px 10px;
    padding: 9px 80px 9px var(--gutter);
    flex-wrap: wrap;
  }

  .vendor-promo p {
    flex: 1 1 100%;
    font-size: 12.5px;
  }

  .vendor-promo__cta {
    min-height: 32px;
    font-size: 12px;
  }

  .vendor-promo__signin {
    right: var(--gutter);
    min-height: 40px;
    font-size: 12.5px;
  }

  .nav__in {
    min-height: 76px;
  }

  .logo__img {
    height: 38px;
  }

  .phead__in {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .site-foot {
    padding-top: 56px;
  }

  .site-foot__in {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-foot__brand p {
    max-width: 44ch;
  }

  .site-foot__btm {
    margin-top: 40px;
  }
}

@media (max-width: 520px) {
  .vendor-promo__in {
    padding-right: 76px;
  }

  .vendor-promo__cta {
    max-width: 100%;
  }

  .nav__in {
    gap: 12px;
  }

  .site-foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .site-foot__btm {
    align-items: flex-start;
    flex-direction: column;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .vendor-promo__in {
    padding-right: 70px;
  }

  .vendor-promo__cta {
    padding-inline: 9px;
  }

  .nav__mobile {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__mobile,
  .btn,
  .chip,
  .card,
  .vendor-promo__cta {
    transition-duration: .01ms;
  }
}
