:root {
  --apx-charcoal: #1f252d;
  --apx-teal: #006f76;
  --apx-teal-dark: #005a60;
  --apx-slate: #46505a;
  --apx-slate-muted: #64707a;
  --apx-slate-gray: #8e959b;
  --apx-soft-gray: #d9dee2;
  --apx-paper: #f7f9fa;
  --apx-paper-strong: #f4f8f9;
  --apx-line: #c9d1d7;
  --apx-white: #ffffff;
  --apx-radius: 8px;
  --apx-shadow: 0 18px 48px rgba(31, 37, 45, 0.12);
  --apx-header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--apx-header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--apx-white);
  color: var(--apx-charcoal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--apx-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--apx-charcoal);
}

a:focus-visible,
button:focus-visible,
.tool-link:focus-visible {
  outline: 3px solid rgba(0, 111, 118, 0.28);
  outline-offset: 3px;
}

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

p {
  color: var(--apx-slate);
}

h1,
h2 {
  color: var(--apx-charcoal);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 3.35rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.15rem;
  font-weight: 800;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: var(--apx-radius);
  background: var(--apx-charcoal);
  color: var(--apx-white);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(201, 209, 215, 0.72);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: var(--apx-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--apx-charcoal);
  text-decoration: none;
}

.brand-logo,
.logo {
  width: min(360px, 40vw);
  height: auto;
  object-fit: contain;
}

.admin-badge {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 126px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--apx-slate-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-badge img {
  width: auto;
  height: 24px;
  opacity: 0.94;
}

.header-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  font-size: 0.96rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--apx-radius);
  padding: 11px 18px;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.button-primary:hover {
  background: var(--apx-charcoal);
  color: var(--apx-white);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--apx-line);
  background: linear-gradient(180deg, var(--apx-white) 0%, #f9fbfc 100%);
  padding: 68px 0 72px;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 111, 118, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(142, 149, 155, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 74%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 74%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  align-items: start;
  gap: 24px 64px;
}

.hero-content {
  max-width: 650px;
  min-width: 0;
  padding-top: 12px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--apx-teal);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-statement {
  max-width: 660px;
  margin-bottom: 12px;
  color: var(--apx-charcoal);
  font-size: 1.22rem;
  font-weight: 700;
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.68;
}

.support-card {
  grid-column: 1;
  grid-row: 2;
  max-width: 650px;
  border: 1px solid rgba(0, 111, 118, 0.2);
  border-left: 4px solid var(--apx-teal);
  border-radius: var(--apx-radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--apx-slate);
  padding: 20px 22px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.support-card h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.support-card p {
  margin-bottom: 12px;
}

.support-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--apx-charcoal);
  font-weight: 800;
}

.support-contact a {
  color: var(--apx-teal);
  font-size: 1.08rem;
  text-decoration: none;
}

.support-contact a:hover {
  color: var(--apx-charcoal);
}

.support-note {
  color: var(--apx-slate-muted);
  font-size: 0.9rem;
}

.tools-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  border: 1px solid var(--apx-line);
  border-top: 4px solid var(--apx-teal);
  border-radius: var(--apx-radius);
  background: var(--apx-white);
  box-shadow: var(--apx-shadow);
  padding: 28px 30px 30px;
}

.tools-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.tools-header > div:first-child {
  min-width: 0;
}

.tools-header .eyebrow {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.tool-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid rgba(201, 209, 215, 0.82);
}

.tool-link {
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(201, 209, 215, 0.82);
  color: var(--apx-charcoal);
  padding: 15px 0;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.tool-link:hover {
  color: var(--apx-charcoal);
  background: linear-gradient(90deg, rgba(0, 111, 118, 0.065), transparent 72%);
}

.tool-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--apx-radius);
  background: rgba(0, 111, 118, 0.1);
  color: var(--apx-teal);
}

.tool-icon svg {
  width: 22px;
  height: 22px;
}

.tool-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
}

.tool-desc {
  display: block;
  margin-top: 3px;
  color: var(--apx-slate);
  font-size: 0.98rem;
  line-height: 1.45;
}

