:root {
  --ink: #182322;
  --ink-soft: #4d5b57;
  --paper: #f5f3ec;
  --paper-strong: #fffdfa;
  --line: #d8d4c7;
  --teal: #123f46;
  --teal-bright: #19a89d;
  --copper: #d9a441;
  --clay: #9f4f32;
  --danger: #b8322f;
  --success: #1c7d5a;
  --shadow: 0 24px 80px rgba(18, 63, 70, 0.18);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

body.is-transaction-active {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 243, 236, 0.9);
  border-bottom: 1px solid rgba(216, 212, 199, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-tagline {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 52;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  background: #e6efe9;
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.language-picker select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0 30px 0 10px;
}

.access-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.access-hero-image,
.access-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.access-hero-image {
  object-fit: cover;
  object-position: 66% center;
  z-index: -3;
}

.access-hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 35, 34, 0.86), rgba(18, 35, 34, 0.58) 42%, rgba(18, 35, 34, 0.08) 82%),
    linear-gradient(0deg, rgba(18, 35, 34, 0.24), rgba(18, 35, 34, 0.02));
  z-index: -2;
}

.access-hero-inner {
  width: min(560px, calc(100% - 32px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 72px 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--paper-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1,
.page-hero h1,
.contact-copy h1,
.legal-hero h1 {
  margin-bottom: 22px;
  font-size: 4.9rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.contact-copy > p,
.legal-hero p,
.workspace-copy p {
  color: inherit;
  max-width: 62ch;
  font-size: 1.08rem;
}

.access-console,
.update-form,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--shadow);
}

.access-console {
  width: 100%;
  padding: 28px;
}

.access-console .eyebrow {
  min-height: 22px;
  margin-bottom: 8px;
  color: var(--clay);
}

.console-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.console-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.console-heading h1 {
  margin-bottom: 0;
  font-size: 2.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.console-heading p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.code-form label,
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.code-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9c3b5;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 126px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(25, 168, 157, 0.18);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--teal);
  color: white;
}

.button-primary:hover {
  background: #0d3137;
}

.button-secondary {
  background: #fffefa;
  border-color: var(--line);
  color: var(--teal);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-feedback {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-feedback.is-error {
  color: var(--danger);
}

.form-feedback.is-success {
  color: var(--success);
}

.feedback-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.feedback-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #bfdbc9;
  border-radius: 8px;
  padding: 0 10px;
  background: #eff8ef;
  color: var(--teal);
  font-weight: 800;
}

.workspace-band,
.workflow-update-band,
.insight-band,
.content-band,
.timeline-band,
.contact-grid,
.legal-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.workspace-band {
  padding: 92px 0 70px;
}

.workflow-update-band {
  padding: 58px 0 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}

.workspace-copy {
  position: sticky;
  top: 112px;
  padding-top: 6px;
}

.workspace-copy h2,
.page-hero h1,
.contact-copy h1,
.legal-hero h1 {
  color: var(--teal);
}

.workspace-copy h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.workspace-copy p {
  color: var(--ink-soft);
}

.metric-strip {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.metric-strip span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--copper);
  padding: 0 14px;
  background: #fffefa;
  color: var(--teal);
  font-weight: 800;
}

.update-form,
.contact-form {
  padding: 28px;
}

.update-form > h2,
.contact-form > h2 {
  color: var(--teal);
}

.update-form > p,
.contact-form > p {
  color: var(--ink-soft);
}

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

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

.form-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.insight-band {
  padding: 42px 0 96px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.feature-media,
.page-hero-media,
.contact-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dde5dc;
}

.feature-media img,
.page-hero-media img,
.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media {
  aspect-ratio: 4 / 3;
}

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

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

.info-card,
.support-item,
.legal-item,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.info-card {
  min-height: 178px;
  padding: 22px;
}

.info-card h2,
.info-card h3,
.support-item h2,
.legal-item h2,
.timeline-item h2 {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 1.12rem;
  line-height: 1.2;
}

.info-card p,
.support-item p,
.legal-item p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.page-main {
  padding: 72px 0 96px;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.page-hero-wide {
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
}

.page-hero-copy p,
.contact-copy > p,
.legal-hero p {
  color: var(--ink-soft);
}

.page-hero-media {
  aspect-ratio: 5 / 4;
}

.content-band {
  padding: 52px 0 0;
}

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

.timeline-item {
  padding: 22px;
}

.timeline-item > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 900;
}

.contact-grid {
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.contact-media {
  aspect-ratio: 5 / 4;
  margin: 28px 0;
}

.support-grid {
  display: grid;
  gap: 12px;
}

.support-item {
  padding: 18px;
}

.legal-main {
  padding: 76px 0 96px;
}

.legal-hero {
  max-width: 860px;
}

.legal-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-top: 34px;
}

.legal-item {
  padding: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #112f33;
  color: #f5f3ec;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(120px, 0.7fr));
  gap: 26px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.footer-brand-name,
.footer-heading {
  margin-bottom: 10px;
  color: white;
  font-weight: 900;
}

.footer-brand p {
  max-width: 44ch;
  margin-bottom: 0;
  color: #cbdad5;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column a {
  color: #cbdad5;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #a7bbb5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.transaction-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 35, 34, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.transaction-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.transaction-panel {
  width: min(480px, 100%);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 28px;
  box-shadow: var(--shadow);
}

.transaction-badge {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.transaction-panel h2 {
  margin: 10px 0;
  color: var(--teal);
}

.transaction-panel p {
  color: var(--ink-soft);
}

.transaction-progress {
  height: 8px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4e0d5;
}

.transaction-progress span {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-bright);
  animation: progress-slide 1.1s ease-in-out infinite alternate;
}

.motion-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.motion-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes progress-slide {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(92%);
  }
}

@media (max-width: 980px) {
  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    z-index: 51;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav-panel {
    display: grid;
  }

  .nav-links {
    display: grid;
    margin-left: 0;
  }

  .nav-link {
    justify-content: flex-start;
  }

  .access-hero-inner,
  .workspace-grid,
  .insight-grid,
  .page-hero,
  .page-hero-wide,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .access-hero-inner {
    padding: 56px 0 72px;
  }

  .workspace-copy {
    position: static;
  }

  .hero-copy h1,
  .page-hero h1,
  .contact-copy h1,
  .legal-hero h1 {
    font-size: 3.35rem;
  }

  .console-heading h1 {
    font-size: 2rem;
  }

  .workspace-copy h2 {
    font-size: 2.35rem;
  }

  .timeline-band,
  .card-grid,
  .card-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-tagline,
  .language-picker span {
    display: none;
  }

  .access-hero-inner {
    width: min(100% - 24px, var(--max));
    gap: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .contact-copy h1,
  .legal-hero h1 {
    font-size: 2.35rem;
  }

  .console-heading h1 {
    font-size: 1.72rem;
  }

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

  .button {
    width: 100%;
  }

  .code-form-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .code-form .button {
    width: auto;
  }

  .access-console,
  .update-form,
  .contact-form {
    padding: 20px;
  }

  .workspace-band,
  .workflow-update-band,
  .insight-band,
  .contact-grid,
  .page-main,
  .legal-main {
    padding-top: 50px;
    padding-bottom: 60px;
  }
}
