* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}
body {
  overflow-wrap: anywhere;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 16px/1.65 var(--font-ui);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
img {
  max-width: 100%;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.6rem);
}
h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}
h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}
.wrap {
  width: min(1200px, calc(100% - var(--space-24)));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-ink);
  color: white;
  padding: var(--space-3);
  z-index: 20;
}
.skip:focus {
  top: var(--space-4);
}
.eyebrow {
  color: var(--color-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-muted);
}
.button {
  max-width: 100%;
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.button.secondary,
.button.outline {
  background: transparent;
  border-color: var(--color-control-line);
}
.button.secondary:hover,
.button.outline:hover {
  background: var(--color-gold-surface);
}
.button.tertiary {
  background: transparent;
  border-color: transparent;
  padding-inline: var(--space-3);
  text-decoration: underline;
}
.button:disabled {
  background: var(--color-line);
  border-color: var(--color-line);
  color: var(--color-muted);
  cursor: not-allowed;
}
.icon {
  width: 40px;
  height: 40px;
  display: block;
}
.icon-box {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-gold-surface);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gold-surface);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.success,
.feedback.success {
  background: var(--color-success-surface);
  color: var(--color-success);
}
.badge.info,
.feedback.info {
  background: var(--color-info-surface);
  color: var(--color-info);
}
.badge.error,
.feedback.error {
  background: var(--color-error-surface);
  color: var(--color-error);
}
.field {
  display: grid;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-control-line);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 112px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.field small {
  font-weight: 400;
  color: var(--color-muted);
}
.choice {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-info);
  flex-shrink: 0;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-weight: 600;
}
progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-line);
  overflow: hidden;
  accent-color: var(--color-success);
}
progress::-webkit-progress-bar {
  background: var(--color-line);
}
progress::-webkit-progress-value {
  background: var(--color-success);
  border-radius: var(--radius-sm);
}
progress::-moz-progress-bar {
  background: var(--color-success);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 0.8125rem;
  margin-bottom: var(--space-3);
}
.feedback {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border-left: 3px solid currentColor;
}
.feedback p:last-child {
  margin: 0;
}
.feedback strong {
  display: block;
  margin-bottom: var(--space-1);
}
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-line);
  overflow-x: auto;
}
.tabs button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--color-ink);
  font-weight: 700;
}
.tabs :focus-visible {
  outline-offset: -4px;
}
.tab-panel {
  padding-block: var(--space-6);
}
details {
  border-bottom: 1px solid var(--color-line);
}
summary {
  position: relative;
  padding: var(--space-6) var(--space-8) var(--space-6) 0;
  min-height: 48px;
  list-style: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: var(--space-1);
  top: var(--space-6);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 400;
}
details[open] summary::after {
  content: "−";
}
details > p {
  color: var(--color-muted);
  font-size: 0.875rem;
  padding-bottom: var(--space-4);
  max-width: 60ch;
}
dialog {
  width: min(480px, calc(100% - var(--space-8)));
  max-height: calc(100% - var(--space-8));
  padding: var(--space-8);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  color: var(--color-ink);
}
dialog::backdrop {
  background: #3b2e245c;
}
dialog h2 {
  font-size: 1.8rem;
}
.tooltip-wrap {
  position: relative;
  display: inline-block;
}
.tooltip {
  position: absolute;
  width: 220px;
  left: 0;
  bottom: calc(100% + var(--space-2));
  padding: var(--space-3);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  z-index: 3;
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - var(--space-8));
  }
  .eyebrow {
    margin-bottom: var(--space-4);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--space-2);
}
