:root {
  --font-sans: "Mona Sans", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
  --app-bg: #0a0f16;
  --app-bg-deep: #070b10;
  --panel-bg: #0c131c;
  --card-bg: #10151c;
  --card-bg-hover: #111923;
  --input-bg: #10151c;
  --border-subtle: rgba(76, 92, 113, 0.18);
  --border-strong: rgba(76, 92, 113, 0.34);
  --divider-subtle: rgba(76, 92, 113, 0.14);
  --text-primary: #f3f5f7;
  --text-secondary: #b3bbc7;
  --text-muted: #7f8997;
  --accent-primary: #fa0a39;
  --accent-primary-hover: #ff1748;
  --accent-primary-pressed: #d00630;
  --accent-soft-bg: rgba(250, 10, 57, 0.14);
  --accent-soft-border: rgba(250, 10, 57, 0.42);
  --button-hover-bg: rgba(248, 23, 70, 0.1);
  --button-hover-border: rgba(248, 23, 70, 0.28);
  --success: #35e884;
  --warning: #e0a126;
  --danger: #ff1748;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-accent: 0 18px 34px rgba(250, 10, 57, 0.24);
  --radius-xs: 0.42rem;
  --radius-sm: 0.58rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.95rem;
  --button-radius: 0.58rem;
  --header-bg-scrolled: rgba(10, 15, 22, 0.78);
  --header-shadow-scrolled: 0 12px 32px rgba(0, 0, 0, 0.32);
}

html {
  background: var(--app-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 6.2rem;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 520;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--app-bg);
  background-image:
    radial-gradient(70rem 38rem at 50% -18rem, rgba(250, 10, 57, 0.14), transparent 72%),
    radial-gradient(64rem 30rem at 100% 9rem, rgba(65, 91, 132, 0.11), transparent 68%),
    linear-gradient(180deg, #0d121a 0%, #0a0f16 38%, #080c12 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.app-body.nav-open,
.cookie-modal-open,
.plan-change-modal-open {
  overflow: hidden;
}

:where(a),
:where(a:visited) {
  color: #ff5c74;
  text-decoration-color: rgba(250, 10, 57, 0.48);
  text-underline-offset: 3px;
}

:where(a:hover),
:where(a:focus-visible) {
  color: #ff8598;
  text-decoration-color: rgba(250, 10, 57, 0.9);
}

:focus-visible {
  outline: 2px solid rgba(250, 10, 57, 0.78);
  outline-offset: 3px;
}

.layout-container {
  width: min(1320px, calc(100% - 2rem));
  max-width: 100%;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, backdrop-filter 0.18s ease;
}

html.header-scroll-active .site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: var(--header-shadow-scrolled);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.site-header-inner-home {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  position: relative;
}

.brand,
.site-nav-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.64rem;
  color: var(--text-primary);
  text-decoration: none;
  min-width: 0;
  min-height: 2.8rem;
}

.brand-mark,
.site-nav-mobile-brand-mark {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.brand-wordmark,
.site-nav-mobile-brand-wordmark {
  width: auto;
  height: 2.38rem;
  max-width: 9.85rem;
  transform: none;
}

.home-section-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.home-section-nav {
  justify-content: center;
  min-width: 0;
}

.site-header-inner-home .home-section-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-header-inner-home .site-nav {
  justify-self: end;
}

.site-nav-mobile-head,
.site-nav-close,
.home-nav-mobile-links,
.site-nav-backdrop {
  display: none;
}

.site-nav-mobile-main,
.site-nav-mobile-auth {
  display: contents;
}

.home-section-link,
.nav-link,
.admin-summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.home-section-link:hover,
.nav-link:hover,
.admin-summary:hover,
.admin-dropdown:focus-within .admin-summary {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.46rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--button-radius);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.27rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
}

.admin-dropdown {
  position: relative;
}

.admin-dropdown::after {
  content: "";
  position: absolute;
  left: -0.2rem;
  right: -0.2rem;
  top: 100%;
  height: 0.55rem;
}

.admin-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.18rem);
  min-width: 13.5rem;
  padding: 0.36rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(12, 19, 28, 0.98);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.15rem;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.16s;
}

.admin-dropdown:hover .admin-dropdown-menu,
.admin-dropdown:focus-within .admin-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.admin-dropdown-link {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 0.5rem 0.58rem;
  text-decoration: none;
}

