.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 247, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(251, 251, 247, 0.96);
}

:root[data-theme="dark"] .site-header {
  background: rgba(13, 16, 15, 0.88);
}

:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(13, 16, 15, 0.96);
}

:root[data-theme="crazy"] .site-header {
  background: rgba(12, 0, 22, 0.78);
  border-color: rgba(255, 0, 214, 0.2);
  box-shadow: 0 0 34px rgba(255, 0, 214, 0.18);
}

:root[data-theme="crazy"] .site-header.is-scrolled {
  background: rgba(12, 0, 22, 0.94);
  border-color: rgba(13, 255, 242, 0.4);
}

.nav-shell {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1;
}

.wordmark::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: currentColor;
  -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat;
  mask: url("../assets/favicon.svg") center / contain no-repeat;
}

:root[data-theme="crazy"] .wordmark {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(13, 255, 242, 0.74), 0 0 28px rgba(255, 0, 214, 0.55);
}

:root[data-theme="crazy"] .wordmark::before {
  background: linear-gradient(135deg, #0dfff2, #f7ff00 42%, #ff00d6 72%, #ff145f);
  filter: drop-shadow(0 0 10px rgba(13, 255, 242, 0.8));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 10px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--surface-strong);
  color: var(--ink);
}

.theme-options {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  min-height: 40px;
  padding: 8px 12px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.theme-options:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.theme-options:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-option-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.theme-current-label {
  min-width: 42px;
}

.theme-option-icon-bright {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 2px inset var(--surface);
}

.theme-option-icon-dark {
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.theme-option-icon-crazy {
  border-radius: 4px;
  background: conic-gradient(from 40deg, #ff00d6, #ff145f, #ff9d00, #f7ff00, #0dfff2, #6b00ff, #ff00d6);
  box-shadow: 0 0 9px rgba(255, 0, 214, 0.84), 0 0 14px rgba(13, 255, 242, 0.72);
}

:root[data-theme="crazy"] .site-nav a:hover,
:root[data-theme="crazy"] .site-nav a.is-active,
:root[data-theme="crazy"] .theme-options {
  border-color: rgba(13, 255, 242, 0.64);
  background: rgba(30, 0, 54, 0.84);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 0, 214, 0.28), inset 0 0 14px rgba(13, 255, 242, 0.12);
}

:root[data-theme="crazy"] .theme-current-label {
  color: #f7ff00;
  text-shadow: 0 0 9px rgba(247, 255, 0, 0.75);
}

.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  margin: 0;
  padding: 72px max(20px, calc((100vw - 1120px) / 2)) 56px;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-content: center;
  gap: 28px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background-image: url("../assets/polymai-hero-background.png");
  background-position: center right;
  background-size: cover;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 251, 247, 0.97) 0%, rgba(251, 251, 247, 0.86) 38%, rgba(251, 251, 247, 0.24) 68%, rgba(251, 251, 247, 0.08) 100%),
    linear-gradient(180deg, rgba(251, 251, 247, 0.28) 0%, rgba(251, 251, 247, 0.02) 55%, rgba(251, 251, 247, 0.64) 100%);
}

:root[data-theme="dark"] .hero::after {
  background:
    linear-gradient(90deg, rgba(13, 16, 15, 0.94) 0%, rgba(13, 16, 15, 0.78) 42%, rgba(13, 16, 15, 0.34) 74%, rgba(13, 16, 15, 0.16) 100%),
    linear-gradient(180deg, rgba(13, 16, 15, 0.34) 0%, rgba(13, 16, 15, 0.08) 52%, rgba(13, 16, 15, 0.78) 100%);
}

:root[data-theme="crazy"] .hero::before {
  filter: saturate(1.45) contrast(1.08) hue-rotate(280deg);
}

:root[data-theme="crazy"] .hero::after {
  background:
    radial-gradient(circle at 66% 26%, rgba(13, 255, 242, 0.34), transparent 21rem),
    radial-gradient(circle at 87% 62%, rgba(255, 20, 95, 0.38), transparent 23rem),
    linear-gradient(90deg, rgba(8, 0, 15, 0.96) 0%, rgba(24, 0, 37, 0.82) 42%, rgba(24, 0, 37, 0.28) 70%, rgba(8, 0, 15, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 0, 214, 0.1) 0%, rgba(13, 255, 242, 0.04) 54%, rgba(8, 0, 15, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  max-width: 14.4ch;
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 4.75vw, 4.35rem);
  line-height: 1;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 143, 104, 0.42);
  border-radius: 999px;
  background: rgba(251, 251, 247, 0.72);
  color: var(--accent-strong);
  padding: 8px 18px;
  margin-bottom: 22px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge span {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.hero-badge span::before,
.hero-badge span::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg) scale(0.62);
}

.hero-badge span::after {
  inset: 4px;
  border-width: 1px;
  opacity: 0.72;
}

.hero-kicker {
  max-width: 650px;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1.18;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1.12vw, 1.02rem);
  font-weight: 500;
}

.hero-capabilities {
  max-width: 650px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.hero-capabilities li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-service-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 143, 104, 0.16);
  border-radius: 7px;
  background: rgba(229, 244, 238, 0.8);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-service-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--hero-service-mask) center / contain no-repeat;
  mask: var(--hero-service-mask) center / contain no-repeat;
}

.hero-service-database {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='7' ry='3'/%3E%3Cpath d='M5 5v14c0 1.7 3.1 3 7 3s7-1.3 7-3V5'/%3E%3Cpath d='M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3'/%3E%3C/svg%3E");
}

.hero-service-auth {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.hero-service-storage {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5h7l2 2h9v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M3 7.5V5a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v2.5'/%3E%3C/svg%3E");
}

.hero-service-functions {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5'/%3E%3Cpath d='m16 7 5 5-5 5'/%3E%3C/svg%3E");
}

.hero-service-payments {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E");
}

.hero-service-email {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E");
}

.hero-service-ai {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6'/%3E%3Cpath d='M12 16v6'/%3E%3Cpath d='M2 12h6'/%3E%3Cpath d='M16 12h6'/%3E%3Cpath d='m4.9 4.9 4.2 4.2'/%3E%3Cpath d='m14.9 14.9 4.2 4.2'/%3E%3Cpath d='m19.1 4.9-4.2 4.2'/%3E%3Cpath d='m9.1 14.9-4.2 4.2'/%3E%3C/svg%3E");
}

.hero-service-webhooks {
  --hero-service-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M3 12h4'/%3E%3Cpath d='M17 12h4'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .hero-badge {
  background: rgba(21, 25, 24, 0.68);
}

:root[data-theme="crazy"] .hero h1 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(13, 255, 242, 0.56), 0 0 40px rgba(255, 0, 214, 0.42);
}

