:root {
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --color-primary: #1457ff;
  --color-primary-hover: #0f46d3;
  --color-heading: #101828;
  --color-body: #475467;
  --color-muted: #667085;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(20, 87, 255, 0.24);
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-surface-strong: rgba(255, 255, 255, 0.92);
  --color-success: #047857;
  --color-error: #b42318;
  --shadow-surface: 0 24px 48px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 18px 32px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 3px rgba(20, 87, 255, 0.18);
  --page-bg:
    radial-gradient(circle at top left, rgba(20, 87, 255, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(249, 246, 241, 0.96) 0%, rgba(243, 238, 230, 0.98) 52%, rgba(239, 235, 226, 1) 100%);
  --nav-height: 64px;
  --content-frame-max: 1180px;
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --transition-fast: 150ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.body-auth {
  --content-frame-max: 1140px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

:where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

::selection {
  background: rgba(20, 87, 255, 0.14);
  color: var(--color-heading);
}

.shell {
  width: min(100% - 2rem, var(--content-frame-max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(249, 246, 241, 0.8);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.site-header__container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand img {
  height: 22px;
}

.site-nav,
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-header__actions--public {
  margin-left: auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--color-body);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.site-nav__link:hover {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.56);
}

.site-nav__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: currentColor;
}

.site-nav__link--active {
  color: var(--color-primary);
  background: transparent;
}

.site-nav__link--active:hover {
  color: var(--color-primary);
  background: rgba(20, 87, 255, 0.08);
}

.site-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.site-header__user {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
}

.site-header__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 2px rgba(249, 246, 241, 0.98),
    0 0 0 3.5px rgba(15, 23, 42, 0.16);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.site-header__avatar:hover {
  background: rgba(20, 87, 255, 0.1);
  color: var(--color-primary);
}

.site-header__avatar:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(249, 246, 241, 0.98),
    0 0 0 4px var(--color-primary);
}

.site-header__avatar--active {
  color: var(--color-primary);
  box-shadow:
    0 0 0 2px rgba(249, 246, 241, 0.98),
    0 0 0 3.5px rgba(20, 87, 255, 0.55);
}

.site-header__avatar-initials {
  line-height: 1;
}

.site-header__avatar-glyph {
  width: 1.1rem;
  height: 1.1rem;
}

.site-header__avatar-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(249, 246, 241, 0.92);
}

.site-header__label {
  color: rgba(71, 84, 103, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-main {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.message {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.message--success {
  border-color: rgba(4, 120, 87, 0.2);
  color: var(--color-success);
}

.message--error {
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--color-error);
}

.hero,
.page-hero,
.auth-shell {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.95fr);
  padding: 2rem 0 2.5rem;
}

.portal-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.25rem 0 0.75rem;
}

.page-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  padding-bottom: 1.5rem;
}

.hero__title,
.portal-home__title,
.page-hero__title,
.auth-copy h1 {
  font-size: clamp(2.75rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.hero__lead,
.portal-home__lead,
.page-hero__lead,
.auth-copy p {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.75;
}

.pricing-table {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  max-width: none;
}

.pricing-table__intro {
  display: grid;
  gap: 0.3rem;
}

.pricing-table__label {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table__frame {
  overflow: hidden;
  border: 1px solid rgba(28, 37, 54, 0.08);
  border-radius: calc(var(--radius-lg) + 0.1rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.04), rgba(201, 114, 52, 0.02));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.035);
}

.pricing-table__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pricing-table__table th,
.pricing-table__table td {
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.pricing-table__table thead th {
  background: rgba(255, 255, 255, 0.54);
}

.pricing-table__table thead th:first-child,
.pricing-table__table tbody th {
  color: var(--color-heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.pricing-table__table thead th:first-child {
  width: 27%;
}

.pricing-table__table tbody td {
  color: var(--color-body);
  font-size: 0.93rem;
  line-height: 1.55;
}

.pricing-table__table tbody tr:last-child th,
.pricing-table__table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table__plan {
  display: block;
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table__table thead strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.pricing-table__table thead span:last-child {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-body);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.portal-home__copy {
  padding-top: 1.5rem;
}

.portal-home__aside {
  padding: 1.25rem;
}

.portal-home__note {
  display: grid;
  gap: 0.28rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.portal-home__note strong {
  color: var(--color-heading);
  font-size: 0.95rem;
}

.portal-home__note span {
  font-size: 0.95rem;
  line-height: 1.65;
}

.auth-stack {
  display: grid;
  gap: 1.05rem;
  width: 100%;
  max-width: 430px;
  align-content: start;
  align-self: start;
  justify-self: end;
}

.portal-entry__eyebrow {
  margin-bottom: 0.6rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card--portal .field {
  margin-bottom: 0.15rem;
}

.portal-entry__intro,
.portal-entry__text,
.portal-entry__meta {
  color: var(--color-body);
  font-size: 0.95rem;
  line-height: 1.68;
}

.portal-entry__intro {
  margin-bottom: 0.15rem;
}

.portal-entry__form {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.35rem;
}

.portal-entry__submit,
.portal-entry__cta {
  width: 100%;
}

.portal-entry__meta {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.portal-entry__aux {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.portal-entry__aux a {
  color: var(--color-primary);
  font-weight: 700;
}

.portal-entry__aux a:hover {
  color: var(--color-primary-hover);
}

.portal-entry__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-muted);
  font-size: 0.88rem;
}

.portal-entry__links a {
  color: var(--color-body);
  font-weight: 700;
}

.portal-entry__links a:hover {
  color: var(--color-primary);
}

.eyebrow,
.feature-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glass-card,
.feature-card,
.panel,
.auth-card,
.stat-card,
.release-card,
.grant-card,
.empty-state {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.04), rgba(201, 114, 52, 0.02));
  box-shadow: var(--shadow-surface);
}

.hero__panel,
.auth-card,
.panel {
  padding: 1.5rem;
}

.hero__panel {
  display: grid;
  gap: 1rem;
}

.hero__metric {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero__metric strong {
  color: var(--color-heading);
  font-size: 1rem;
}

.hero__metric-label {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.feature-card {
  padding: 1.5rem;
}

.feature-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.feature-card p {
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #2765ff 0%, #1457ff 100%);
  color: #fff;
  padding: 0.82rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(20, 87, 255, 0.16);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #1f58de 0%, #0f46d3 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(20, 87, 255, 0.18);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-heading);
  border-color: var(--color-border);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-heading);
}

.button--small {
  padding: 0.58rem 0.95rem;
  font-size: 0.86rem;
}

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

.page-head {
  display: grid;
  gap: 0.7rem;
  padding: 0.5rem 0 1.1rem;
}

.page-head__copy {
  display: grid;
  gap: 0.75rem;
}

.page-head__title {
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  line-height: 0.96;
}

.page-head__lead {
  max-width: 60ch;
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.7;
}

.announcement {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-surface);
}

.announcement--info {
  border-color: rgba(20, 87, 255, 0.18);
}

.announcement--success {
  border-color: rgba(4, 120, 87, 0.18);
}

.announcement--warning,
.announcement--maintenance {
  border-color: rgba(201, 114, 52, 0.22);
}

.announcement__copy {
  display: grid;
  gap: 0.55rem;
}

.announcement__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement__eyebrow-icon {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.announcement h2 {
  font-size: 1.35rem;
}

.announcement__body {
  margin-top: 0.35rem;
  color: var(--color-body);
  line-height: 1.7;
}

.announcement__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.announcement--new {
  position: relative;
  animation: announcement-enter 0.45s ease-out;
}

.announcement--new.announcement--info {
  box-shadow:
    var(--shadow-surface),
    0 0 0 2px rgba(20, 87, 255, 0.22),
    0 18px 32px rgba(20, 87, 255, 0.14);
  animation: announcement-enter 0.45s ease-out, announcement-pulse-info 2.6s ease-in-out infinite;
}

.announcement--new.announcement--success {
  box-shadow:
    var(--shadow-surface),
    0 0 0 2px rgba(4, 120, 87, 0.22),
    0 18px 32px rgba(4, 120, 87, 0.14);
  animation: announcement-enter 0.45s ease-out, announcement-pulse-success 2.6s ease-in-out infinite;
}

.announcement--new.announcement--warning,
.announcement--new.announcement--maintenance {
  box-shadow:
    var(--shadow-surface),
    0 0 0 2px rgba(201, 114, 52, 0.26),
    0 18px 32px rgba(201, 114, 52, 0.16);
  animation: announcement-enter 0.45s ease-out, announcement-pulse-warning 2.6s ease-in-out infinite;
}

.announcement__new-pill {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.announcement--success .announcement__new-pill {
  background: var(--color-success);
}

.announcement--warning .announcement__new-pill,
.announcement--maintenance .announcement__new-pill {
  background: #b5621f;
}

.announcement__dismiss-form {
  margin: 0;
}

.announcement__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-muted);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.announcement__dismiss:hover {
  background: #ffffff;
  color: var(--color-heading);
  border-color: var(--color-heading);
}

.announcement__dismiss:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

@keyframes announcement-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes announcement-pulse-info {
  0%, 100% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 2px rgba(20, 87, 255, 0.22),
      0 18px 32px rgba(20, 87, 255, 0.14);
  }
  50% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 3px rgba(20, 87, 255, 0.38),
      0 22px 40px rgba(20, 87, 255, 0.22);
  }
}

@keyframes announcement-pulse-success {
  0%, 100% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 2px rgba(4, 120, 87, 0.22),
      0 18px 32px rgba(4, 120, 87, 0.14);
  }
  50% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 3px rgba(4, 120, 87, 0.36),
      0 22px 40px rgba(4, 120, 87, 0.22);
  }
}

@keyframes announcement-pulse-warning {
  0%, 100% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 2px rgba(201, 114, 52, 0.26),
      0 18px 32px rgba(201, 114, 52, 0.16);
  }
  50% {
    box-shadow:
      var(--shadow-surface),
      0 0 0 3px rgba(201, 114, 52, 0.44),
      0 22px 40px rgba(201, 114, 52, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement--new,
  .announcement--new.announcement--info,
  .announcement--new.announcement--success,
  .announcement--new.announcement--warning,
  .announcement--new.announcement--maintenance {
    animation: none;
  }
}

.stat-card {
  padding: 1.1rem 1rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-heading);
  font-size: 1.55rem;
}

.stat-card__label,
.panel__meta {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel--account .panel__header > .panel__meta {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-layout__notice {
  grid-column: 1 / -1;
}

.dashboard-main,
.dashboard-sidebar {
  display: grid;
  gap: 1rem;
}

.inline-empty {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.035);
}

.inline-empty strong {
  color: var(--color-heading);
  font-size: 1rem;
}

.inline-empty span {
  color: var(--color-body);
  line-height: 1.6;
}

.panel__header,
.release-card__head,
.grant-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel__header {
  margin-bottom: 1rem;
}

.panel h2 {
  font-size: 1.7rem;
}

.panel__submeta {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.panel__submeta--strong {
  color: var(--color-heading);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.panel__lead {
  line-height: 1.7;
  color: var(--color-body);
}

.panel--notice {
  border-color: rgba(20, 87, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.05), rgba(201, 114, 52, 0.02));
}

.grant-list,
.release-grid {
  display: grid;
  gap: 0.9rem;
}

.release-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.disclosure {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.disclosure--plain {
  border: 0;
  background: transparent;
  padding: 0;
}

.disclosure--plain .disclosure__summary {
  padding: 0.4rem 0.2rem;
}

.disclosure--plain .disclosure__summary:hover {
  background: transparent;
}

.disclosure--plain .disclosure__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-body);
  letter-spacing: 0;
}

.disclosure--plain .disclosure__title .disclosure__chevron {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--color-muted);
}

.disclosure + .disclosure {
  margin-top: 0.75rem;
}

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.disclosure__summary::-webkit-details-marker,
.disclosure__summary::marker {
  display: none;
  content: "";
}

.disclosure__summary:hover {
  background: rgba(255, 255, 255, 0.95);
}

.disclosure__summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.disclosure__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.disclosure__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(20, 87, 255, 0.1);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.disclosure__chevron {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.disclosure[open] .disclosure__chevron {
  transform: rotate(180deg);
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.42);
}

.release-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  transition: background-color var(--transition-fast);
}

.release-list__item:first-child {
  border-top: 0;
}

.release-list__item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.release-list__info {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.release-list--bullets {
  border-top: 0;
  background: transparent;
  padding: 0.35rem 0 0.2rem 0.25rem;
  display: grid;
  gap: 0.1rem;
}

.release-list--bullets .release-list__item {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  column-gap: 0.6rem;
  row-gap: 0.3rem;
  padding: 0.55rem 0.25rem;
  border-top: 0;
  background: transparent;
}

.release-list--bullets .release-list__item::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
}

.release-list--bullets .release-list__item:hover {
  background: transparent;
}

.release-list--bullets .release-list__info {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.release-list--bullets .release-list__actions {
  grid-row: 2;
  grid-column: 2;
  justify-content: flex-start;
}

.release-list__date {
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.release-list__version {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-list__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.release-list__actions form {
  margin: 0;
}

.release-list__link {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.release-list__link:hover {
  color: var(--color-primary);
}

.grant-card,
.release-card,
.empty-state {
  padding: 1.15rem;
}

.grant-card__meta,
.grant-card__notes,
.release-card__notes {
  margin-top: 0.55rem;
  line-height: 1.65;
}

.release-card h3 {
  font-size: 1.25rem;
}

.release-card__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-card--featured {
  padding: 1.25rem 1.35rem 1.4rem;
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.release-card--featured h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.release-card--featured .release-card__version {
  font-size: 0.92rem;
}

.release-card--featured .release-card__actions {
  margin-top: 0.85rem;
}

.release-card--latest {
  border-color: rgba(20, 87, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(20, 87, 255, 0.05),
    0 18px 32px rgba(15, 23, 42, 0.06),
    0 0 0 4px rgba(20, 87, 255, 0.06);
}

.release-card__version,
.release-card__object {
  margin-top: 0.45rem;
  color: var(--color-muted);
}

.release-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.release-card__object {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.release-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.release-card__actions form {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--stable {
  background: rgba(20, 87, 255, 0.08);
  color: var(--color-primary);
}

.badge--nightly {
  background: rgba(201, 114, 52, 0.12);
  color: #a4511f;
}

.badge--neutral {
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-muted);
}

.badge--latest {
  background: rgba(20, 87, 255, 0.14);
  color: var(--color-primary);
}

.badge--info {
  background: rgba(20, 87, 255, 0.12);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(4, 120, 87, 0.14);
  color: var(--color-success);
}

.badge--danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--color-error);
}

.badge--warning,
.badge--maintenance {
  background: rgba(201, 114, 52, 0.14);
  color: #b5621f;
}

.badge--sponsor {
  background: linear-gradient(135deg, rgba(201, 114, 52, 0.18), rgba(20, 87, 255, 0.14));
  color: #8d4b17;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

.empty-state {
  display: grid;
  gap: 0.55rem;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-list__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-list__row:last-child {
  padding-bottom: 0;
}

.detail-list dt {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--color-heading);
  font-weight: 700;
  text-align: right;
}

.detail-list dd .badge {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.profile-progress {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-progress__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-body);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-progress__topline strong {
  color: var(--color-heading);
}

.profile-progress__track {
  position: relative;
  height: 0.58rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.profile-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1457ff, #3b82f6);
}

.account-block {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.account-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.account-block__icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

.account-block__note {
  color: var(--color-body);
  font-size: 0.93rem;
  line-height: 1.65;
}

.account-list {
  display: grid;
  gap: 0.7rem;
}

.account-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.account-list__item strong {
  color: var(--color-heading);
  display: block;
}

.account-list__item p {
  margin-top: 0.25rem;
  color: var(--color-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.account-list__link {
  align-self: center;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.account-list__link:hover {
  color: var(--color-primary-hover);
}

.stack-list {
  display: grid;
  gap: 0.75rem;
}

.stack-list--compact {
  gap: 0.65rem;
}

.stack-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.stack-item--compact {
  padding: 0.85rem 0.95rem;
}

.stack-item__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.stack-item__meta,
.stack-item__note {
  color: var(--color-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

.stack-item__note {
  color: var(--color-muted);
}

.stack-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.auth-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  padding-top: 1rem;
}

.auth-shell--portal {
  max-width: 1140px;
  min-height: auto;
  align-items: stretch;
  gap: 2.25rem;
  padding-block: 0.85rem 1.5rem;
}

.auth-copy--portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  height: 100%;
  padding: 2rem 2rem 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.04), rgba(255, 255, 255, 0.08));
  box-shadow: 0 28px 44px rgba(15, 23, 42, 0.06);
}

.auth-copy--portal > * {
  position: relative;
  z-index: 1;
}

.auth-copy--portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 1.3rem 1.3rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 74%);
  opacity: 0.55;
  pointer-events: none;
}

.auth-copy--portal::after {
  content: "";
  position: absolute;
  top: -5rem;
  right: -3rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(20, 87, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.auth-copy--compact {
  gap: 1.1rem;
  max-width: none;
}

.auth-copy--portal .eyebrow {
  justify-content: center;
  margin-bottom: 0;
}

.portal-access__intro {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(100%, 28rem);
  text-align: center;
}

.portal-access__requirements-block {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: center;
}

.portal-access__requirements {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.portal-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.74rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.035);
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-platform-pill--gpu {
  border-color: rgba(22, 163, 74, 0.18);
}

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(100%, 26rem);
}

.portal-feature-card {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  min-height: 100%;
  padding: 0.9rem 0.72rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.03), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.035);
  text-align: center;
}

.portal-feature-card strong {
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.portal-feature-card span:last-child {
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.portal-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(20, 87, 255, 0.08);
  color: var(--color-primary);
}

.portal-feature-card__icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-feature-card__icon--train svg {
  fill: currentColor;
  stroke: none;
}

.portal-feature-card__icon--edit {
  background: rgba(201, 114, 52, 0.1);
  color: #a4511f;
}

.portal-feature-card__icon--view {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.platform-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.platform-icon--windows {
  color: var(--color-primary);
}

.platform-icon--windows svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
}

.platform-icon--gpu {
  width: 1.02rem;
  height: 0.92rem;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 0.24rem;
  background: linear-gradient(180deg, rgba(187, 247, 208, 0.95), rgba(134, 239, 172, 0.68));
}

.platform-icon--gpu::before {
  content: "";
  position: absolute;
  inset: 0.16rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.12rem;
}

.platform-icon--gpu::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.28rem;
  width: 0.18rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.48);
  transform: translateY(-50%);
}

.platform-icon--driver {
  border: 1px solid rgba(20, 87, 255, 0.24);
  border-radius: 999px;
  background: rgba(20, 87, 255, 0.08);
}

.platform-icon--driver::before,
.platform-icon--driver::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 999px;
}

.platform-icon--driver::before {
  width: 0.52rem;
  height: 0.1rem;
}

.platform-icon--driver::after {
  width: 0.1rem;
  height: 0.52rem;
}

.portal-demo-panel {
  display: grid;
  gap: 0;
  margin-top: auto;
  justify-items: center;
  width: min(100%, 28.25rem);
}

.portal-demo-media {
  width: 100%;
  padding: clamp(0.95rem, 1.8vw, 1.15rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(20, 87, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.94), rgba(10, 16, 28, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.18);
}

.portal-demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 31 / 20;
  overflow: hidden;
  border-radius: 1.45rem;
  background: #0f172a;
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.18),
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.portal-demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.portal-demo-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f172a;
}

.auth-card h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.auth-card--portal {
  position: relative;
  padding: 1.5rem 1.45rem;
}

.auth-copy--portal .portal-home__title,
.auth-card--portal h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-copy--portal .portal-home__title {
  max-width: 16ch;
}

.auth-card--portal h2 {
  max-width: none;
}

.auth-card--portal-primary {
  border-color: rgba(20, 87, 255, 0.14);
  box-shadow: 0 24px 38px rgba(15, 23, 42, 0.08);
}

.auth-card--muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.02), rgba(20, 87, 255, 0.03));
}

.auth-card--compact {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.auth-card form {
  display: grid;
  gap: 1rem;
}

.auth-card--portal .field__label {
  font-size: 0.88rem;
}

.auth-card__submit {
  width: 100%;
}

.auth-card__intro {
  margin-bottom: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.auth-card__footer {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.billing-overview__invoices {
  margin-top: 1.5rem;
}

.tier-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tier-option {
  position: relative;
  display: block;
}

.tier-option__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.tier-option__panel {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background-color var(--transition-fast);
}

.tier-option__panel strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.tier-option__panel span:last-child {
  color: var(--color-body);
  line-height: 1.65;
}

.tier-option__eyebrow {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-option__input:checked + .tier-option__panel {
  border-color: rgba(20, 87, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.04), rgba(201, 114, 52, 0.02));
  box-shadow: 0 0 0 3px rgba(20, 87, 255, 0.12);
  transform: translateY(-1px);
}

.tier-option__input:focus-visible + .tier-option__panel {
  box-shadow: var(--shadow-focus);
}

.tier-contact-card {
  margin-top: 0.85rem;
}

.tier-contact-card__panel {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px dashed rgba(20, 87, 255, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)),
    linear-gradient(135deg, rgba(20, 87, 255, 0.03), rgba(201, 114, 52, 0.02));
}

.tier-contact-card__panel strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.tier-contact-card__panel p {
  margin: 0;
  color: var(--color-body);
  line-height: 1.65;
}

.tier-contact-card__panel .button {
  justify-self: start;
}

.legal-checks {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.02), rgba(20, 87, 255, 0.03));
}

.legal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-body);
  font-size: 0.93rem;
  line-height: 1.65;
}

.legal-check a {
  color: var(--color-primary);
}

.legal-checks--compact {
  padding: 0.75rem 0.9rem;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.6);
}

