/* Inhouse starter chrome — header / footer / trust badges
   Color tokens match vertical cover contract (domain-hash remaps these). */

:root {
  --primary:#5147E1;
  --primary-dark: #2B257E;
  --primary-tint: #EEEDFC;
  --ink:#5555e8;
  --muted: #9b9bfa;
  --line: #d2d2ff;
  --danger: #ff4c68;
  --surface: #ffffff;
  --radius: 10px;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--primary-tint);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}

/* Keep sticky if include wrapper is still present before/without unwrap */
div[include$="header.html"],
.site-header-slot {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.site-header__brand {
  flex: 0 1 auto;
  min-width: 0;
}

.site-header__brand img {
  height: 64px;
  width: auto;
  max-width: min(280px, 58vw);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.site-header__nav a {
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--primary);
  background: rgba(27, 44, 193, 0.08);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Shipping-style profile auth dropdown */
.profile-auth {
  position: relative;
  display: none;
}

@media (min-width: 576px) {
  .profile-auth {
    display: block;
  }
}

.profile-auth__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.25rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.profile-auth__toggle img {
  display: block;
  transition: transform 0.25s ease;
}

.profile-auth.is-open .profile-auth__caret {
  transform: rotate(-180deg);
}

.profile-auth__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(9, 21, 64, 0.12);
  z-index: 1100;
}

.profile-auth.is-open .profile-auth__menu {
  display: block;
}

.profile-auth__menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.profile-auth__menu a:hover {
  color: var(--primary);
  background: rgba(27, 44, 193, 0.06);
}

.site-header__auth-mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.site-header__auth-mobile a {
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}

.site-header__auth-mobile a:hover {
  color: var(--primary);
  background: rgba(27, 44, 193, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.site-header__toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
  border-radius: 1px;
}

/* —— Translator chrome tweaks (works with factory-translate.css) —— */
#dropBlock_wrapper {
  margin-left: 0;
}

#teams-dropdown-menu .icon img {
  display: block;
  transition: transform 0.25s ease;
}

#teams-dropdown-menu:has(ul.active) .icon img,
#teams-dropdown-menu-mobile:has(ul.active) .icon img,
.teams-dropdown-menu:has(ul.active) .icon img {
  transform: rotate(-180deg);
}

#teams-dropdown-menu,
#teams-dropdown-menu-mobile,
.teams-dropdown-menu {
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 1023px) {
  .site-header #teams-dropdown-menu .lang-label,
  .site-header #teams-dropdown-menu-mobile .lang-label,
  .site-header .teams-dropdown-menu .lang-label {
    display: none !important;
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    padding-block: 0.65rem;
  }

  .site-header__brand {
    flex: 1 1 auto;
    order: 1;
  }

  .site-header__tools {
    order: 2;
    margin-left: auto;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.65rem;
  }

  .site-header__nav a {
    padding: 0.65rem 0.5rem;
  }

  .site-header__auth-mobile {
    display: none;
  }

  .site-header.is-open .site-header__nav {
    display: flex;
  }

  .site-header.is-open .site-header__inner {
    padding-bottom: 0.85rem;
  }

  #teams-dropdown-menu .icon {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 575px) {
  .site-header.is-open .site-header__auth-mobile {
    display: flex;
  }
}

/* —— Main placeholder —— */
.starter-main {
  padding: 3rem 0 4rem;
}

.starter-hero {
  padding: 2.5rem 0;
}

.starter-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.starter-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.starter-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.starter-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.starter-section p {
  margin: 0;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__main {
  padding: 2.75rem 0 1.75rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.site-footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: 0.85rem;
}

.site-footer__brand p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  max-width: 28ch;
}

.site-footer__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.site-footer__trust .visa-icons {
  width: min(100%, 220px);
  height: auto;
  opacity: 1;
}

.site-footer__trust .encryption {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
}

.site-footer__trust .encryption img {
  width: 20px;
  height: 20px;
}

.site-footer__col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-footer__col li + li {
  margin-top: 0.45rem;
}

.site-footer__col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-footer__contact li + li {
  margin-top: 0.75rem;
}

.site-footer__contact .my-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--primary);
}