:root[data-theme="crazy"] .hero-badge {
  border-color: rgba(247, 255, 0, 0.7);
  background: rgba(28, 0, 47, 0.78);
  color: #f7ff00;
  box-shadow: 0 0 22px rgba(247, 255, 0, 0.24), 0 0 40px rgba(255, 0, 214, 0.22);
}

:root[data-theme="dark"] .hero-service-icon {
  background: rgba(21, 51, 41, 0.78);
  border-color: rgba(116, 228, 182, 0.2);
}

:root[data-theme="crazy"] .hero-service-icon {
  background: linear-gradient(135deg, rgba(13, 255, 242, 0.18), rgba(255, 0, 214, 0.22));
  border-color: rgba(13, 255, 242, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 16px rgba(13, 255, 242, 0.24);
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-cta {
  min-width: 230px;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(15, 143, 104, 0.48);
  padding-inline: 18px;
  font-size: 0.94rem;
}

.hero-cta:hover {
  border-color: var(--accent-strong);
}

.hero-cta-icon {
  position: relative;
  width: 19px;
  height: 17px;
  flex: 0 0 19px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.hero-cta-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 4px;
  border-top: 2px solid currentColor;
}

.hero-cta-arrow {
  margin-left: auto;
  font-size: 1.24rem;
  line-height: 1;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #0d100f;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

:root[data-theme="crazy"] .button,
:root[data-theme="crazy"] .carousel-control {
  box-shadow: 0 0 18px rgba(13, 255, 242, 0.14);
}

:root[data-theme="crazy"] .button-primary,
:root[data-theme="crazy"] .hero-cta {
  background: linear-gradient(90deg, #ff00d6, #ff145f 42%, #ff9d00);
  border-color: rgba(247, 255, 0, 0.7);
  color: #08000f;
  text-shadow: none;
  box-shadow: 0 0 20px rgba(255, 0, 214, 0.5), 0 0 38px rgba(255, 157, 0, 0.28);
}

.button-full {
  width: 100%;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 0.98rem;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.showcase-copy p:last-child {
  max-width: 460px;
  margin-bottom: 0;
}

.showcase-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow);
}

.showcase-frame img {
  width: 100%;
  border-radius: 6px;
  background: #111314;
}

.showcase-frame figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 2px 2px;
}

.value-card,
.lead-panel,
.lead-form,
.preview-modal,
.gallery-card,
.runtime-card,
.developer-card,
.service-row,
.setup-panel,
.empty-state,
.error-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

:root[data-theme="crazy"] .value-card,
:root[data-theme="crazy"] .lead-form,
:root[data-theme="crazy"] .preview-modal,
:root[data-theme="crazy"] .gallery-card,
:root[data-theme="crazy"] .runtime-card,
:root[data-theme="crazy"] .developer-card,
:root[data-theme="crazy"] .service-row,
:root[data-theme="crazy"] .empty-state,
:root[data-theme="crazy"] .error-state,
:root[data-theme="crazy"] .showcase-frame,
:root[data-theme="crazy"] .example-feature-card,
:root[data-theme="crazy"] .legal-update-card,
:root[data-theme="crazy"] .pricing-note-card,
:root[data-theme="crazy"] .legal-doc-card,
:root[data-theme="crazy"] .pricing-card,
:root[data-theme="crazy"] .security-card,
:root[data-theme="crazy"] .ai-card,
:root[data-theme="crazy"] .price-factor,
:root[data-theme="crazy"] .package-requirements,
:root[data-theme="crazy"] .ai-setup-list article {
  border-color: rgba(13, 255, 242, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 0, 214, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(13, 255, 242, 0.12), transparent 52%),
    rgba(18, 0, 32, 0.88);
  box-shadow: 0 0 26px rgba(255, 0, 214, 0.16), 0 0 44px rgba(13, 255, 242, 0.1);
}

.value-card {
  padding: 22px;
}

.problem-section .value-card p {
  margin-bottom: 0;
}

.answer-section .value-card {
  display: grid;
  align-content: start;
}

.answer-section .value-card p {
  margin-bottom: 0;
}

.value-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-weight: 800;
}

.gallery-section {
  width: 100%;
  border-block: 1px solid var(--line);
  background: #f2f6f1;
}

:root[data-theme="dark"] .gallery-section {
  background: #111614;
}

:root[data-theme="crazy"] .gallery-section,
:root[data-theme="crazy"] .developer-services-section,
:root[data-theme="crazy"] .data-map-section,
:root[data-theme="crazy"] .ai-use-section,
:root[data-theme="crazy"] .package-compare-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 0, 214, 0.2), transparent 21rem),
    radial-gradient(circle at 88% 40%, rgba(13, 255, 242, 0.16), transparent 28rem),
    rgba(8, 0, 15, 0.78);
}

.gallery-section > * {
  width: var(--container);
  margin-inline: auto;
}

.examples-feature-section {
  overflow: hidden;
}

.examples-feature-section .section-heading-row {
  margin-bottom: 10px;
}

.example-carousel {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.example-carousel-stage {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 30px 24px 34px;
  overflow: hidden;
  outline: 0;
  perspective: 1400px;
  touch-action: pan-y;
  user-select: none;
}

.example-carousel-stage:focus-visible {
  outline: 3px solid rgba(15, 143, 104, 0.35);
  outline-offset: -4px;
}

.example-feature-card {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(17, 20, 18, 0.13);
  transform: rotate(var(--feature-tilt));
}

.example-feature-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(15, 143, 104, 0.08), transparent 44%),
    var(--paper);
}

.example-feature-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(15, 143, 104, 0.28) 8% 34%, transparent 34% 100%) 24px 28px / 72% 10px no-repeat,
    linear-gradient(90deg, transparent 0 8%, rgba(17, 20, 18, 0.2) 8% 62%, transparent 62% 100%) 24px 58px / 72% 8px no-repeat,
    linear-gradient(90deg, transparent 0 8%, rgba(17, 20, 18, 0.16) 8% 46%, transparent 46% 100%) 24px 84px / 72% 8px no-repeat,
    linear-gradient(180deg, transparent 0 72%, rgba(15, 143, 104, 0.15) 72% 73%, transparent 73% 100%),
    linear-gradient(90deg, rgba(17, 20, 18, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 18, 0.08) 1px, transparent 1px);
  background-size:
    72% 10px,
    72% 8px,
    72% 8px,
    100% 100%,
    42px 42px,
    42px 42px;
}

