:root {
  color-scheme: light;
  --ink: #18252b;
  --muted: #596b72;
  --paper: #ffffff;
  --mist: #eef4f3;
  --soft: #f7f8f5;
  --line: #d6e0df;
  --pine: #174f4a;
  --teal: #177b86;
  --gold: #c89432;
  --coral: #a95646;
  --sky: #d8edf0;
  --shadow: 0 18px 50px rgba(18, 37, 43, 0.15);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-width: 16rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--pine);
  background: var(--mist);
  outline: none;
}

.nav-short {
  display: none;
}

.hero {
  min-height: 74svh;
  display: flex;
  align-items: center;
  padding: 5.5rem 2rem 3.5rem;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 37, 43, 0.92) 0%, rgba(18, 37, 43, 0.8) 42%, rgba(18, 37, 43, 0.34) 100%),
    url("assets/portal-dashboard.png") center / cover no-repeat;
}

.hero-content {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.intro-band h2,
.limitations-copy h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 11ch;
  font-size: 4rem;
}

.hero-copy {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: #e9f2f2;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  min-height: 46px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #1d1b15;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.42);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
  margin: 1.6rem 0 0;
}

.hero-facts div {
  min-height: 92px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts dt {
  margin: 0 0 0.25rem;
  color: #cddfe0;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.section,
.intro-band {
  padding: 5.5rem 2rem;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.intro-band h2,
.section h2,
.limitations-copy h2 {
  font-size: 2.45rem;
}

.intro-band p,
.section-heading p,
.two-column > p,
.split-visual p,
.limitations-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.light-section {
  background: var(--mist);
}

.white-section {
  background: var(--paper);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 850px;
}

.section-heading h2 {
  margin-bottom: 0.85rem;
}

.workflow-grid,
.feature-grid,
.info-grid,
.release-grid {
  display: grid;
  gap: 1rem;
}

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

.workflow-step,
.feature-card,
.info-card,
.release-card,
.license-panel {
  min-height: 100%;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--sky);
  color: var(--pine);
  font-weight: 900;
}

.workflow-step h3,
.feature-card h3,
.info-card h3,
.release-card h3,
.license-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.workflow-step p,
.feature-card p,
.info-card p,
.release-card p,
.license-panel li {
  margin: 0;
  color: var(--muted);
}

.image-section {
  background: var(--soft);
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.split-visual.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split-visual.reverse > div {
  order: 2;
}

.media-frame {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  background: var(--mist);
}

.media-frame figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

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

.record-section {
  background: #f1f5f0;
}

.stacked-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
}

.stacked-media img {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stacked-media figcaption {
  grid-column: 1 / -1;
  margin: 0 -0.75rem -0.75rem;
}

.data-section {
  background: var(--pine);
  color: var(--paper);
}

.data-section .section-heading p {
  color: #d8e8e5;
}

.data-section .eyebrow {
  color: #f0c46b;
}

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

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.info-card p {
  color: #d8e8e5;
}

.license-panel {
  background: var(--mist);
}

.license-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.license-panel li + li {
  margin-top: 0.6rem;
}

.license-panel a,
.policy-content a {
  color: var(--pine);
  font-weight: 800;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.download-card {
  min-height: 100%;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-card h2 {
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--muted);
}

.download-actions {
  margin: 1.1rem 0 0.85rem;
}

.download-note {
  margin: 0;
  font-size: 0.95rem;
}

.download-filename {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.download-filename code {
  color: var(--pine);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verify-panel {
  grid-column: 1 / -1;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verify-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.verify-panel p {
  max-width: 760px;
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.verify-panel dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.verify-panel dt {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 800;
}

.verify-panel dd {
  margin: 0;
}

.verify-panel code {
  display: block;
  padding: 0.7rem;
  color: var(--pine);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.contact-section {
  background: #f6f8f6;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.contact-layout p {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-note {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 380px);
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-note a {
  color: var(--pine);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 750;
}

.contact-form .span-2,
.contact-form .form-status {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(23, 123, 134, 0.18);
}

.form-button {
  width: fit-content;
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
}

.release-section {
  background: #edf5f7;
}

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

.release-card:first-child {
  border-top: 4px solid var(--teal);
}

.release-card:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.release-card:nth-child(3) {
  border-top: 4px solid var(--coral);
}

.limitations-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.limitations-section .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.doc-links {
  display: grid;
  gap: 0.65rem;
}

.doc-links a {
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--pine);
  font-weight: 800;
  text-decoration: none;
}

.doc-links a:hover,
.doc-links a:focus-visible {
  background: var(--sky);
  outline: none;
}

.site-footer {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: #c6d4d5;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.footer-links a {
  color: #e8f2f2;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.footer-button {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.34);
}

.help-hero {
  padding: 5rem 2rem 4rem;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 37, 43, 0.95) 0%, rgba(23, 79, 74, 0.86) 100%),
    url("assets/portal-dashboard.png") center / cover no-repeat;
}

.help-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: 4rem;
  line-height: 1.08;
}

.help-hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 1rem 0 0;
  color: #e5f0ef;
  font-size: 1.15rem;
}

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

.help-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-toc a {
  padding: 0.6rem 0.7rem;
  color: var(--pine);
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.help-toc a:hover,
.help-toc a:focus-visible {
  background: var(--sky);
  outline: none;
}

.help-content {
  display: grid;
  gap: 1.25rem;
}

.help-section-block {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-section-block h2 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  line-height: 1.12;
}

.help-section-block p {
  color: var(--muted);
}

.step-list {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

.step-list li + li {
  margin-top: 0.55rem;
}

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

.help-grid article,
.faq-list details {
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.help-grid p,
.faq-list p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.faq-list details p {
  margin-top: 0.65rem;
}

.help-cta {
  background: var(--mist);
}

.policy-content {
  max-width: 920px;
}

.policy-content section + section {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
  line-height: 1.15;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
}

.policy-date {
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-weight: 850;
}

.hash-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.hash-list div {
  padding: 0.9rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hash-list dt {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 850;
}

.hash-list dd {
  margin: 0;
}

.hash-list code {
  display: block;
  padding: 0.7rem;
  color: var(--pine);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

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

  .workflow-grid .workflow-step:last-child {
    grid-column: 1 / -1;
  }

  .split-visual,
  .split-visual.reverse,
  .two-column,
  .contact-layout,
  .limitations-section .section-inner {
    grid-template-columns: 1fr;
  }

  .split-visual.reverse > div {
    order: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .section,
  .intro-band,
  .hero,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .site-nav a {
    min-width: 0;
    min-height: 38px;
    padding: 0.42rem 0.2rem;
    justify-content: center;
    font-size: 0.82rem;
    border: 1px solid var(--line);
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .hero {
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    background:
      linear-gradient(90deg, rgba(18, 37, 43, 0.95) 0%, rgba(18, 37, 43, 0.84) 100%),
      url("assets/portal-dashboard.png") center / cover no-repeat;
  }

  .help-hero {
    padding: 3rem 1rem;
  }

  .help-hero h1 {
    font-size: 2.6rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.6rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero-facts,
  .workflow-grid,
  .feature-grid,
  .info-grid,
  .release-grid,
  .contact-form,
  .download-layout,
  .help-layout,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-toc {
    position: static;
  }

  .hero-facts {
    display: none;
  }

  .intro-band h2,
  .section h2,
  .limitations-copy h2 {
    font-size: 2rem;
  }

  .stacked-media {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }
}