.admin-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.inline-form {
  margin: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  margin: 0;
  padding: 0 0.2rem;
  color: var(--text-muted);
}

.language-switch-option {
  border: 0;
  background: transparent;
  padding: 0.16rem 0.06rem;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.language-switch-option:hover,
.language-switch-option.is-active {
  color: var(--text-primary);
}

.language-switch-separator {
  color: rgba(179, 187, 199, 0.38);
}

.main-content {
  flex: 1;
  padding-block: 2rem 2.8rem;
  min-width: 0;
}

.main-content-home {
  width: 100%;
  max-width: none;
  padding-top: 0.45rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  min-height: 2.35rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.62rem 0.86rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.btn-small {
  min-height: 2rem;
  padding: 0.45rem 0.68rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-primary-hover), var(--accent-primary-pressed));
  border-color: rgba(255, 92, 116, 0.9);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(250, 10, 57, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff315c, #e10735);
  box-shadow: 0 14px 34px rgba(250, 10, 57, 0.34);
}

.btn-neutral,
.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-neutral:hover,
.btn-ghost:hover {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-border);
}

.btn-danger {
  color: #ffd7df;
  background: rgba(255, 23, 72, 0.14);
  border-color: rgba(255, 23, 72, 0.42);
}

.btn-row,
.action-row,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
}

.page-head {
  margin-bottom: 1.35rem;
}

.page-head-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.page-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-subtitle,
.section-subtitle {
  margin: 0.54rem 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-title,
h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #ff93a4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel,
.surface-card {
  background: rgba(12, 19, 28, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: none;
}

.surface-card {
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(12, 19, 28, 0.96)),
    radial-gradient(34rem 18rem at 80% -20%, rgba(250, 10, 57, 0.12), transparent 70%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.section-shell {
  width: min(1180px, calc(100% - 2rem));
  max-width: 100%;
  margin-inline: auto;
}

.section-band {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.editorial-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.why-grid {
  grid-template-columns: minmax(18rem, 0.56fr) minmax(0, 1.44fr);
}

.why-grid .page-head {
  max-width: 28rem;
}

.why-grid .editorial-row {
  grid-template-columns: 3.6rem minmax(11rem, 0.78fr) minmax(0, 1fr);
}

.editorial-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
}

.editorial-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.18rem 0;
  border-bottom: 1px solid var(--divider-subtle);
}

.row-index {
  color: #ff5c74;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.row-title {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 750;
}

.row-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.home-hero {
  min-height: calc(100vh - 5.8rem);
  display: grid;
  place-items: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(4.75rem, 9.8vw, 8.7rem) clamp(2.2rem, 5vw, 4.6rem);
}

.home-hero-grid {
  width: min(1220px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.7rem, 4vw, 3rem);
  align-items: center;
  justify-items: center;
}

.home-copy {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.home-kicker {
  margin: 0 0 0.82rem;
  color: #ff93a4;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-brand-signal {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: clamp(2.65rem, 7.8vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.home-title {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.text-accent {
  color: var(--accent-primary);
}

.home-description {
  margin: 1.15rem auto 0;
  max-width: 43rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.68;
}

.home-hero-actions {
  margin-top: 1.25rem;
  justify-content: center;
}

.home-hero-points {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text-secondary);
  text-align: left;
  width: min(39rem, 100%);
  margin-inline: auto;
}

.home-hero-points li {
  position: relative;
  padding-left: 1.05rem;
}

.home-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: var(--accent-primary);
}

.product-shot {
  position: relative;
  width: min(1196px, 100%);
  margin-inline: auto;
  min-width: 0;
}

.product-shot-mobile-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.58rem;
}

.home-platforms {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
}

.home-platforms-shell {
  width: min(1180px, calc(100% - 2rem));
}

.platform-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--divider-subtle);
}

.platform-name {
  margin: 0;
  font-size: clamp(1.28rem, 2.8vw, 2rem);
  font-weight: 800;
}

.platform-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.62;
}

.feature-tags,
.home-bot-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tags li,
.home-bot-features li {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.54rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
}

.home-plans-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.6rem) / 3);
  grid-template-columns: none;
  gap: 0.72rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) rgba(250, 10, 57, 0.12);
}

.home-plans-shell {
  width: min(1180px, calc(100% - 2rem));
}