.example-feature-preview iframe {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  display: block;
  width: 400%;
  height: 400%;
  min-height: 0;
  border: 0;
  background: #ffffff;
  pointer-events: none;
  transform: scale(0.25);
  transform-origin: 0 0;
}

.example-feature-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 14px 6px 14px 0;
}

.example-feature-copy h3 {
  margin-bottom: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.04;
}

.example-feature-description {
  margin-bottom: 0;
  max-width: 34ch;
  font-size: 0.96rem;
}

.example-carousel-bar {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.carousel-control {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  transition: border-color 160ms ease, transform 160ms ease;
}

.carousel-control:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.example-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 143, 104, 0.12);
}

.example-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}

.examples-page-hero {
  padding-bottom: 34px;
}

.examples-page-hero .section-heading {
  margin-bottom: 0;
}

.examples-page-section {
  border-top: 1px solid var(--line);
}

.examples-page-grid {
  padding-bottom: 10px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 143, 104, 0.12);
  outline: 0;
}

:root[data-theme="crazy"] .field input,
:root[data-theme="crazy"] .field select,
:root[data-theme="crazy"] .field textarea {
  border-color: rgba(13, 255, 242, 0.34);
  background: rgba(10, 0, 20, 0.72);
  color: #fff9ff;
  box-shadow: inset 0 0 16px rgba(13, 255, 242, 0.07);
}

:root[data-theme="crazy"] .field input:focus,
:root[data-theme="crazy"] .field select:focus,
:root[data-theme="crazy"] .field textarea:focus {
  border-color: #f7ff00;
  box-shadow: 0 0 0 4px rgba(247, 255, 0, 0.18), 0 0 22px rgba(255, 0, 214, 0.24);
}

.field textarea {
  resize: vertical;
}

.state-line,
.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.gallery-card {
  min-height: 100%;
  padding: 18px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.gallery-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  contain: paint;
}

.gallery-preview iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 400%;
  height: 400%;
  border: 0;
  background: #ffffff;
  pointer-events: none;
  transform: scale(0.25);
  transform-origin: 0 0;
}

.gallery-preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.capability-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capability-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(17, 20, 18, 0.12);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

:root[data-theme="dark"] .capability-badge {
  border-color: rgba(247, 248, 242, 0.12);
}

