.skip-link {
  position: absolute;
  top: -100px;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.65rem 1rem;
  background: #111;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --color-bg: #f3f3f1;
  --color-surface: #ffffff;
  --color-surface-2: #ececea;
  --color-hero: #bef264;

  --color-heading: #171717;
  --color-text: #2f3334;
  --color-text-muted: #687174;
  --color-muted: var(--color-text-muted);
  --color-border: #d9d9d4;

  --color-primary: #31c47a;
  --color-primary-hover: #29b06d;
  --color-primary-soft: #e4f6ec;

  --color-accent: #eb5bb7;
  --color-accent-soft: #f7d7eb;

  --icon-muted: #bcc2c6;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Urbanist", system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.73rem + 0.08vw, 0.82rem);
  --text-sm: clamp(0.88rem, 0.85rem + 0.12vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.16vw, 1rem);
  --text-lg: clamp(1.1rem, 1.02rem + 0.38vw, 1.32rem);
  --text-xl: clamp(1.35rem, 1.18rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.7rem, 1.35rem + 1.35vw, 2.55rem);
  --text-hero: clamp(2.35rem, 1.8rem + 2.7vw, 4.4rem);

  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1280px;

  --gutter: 24px;

  --space-1: clamp(0.25rem, 0.24rem + 0.05vw, 0.3rem);
  --space-2: clamp(0.5rem, 0.45rem + 0.12vw, 0.6rem);
  --space-3: clamp(0.75rem, 0.68rem + 0.18vw, 0.9rem);
  --space-4: clamp(1rem, 0.92rem + 0.24vw, 1.15rem);
  --space-5: clamp(1.5rem, 1.32rem + 0.45vw, 1.8rem);
  --space-6: clamp(2rem, 1.75rem + 0.7vw, 2.5rem);
  --space-7: clamp(3rem, 2.6rem + 1vw, 3.75rem);
  --space-8: clamp(4rem, 3.4rem + 1.8vw, 5.5rem);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-soft: 0 4px 14px rgba(20, 20, 20, 0.04);

  --skeleton-base: #e8e8e3;
  --skeleton-highlight: #f3f3ef;
}

[data-theme="dark"] {
  --color-bg: #0d0e10;
  --color-surface: #16181b;
  --color-surface-2: #1c1f23;
  --color-hero: #2a3d18;

  --color-heading: #f5f5f4;
  --color-text: #d6d6d2;
  --color-text-muted: #9aa1a7;
  --color-muted: var(--color-text-muted);
  --color-border: #2b2e33;

  --color-primary: #3dd485;
  --color-primary-hover: #4ce096;
  --color-primary-soft: rgba(61, 212, 133, 0.16);

  --color-accent: #f178c7;
  --color-accent-soft: rgba(241, 120, 199, 0.18);

  --icon-muted: #6b7077;

  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.35);

  --skeleton-base: #1d2024;
  --skeleton-highlight: #2a2e34;
  color-scheme: dark;
}

html,
body,
.site-header,
.nav-wrapper,
.topbar,
.site-footer,
.card,
.btn,
.icon-link,
.mega-dropdown-inner,
.mobile-menu,
input,
textarea,
select {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

@keyframes pv-skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-block {
  display: block;
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 100%
  );
  background-size: 200% 100%;
  animation: pv-skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.skeleton-topbar {
  height: 38px;
  background: #111418;
}

.skeleton-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 78px;
  padding: 0 1.5rem;
  max-width: var(--container-lg);
  margin: 0 auto;
}

.skeleton-burger { width: 28px; height: 28px; border-radius: 6px; }
.skeleton-logo { width: 140px; height: 28px; }
.skeleton-icon { width: 40px; height: 40px; border-radius: 10px; }
.skeleton-spacer { flex: 1; }

.skeleton-footer {
  background: var(--color-surface);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.skeleton-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--container-lg);
  margin: 0 auto;
}

.skeleton-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skeleton-line {
  height: 0.85rem;
  width: 100%;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .skeleton-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
    background: var(--skeleton-base);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(root) {
  animation-name: pv-fade-out;
}

::view-transition-new(root) {
  animation-name: pv-fade-in;
}

@keyframes pv-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes pv-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

body {
  animation: pv-page-in 0.32s ease-out both;
}

@keyframes pv-page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.section-content-tabs,
.section-recent,
.faq-section,
.section-usp,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-heading);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }

[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

@media (max-width: 860px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
}

html {
  font-size: 16px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight, 700);
  letter-spacing: 0.012em;
  color: var(--color-heading);
}

h1 {
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: 0.006em;
  margin-bottom: 0.75em;
}

h2 {
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: 0.008em;
  margin-bottom: 0.75em;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: 0.65em;
}

h4 {
  font-size: var(--text-base);
  line-height: 1.35;
  margin-bottom: 0.55em;
}