.site-footer__contact .my-icon svg,
.site-footer__contact .my-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.site-footer__contact a,
.site-footer__contact p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.email-lowercase {
  text-transform: lowercase;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.35rem;
}

.site-footer__copy p {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.visa-icons,
.encryption,
img.visa {
  opacity: 1;
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Inner pages —— */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.page-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
}

.page-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 560px;
}

.form-stack .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-stack label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-stack textarea {
  min-height: 120px;
  resize: vertical;
}

.form-stack .btn,
.form-stack button[type="submit"] {
  align-self: flex-start;
}

.contact-aside p,
.support-contact p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-list .my-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--primary);
}

.contact-list .my-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-list a:not(.btn),
.contact-list p {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-aside__chat,
.factory-chat-now-wrap {
  margin-top: 0.25rem;
}

.contact-aside a:not(.btn),
.support-contact a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
}

.contact-aside a.btn--primary,
.support-contact a.btn--primary {
  color: #fff;
}

.contact-aside a.btn--primary:hover,
.support-contact a.btn--primary:hover {
  background: var(--primary-dark);
}

.contact-aside a.btn--ghost,
.support-contact a.btn--ghost {
  color: var(--ink);
  font-weight: 700;
}

.contact-aside a.factory-chat-now,
.support-contact a.factory-chat-now {
  display: inline-flex;
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.support-page {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

.support-cancel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.pricing-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pricing-card {
  display: grid;
  gap: 1rem;
  max-width: 420px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricing-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-card .btn {
  width: fit-content;
}

.pricing-card__cancel {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.policy-content {
  padding-bottom: 3rem;
}

.policy-content .wrap {
  max-width: 900px;
  line-height: 1.7;
  color: #334155;
}

.policy-content .wrap h1 {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

/* —— FAQ (membership host locked inhouse list) —— */
.faq-page {
  max-width: 900px;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 2.75rem) 3rem;
}

ul.faq-items[data-membership-inhouse-faq] {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.faq-items[data-membership-inhouse-faq] > li {
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

ul.faq-items[data-membership-inhouse-faq] > li > h3 {
  position: relative;
  margin: 0;
  padding: 1rem 3rem 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

ul.faq-items[data-membership-inhouse-faq] > li > h3::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

ul.faq-items[data-membership-inhouse-faq] > li.open > h3::after,
ul.faq-items[data-membership-inhouse-faq] > li.active > h3::after {
  content: "\2212";
}

ul.faq-items[data-membership-inhouse-faq] > li > .answer {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

ul.faq-items[data-membership-inhouse-faq] > li.open > .answer,
ul.faq-items[data-membership-inhouse-faq] > li.active > .answer {
  display: block;
}

ul.faq-items[data-membership-inhouse-faq] > li > .answer p {
  margin: 0 0 0.75rem;
}

ul.faq-items[data-membership-inhouse-faq] > li > .answer p:last-child {
  margin-bottom: 0;
}

.faq-price-table,
ul.faq-items[data-membership-inhouse-faq] #customers {
  width: 100%;
  max-width: 420px;
  margin: 0.75rem 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.faq-price-table th,
.faq-price-table td,
ul.faq-items[data-membership-inhouse-faq] #customers th,
ul.faq-items[data-membership-inhouse-faq] #customers td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
  color: var(--ink);
}

@media (max-width: 800px) {
  .page-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Auth / welcome modals (membership host inhouse) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

.modal-overlay.open,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
  display: flex !important;
}

.modal-overlay .modal,
.modal-overlay .welcome-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.modal-overlay .welcome-card {
  max-width: 520px;
}

.modal-overlay .close-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.modal-overlay h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.modal-overlay .auth-form .form-group,
.modal-overlay .auth-form .auth-row {
  margin-bottom: 0.75rem;
}

.modal-overlay .auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.modal-overlay .auth-submit,
.modal-overlay .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.modal-overlay .auth-switch,
.modal-overlay .content {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-overlay .auth-switch a,
.modal-overlay .content a,
.modal-overlay .auth-row a {
  color: var(--primary);
  font-weight: 600;
}

.modal-overlay .welcome-actions {
  margin-top: 1.15rem;
}

#crm-checkout {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}


.service-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-list li + li {
  margin-top: 0.35rem;
}
}
