:root {
  --background: #ecf2f8;
  --surface: #ffffff;
  --border: rgba(17, 42, 68, 0.12);
  --text: #17324e;
  --text-soft: #53687c;
  --heading: #0c2741;
  --accent: #2f7fd3;
  --accent-light: #57b5ff;
  --accent-dark: #0d3f78;
  --shadow: 0 22px 54px rgba(17, 39, 63, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 127, 211, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(13, 63, 120, 0.09), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--background) 100%);
  color: var(--text);
  line-height: 1.65;
}

body.page-pricing {
  background:
    radial-gradient(circle at top left, rgba(13, 63, 120, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(87, 181, 255, 0.11), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, var(--background) 100%);
}

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

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 253, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 42, 68, 0.08);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: auto;
  height: 36px;
  display: block;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(17, 39, 63, 0.12));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link-active {
  color: var(--heading);
  background: rgba(47, 127, 211, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 58%, var(--accent-light) 100%);
  color: #f9fbfd;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(13, 63, 120, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(13, 63, 120, 0.24);
}

.button-outline {
  background: rgba(255, 255, 255, 0.74);
  color: var(--heading);
  border-color: rgba(13, 63, 120, 0.16);
  box-shadow: none;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(47, 127, 211, 0.08);
}

.button-small {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

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

.hero-section,
.page-hero {
  padding: 90px 0 54px;
}

.hero-grid,
.page-hero-grid,
.policy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin: 0 0 16px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
}

h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(47, 127, 211, 0.08);
  border: 1px solid rgba(13, 63, 120, 0.08);
}