.signal {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-card p {
  margin-bottom: 0;
}

.gallery-card-body {
  display: grid;
  gap: 8px;
}

.gallery-description {
  display: -webkit-box;
  min-height: 4.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.card-actions button {
  min-height: 42px;
}

.gallery-more-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.gallery-more-row .button[hidden] {
  display: none;
}

.impact {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
}

.empty-state,
.error-state {
  padding: 24px;
  margin-top: 16px;
}

.empty-state p,
.error-state p {
  margin-bottom: 16px;
}

.method-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 92px max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(680px, 1.42fr) minmax(0, 0.58fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.method-section::before,
.method-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.method-section::before {
  background-image: url("../assets/polymai-hero-background.png");
  background-position: center left;
  background-size: cover;
  filter: grayscale(1);
  opacity: 0.18;
}

.method-section::after {
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(251, 251, 247, 0.98) 0%, rgba(251, 251, 247, 0.88) 42%, rgba(251, 251, 247, 0.62) 100%),
    radial-gradient(circle at 34% 48%, rgba(15, 143, 104, 0.12), transparent 34%);
}

:root[data-theme="dark"] .method-section::before {
  opacity: 0.1;
}

:root[data-theme="dark"] .method-section::after {
  background:
    linear-gradient(270deg, rgba(13, 16, 15, 0.97) 0%, rgba(13, 16, 15, 0.88) 44%, rgba(13, 16, 15, 0.62) 100%),
    radial-gradient(circle at 34% 48%, rgba(48, 194, 145, 0.14), transparent 34%);
}

:root[data-theme="crazy"] .method-section {
  border-block-color: rgba(255, 0, 214, 0.34);
}

:root[data-theme="crazy"] .method-section::before {
  filter: saturate(1.55) contrast(1.1) hue-rotate(278deg);
  opacity: 0.14;
}

:root[data-theme="crazy"] .method-section::after {
  background:
    radial-gradient(circle at 24% 52%, rgba(13, 255, 242, 0.26), transparent 24rem),
    radial-gradient(circle at 74% 28%, rgba(255, 0, 214, 0.22), transparent 28rem),
    linear-gradient(270deg, rgba(8, 0, 15, 0.98) 0%, rgba(24, 0, 37, 0.9) 46%, rgba(5, 0, 12, 0.82) 100%);
}

.method-section .section-heading {
  margin-bottom: 0;
  order: 2;
}

.build-flow-component {
  position: relative;
  order: 1;
  display: grid;
  gap: 18px;
}

.build-flow-canvas {
  position: relative;
  min-height: 690px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: translateZ(0);
}

:root[data-theme="dark"] .build-flow-canvas {
  background: transparent;
  box-shadow: none;
}

.build-flow-canvas::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  opacity: 0.32;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 20, 18, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 18, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, #000 0 54%, transparent 80%);
}

:root[data-theme="dark"] .build-flow-canvas::before {
  background:
    linear-gradient(90deg, rgba(247, 248, 242, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 248, 242, 0.055) 1px, transparent 1px);
}

.build-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.flow-bg-disc {
  opacity: 0.72;
}

.flow-radial-stop-core {
  stop-color: rgba(214, 242, 232, 0.58);
}

.flow-radial-stop-mid {
  stop-color: rgba(158, 211, 194, 0.28);
}

.flow-radial-stop-edge {
  stop-color: rgba(15, 143, 104, 0);
}

:root[data-theme="dark"] .flow-radial-stop-core {
  stop-color: rgba(48, 194, 145, 0.2);
}

:root[data-theme="dark"] .flow-radial-stop-mid {
  stop-color: rgba(48, 194, 145, 0.08);
}

:root[data-theme="dark"] .flow-radial-stop-edge {
  stop-color: rgba(48, 194, 145, 0);
}

:root[data-theme="crazy"] .flow-radial-stop-core {
  stop-color: rgba(13, 255, 242, 0.3);
}

:root[data-theme="crazy"] .flow-radial-stop-mid {
  stop-color: rgba(255, 0, 214, 0.16);
}

:root[data-theme="crazy"] .flow-radial-stop-edge {
  stop-color: rgba(247, 255, 0, 0);
}

.flow-grid-ring {
  stroke: rgba(15, 143, 104, 0.18);
  stroke-width: 1.4;
  stroke-dasharray: 8 13;
}

.flow-inner-ring {
  stroke: rgba(15, 143, 104, 0.2);
  stroke-width: 1.2;
}

.flow-connector {
  fill: none;
  opacity: 0;
  stroke-linecap: round;
  stroke-width: 3.2;
  filter: drop-shadow(0 8px 12px rgba(17, 20, 18, 0.12));
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, stroke-width 220ms ease;
}

.build-flow-component.is-flow-visible .flow-connector {
  animation: flowConnectorIn 720ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
  animation-delay: calc(var(--flow-index) * 90ms + 120ms);
}

.flow-connector.is-active {
  opacity: 0.95;
  stroke-width: 4.4;
  transform: scale(1.01);
}

.flow-segment {
  cursor: pointer;
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.92);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.build-flow-component.is-flow-visible .flow-segment {
  animation: flowSegmentIn 740ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
  animation-delay: calc(var(--flow-index) * 90ms);
}

.flow-segment.is-active {
  opacity: 1;
  transform: scale(1.018);
  filter: url("#flowGlow") saturate(1.2);
}

.flow-segment:hover {
  opacity: 1;
  transform: scale(1.024);
  filter: url("#flowGlow") saturate(1.18);
}

.flow-segment-label {
  fill: rgba(17, 20, 18, 0.72);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

:root[data-theme="dark"] .flow-segment-label {
  fill: rgba(247, 248, 242, 0.72);
}

:root[data-theme="crazy"] .flow-segment-label {
  fill: rgba(255, 249, 255, 0.84);
}

.build-flow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 292px;
  min-height: 292px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(251, 251, 247, 0.92), rgba(229, 244, 238, 0.66)),
    rgba(251, 251, 247, 0.76);
  padding: 32px;
  text-align: center;
  box-shadow:
    0 28px 70px rgba(17, 20, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .build-flow-center {
  border-color: rgba(247, 248, 242, 0.16);
  background:
    linear-gradient(145deg, rgba(30, 37, 34, 0.88), rgba(21, 25, 24, 0.64)),
    rgba(21, 25, 24, 0.72);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(247, 248, 242, 0.08);
}

:root[data-theme="crazy"] .build-flow-center {
  border-color: rgba(247, 255, 0, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 0, 214, 0.32), rgba(13, 255, 242, 0.16)),
    rgba(18, 0, 32, 0.88);
  box-shadow:
    0 0 36px rgba(255, 0, 214, 0.32),
    0 0 62px rgba(13, 255, 242, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.flow-center-kicker {
  color: var(--flow-step-color, var(--accent-strong));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-center-title {
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.02;
}

.flow-center-heading {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
}

.flow-center-summary {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.flow-center-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.flow-center-artifact,
.flow-center-next {
  width: fit-content;
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 11%, white);
  color: var(--flow-step-color, var(--accent-strong));
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.flow-center-next {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
}

:root[data-theme="dark"] .flow-center-artifact {
  background: color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 24%, rgba(21, 25, 24, 0.92));
}

:root[data-theme="dark"] .flow-center-next {
  background: rgba(247, 248, 242, 0.08);
}

:root[data-theme="crazy"] .flow-center-title,
:root[data-theme="crazy"] .flow-center-heading {
  color: #ffffff;
}

:root[data-theme="crazy"] .flow-center-summary {
  color: rgba(255, 249, 255, 0.82);
}

:root[data-theme="crazy"] .flow-center-artifact {
  background: rgba(247, 255, 0, 0.12);
  box-shadow: 0 0 12px rgba(247, 255, 0, 0.18);
}

:root[data-theme="crazy"] .flow-center-next {
  background: rgba(255, 0, 214, 0.12);
  color: rgba(255, 249, 255, 0.8);
}

.build-flow-hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.flow-step-button {
  color: var(--muted);
  position: absolute;
  width: 46px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 12%, rgba(255, 255, 255, 0.86));
  padding: 7px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(17, 20, 18, 0.09);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .flow-step-button {
  background: rgba(21, 25, 24, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

:root[data-theme="crazy"] .flow-step-button {
  background: color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 18%, rgba(18, 0, 32, 0.82));
  box-shadow: 0 0 22px rgba(255, 0, 214, 0.16), 0 0 34px rgba(13, 255, 242, 0.1);
}

.build-flow-component.is-flow-visible .flow-step-button {
  animation: flowNodeIn 620ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
  animation-delay: calc(var(--flow-index, 1) * 85ms + 180ms);
}

.flow-step-button span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: center;
  border-radius: 999px;
  color: var(--flow-step-color, var(--accent-strong));
  font-size: 0.76rem;
  font-weight: 900;
}

.flow-step-button strong {
  display: none;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.08;
}

.flow-step-button:hover,
.flow-step-button:focus-visible,
.flow-step-button.is-active {
  border-color: color-mix(in srgb, var(--flow-step-color, var(--accent-strong)) 46%, transparent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 56px rgba(17, 20, 18, 0.14);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.05);
}

:root[data-theme="dark"] .flow-step-button:hover,
:root[data-theme="dark"] .flow-step-button:focus-visible,
:root[data-theme="dark"] .flow-step-button.is-active {
  background: rgba(30, 37, 34, 0.9);
}

:root[data-theme="crazy"] .flow-step-button:hover,
:root[data-theme="crazy"] .flow-step-button:focus-visible,
:root[data-theme="crazy"] .flow-step-button.is-active {
  background: rgba(18, 0, 32, 0.94);
  box-shadow: 0 0 26px rgba(247, 255, 0, 0.2), 0 0 44px rgba(13, 255, 242, 0.14);
}

@keyframes flowConnectorIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 0.58;
    transform: scale(1);
  }
}

@keyframes flowSegmentIn {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-3deg);
  }
  to {
    opacity: 0.88;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes flowNodeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

.runtime-section {
  padding-top: 42px;
}

.workflow-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 22px;
  padding: 0;
  list-style: none;
}

.workflow-chip-row li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.runtime-grid,
.developer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.runtime-card,
.developer-card {
  padding: 20px;
}

.runtime-card p,
.developer-card p {
  margin-bottom: 0;
}

.developer-page-hero {
  padding-bottom: 36px;
}

.developer-page-hero .section-heading {
  max-width: 860px;
  margin-bottom: 0;
}

.developer-page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 3.9vw, 3.85rem);
}

