:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #162a37;
  background: #fff;
  --ink: #162a37;
  --navy: #112536;
  --mint: #a6e4d2;
  --teal: #076459;
  --muted: #516575;
  --paper: #f3f6f7;
  --line: #dce5e8;
  --frame: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid #0a8070; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--mint); }
.frame { width: min(var(--frame), calc(100% - 3rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 2;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 0.45rem;
  background: white;
  color: var(--teal);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--navy); color: #f3f8f8; border-bottom: 1px solid #ffffff1e; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.65rem;
  font-size: 1.28rem;
  font-weight: 740;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand img { border-radius: 0.65rem; }
.brand-light { font-weight: 540; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a, .site-footer a, .nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .nav-contact:hover { color: var(--mint); }
.nav-contact { padding-inline: 0.9rem; border: 1px solid #ffffff36; border-radius: 0.48rem; }

.hero-band {
  color: #f7fbfb;
  background: radial-gradient(ellipse at 85% 50%, #245354 0%, transparent 60%), var(--navy);
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 5.65rem 6.15rem;
}
.hero-copy { min-width: 0; }
.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 670;
}
.status span { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: currentColor; }
.hero h1 {
  max-width: 10.8em;
  font-size: clamp(3.35rem, 5vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.052em;
  font-weight: 735;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--mint); white-space: nowrap; }
.hero-copy > p:not(.status) {
  max-width: 32rem;
  margin-block: 1.45rem 1.75rem;
  color: #c8dbde;
  font-size: 1.14rem;
  line-height: 1.63;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.48rem;
  font-weight: 690;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button-mint { color: #123f3a; background: var(--mint); }
.button-mint:hover { background: #c9f2e5; }
.button-outline { color: var(--teal); border-color: #90b8ae; background: white; }
.button-outline:hover { background: #eaf7f2; }

.trace {
  position: relative;
  padding: 1.6rem;
  border: 1px solid #d4e8e3;
  border-radius: 1.1rem;
  color: var(--ink);
  background: #f8fbfa;
  box-shadow: 0 1.5rem 4rem #06141d47, 0 0 0 0.6rem #ceeee315;
}
.trace figcaption { color: var(--teal); font-size: 0.84rem; font-weight: 700; }
.trace-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.55rem 1.25rem;
}
.trace-title strong { font-size: 1.42rem; letter-spacing: -0.045em; }
.trace-title span, .trace-note { color: var(--muted); font-size: 0.83rem; }
.trace-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(7.5rem, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #dfebe8;
  border-radius: 0.7rem;
  background: #edf5f3;
}
.trace-inputs { display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.trace-inputs li, .trace-result {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.62rem 0.65rem;
  background: white;
  border: 1px solid #cfe3df;
  border-radius: 0.42rem;
  font-size: 0.88rem;
  font-weight: 690;
}
.trace-inputs li::after {
  content: "";
  position: absolute;
  inset: 50% -1.1rem auto auto;
  width: 1.1rem;
  border-top: 1px solid #7fad9f;
}
.trace-result::before {
  content: "";
  position: absolute;
  inset: 50% 100% auto auto;
  width: 1rem;
  border-top: 1px solid #7fad9f;
}
.trace-inputs { position: relative; }
.trace-inputs::after {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 16%;
  right: -1.1rem;
  border-left: 1px solid #7fad9f;
}
.trace-inputs small, .trace-result small { color: var(--muted); font-size: 0.79rem; font-weight: 500; line-height: 1.24; }
.trace-result { padding: 0.75rem 0.55rem; border-color: #b7dcd0; text-align: center; justify-items: center; }
.trace-result strong { color: var(--teal); }
.trace-check { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #d7f2ea; }
.trace-check::after {
  content: "";
  width: 0.7rem;
  height: 0.4rem;
  border: solid var(--teal);
  border-width: 0 0 2px 2px;
  transform: translateY(-0.05rem) rotate(-45deg);
}
.trace-note { margin-top: 1.15rem; line-height: 1.45; }

.resources { padding-block: 4.35rem 4.65rem; }
.resources h2 { margin-bottom: 2.15rem; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); letter-spacing: -0.052em; line-height: 1.08; }
.feature-grid p, .integration p, .contact p { color: var(--muted); line-height: 1.62; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--line);
}
.feature-grid article { padding: 1.55rem 1.75rem 1.7rem; background: #fff; }
.feature-grid h3 { margin-block: 0.72rem 0.38rem; font-size: 1.21rem; letter-spacing: -0.025em; }
.feature-icon { position: relative; display: block; width: 2.4rem; height: 2.4rem; border-radius: 0.55rem; background: #e3f4ef; color: var(--teal); }
.feature-icon::before, .feature-icon::after { content: ""; position: absolute; }
.icon-match::before, .icon-match::after { inset: 0.8rem auto auto 0.48rem; width: 0.88rem; height: 0.62rem; border: 2px solid; border-radius: 0.2rem; transform: rotate(-40deg); }
.icon-match::after { inset: 0.91rem 0.47rem auto auto; }
.icon-sku::before { inset: 0.66rem; border: 2px solid; border-radius: 0.12rem; }
.icon-sku::after { inset: 0.71rem auto auto 1rem; width: 0.4rem; height: 0.43rem; border: solid; border-width: 0 2px 2px; }
.icon-period::before { inset: 0.58rem 0.67rem; border: 2px solid; border-radius: 0.13rem; }
.icon-period::after { inset: 1rem 0.9rem; border: solid; border-width: 2px 0; }
.icon-audit::before { inset: 0.57rem auto auto 0.57rem; width: 0.92rem; height: 0.92rem; border: 2px solid; border-radius: 50%; }
.icon-audit::after { inset: 1.39rem auto auto 1.36rem; width: 0.57rem; height: 2px; transform-origin: left; transform: rotate(45deg); background: currentColor; }

.integration { padding-block: 2.65rem; border-block: 1px solid var(--line); background: var(--paper); }
.integration-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; align-items: center; }
.integration p { max-width: 42rem; margin-top: 0.65rem; }
.integration-sources { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.6rem; list-style: none; padding: 0; }
.integration-sources li { padding: 0.7rem 0.95rem; border: 1px solid var(--line); border-radius: 0.45rem; background: white; color: var(--ink); font-weight: 660; }
.contact { padding-block: 3.1rem; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: 1.6rem 1.75rem; border: 1px solid #cfe5de; border-radius: 0.85rem; background: #edf8f4; }
.contact h2 { font-size: 1.8rem; }
.contact p { margin-top: 0.35rem; }
.email-link { color: var(--teal); overflow-wrap: anywhere; text-underline-offset: 0.18em; }
.email-link:hover { text-decoration-thickness: 2px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-brand { font-weight: 730; letter-spacing: -0.035em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }

.document { width: min(45rem, calc(100% - 3rem)); margin-inline: auto; padding-block: 3.65rem; }
.document h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.03; letter-spacing: -0.055em; }
.document-lede { margin-block: 1rem 1.9rem; }
.document p, .document dd { color: var(--muted); line-height: 1.65; }
.document section + section { margin-top: 1.75rem; }
.document h2 { margin-bottom: 0.55rem; font-size: 1.36rem; letter-spacing: -0.025em; }
.document dt { margin-top: 0.8rem; font-weight: 650; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 3.75rem; }
  .hero h1 { max-width: 12em; }
  .trace { max-width: 36rem; }
}

@media (max-width: 560px) {
  .frame, .document { width: calc(100% - 2rem); }
  .header-inner { gap: 0.2rem 0.75rem; flex-wrap: wrap; padding-block: 0.6rem; }
  .site-header:not(.compact-header) .site-nav { width: 100%; justify-content: space-between; gap: 0.6rem; }
  .brand { font-size: 1.16rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .hero { padding-block: 2.4rem 2.7rem; }
  .status { margin-bottom: 1.15rem; }
  .hero h1 { font-size: clamp(2.55rem, 10.6vw, 3.65rem); }
  .hero-copy > p:not(.status) { margin-block: 1.05rem 1.35rem; font-size: 1rem; }
  .trace { padding: 0.95rem; box-shadow: 0 0 0 0.27rem #ceeee315; }
  .trace-title { margin-bottom: 0.8rem; }
  .trace-title strong { font-size: 1.18rem; }
  .trace-flow { grid-template-columns: minmax(0, 1fr) minmax(5.8rem, 0.76fr); gap: 1rem; padding: 0.52rem; }
  .trace-inputs li { padding: 0.52rem 0.38rem; }
  .trace-inputs li::after { right: -0.55rem; width: 0.55rem; }
  .trace-inputs::after { right: -0.55rem; }
  .trace-result { padding-inline: 0.25rem; }
  .trace-result::before { width: 0.5rem; }
  .resources { padding-block: 2.7rem; }
  .resources h2 { margin-bottom: 1.3rem; }
  .feature-grid, .integration-inner { grid-template-columns: 1fr; }
  .feature-grid article, .contact-panel { padding: 1.15rem; }
  .integration-sources { justify-content: start; }
  .contact-panel { align-items: start; flex-direction: column; }
  .footer-inner { align-items: start; flex-direction: column; gap: 0; padding-block: 0.8rem; }
  .site-footer nav { flex-wrap: wrap; gap: 0 1rem; }
  .document { padding-block: 2.6rem; }
}