.contact-brand-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.contact-brand span {
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 127, 211, 0.08);
  color: var(--accent-dark);
  border: 1px solid rgba(13, 63, 120, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pricing-hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(47, 127, 211, 0.08);
  border: 1px solid rgba(13, 63, 120, 0.08);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-side-kicker {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.pricing-price {
  margin: 10px 0 10px;
  color: var(--heading);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.pricing-side-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
}

.pricing-side-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.pricing-side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.contact-rail {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-rail-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(47, 127, 211, 0.06);
  border: 1px solid rgba(13, 63, 120, 0.08);
}

.contact-rail-item p {
  color: var(--heading);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-rail-item a {
  color: var(--accent-dark);
  font-weight: 600;
  word-break: break-word;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

.hero-lede,
.section-body {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(47, 127, 211, 0.1);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(47, 127, 211, 0.08);
}

.section {
  padding: 38px 0 72px;
}

.section-tint {
  background: linear-gradient(180deg, rgba(231, 240, 248, 0.82), rgba(245, 248, 251, 0.24));
}

.section-soft {
  background: linear-gradient(180deg, rgba(20, 61, 102, 0.04), rgba(255, 255, 255, 0));
}

.section-intro {
  margin-bottom: 28px;
  max-width: 720px;
}

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

.card,
.statement-card,
.callout-panel,
.side-panel,
.hero-panel,
.policy-index,
.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card,
.callout-panel,
.side-panel,
.hero-panel,
.policy-index,
.faq-item {
  padding: 26px;
}

.card p,
.statement-card p,
.callout-panel p,
.side-panel p,
.policy-block p,
.faq-item p {
  color: var(--text-soft);
}

.card h3,
.callout-panel h3,
.faq-item h3 {
  margin-bottom: 12px;
}

.checklist,
.bullet-list,
.anchor-list,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li,
.bullet-list li,
.anchor-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
}

.checklist li::before,
.bullet-list li::before,
.anchor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
}

.split-grid,
.policy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.statement-stack {
  display: grid;
  gap: 16px;
}

.statement-card {
  padding: 20px 22px;
}

.statement-card p {
  color: var(--heading);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
}

.timeline-item span {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 63, 120, 0.22), rgba(47, 127, 211, 0.2));
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timeline-item p {
  margin-top: 10px;
}

.policy-hero {
  padding-bottom: 24px;
}

.policy-hero-copy {
  max-width: 760px;
}

.policy-layout-with-index {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.policy-content {
  display: grid;
  gap: 28px;
}

.policy-block {
  scroll-margin-top: 120px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.policy-index {
  position: sticky;
  top: 104px;
}

.policy-block p + p {
  margin-top: 14px;
}

.anchor-list a {
  color: var(--heading);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.gatepack-form-shell {
  display: grid;
  gap: 24px;
}

.portal-hero-grid {
  grid-template-areas:
    "switch switch"
    "copy aside";
  align-items: start;
}

.portal-hero-grid > .portal-language-switch {
  grid-area: switch;
  justify-self: end;
  margin-bottom: 4px;
}

.portal-hero-grid > .portal-hero-copy {
  grid-area: copy;
}

.portal-hero-grid > .side-panel {
  grid-area: aside;
}

.portal-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: 0 12px 28px rgba(17, 39, 63, 0.08);
}

.portal-language-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.portal-language-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-language-button {
  border: 1px solid rgba(22, 50, 79, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-language-button-active {
  background: rgba(47, 127, 211, 0.12);
  color: var(--accent-dark);
  border-color: rgba(47, 127, 211, 0.22);
}

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

.portal-form label,
.portal-inline-actions label {
  display: grid;
  gap: 8px;
  color: var(--heading);
  font-weight: 600;
}

.portal-form input,
.portal-form textarea,
.portal-inline-actions input {
  width: 100%;
  border: 1px solid rgba(22, 50, 79, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.portal-form textarea {
  resize: vertical;
  min-height: 128px;
}

.field-wide {
  grid-column: 1 / -1;
}

.portal-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  color: var(--text-soft);
  min-height: 1.4em;
}

.portal-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.portal-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 24px;
}

.portal-claim-guide-stack {
  display: grid;
  gap: 22px;
}

.portal-guide-copy {
  color: var(--text-soft);
  margin: 8px 0 14px;
}

.portal-copy-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.portal-admin-panel {
  padding: 24px;
}

.portal-admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.portal-admin-list {
  display: grid;
  gap: 16px;
}

.portal-request-card {
  border: 1px solid rgba(22, 50, 79, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(248, 251, 255, 0.85);
}

.portal-request-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.portal-request-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--heading);
}

.portal-request-head p,
.portal-notes,
.portal-empty {
  color: var(--text-soft);
}

.portal-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 14px 0;
}

.portal-meta-list dt {
  color: var(--text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.portal-meta-list dd {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
}

.portal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.portal-snippet-stack {
  display: grid;
  gap: 18px;
}

.portal-snippet-stack article {
  display: grid;
  gap: 10px;
}

.portal-snippet-stack h4 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.portal-badge-pending {
  background: rgba(228, 168, 41, 0.14);
  color: #865f04;
}

.portal-badge-approved {
  background: rgba(42, 108, 176, 0.12);
  color: var(--accent-dark);
}

.portal-badge-rejected,
.portal-badge-revoked {
  background: rgba(160, 56, 56, 0.12);
  color: #8f1f1f;
}

.portal-claim-result {
  padding: 24px;
}

.portal-claim-result pre,
.portal-snippet-stack pre {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: 16px;
  background: #0f2943;
  color: #f7fbff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.portal-snippet-stack {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.portal-admin-login {
  margin-bottom: 18px;
}

.portal-issued-banner {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(42, 108, 176, 0.14);
  background: rgba(243, 249, 255, 0.96);
}

.portal-issued-banner pre {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0f2943;
  color: #f7fbff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  padding: 40px 0 26px;
  background: linear-gradient(180deg, rgba(13, 63, 120, 0.04), rgba(13, 63, 120, 0.1));
  border-top: 1px solid rgba(13, 63, 120, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand-mark {
  width: 44px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex: none;
}

.footer-brand p:last-child {
  margin-top: 12px;
  max-width: 46ch;
}

.footer-brand h2 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.footer-brand-line {
  color: var(--heading);
  font-weight: 600;
  margin-top: 2px;
}

.footer-brand-summary {
  margin-top: 10px;
  max-width: 38ch;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-contact-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

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

.footer-column h2,
.footer-column h3 {
  margin-bottom: 10px;
}

.footer-list a,
.footer-contact li,
.footer-base p {
  color: var(--text-soft);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid rgba(22, 50, 79, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .card-grid,
  .contact-grid,
  .footer-grid,
  .hero-grid,
  .page-hero-grid,
  .policy-hero-grid,
  .split-grid,
  .policy-layout,
  .portal-admin-grid {
    grid-template-columns: 1fr;
  }

  .policy-layout-with-index {
    grid-template-columns: 1fr;
  }

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

  .portal-hero-grid {
    grid-template-areas:
      "switch"
      "copy"
      "aside";
  }

  .portal-hero-grid > .portal-language-switch {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 10px) 20px auto;
    display: grid;
    gap: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link,
  .button-small {
    width: 100%;
    justify-content: center;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--shell), calc(100% - 24px));
  }

  .header-shell {
    min-height: 74px;
  }

  .button,
  .button-outline {
    width: 100%;
  }

  .hero-actions,
  .pill-row {
    flex-direction: column;
  }

  .portal-form,
  .portal-meta-list {
    grid-template-columns: 1fr;
  }

  .portal-language-switch {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .portal-request-head {
    flex-direction: column;
  }

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

  .policy-block,
  .card,
  .callout-panel,
  .side-panel,
  .hero-panel,
  .policy-index,
  .faq-item {
    padding: 22px;
  }

  .policy-index {
    position: static;
  }
}