.home-plans-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.home-plans-head-actions .page-subtitle {
  margin: 0;
}

.pricing-currency-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.58rem;
  background: rgba(255, 255, 255, 0.025);
}

.pricing-currency-switcher span {
  padding: 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.pricing-currency-switcher button {
  min-width: 3.05rem;
  min-height: 1.95rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.pricing-currency-switcher button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.pricing-currency-switcher button[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(250, 10, 57, 0.5);
  background: linear-gradient(180deg, rgba(250, 10, 57, 0.28), rgba(250, 10, 57, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.25rem 0.8rem rgba(250, 10, 57, 0.12);
}

.pricing-currency-switcher button:focus-visible {
  outline: 2px solid var(--accent-primary-hover);
  outline-offset: 2px;
}

.home-plans-grid::-webkit-scrollbar {
  height: 0.68rem;
}

.home-plans-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(250, 10, 57, 0.1);
}

.home-plans-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.home-plan-card {
  min-width: 0;
  min-height: 31rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(12, 19, 28, 0.96)),
    radial-gradient(18rem 10rem at 50% 0%, rgba(250, 10, 57, 0.08), transparent 70%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-plan-card:hover,
.home-plan-card:focus-within,
.home-plan-card-centered {
  border-color: var(--accent-soft-border);
  box-shadow: var(--shadow-accent);
}

.home-plan-name {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.home-plan-topline {
  display: grid;
  gap: 0.3rem;
}

.home-plan-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 0.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(6, 10, 16, 0.42);
}

.home-plan-selector-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-plan-selector-single {
  grid-template-columns: minmax(0, 1fr);
}

.home-plan-selector button {
  min-height: 2.2rem;
  padding: 0.32rem 0.44rem;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-plan-selector button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.home-plan-selector button[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(250, 10, 57, 0.28), rgba(250, 10, 57, 0.18));
  border-color: rgba(250, 10, 57, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.3rem 0.9rem rgba(250, 10, 57, 0.14);
}

.home-plan-selector button:focus-visible {
  outline: 2px solid var(--accent-primary-hover);
  outline-offset: 2px;
}

.home-plan-selector-static {
  pointer-events: none;
}

.home-plan-selector-static span {
  min-height: 2.2rem;
  padding: 0.32rem 0.44rem;
  border: 1px solid rgba(250, 10, 57, 0.52);
  border-radius: 0.42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(250, 10, 57, 0.28), rgba(250, 10, 57, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.3rem 0.9rem rgba(250, 10, 57, 0.14);
}

.home-plan-price {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
}

.home-plan-copy {
  min-height: 2.7rem;
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.home-plan-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.42rem;
  line-height: 1.45;
}

.home-plan-form {
  margin: auto 0 0;
}

.home-plan-buy-btn,
.home-plan-current-btn {
  width: 100%;
  margin-top: auto;
  min-height: 2.7rem;
  justify-content: center;
}

.home-plan-card-centered .home-plan-buy-btn {
  background: linear-gradient(180deg, var(--accent-primary-hover), var(--accent-primary-pressed));
  border-color: rgba(255, 92, 116, 0.9);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(250, 10, 57, 0.28);
}

.home-plan-current-btn {
  cursor: default;
  color: #caffe3;
  border-color: rgba(53, 232, 132, 0.42);
  background: rgba(53, 232, 132, 0.12);
}

.home-partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 7rem;
}

.partners-shell {
  display: block;
  text-align: center;
}

.home-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.home-partner-logo {
  display: block;
  width: 14rem;
  max-width: 100%;
  height: auto;
}

.home-faq-grid {
  display: grid;
  border-top: 1px solid var(--divider-subtle);
}

.home-faq-item {
  border-bottom: 1px solid var(--divider-subtle);
}

.home-faq-question {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.05rem 2.6rem 1.05rem 0;
  color: var(--text-primary);
  font-weight: 750;
}

.home-faq-question::-webkit-details-marker {
  display: none;
}

.home-faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--text-secondary);
}

.home-faq-item[open] .home-faq-question::after {
  content: "-";
  border-color: var(--accent-soft-border);
  color: #ff93a4;
}

.home-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.home-faq-item[open] .home-faq-panel {
  grid-template-rows: 1fr;
}

.home-faq-panel > div {
  overflow: hidden;
}

.home-faq-answer {
  margin: 0;
  padding: 0 0 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.home-cta {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  padding: clamp(1.4rem, 4vw, 2.4rem) 0;
  border-top: 1px solid var(--divider-subtle);
  border-bottom: 1px solid var(--divider-subtle);
}

.home-cta-title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.05;
}

.home-cta-kicker {
  margin: 0;
  color: #ff93a4;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-grid {
  display: grid;
  gap: 1rem;
}

.split-grid-3 {
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.85fr);
}

.portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.34fr);
}