.developer-contract-section,
.developer-services-section {
  border-top: 1px solid var(--line);
}

.developer-services-section {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #f2f6f1;
}

:root[data-theme="dark"] .developer-services-section {
  background: #111614;
}

.developer-services-section > * {
  width: var(--container);
  margin-inline: auto;
}

.service-matrix {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 160px minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.service-row span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.service-row h3,
.service-row p {
  margin-bottom: 0;
}

.setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  padding: 28px;
  background: var(--ink);
  color: #f7f8f2;
}

:root[data-theme="crazy"] .setup-panel {
  background:
    linear-gradient(135deg, rgba(255, 0, 214, 0.42), rgba(9, 0, 28, 0.92) 42%, rgba(13, 255, 242, 0.3)),
    #130022;
  border-color: rgba(247, 255, 0, 0.42);
  color: #ffffff;
  box-shadow: 0 0 32px rgba(255, 0, 214, 0.32), 0 0 54px rgba(13, 255, 242, 0.18);
}

.setup-panel .eyebrow,
.setup-panel p {
  color: rgba(247, 248, 242, 0.78);
}

:root[data-theme="crazy"] .setup-panel .eyebrow,
:root[data-theme="crazy"] .setup-panel p {
  color: rgba(255, 249, 255, 0.82);
}

.setup-panel .eyebrow,
.setup-panel p {
  color: rgba(247, 248, 242, 0.78);
}

.setup-panel h2 {
  color: #f7f8f2;
}

:root[data-theme="crazy"] .setup-panel h2 {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 0, 214, 0.54);
}

:root[data-theme="dark"] .setup-panel {
  background: #f7f8f2;
  color: #0d100f;
}

:root[data-theme="dark"] .setup-panel h2 {
  color: #0d100f;
}

:root[data-theme="dark"] .setup-panel p {
  color: rgba(13, 16, 15, 0.74);
}

.setup-list {
  display: grid;
  gap: 10px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
  font-weight: 800;
}

:root[data-theme="dark"] .setup-list a,
.setup-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:root[data-theme="dark"] .setup-list li {
  border-top-color: rgba(13, 16, 15, 0.16);
}

:root[data-theme="crazy"] .setup-list li {
  border-top-color: rgba(13, 255, 242, 0.24);
}

.legal-hero,
.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 38px;
}

.legal-hero .section-heading,
.pricing-hero .section-heading {
  max-width: 880px;
  margin-bottom: 0;
}

.legal-hero h1,
.pricing-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 3.9vw, 3.85rem);
}

.legal-update-card,
.pricing-note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.legal-update-card span,
.pricing-note-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-update-card strong,
.pricing-note-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.05;
}

.legal-update-card p,
.pricing-note-card p {
  margin-bottom: 0;
}

.legal-docs-section,
.package-section,
.security-section {
  border-top: 1px solid var(--line);
}

.package-section {
  padding-top: 48px;
}

.data-map-section,
.ai-use-section,
.package-compare-section {
  width: 100%;
  border-block: 1px solid var(--line);
  background: #f2f6f1;
}

:root[data-theme="dark"] .data-map-section,
:root[data-theme="dark"] .ai-use-section,
:root[data-theme="dark"] .package-compare-section {
  background: #111614;
}

.data-map-section > *,
.ai-use-section > *,
.package-compare-section > * {
  width: var(--container);
  margin-inline: auto;
}

.legal-doc-grid,
.pricing-grid,
.security-grid,
.ai-principles,
.price-factor-grid {
  display: grid;
  gap: 14px;
}

.legal-doc-grid,
.security-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.ai-principles,
.price-factor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-doc-card,
.pricing-card,
.security-card,
.ai-card,
.price-factor,
.data-row,
.legal-checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.legal-doc-card span,
.pricing-card-head span,
.data-row span,
.price-factor span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-doc-card h3,
.legal-doc-card p,
.security-card h3,
.security-card p,
.ai-card h3,
.ai-card p,
.price-factor h3,
.price-factor p,
.data-row h3,
.data-row p {
  margin-bottom: 0;
}

.legal-doc-card h3,
.security-card h3,
.ai-card h3,
.price-factor h3,
.data-row h3 {
  margin-bottom: 10px;
}

.legal-document-room {
  display: grid;
  grid-template-columns: minmax(230px, 0.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  scroll-margin-top: calc(var(--header-height) + 18px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(15, 143, 104, 0.08), transparent 34%),
    var(--surface-strong);
  padding: 14px;
  box-shadow: var(--shadow);
}

.legal-print-cover {
  display: none;
}

.legal-document-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.legal-document-sidebar h3 {
  margin-bottom: 10px;
}

.legal-document-sidebar p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.legal-tabs {
  display: grid;
  gap: 8px;
}

.legal-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.legal-tab:hover,
.legal-tab:focus-visible {
  border-color: rgba(15, 143, 104, 0.42);
  background: var(--accent-soft);
  color: var(--ink);
}

.legal-tab.is-active {
  border-color: rgba(15, 143, 104, 0.5);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.legal-print-action {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.legal-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 143, 104, 0.36);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.legal-print-button:hover,
.legal-print-button:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
}

.legal-print-button span {
  position: relative;
  width: 17px;
  height: 14px;
  flex: 0 0 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.legal-print-button span::before,
.legal-print-button span::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  border: 2px solid currentColor;
}

.legal-print-button span::before {
  top: -8px;
  height: 7px;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.legal-print-button span::after {
  bottom: -7px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
}

.legal-viewer {
  position: relative;
  max-height: min(78vh, 920px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(17, 20, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 18, 0.04) 1px, transparent 1px),
    #eef2ed;
  background-size: 28px 28px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  scrollbar-color: rgba(15, 143, 104, 0.55) transparent;
}

.legal-page {
  width: min(100%, 820px);
  margin-inline: auto;
  border: 1px solid #d7ded4;
  background: #ffffff;
  color: #111412;
  padding: 48px 54px 56px;
  box-shadow: 0 24px 70px rgba(17, 20, 18, 0.16);
}

.legal-page[hidden] {
  display: none;
}

.legal-page:focus-visible {
  outline-offset: -6px;
}

.legal-page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: end;
  margin-bottom: 30px;
  border-bottom: 2px solid #111412;
  padding-bottom: 18px;
}

.legal-page-head span,
.legal-page-head small {
  color: #5d6861;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-page-head strong {
  grid-column: 1;
  color: #111412;
  font-size: clamp(1.45rem, 2.45vw, 2rem);
  line-height: 1.04;
}

.legal-page-head small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  text-align: right;
}