.tool-arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--apx-slate-gray);
  transition: color 0.18s ease, transform 0.18s ease;
}

.tool-arrow svg {
  width: 18px;
  height: 18px;
}

.tool-link:hover .tool-arrow {
  color: var(--apx-teal);
  transform: translateX(2px);
}

.tools-note {
  margin: 14px 0 0;
  color: var(--apx-slate-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.note-section {
  padding: 44px 0;
  background: var(--apx-paper-strong);
}

.note-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border: 1px solid var(--apx-line);
  border-left: 5px solid var(--apx-teal);
  border-radius: var(--apx-radius);
  background: var(--apx-white);
  padding: 24px 28px;
}

.note-grid > * {
  min-width: 0;
}

.note-grid h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.note-grid p {
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--apx-line);
  background: var(--apx-white);
  padding: 18px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand note links";
  gap: 18px;
  align-items: center;
}

.footer-brand {
  grid-area: brand;
  display: inline-grid;
  justify-self: start;
  min-width: 0;
  color: var(--apx-charcoal);
  text-decoration: none;
}

.footer-brand span {
  margin-bottom: 0;
  color: var(--apx-slate-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand img {
  width: 180px;
  height: 53px;
  object-fit: cover;
  object-position: center;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--apx-charcoal);
  text-decoration: none;
}

.footer-links a:hover,
.footer-note a:hover {
  color: var(--apx-teal);
}

.footer-note {
  grid-area: note;
  margin: 0;
  color: var(--apx-slate-muted);
  font-size: 0.88rem;
}

.footer-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-address {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--apx-line);
}

.legal-page {
  padding: 70px 0 84px;
  background: var(--apx-paper);
}

.legal-content {
  max-width: 820px;
  border: 1px solid var(--apx-line);
  border-radius: var(--apx-radius);
  background: var(--apx-white);
  padding: 48px;
}

.legal-content h1 {
  margin-bottom: 8px;
  font-size: 3rem;
}

.legal-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  border-top: 1px solid var(--apx-line);
  padding-top: 26px;
  font-size: 1.45rem;
}

.legal-content p,
.legal-content li {
  font-size: 1.03rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--apx-teal);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  color: var(--apx-charcoal);
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.95rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content,
  .tools-card,
  .support-card {
    max-width: 760px;
  }

  .tools-card,
  .support-card {
    grid-column: auto;
    grid-row: auto;
  }

  .header-nav {
    gap: 16px;
  }

  .note-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "note";
    gap: 10px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-address {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --apx-header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    gap: 12px;
  }

  .header-brand {
    gap: 10px;
  }

  .brand-logo,
  .logo {
    width: min(220px, 46vw);
  }

  .admin-badge {
    min-width: 104px;
    font-size: 0.62rem;
  }

  .admin-badge img {
    height: 19px;
  }

  .header-nav {
    display: flex;
    gap: 10px;
  }

  .header-nav .button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    padding: 42px 0 50px;
  }

  h1 {
    font-size: 2.38rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-statement {
    font-size: 1.12rem;
  }

  .lead {
    font-size: 1rem;
  }

  .tools-card {
    padding: 22px;
  }

  .support-card {
    padding: 20px;
  }

  .tool-link {
    grid-template-columns: 42px 1fr 20px;
    gap: 12px;
    min-height: 78px;
  }

  .tool-icon {
    width: 42px;
    height: 42px;
  }

  .note-section {
    padding: 42px 0;
  }

  .note-grid,
  .legal-content {
    padding: 24px 22px;
  }

  .footer-brand img {
    width: 180px;
    height: 53px;
  }

  .legal-page {
    padding: 42px 0 58px;
  }

  .legal-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 420px) {
  .brand-logo,
  .logo {
    width: min(176px, 40vw);
  }

  .admin-badge {
    min-width: 104px;
  }

  .header-nav .button {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .tool-title {
    font-size: 0.98rem;
  }

  .tool-desc {
    font-size: 0.92rem;
  }
}