h5 {
  font-size: var(--text-sm);
  line-height: 1.4;
  margin-bottom: 0.45em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

.link-inline {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

@media (min-width: 1024px) {
  .text-center-desktop { text-align: center; }
  .text-left-desktop { text-align: left; }
  .text-right-desktop { text-align: right; }
}

.section {
  padding-block: var(--space-8);
}

.section-tight {
  padding-block: var(--space-6);
}

.section-loose,
.section-break {
  padding-block: var(--space-8);
}

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

.container {
  width: min(var(--container-lg), calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container-lg), calc(100% - 32px));
  }
}

.max-wide {
  max-width: 1440px;
  margin: 0 auto;
}

.max-radius {
  border-radius: var(--radius-lg);
}

.max-margin-top {
  margin-top: clamp(14px, 1.5vw, 20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0rem 0.7rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  max-width: max-content;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-heading);
  border-color: var(--color-border);
}

.btn-tertiary {
  background: transparent;
  color: var(--color-heading);
  border-color: transparent;
}

.small,
.meta,
.helper-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.breadcrumbs {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.breadcrumbs a {
  color: inherit;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: middle;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--solid { fill: currentColor; stroke: none; }

.icon-menu,
.icon-cart {
  width: 24px;
  height: 24px;
}

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-heading);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  border-radius: 999px;
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.9rem + 0.35vw, 1.5rem);
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-grid {
  max-width: var(--container-lg);
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 0.48rem + 0.2vw, 0.7rem);
}

.footer-heading {
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-heading);
}

.footer-links li {
  list-style: none;
}

.footer-links a,
.footer-link {
  display: inline-block;
  padding: 2px 0;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.copy-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.payment-icons {
  max-width: 360px;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-column {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .payment-icons {
    max-width: 300px;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-heading);
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--color-heading);
  border-color: #cfcfca;
  background: #ffffff;
}

.icon-link svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.icon-link-cart {
  overflow: visible;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Shares vars with .cart-count (the older selector) — same
     operator picker drives both, so a single setting controls
     whichever markup ships. */
  background: var(--cart-count-bg, var(--color-heading));
  color: var(--cart-count-text, #ffffff);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  border: none;
  box-sizing: border-box;
}

.header-cart {
  position: relative;
}

.header-cart .mini-cart {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: #ffffff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.875rem 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

/* Invisible bridge filling the 0.5rem gap between the cart icon and
   the dropdown — without it, moving the cursor from the icon to the
   panel crosses an unhoverable strip and the panel collapses before
   the customer can click anything inside. The pseudo-element shares
   the dropdown's hover state because it's a child of it. */
.header-cart .mini-cart::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.header-cart:hover .mini-cart,
.header-cart:focus-within .mini-cart,
.header-cart .mini-cart:hover,
.header-cart .mini-cart:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mini-cart__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text, #111);
}

.mini-cart__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.mini-cart__line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border, #f1f1f1);
  font-size: 0.875rem;
}

.mini-cart__line:first-child { border-top: none; }

.mini-cart__line-main { display: flex; flex-direction: column; min-width: 0; }
.mini-cart__line-name { font-weight: 600; color: var(--color-text, #111); }
.mini-cart__line-meta { color: var(--color-text-muted, #666); font-size: 0.8rem; margin-top: 2px; }
.mini-cart__line-meta--needs-spec { font-style: italic; color: #8a4b00; }
.mini-cart__line-total { white-space: nowrap; }

.mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  font-size: 0.95rem;
}

.mini-cart__cta {
  display: flex;
  width: 100%;
  max-width: none;
  margin-top: 0.625rem;
  text-align: center;
  /* box-sizing isn't globally set in this bundle (critical.css's
     `*` rule isn't imported into style.css), so width:100% plus
     .btn's intrinsic padding overflows the parent. Force
     border-box so the button width includes its own padding. */
  box-sizing: border-box;
}

.service-option--poa {
  text-decoration: none;
}
.service-option--poa strong {
  color: var(--color-accent, #b08800);
  font-weight: 700;
}

.btn.btn-primary.portal-btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 4px;
  background:#fff;
  color: #000000;
  border: 1px solid #d5d5d5;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.btn.btn-primary.portal-btn:hover,
.btn.btn-primary.portal-btn:focus-visible {
  background: var(--color-primary-hover);
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}
.btn.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 41px;
  padding: 0 0.85rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
}

.portal-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Portal button shares the cart-icon vars per founder direction
   — one picker set drives both the cart link and the portal link
   in the header. */
.btn.btn-secondary.portal-btn {
  background: var(--cart-icon-bg, #ffffff);
  color: var(--cart-icon-text, var(--color-heading));
  border: 1px solid var(--color-border);
}

.btn.btn-secondary.portal-btn:hover,
.btn.btn-secondary.portal-btn:focus-visible {
  background: var(--cart-icon-hover-bg, #ffffff);
  color: var(--cart-icon-text, var(--color-heading));
  border-color: #cfcfca;
}