.legal-page section + section {
  margin-top: 22px;
}

.legal-page h4 {
  margin: 0 0 8px;
  color: #111412;
  font-size: 1rem;
  line-height: 1.25;
}

.legal-page p {
  margin-bottom: 0;
  color: #303934;
  font-size: 0.94rem;
  line-height: 1.58;
}

.legal-page p + p {
  margin-top: 10px;
}

.subprocessor-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #d7ded4;
  border-radius: 7px;
  color: #303934;
  font-size: 0.84rem;
}

.subprocessor-table > div {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
}

.subprocessor-table > div + div {
  border-top: 1px solid #d7ded4;
}

.subprocessor-table strong,
.subprocessor-table span {
  padding: 10px;
}

.subprocessor-table strong {
  background: #eef4ef;
  color: #111412;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.subprocessor-table span + span,
.subprocessor-table strong + strong {
  border-left: 1px solid #d7ded4;
}

.data-map {
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: 160px minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-split-copy p {
  margin-bottom: 0;
}

.legal-checklist h3 {
  margin-bottom: 16px;
}

.legal-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 700;
}

.pricing-card {
  --tier-rgb: 15, 143, 104;
  --tier: var(--accent);
  --tier-dark: var(--accent-strong);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  border-radius: 20px;
  border-color: rgba(var(--tier-rgb), 0.22);
  padding: 26px 24px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--tier-rgb), 0.14), transparent 60%),
    var(--surface);
  box-shadow:
    0 1px 2px rgba(17, 20, 18, 0.04),
    0 12px 30px rgba(17, 20, 18, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--tier-rgb), 0.45);
  box-shadow:
    0 2px 4px rgba(17, 20, 18, 0.05),
    0 26px 60px rgba(var(--tier-rgb), 0.18);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--tier-rgb), 0.85) 28%, rgba(var(--tier-rgb), 0.85) 72%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    transition: none;
  }
  .pricing-card:hover {
    transform: none;
  }
}

.pricing-card-explorer {
  --tier-rgb: 47, 116, 196;
  --tier: #2f74c4;
  --tier-dark: #1f5fa4;
}

.pricing-card-builder {
  --tier-rgb: 15, 143, 104;
  --tier: var(--accent);
  --tier-dark: var(--accent-strong);
}

.pricing-card-operator {
  --tier-rgb: 198, 113, 37;
  --tier: #c67125;
  --tier-dark: #9d5515;
}

:root[data-theme="dark"] .pricing-card-explorer {
  --tier: #7eb5ff;
  --tier-dark: #b8d8ff;
}

:root[data-theme="dark"] .pricing-card-builder {
  --tier: #30c291;
  --tier-dark: #9ff0cc;
}

:root[data-theme="dark"] .pricing-card-operator {
  --tier: #f0b76d;
  --tier-dark: #ffd59a;
}

.pricing-card-featured {
  border-color: rgba(15, 143, 104, 0.5);
  box-shadow:
    0 0 0 1px rgba(15, 143, 104, 0.35),
    0 1px 2px rgba(17, 20, 18, 0.05),
    0 28px 70px rgba(15, 143, 104, 0.18);
}

@media (min-width: 941px) {
  .pricing-card-featured {
    transform: translateY(-14px);
  }
  .pricing-card-featured:hover {
    transform: translateY(-20px);
  }
}

