@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-forest: #0F3D36;
  --color-cream: #F7F3EA;
  --color-orange: #E66A2E;
  --color-danger-bg: #FDEBE8;
  --color-danger-text: #9C2F26;
  --color-sage: #506B63;
  --color-line: #e4ddd0;
  --font-sans: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-forest);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color-scheme: light;
}

::selection {
  background: #0F3D36;
  color: #F7F3EA;
}

:focus-visible {
  outline: 3px solid #0F3D36;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: #0F3D36;
  color: #F7F3EA;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 20;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
  top: 0.75rem;
}

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

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  transform: none;
  background: transparent;
  color: inherit;
}

.site-header {
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-badge {
  color: var(--color-sage);
  font-weight: 700;
}

.card {
  margin-top: 0.5rem;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 36px;
}

.page-header h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.page-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-sage);
  max-width: 42ch;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.block {
  margin: 0 0 1.75rem;
}

.callout {
  background: #FDEBE8;
  color: #9C2F26;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.callout h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.callout p,
.callout li {
  color: #9C2F26;
}

.form-label,
.checkbox-label {
  display: block;
  font-weight: 700;
}

.form-group {
  margin: 0 0 1rem;
}

.form-input {
  width: 100%;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid #d9d1c3;
  border-radius: 0.8rem;
  background: #fff;
  color: #0F3D36;
  font: inherit;
}

.form-hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-sage);
  font-size: 0.95rem;
}

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 48px;
  margin: 0.5rem 0 1rem;
}

.checkbox-group input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: #0F3D36;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn-danger {
  background: #9C2F26;
  color: #F7F3EA;
}

.btn-primary {
  background: #0F3D36;
  color: #F7F3EA;
}

.btn-danger:focus-visible,
.btn-primary:focus-visible {
  outline-color: #E66A2E;
}

.status-box {
  margin-top: 1rem;
}

.receipt-card {
  overflow: auto;
  padding: 0.8rem;
  background: #fff;
  border-radius: 0.8rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
}

details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  color: #0F3D36;
}

details .inner {
  padding-bottom: 0.5rem;
}

.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--color-line);
}

.badge-immediate,
.badge-retention {
  font-weight: 800;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--color-sage);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #0F3D36;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

a {
  color: #0F3D36;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
