* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font: 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23F4F2EF' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--acc-hi);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}
h1 {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 28px;
  line-height: 1.2;
}
h4 {
  font-size: 20px;
  line-height: 1.3;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
small,
.caption {
  font-size: 13px;
  line-height: 1.55;
}
.muted {
  color: var(--ink-2);
}
.money {
  color: var(--gold);
}
.mono {
  font: 500 15px var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.container {
  width: min(var(--container), calc(100% - var(--page-padding) * 2));
  margin: auto;
}
.section {
  padding: var(--section-space) 0;
  scroll-margin-top: 0;
}
.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    border-color 0.18s;
  color: var(--ink-1);
  white-space: normal;
  text-align: center;
}
.btn-primary {
  background: var(--acc);
  color: var(--button-ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--acc-hi);
  color: var(--button-ink);
}
.btn-primary:active:not(:disabled) {
  background: var(--acc-lo);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-3);
  border-color: var(--line-3);
}
.btn-lg {
  min-height: 60px;
  padding: 12px 36px;
  font-size: 18px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-1);
  display: inline-grid;
  place-items: center;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-card);
  padding: 32px;
}
.card-featured {
  border-color: var(--acc-line);
  background: var(--glow-card), var(--bg-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-3);
  color: var(--ink-2);
}
.pill-acc {
  color: var(--acc-hi);
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
}
.pill-ok {
  color: var(--ok);
}
.pill-warn {
  color: var(--warn);
}
.pill-err {
  color: var(--err);
}
.input {
  width: 100%;
  height: 52px;
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-control);
  padding: 0 16px;
  color: var(--ink-1);
  font-size: 16px;
}
.input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
textarea.input {
  height: 120px;
  padding: 12px 16px;
  resize: vertical;
}
.field-label {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.field-hint {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}
.field-error {
  font-size: 13px;
  color: var(--err);
  margin-top: 6px;
}
.field {
  margin-bottom: 20px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
  color: var(--ink-2);
}
.check input {
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-3);
}
.check input:checked {
  background-color: var(--acc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m5 11 4 4 8-8' fill='none' stroke='%230A0A0B' stroke-width='2'/%3E%3C/svg%3E");
}
.toast-stack {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1000;
  display: grid;
  gap: 12px;
  max-width: calc(100% - 48px);
}
.toast {
  padding: 16px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ok);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 15px;
}
.toast.error {
  border-left-color: var(--err);
}
.skeleton {
  height: 24px;
  border-radius: 8px;
  background: var(--bg-3);
  animation: pulse 1.4s infinite alternate;
}
.skeleton-page {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 160px 24px 24px;
  min-height: 100dvh;
}
.skeleton-page .skeleton:first-child {
  height: 160px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden,
[hidden] {
  display: none !important;
}
.stack {
  display: grid;
  gap: 24px;
}
.row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1001;
  background: var(--bg-2);
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.reveal {
  animation: reveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  to {
    opacity: 0.45;
  }
}
dialog {
  color: var(--ink-1);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 32px;
  width: min(600px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
}
dialog h3 {
  margin-bottom: 24px;
}
dialog .dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}
.error-page {
  padding: 120px 24px;
  text-align: center;
}
.error-page button {
  margin-top: 24px;
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 22px;
  }
  h4 {
    font-size: 18px;
  }
  .card {
    padding: 24px;
  }
  .btn-lg {
    padding: 12px 20px;
  }
  .overline {
    margin-bottom: 20px;
  }
  .toast-stack {
    right: 16px;
    top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