.package-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.pricing-card-head .package-tier,
.pricing-card-head .package-stage {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pricing-card-head .package-tier {
  border: 1px solid rgba(var(--tier-rgb), 0.32);
  background: rgba(var(--tier-rgb), 0.12);
  color: var(--tier-dark);
}

.pricing-card-head .package-stage {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

:root[data-theme="dark"] .pricing-card-head .package-stage {
  background: rgba(255, 255, 255, 0.06);
}

.pricing-card-head h2 {
  max-width: 12ch;
  margin-bottom: 10px;
  font-size: clamp(1.42rem, 1.7vw, 1.82rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.pricing-card-builder .pricing-card-head h2 {
  max-width: 12ch;
}

.package-purpose {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.38;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.pricing-card-head .price-amount {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
}

.pricing-card-head .price-period {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.pricing-card > p {
  margin-bottom: 0;
}

.package-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(var(--tier-rgb), 0.24);
  border-radius: 999px;
  background: rgba(var(--tier-rgb), 0.1);
  color: var(--tier-dark);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.package-includes {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(var(--tier-rgb), 0.16);
  border-radius: 14px;
  background: rgba(var(--tier-rgb), 0.05);
  padding: 16px;
}

.package-includes > strong {
  color: var(--tier-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.package-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  list-style: none;
}

.package-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 760;
  line-height: 1.34;
}

.package-list li::before,
.package-list li::after {
  content: "";
  position: absolute;
}

.package-list li::before {
  left: 0;
  top: 0.17em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tier);
}

.package-list li::after {
  left: 5px;
  top: calc(0.17em + 3px);
  width: 5px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.package-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pricing-card .button {
  align-self: stretch;
}

.package-capability-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid rgba(15, 143, 104, 0.28);
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
}

.package-capability-strip p {
  margin-bottom: 0;
  color: inherit;
  font-weight: 900;
  line-height: 1.25;
}

.package-capability-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-capability-strip li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

:root[data-theme="dark"] .package-capability-strip {
  background: #111614;
  color: #f7f8f2;
}

:root[data-theme="crazy"] .package-capability-strip {
  background:
    linear-gradient(90deg, rgba(255, 0, 214, 0.42), rgba(9, 0, 28, 0.92) 45%, rgba(13, 255, 242, 0.32)),
    #130022;
  border-color: rgba(247, 255, 0, 0.42);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 0, 214, 0.28), 0 0 48px rgba(13, 255, 242, 0.16);
}

:root[data-theme="crazy"] .package-capability-strip li {
  border-color: rgba(247, 255, 0, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.package-requirements {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(15, 143, 104, 0.1), transparent 36%),
    var(--surface-strong);
  padding: 22px;
}

.package-requirements h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.package-requirements p {
  margin-bottom: 0;
}

.ai-setup-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-setup-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.ai-setup-list span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-setup-list p {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.requirements-line {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink);
  font-weight: 900;
}

.auth-section,
.account-hero,
.account-grid-section {
  padding-top: calc(var(--header-height) + 30px);
}

.auth-shell {
  width: min(760px, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.auth-note,
.account-hero-panel,
.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(17, 20, 18, 0.08);
}

:root[data-theme="crazy"] .auth-note,
:root[data-theme="crazy"] .account-hero-panel,
:root[data-theme="crazy"] .account-panel {
  border-color: rgba(13, 255, 242, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 0, 214, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(13, 255, 242, 0.12), transparent 52%),
    rgba(18, 0, 32, 0.88);
  box-shadow: 0 0 26px rgba(255, 0, 214, 0.16), 0 0 44px rgba(13, 255, 242, 0.1);
}

.auth-note {
  padding: 18px;
}

.auth-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.auth-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.account-hero {
  padding-bottom: 0;
}

.account-hero-panel {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.account-hero-intro {
  display: grid;
  gap: 4px;
  align-content: start;
}

.account-hero-panel h1 {
  margin-bottom: 6px;
  max-width: 16ch;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.account-hero-panel p {
  max-width: 56ch;
  margin-bottom: 0;
}

.account-identity {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-identity-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-identity span,
.account-identity strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.account-identity strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.account-identity .button {
  margin-top: 6px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 7px 13px 7px 11px;
  font-size: 0.88rem;
}

.account-status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.account-status.is-success .account-status-dot {
  background: var(--accent);
}

.account-status.is-warning .account-status-dot {
  background: #d9a020;
}

.account-status.is-error .account-status-dot {
  background: #c0492f;
}

.account-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250, 250, 245, 0.72);
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .account-loading-overlay {
  background: rgba(11, 14, 13, 0.72);
}

:root[data-theme="crazy"] .account-loading-overlay {
  background:
    linear-gradient(145deg, rgba(255, 0, 214, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(13, 255, 242, 0.12), transparent 52%),
    rgba(6, 0, 12, 0.78);
}

.account-loading-overlay[hidden] {
  display: none;
}

.account-loading-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 20, 18, 0.16);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
}

:root[data-theme="crazy"] .account-loading-card {
  border-color: rgba(13, 255, 242, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 0, 214, 0.14), transparent 48%),
    linear-gradient(315deg, rgba(13, 255, 242, 0.14), transparent 52%),
    rgba(18, 0, 32, 0.94);
  box-shadow: 0 0 34px rgba(255, 0, 214, 0.2), 0 0 58px rgba(13, 255, 242, 0.14);
}

.account-loading-spinner {
  width: 44px;
  aspect-ratio: 1;
  border: 4px solid rgba(15, 143, 104, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: accountSpin 780ms linear infinite;
}

.account-loading-card strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.15;
}

.account-loading-card p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

@keyframes accountSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loading-spinner {
    animation: none;
  }
}

.account-grid-section {
  padding-top: 24px;
}

.account-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.account-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.account-wide-panel {
  grid-column: 1 / -1;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-panel-head h2,
.account-plan-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(15, 143, 104, 0.24);
  border-radius: 999px;
  background: rgba(15, 143, 104, 0.1);
  color: var(--accent-strong);
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.account-pill--unbound {
  border-color: rgba(217, 160, 32, 0.32);
  background: rgba(217, 160, 32, 0.12);
  color: #9a6812;
}

.account-pill--revoked,
.account-pill--muted {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}

.account-plan-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.account-plan-meta div {
  display: grid;
  gap: 4px;
}

.account-plan-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-plan-meta strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.quota-meter {
  display: grid;
  gap: 8px;
}

.quota-meter p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.quota-meter-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 143, 104, 0.12);
}

.quota-meter-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--citrus));
  transition: width 260ms ease;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-stat-grid div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  padding: 14px;
}

.account-stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.account-muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.account-token-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.account-token-created {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 143, 104, 0.22);
  border-radius: 7px;
  background: rgba(15, 143, 104, 0.08);
  padding: 14px;
}

.account-token-created[hidden] {
  display: none;
}

.account-token-created strong,
.account-token-created span {
  display: block;
}

.account-token-created strong {
  color: var(--ink);
}

.account-token-created span {
  color: var(--muted);
  font-weight: 750;
}

.account-token-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.account-token-copy-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 720px) {
  .account-token-form,
  .account-token-copy-row {
    grid-template-columns: 1fr;
  }
}

.account-list {
  display: grid;
  gap: 10px;
}

#pluginTokensList {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.account-row,
.account-empty {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  padding: 13px;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.account-row strong,
.account-row span {
  display: block;
  overflow-wrap: anywhere;
}

.account-row strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.account-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 740;
}

.account-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.account-links {
  display: inline-flex !important;
  gap: 10px;
}

.account-links a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-empty {
  color: var(--muted);
  font-weight: 750;
}

.account-token-mask {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem !important;
  color: var(--ink) !important;
}

.account-token-row.is-revoked {
  opacity: 0.58;
}

.account-token-row.is-revoked strong {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.pricing-lead-section {
  border-top: 1px solid var(--line);
}

.proof-build-section {
  padding-top: 48px;
}

.legal-resource-panel {
  align-items: start;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: start;
}

.lead-panel,
.lead-form {
  padding: 24px;
}

.lead-panel {
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #f7f8f2;
}

:root[data-theme="crazy"] .lead-panel {
  background:
    linear-gradient(135deg, rgba(255, 0, 214, 0.42), rgba(9, 0, 28, 0.92) 42%, rgba(13, 255, 242, 0.3)),
    #130022;
  border-color: rgba(247, 255, 0, 0.42);
  color: #ffffff;
  box-shadow: 0 0 32px rgba(255, 0, 214, 0.32), 0 0 54px rgba(13, 255, 242, 0.18);
}

.lead-panel .eyebrow,
.lead-panel p {
  color: rgba(247, 248, 242, 0.78);
}

:root[data-theme="crazy"] .lead-panel .eyebrow {
  color: #f7ff00;
}

:root[data-theme="crazy"] .lead-panel p {
  color: rgba(255, 249, 255, 0.82);
}

.lead-panel h2 {
  color: #f7f8f2;
}

:root[data-theme="crazy"] .lead-panel h2 {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 0, 214, 0.54);
}

.proof-build-section .lead-panel {
  min-height: auto;
  align-content: start;
}

:root[data-theme="dark"] .lead-panel {
  background: #f7f8f2;
  color: #0d100f;
}

:root[data-theme="dark"] .lead-panel .eyebrow {
  color: var(--accent-strong);
}

:root[data-theme="dark"] .lead-panel h2 {
  color: #0d100f;
}