.portal-actions {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--divider-subtle);
}

.portal-actions h2 {
  font-size: 1.08rem;
}

.portal-actions-list {
  display: grid;
  gap: 0.68rem;
}

.portal-section,
.data-section,
.admin-section,
.form-panel {
  padding-block: 1.2rem;
  border-top: 1px solid var(--divider-subtle);
}

.portal-section:last-child,
.data-section:last-child,
.admin-section:last-child {
  border-bottom: 1px solid var(--divider-subtle);
}

.form-panel {
  width: min(34rem, 100%);
  margin-inline: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.94), rgba(12, 19, 28, 0.94)),
    radial-gradient(28rem 14rem at 50% -15%, rgba(250, 10, 57, 0.12), transparent 72%);
}

.form-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-shell {
  width: min(34rem, 100%);
  max-width: 34rem;
}

.form-stack {
  display: grid;
  gap: 0.94rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.72rem;
  color: var(--text-primary);
  background: var(--input-bg);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent-primary);
  transform: translateY(1px);
  margin-right: 0.35rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(250, 10, 57, 0.72);
  box-shadow: 0 0 0 3px rgba(250, 10, 57, 0.22);
}

.help-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.field-error,
.errorlist {
  margin: 0.28rem 0 0;
  padding-left: 0;
  list-style: none;
  color: #ffbdc9;
  font-size: 0.82rem;
}

.kv-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
}

.kv-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--divider-subtle);
}

.kv-key {
  color: var(--text-muted);
}

.kv-value {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
}

.stat-card {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--divider-subtle);
}

.stat-label {
  margin: 0 0 0.28rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

.admin-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-stats-period {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.admin-range-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  justify-content: flex-end;
  min-width: min(100%, 21rem);
}

.admin-range-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.12rem;
  min-width: 4.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--button-radius);
  padding: 0.38rem 0.72rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-range-link:hover,
.admin-range-link:focus-visible {
  color: var(--text-primary);
  background: var(--button-hover-bg);
  border-color: var(--button-hover-border);
  text-decoration: none;
}

.admin-range-link.is-active {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.admin-kpi-card {
  min-height: 7.2rem;
}

.admin-kpi-hint {
  margin: 0.42rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
}

.admin-chart-panel {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--divider-subtle);
  border-bottom: 1px solid var(--divider-subtle);
}

.admin-chart-panel:nth-child(2n),
.admin-chart-panel-wide {
  border-right: 0;
}

.admin-chart-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.admin-chart-panel-wide {
  grid-column: 1 / -1;
}

.admin-chart-canvas {
  position: relative;
  height: 17rem;
  min-height: 17rem;
}

.admin-chart-table {
  margin-top: 0.9rem;
  max-height: 15rem;
}

.admin-chart-table .data-table {
  font-size: 0.8rem;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 14, 0.74);
  backdrop-filter: blur(12px);
}

.admin-modal-backdrop[hidden] {
  display: none;
}

.admin-modal {
  width: min(72rem, 100%);
  max-height: min(48rem, calc(100vh - 2.5rem));
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(10, 15, 22, 0.98);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
}

.admin-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--divider-subtle);
  background: rgba(10, 15, 22, 0.98);
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-modal-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-lease-detail-body {
  padding: 1rem;
}

.admin-lease-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
  border-left: 1px solid var(--divider-subtle);
}

.admin-lease-metric {
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--divider-subtle);
  border-bottom: 1px solid var(--divider-subtle);
}

.admin-lease-metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-lease-metric strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.admin-lease-detail-section {
  margin-top: 1rem;
}

.admin-lease-detail-section h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.admin-lease-detail-table {
  max-height: 20rem;
}

.admin-lease-detail-table .data-table {
  font-size: 0.78rem;
}

.admin-stats-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(16, 21, 28, 0.74);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 0.74rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--divider-subtle);
}