.field__help--muted {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.auth-shell--single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.auth-card--wide {
  width: 100%;
  max-width: 520px;
  padding: 2rem 2rem 1.75rem;
}

.auth-card__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-card__head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-card__head .auth-card__intro {
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-card__footer-links {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.auth-card__footer-links p {
  margin: 0;
}

.tier-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.04);
}

.tier-segmented__option {
  position: relative;
  display: block;
}

.tier-segmented__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.tier-segmented__panel {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.5rem;
  border-radius: calc(var(--radius-md) - 0.25rem);
  background: transparent;
  color: var(--color-body);
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.tier-segmented__panel:hover {
  background: rgba(255, 255, 255, 0.6);
}

.tier-segmented__name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tier-segmented__price {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.tier-segmented__input:checked + .tier-segmented__panel {
  background: #ffffff;
  color: var(--color-heading);
  box-shadow:
    0 0 0 1px rgba(20, 87, 255, 0.28),
    0 6px 14px rgba(15, 23, 42, 0.06);
}

.tier-segmented__input:checked + .tier-segmented__panel .tier-segmented__price {
  color: var(--color-primary);
}

.tier-segmented__input:focus-visible + .tier-segmented__panel {
  box-shadow:
    0 0 0 2px rgba(249, 246, 241, 1),
    0 0 0 4px var(--color-primary);
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
}

.billing-start-form {
  margin-top: 1rem;
}

.billing-start-form .button {
  justify-self: start;
}

.form-control[readonly] {
  background: rgba(247, 247, 249, 0.9);
  color: var(--color-muted);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  color: var(--color-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.field__help {
  color: var(--color-muted);
  font-size: 0.84rem;
}

.field__help--list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  line-height: 1.55;
}

.field__help--list li + li {
  margin-top: 0.15rem;
}

.field__errors,
.form-errors {
  display: grid;
  gap: 0.3rem;
  color: var(--color-error);
  font-size: 0.88rem;
}

.form-errors {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.form-control {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-heading);
  padding: 0.85rem 0.95rem;
  font: inherit;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
  background-color var(--transition-fast);
}

.auth-card--portal .form-control {
  min-height: 3.15rem;
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(247, 249, 252, 0.86);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-card--portal .form-control::placeholder {
  color: #98a2b3;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-focus);
  background: #fff;
}

.form-control--multiline {
  min-height: 8rem;
  resize: vertical;
}

.site-footer {
  padding: 1.75rem 0 2.5rem;
}

.site-footer__inner {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__support {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer__support-label {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer__sponsors {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.site-footer__sponsor {
  display: inline-flex;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.site-footer__sponsor:hover {
  opacity: 1;
}

.site-footer__sponsor-image {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.site-footer__sponsor-image--secondary {
  height: 34px;
  width: auto;
}

.site-footer__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
}

.site-footer__legal {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer__legal a:hover {
  color: var(--color-heading);
}

.site-footer__copy {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer__copy {
  text-align: left;
}

.site-footer__brand {
  display: inline-flex;
  justify-content: center;
}

.site-footer__logo {
  height: 20px;
  opacity: 0.78;
  transition: opacity var(--transition-fast);
}

.site-footer__logo:hover {
  opacity: 1;
}

.legal-layout {
  display: grid;
  gap: 1rem;
}

.legal-panel {
  display: grid;
  gap: 1rem;
}

.legal-copy {
  display: grid;
  gap: 0.9rem;
  line-height: 1.7;
}

.legal-copy ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.legal-copy li {
  text-wrap: pretty;
}

.legal-copy h3 {
  margin-top: 0.45rem;
}

.legal-identity {
  display: grid;
  gap: 0.4rem;
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .hero,
  .portal-home,
  .page-hero,
  .auth-shell,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .announcement {
    flex-direction: column;
  }

  .site-header__container {
    padding: 0.7rem 0;
    align-items: flex-start;
  }

  .site-main {
    padding-top: 8rem;
  }

  .auth-shell--portal {
    min-height: auto;
    align-items: start;
    gap: 1.35rem;
    padding-block: 0.45rem 0;
  }

  .auth-stack {
    max-width: none;
    justify-self: stretch;
  }

  .auth-copy--portal {
    height: auto;
    padding: 1.5rem 1.35rem 1.4rem;
  }

  .site-footer__meta {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__copy {
    text-align: center;
  }

  .tier-options {
    grid-template-columns: 1fr;
  }

  .tier-segmented {
    grid-template-columns: 1fr;
  }

  .auth-card--wide {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1.2rem, var(--content-frame-max));
  }

  .hero__title,
  .portal-home__title,
  .page-hero__title,
  .auth-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .site-footer__inner {
    padding-top: 1.25rem;
  }

  .site-header__container {
    gap: 0.75rem;
  }

  .site-header__actions {
    gap: 0.5rem;
  }

  .button {
    min-width: 0;
  }

  .auth-card--portal {
    padding: 1.15rem;
  }

  .portal-platform-strip,
  .portal-entry__links {
    gap: 0.55rem;
  }

  .announcement__actions,
  .account-list__item,
  .detail-list__row,
  .stack-item__topline,
  .release-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .release-list__info {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .release-list__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-list dd {
    text-align: left;
  }

  .portal-entry__links {
    justify-content: flex-start;
  }

  .portal-platform-pill {
    width: 100%;
    justify-content: center;
  }

  .auth-copy--portal {
    justify-items: stretch;
    padding: 1.25rem 1.1rem 1.2rem;
  }

  .portal-access__intro,
  .portal-access__requirements-block,
  .portal-feature-grid,
  .portal-demo-panel {
    width: 100%;
  }

  .auth-copy--portal .portal-home__title {
    max-width: 16ch;
    font-size: 1.5rem;
  }

  .portal-demo-media {
    padding: 0.8rem;
  }

  .portal-demo-frame {
    border-radius: 1.15rem;
  }

  .portal-demo-caption {
    font-size: 0.9rem;
  }

  .pricing-table__table th,
  .pricing-table__table td {
    padding: 0.8rem 0.65rem;
  }

  .pricing-table__table tbody td,
  .pricing-table__table thead span:last-child {
    font-size: 0.86rem;
  }

  .pricing-table__table thead strong {
    font-size: 1.2rem;
  }
}

.portal-sponsors {
  display: grid;
  gap: 2.25rem;
  max-width: 960px;
  padding-block: 3rem 3.5rem;
  text-align: center;
}

.portal-sponsors__title {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.portal-sponsors__tier {
  display: grid;
  gap: 1.4rem;
}

.portal-sponsors__label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.portal-sponsors__label::before,
.portal-sponsors__label::after {
  content: "";
  flex: 1;
  max-width: 14rem;
  height: 1px;
  background: var(--color-border-strong);
}

.portal-sponsors__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 3rem;
}

.portal-sponsors__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  opacity: 0.92;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-sponsors__logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.portal-sponsors__logo:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.portal-sponsors__logo img {
  display: block;
  height: 2.5rem;
  max-width: 12rem;
  width: auto;
  object-fit: contain;
}

.portal-sponsors__logo--volinga img {
  width: min(100%, 75px);
  height: auto;
  max-width: none;
}

.portal-sponsors__name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.18s ease;
}

.portal-sponsors__name:hover {
  color: var(--color-primary);
}

.portal-sponsors__name:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

@media (max-width: 560px) {
  .portal-sponsors {
    gap: 1.75rem;
    padding-block: 2rem 2.5rem;
  }

  .portal-sponsors__row {
    gap: 1.25rem 1.75rem;
  }

  .portal-sponsors__logo img {
    height: 2rem;
  }

  .portal-sponsors__label::before,
  .portal-sponsors__label::after {
    max-width: 5rem;
  }
}