:root[data-theme="dark"] .lead-panel p {
  color: rgba(13, 16, 15, 0.74);
}

:root[data-theme="dark"] .lead-prompts li {
  border-top-color: rgba(13, 16, 15, 0.16);
}

:root[data-theme="crazy"] .lead-prompts li {
  border-top-color: rgba(13, 255, 242, 0.24);
}

.lead-note {
  margin-bottom: 0;
}

.lead-prompts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-prompts li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
  font-weight: 700;
}

.lead-form {
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.lead-form > .field {
  margin-bottom: 12px;
}

.proof-needs {
  margin: 0 0 12px;
  border: 0;
  padding: 0;
}

.proof-needs legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--ink);
}

.proof-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 12px;
}

:root[data-theme="crazy"] .proof-checkbox-grid,
:root[data-theme="crazy"] .captcha-field {
  border-color: rgba(13, 255, 242, 0.34);
  background: rgba(10, 0, 20, 0.72);
  box-shadow: inset 0 0 18px rgba(13, 255, 242, 0.07);
}

.proof-checkbox-grid label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 850;
}

:root[data-theme="crazy"] .proof-checkbox-grid label {
  border-color: rgba(255, 0, 214, 0.32);
  background: rgba(40, 0, 62, 0.86);
  color: #fff9ff;
}

.proof-checkbox-grid input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--accent);
}

.proof-followup {
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.honeypot {
  display: none;
}

.captcha-field {
  margin-bottom: 12px;
  border: 1px solid rgba(15, 143, 104, 0.22);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 12px;
}

.captcha-field strong {
  color: var(--accent-strong);
  font-weight: 900;
}

.captcha-field input[type="text"] {
  max-width: 180px;
  background: var(--surface);
}

:root[data-theme="crazy"] .captcha-field input[type="text"],
:root[data-theme="crazy"] .check-field input {
  border-color: rgba(13, 255, 242, 0.34);
  background: rgba(10, 0, 20, 0.72);
  color: #fff9ff;
}

.check-field {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 6px 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.check-field input {
  appearance: none;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  accent-color: var(--accent);
}

.check-field input:checked {
  background: var(--accent);
  box-shadow: inset 0 0 0 8px var(--surface);
}

:root[data-theme="crazy"] .check-field input:checked {
  background: #f7ff00;
  box-shadow: inset 0 0 0 8px #180025, 0 0 16px rgba(247, 255, 0, 0.54);
}

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

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-warning {
  color: #9a6812;
}

.form-status.is-error {
  color: #a23625;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

:root[data-theme="crazy"] .site-footer {
  background: rgba(12, 0, 22, 0.92);
  border-top-color: rgba(255, 0, 214, 0.28);
  box-shadow: 0 -18px 44px rgba(255, 0, 214, 0.12);
}

.footer-inner {
  width: var(--container);
  min-height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 10px;
  transition: background 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.footer-inner p {
  max-width: 440px;
  margin-bottom: 0;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(17, 20, 18, 0.48);
  padding: 22px;
}

.modal-backdrop[hidden] {
  display: none;
}

.preview-modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(780px, calc(100svh - 44px));
  overflow: auto;
  padding: 24px;
  box-shadow: var(--shadow);
}

.preview-modal h2 {
  max-width: 24ch;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.modal-facts div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.modal-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.preview-frame-shell {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.preview-frame-shell[hidden] {
  display: none;
}

.preview-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@page {
  size: A4;
  margin: 16mm;
}

@media print {
  html,
  body {
    width: auto;
    min-width: 0;
    margin: 0 !important;
    background: #ffffff !important;
    color: #111412 !important;
    font-size: 10.5pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }

  a[href]::after {
    content: "" !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  body > .skip-link,
  body > .site-header,
  body > .site-footer,
  main > section {
    display: none !important;
  }

  main,
  main > .legal-docs-section {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
  }

  .legal-docs-section > .section-heading,
  .legal-document-sidebar {
    display: none !important;
  }

  .legal-document-room {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
  }

  .legal-print-cover {
    display: flex !important;
    min-height: calc(297mm - 32mm);
    flex-direction: column;
    justify-content: space-between;
    color: #111412 !important;
    break-after: page;
    page-break-after: always;
  }

  .legal-print-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111412 !important;
    font-size: 22pt;
    font-weight: 900;
    line-height: 1;
  }

  .legal-print-logo {
    display: block;
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    background: currentColor;
    -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat;
    mask: url("../assets/favicon.svg") center / contain no-repeat;
  }

  .legal-print-cover .eyebrow {
    color: #09684e !important;
    font-size: 9pt;
    font-weight: 900;
  }

  .legal-print-cover h2 {
    max-width: 9.5ch;
    margin-bottom: 18px;
    color: #111412 !important;
    font-size: 42pt;
    line-height: 0.98;
  }

  .legal-print-cover p {
    max-width: 55ch;
    color: #303934 !important;
    font-size: 12pt;
  }

  .legal-print-meta {
    display: grid;
    gap: 6px;
    border-top: 2px solid #111412;
    padding-top: 16px;
  }

  .legal-print-meta span,
  .legal-print-meta small {
    color: #5d6861 !important;
    font-size: 8pt;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .legal-print-meta strong {
    color: #111412 !important;
    font-size: 17pt;
  }

  .legal-viewer {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
  }

  .legal-page,
  .legal-page[hidden] {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #111412 !important;
  }

  .legal-page + .legal-page {
    break-before: page;
    page-break-before: always;
  }

  .legal-page-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 18px;
    margin-bottom: 18px;
    border-bottom: 1.5pt solid #111412;
    padding-bottom: 12px;
  }

  .legal-page-head span,
  .legal-page-head small {
    color: #5d6861 !important;
    font-size: 7.5pt;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .legal-page-head strong {
    color: #111412 !important;
    font-size: 23pt;
    line-height: 1.02;
  }

  .legal-page section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .legal-page section + section {
    margin-top: 14px;
  }

  .legal-page h4 {
    margin-bottom: 5px;
    color: #111412 !important;
    font-size: 10.5pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .legal-page p {
    color: #303934 !important;
    font-size: 9.5pt;
    line-height: 1.48;
  }

  .legal-page p + p {
    margin-top: 6px;
  }

  .subprocessor-table {
    border-color: #cfd8d0 !important;
    font-size: 8.5pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .subprocessor-table strong,
  .subprocessor-table span {
    padding: 7px;
  }

  .subprocessor-table strong {
    background: #eef4ef !important;
    color: #111412 !important;
  }
}