.data-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid var(--divider-subtle);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-ok {
  color: #caffe3;
  background: rgba(53, 232, 132, 0.12);
  border-color: rgba(53, 232, 132, 0.36);
}

.pill-info {
  color: #c8e2ff;
  background: rgba(74, 144, 226, 0.13);
  border-color: rgba(74, 144, 226, 0.36);
}

.pill-warn {
  color: #ffe6b0;
  background: rgba(224, 161, 38, 0.13);
  border-color: rgba(224, 161, 38, 0.36);
}

.pill-bad {
  color: #ffd7df;
  background: rgba(255, 23, 72, 0.13);
  border-color: rgba(255, 23, 72, 0.38);
}

.note-box {
  border: 1px solid rgba(224, 161, 38, 0.32);
  border-radius: var(--radius-md);
  background: rgba(224, 161, 38, 0.09);
  color: #f3dca7;
  padding: 0.78rem 0.85rem;
  line-height: 1.55;
}

.usage-limit-panel {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider-subtle);
  color: var(--text-secondary);
}

.usage-limit-panel-head,
.usage-limit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.usage-limit-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.usage-limit-meta span:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

.usage-limit-tone-info {
  color: #c8e2ff;
}

.usage-limit-tone-warn {
  color: #ffe6b0;
}

.usage-limit-tone-bad {
  color: #ffd7df;
}

.usage-limit-list {
  display: grid;
  gap: 0.7rem;
}

.usage-limit-row {
  display: grid;
  gap: 0.38rem;
}

.usage-limit-track {
  position: relative;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.usage-limit-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.usage-limit-fill-info {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.usage-limit-fill-warn {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.usage-limit-fill-bad {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.usage-limit-fill-unlimited {
  background: linear-gradient(90deg, rgba(250, 10, 57, 0.62), rgba(255, 23, 72, 0.5));
}

.empty-state {
  color: var(--text-muted);
  padding: 0.85rem 0;
}

.section-gap {
  display: grid;
  gap: 0.7rem;
}

.mt-lg {
  margin-top: 1rem;
}

.mt-sm {
  margin-top: 0.45rem;
}

.download-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.download-shell {
  width: min(39rem, 100%);
}

.download-content {
  margin-top: 1rem;
}

.installer-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(12, 19, 28, 0.96)),
    radial-gradient(22rem 12rem at 50% -10%, rgba(250, 10, 57, 0.16), transparent 72%);
}

.installer-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.85rem;
}

.installer-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 0 0 5px rgba(250, 10, 57, 0.14);
}

.download-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
}

.download-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--divider-subtle);
  border-bottom: 1px solid var(--divider-subtle);
  margin-bottom: 1rem;
}

.download-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
}

.download-meta-label {
  color: var(--text-muted);
}

.download-meta-value {
  font-weight: 800;
}

.download-btn-wrap .btn {
  width: 100%;
}

.download-requirements-title {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
}

