* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
body { color: var(--ink); background: var(--paper); }
a { color: inherit; }
img { display: block; width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 20px; }
:focus-visible { outline: 3px solid var(--focus, var(--primary)); outline-offset: 4px; }
.wrap { width: min(calc(100% - 96px), 1290px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 6px; left: 6px; padding: 8px; background: white; color: #151922; z-index: 9; }
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 79px; gap: 15px; }
.brand { font-size: 23px; font-weight: 760; letter-spacing: -.045em; line-height: 1.05; text-decoration: none; }
.nav { display: flex; gap: clamp(16px, 2.8vw, 39px); }
.nav a { text-decoration: none; font-weight: 630; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu { display: none; }
.button { display: inline-flex; text-align: center; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; background: var(--primary); color: var(--on-primary, white); text-decoration: none; border: 1px solid transparent; border-radius: var(--button-radius, 7px); font-weight: 720; line-height: 1.15; }
.button:hover { filter: brightness(.93); }
.label { font-weight: 660; font-size: 15px; color: var(--muted); line-height: 1.35; }
.tag { font-size: 14px; line-height: 1.35; display: inline-block; }
.ghost { font-weight: 650; text-underline-offset: 4px; }
.body-copy { color: var(--muted); line-height: 1.5; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; font-size: 14px; }
.foot p { color: var(--muted); text-align: right; }
.demo-form { min-width: 0; display: grid; gap: 12px; padding: 22px; background: var(--form-bg, white); color: var(--form-ink, var(--ink)); border: 1px solid var(--form-line, var(--line)); border-radius: var(--form-radius, 12px); }
.demo-form label { display: grid; gap: 5px; min-width: 0; font-weight: 670; font-size: 15px; }
.demo-form select { color: inherit; background: var(--field-bg, var(--paper)); border: 1px solid var(--form-line, var(--line)); border-radius: 6px; min-height: 45px; width: 100%; padding: 8px 9px; font-size: 16px; }
.form-note { font-size: 14px; line-height: 1.35; color: var(--form-muted, var(--muted)); }
.result { background: var(--result-bg, var(--paper)); padding: 11px 13px; border-radius: 7px; overflow-wrap: anywhere; }
.result p { margin-top: 5px; font-size: 15px; line-height: 1.35; }
.result button { padding: 8px 0 1px; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
details > summary { cursor: pointer; font-weight: 660; }

@media (max-width: 1070px) { .wrap { width: calc(100% - 58px); } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 34px); }
  .bar { min-height: 67px; gap: 8px; }
  .brand { font-size: 20px; }
  .bar > .button { min-height: 42px; padding: 8px 10px; font-size: 14px; margin-left: auto; }
  .menu { display: grid; place-items: center; flex: none; width: 42px; height: 42px; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 20px; }
  .nav { display: none; position: absolute; z-index: 4; top: 60px; left: 0; right: 0; border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; background: var(--nav-bg, var(--paper)); }
  .bar[data-open="true"] .nav { display: grid; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .demo-form { padding: 14px; }
  .foot { gap: 12px; align-items: start; }
  .foot p { max-width: 20ch; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }


/* Keep the demo status visible while navigating the page. */
:root { scroll-padding-top: 3rem; }
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}
.contact-note { text-decoration: none; }