.download-requirements {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.download-note {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.download-note + .download-note {
  margin-top: 0.35rem;
}

.upload-progress {
  margin-top: 1rem;
  padding: 0.72rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-track {
  width: 100%;
  height: 0.62rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.62rem;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #ff6f47);
  transition: width 120ms linear;
}

.upload-progress-text {
  margin: 0;
  font-size: 0.82rem;
}

.upload-progress-speed {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.upload-progress-error {
  margin: 0.5rem 0 0;
  color: #ffbdc9;
  font-size: 0.82rem;
  white-space: pre-line;
}

.upload-progress.is-processing .upload-progress-fill {
  width: 100% !important;
  background: linear-gradient(90deg, var(--accent-primary), #ff6f47, var(--accent-primary));
  background-size: 200% 100%;
  animation: upload-processing 1.1s linear infinite;
}

.legal-tldr {
  margin: 0.78rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-soft-border);
  color: #ffd9df;
  background: var(--accent-soft-bg);
  line-height: 1.55;
}

.legal-content {
  display: grid;
  gap: 1.1rem;
}

.legal-content h2 {
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.62;
}

.legal-content ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.flash-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.flash {
  border-radius: var(--radius-md);
  padding: 0.66rem 0.82rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
}

.flash-ok {
  color: #d4ffe8;
  background: rgba(53, 232, 132, 0.12);
  border-color: rgba(53, 232, 132, 0.32);
}

.flash-warn {
  color: #ffe6b0;
  background: rgba(224, 161, 38, 0.13);
  border-color: rgba(224, 161, 38, 0.34);
}

.flash-error {
  color: #ffd7df;
  background: rgba(255, 23, 72, 0.13);
  border-color: rgba(255, 23, 72, 0.38);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--divider-subtle);
  background: rgba(7, 11, 16, 0.78);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1.1rem 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem 0.7rem;
}

.footer-link {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  padding: 0.22rem 0.3rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cookie-banner[hidden],
.cookie-modal-backdrop[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  max-width: 54rem;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(12, 19, 28, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 0.96rem 1rem;
}

.cookie-banner-title {
  margin: 0;
  font-size: 1rem;
}

.cookie-banner-copy {
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-banner-actions,
.cookie-modal-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal {
  width: min(42rem, 100%);
  max-height: 90vh;
  overflow: auto;
}

.cookie-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-modal-copy {
  margin: 0.58rem 0 0;
  color: var(--text-secondary);
  line-height: 1.56;
}

.plan-change-modal-backdrop[hidden] {
  display: none !important;
}

.plan-change-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(8px);
}

.plan-change-modal {
  width: min(36rem, 100%);
  max-height: min(90vh, 42rem);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.plan-change-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.plan-change-modal h2 {
  margin: 0;
  font-size: 1.18rem;
}

.plan-change-modal-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.plan-change-modal-close:hover,
.plan-change-modal-close:focus-visible {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  outline: none;
}

.plan-change-modal-copy,
.plan-change-modal-detail {
  margin: 0.78rem 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.plan-change-modal-detail {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan-change-modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-option-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.72rem 0.76rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
}

.cookie-option-text {
  display: grid;
  gap: 0.22rem;
}

.cookie-option-text span {
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.46s ease forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes upload-processing {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

@media (max-width: 1100px) {
  .site-header-inner-home {
    display: flex;
  }

  .home-section-nav {
    display: none;
  }

  .home-hero-grid,
  .editorial-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .home-copy {
    max-width: 48rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid .page-head {
    max-width: 42rem;
  }

  .why-grid .editorial-row {
    grid-template-columns: 4.2rem minmax(0, 0.75fr) minmax(0, 1fr);
  }

  .product-shot {
    width: min(980px, 100%);
  }

  .home-plans-grid {
    grid-auto-flow: column;
    grid-auto-columns: clamp(17.5rem, 42vw, 21rem);
    grid-template-columns: none;
  }
}

@media (max-width: 820px) {
  .split-grid-3 {
    grid-template-columns: 1fr;
  }

  .editorial-row,
  .platform-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .row-index {
    font-size: 0.76rem;
  }

  .home-hero {
    min-height: auto;
    padding-block: 3.2rem 2.9rem;
  }

  .page-head-split {
    display: grid;
    align-items: start;
    gap: 0.35rem;
  }

  .home-plans-head-actions {
    justify-content: flex-start;
  }

  .page-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .page-subtitle,
  .section-subtitle {
    max-width: 42rem;
  }
}

@media (max-width: 700px) {
  html,
  .app-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .layout-container,
  .section-shell,
  .home-hero-grid,
  .home-cta {
    width: min(1320px, calc(100% - 1.6rem));
    max-width: calc(100% - 1.6rem);
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 62;
  }

  .nav-toggle[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .site-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: max(0.82rem, env(safe-area-inset-top)) 0.95rem max(0.95rem, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(48rem 18rem at 92% -4%, rgba(250, 10, 57, 0.14), transparent 65%),
      linear-gradient(180deg, #0d121a 0%, #070b10 100%);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(6px);
    z-index: 60;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.08rem 0 0.9rem;
    border-bottom: 1px solid var(--divider-subtle);
  }

  .site-nav-close {
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.95rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .site-nav-mobile-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding-top: 0.55rem;
  }

  .home-nav-mobile-links {
    display: grid;
    width: 100%;
  }

  .site-nav .nav-link,
  .site-nav .admin-summary {
    justify-content: flex-start;
    min-height: 0;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid var(--divider-subtle);
    border-radius: 0;
    color: #f8fbff;
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    font-weight: 450;
    line-height: 1.14;
  }

  .site-nav-mobile-auth {
    display: grid;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--divider-subtle);
  }

  .site-nav-mobile-auth .nav-link-auth-mobile-center {
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.82rem 1rem;
  }

  .site-nav .btn,
  .inline-form,
  .inline-form .btn {
    width: 100%;
  }

  .admin-dropdown,
  .admin-dropdown-menu {
    width: 100%;
  }

  .admin-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .main-content {
    padding-block: 1.25rem 2rem;
  }

  .home-title {
    font-size: clamp(2.05rem, 10.4vw, 3.05rem);
    line-height: 1.04;
  }

  .home-hero-grid {
    gap: 1.45rem;
  }

  .home-description {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .product-shot {
    flex: 0 0 172%;
    max-width: none;
    margin-top: 1.1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .product-shot-mobile-frame {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    padding-left: calc((100vw - min(100vw, 100% - 1.6rem)) / 2 + 0.65rem);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  }

  .product-shot img {
    border-radius: 0.42rem;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  }

  .section-band {
    padding-block: 2.35rem;
  }

  .platform-row {
    padding: 1rem 0;
  }

  .platform-name {
    font-size: clamp(1.34rem, 7vw, 1.9rem);
  }

  .feature-tags li,
  .home-bot-features li {
    min-height: 1.62rem;
    padding: 0.24rem 0.47rem;
    font-size: 0.72rem;
  }

  .home-plans-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(16.8rem, 84vw);
    gap: 0.72rem;
    overflow-x: auto;
    padding-inline: 0.08rem;
    scroll-padding-inline: 0.08rem;
    scroll-snap-type: x mandatory;
  }

  .home-plan-card {
    scroll-snap-align: center;
    min-height: 29.4rem;
    padding: 0.95rem;
  }

  .home-plan-price {
    font-size: 1.22rem;
  }

  .partners-shell {
    text-align: center;
  }

  .home-partners-grid {
    min-height: 5.6rem;
  }

  .home-partner-logo {
    width: min(13.5rem, 80vw);
  }

  .home-faq-question {
    padding-block: 0.92rem;
    font-size: 0.96rem;
  }

  .form-panel,
  .surface-card,
  .panel {
    padding: 1rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.62rem 0.68rem;
    font-size: 0.82rem;
  }

  .admin-stats-head {
    display: grid;
  }

  .admin-range-control {
    justify-content: flex-start;
  }

  .admin-chart-grid,
  .admin-stats-table-grid {
    grid-template-columns: 1fr;
  }

  .admin-chart-panel,
  .admin-chart-panel:nth-child(2n) {
    border-right: 0;
  }

  .admin-chart-canvas {
    height: 14rem;
    min-height: 14rem;
  }

  .admin-modal-backdrop {
    align-items: stretch;
    padding: 0.75rem;
  }

  .admin-modal {
    max-height: calc(100vh - 1.5rem);
  }

  .admin-modal-head {
    display: grid;
  }

  .admin-lease-metric-grid {
    grid-template-columns: 1fr;
  }

  .kv-row,
  .download-meta-item {
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.25rem;
  }

  .kv-value {
    text-align: left;
  }

  .cookie-banner-actions .btn,
  .cookie-modal-actions .btn {
    width: 100%;
  }

  .cookie-option {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .layout-container,
  .section-shell,
  .home-hero-grid,
  .home-cta {
    width: min(1320px, calc(100% - 1.25rem));
    max-width: calc(100% - 1.25rem);
  }

  .btn-row .btn,
  .action-row .btn {
    width: 100%;
  }

  .site-header-inner {
    padding-block: 0.72rem;
  }

  .brand-wordmark {
    height: 2.18rem;
    max-width: 9rem;
  }

  .home-title {
    font-size: clamp(1.92rem, 10.4vw, 2.45rem);
  }

  .home-hero {
    padding-block: 2.6rem 2.3rem;
  }

  .product-shot {
    flex-basis: 188%;
    margin-left: 0;
    margin-right: 0;
  }

  .product-shot-mobile-frame {
    padding-left: calc((100vw - min(100vw, 100% - 1.25rem)) / 2 + 0.4rem);
  }

  .section-band {
    padding-block: 2rem;
  }

  .home-plans-grid {
    grid-auto-columns: minmax(16.4rem, 86vw);
  }

  .home-plan-card {
    min-height: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.release-publish {
  max-width: 44rem;
}

.release-section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.release-legacy > summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
}

.release-legacy-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
