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

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-muted: #f9fafb;
  --text: #111827;
  --text-soft: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / .07), 0 4px 6px -4px rgb(0 0 0 / .07);
  --icon-bg: rgb(255 255 255 / 0.82);
  --icon-border: rgb(229 231 235 / 0.9);
  --icon-shadow: 0 10px 24px -18px rgb(17 24 39 / 0.5);
  --overlay: rgb(17 24 39 / 0.4);
  --modal-shadow: 0 24px 60px -30px rgb(15 23 42 / 0.45);
}

body.dark {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: #111827;
  --panel-muted: #0f172a;
  --text: #edf2f7;
  --text-soft: #c3cedd;
  --text-faint: #7f8ba0;
  --border: #253246;
  --border-soft: #1b2638;
  --shadow: 0 22px 40px -28px rgb(0 0 0 / 0.9);
  --icon-bg: rgb(17 24 39 / 0.84);
  --icon-border: rgb(59 130 246 / 0.18);
  --icon-shadow: 0 18px 36px -26px rgb(0 0 0 / 0.9);
  --overlay: rgb(2 6 23 / 0.68);
  --modal-shadow: 0 26px 60px -26px rgb(0 0 0 / 0.92);
}

html { font-size: 16px; }

body {
  font-family: 'Lexend', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.24s ease, color 0.24s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at top, rgb(59 130 246 / 0.1), transparent 34%),
    linear-gradient(180deg, #fbfcfe 0%, transparent 28%);
  opacity: 1;
  transition: opacity 0.24s ease;
}

body.dark::before {
  opacity: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 5rem 1.5rem 6rem;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────── */
header {
  width: 100%;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ── Card ──────────────────────────────────────────────────── */
.card {
  width: 100%;
  background: var(--panel);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── Top icons ─────────────────────────────────────────────── */
.icon-btn-group {
  position: relative;
  z-index: 30;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.icon-btn {
  position: relative;
  z-index: 31;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--icon-border);
  border-radius: 999px;
  background: var(--icon-bg);
  color: var(--text);
  box-shadow: var(--icon-shadow);
  backdrop-filter: blur(14px);
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.icon-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.icon-info {
  transition: transform 0.2s ease;
}

#info-btn:hover .icon-info {
  transform: rotate(8deg);
}

#theme-btn {
  position: relative;
  overflow: hidden;
}

#theme-btn svg {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-20deg);
}

.icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.dark .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.dark .icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(20deg);
}

/* ── Tabs ──────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: var(--panel);
  color: var(--text-faint);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tab-btn.active {
  border-color: var(--text-soft);
  color: var(--text);
  background: var(--panel-muted);
}
.tab-btn:not(.active):hover {
  border-color: #d1d5db;
  color: var(--text-soft);
}

/* ── Tab panels ────────────────────────────────────────────── */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeUp 0.18s ease both;
}

/* ── Fields ────────────────────────────────────────────────── */
.field {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
  line-height: 1.6;
}
.field::placeholder { color: var(--text-faint); }
.field:focus { border-color: var(--text-soft); }
input.field { resize: none; height: 48px; }

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
.text-muted { color: var(--text-faint); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-field {
  min-height: 156px;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 2px dashed var(--border);
  border-radius: 0.9rem;
  background: var(--panel-muted);
  cursor: pointer;
}

.hidden-file-input {
  display: none;
}

.upload-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.upload-subtitle {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.api-doc {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.api-intro {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgb(59 130 246 / 0.06), transparent),
    var(--panel-muted);
}

.api-intro-text {
  color: var(--text-soft);
  line-height: 1.65;
}

.api-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.95rem;
  background: var(--panel-muted);
}

.api-doc-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.api-route {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Red Hat Mono', ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--text);
  white-space: nowrap;
}

.api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgb(59 130 246 / 0.12);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.dark .api-method {
  background: rgb(96 165 250 / 0.16);
  color: #93c5fd;
}

.api-console {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #0f172a;
  background: #0f172a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
}

.api-console-bar {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgb(148 163 184 / 0.14);
  background: rgb(15 23 42 / 0.92);
}

.api-console-title {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-snippet {
  overflow: auto;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: transparent;
  color: #e2e8f0;
  font-family: 'Red Hat Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.api-shell {
  color: #60a5fa;
  margin-right: 0.45rem;
}

/* ── Error ─────────────────────────────────────────────────── */
.error-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ef4444;
  padding: 0.625rem 0.875rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
}

body.dark .error-msg {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.38);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}
.btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid;
  background: #fff;
  background: var(--panel);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-blue  { border-color: #3b82f6; color: #3b82f6; }
.btn-blue:not(:disabled):hover  { background: #3b82f6; color: #fff; }

.btn-green { border-color: #22c55e; color: #22c55e; }
.btn-green:not(:disabled):hover { background: #22c55e; color: #fff; }

.btn-red   { border-color: #ef4444; color: #ef4444; }
.btn-red:not(:disabled):hover   { background: #ef4444; color: #fff; }

.btn-gray  { border-color: #6b7280; color: #6b7280; }
.btn-gray:not(:disabled):hover  { background: #6b7280; color: #fff; }

.btn-purple { border-color: #a855f7; color: #a855f7; }
.btn-purple:not(:disabled):hover { background: #a855f7; color: #fff; }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  opacity: 0.7;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Results ───────────────────────────────────────────────── */
.results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  animation: fadeUp 0.3s ease both;
}
.results.hidden { display: none; }

.warning-card {
  border-left: 4px solid #f59e0b;
}

.warning-text {
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Section label ─────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

/* ── Verdict card ──────────────────────────────────────────── */
.verdict-card {
  border-left: 4px solid #e5e7eb;
  transition: border-color 0.3s;
}
.verdict-card.is-ai    { border-left-color: #ef4444; }
.verdict-card.is-human { border-left-color: #22c55e; }

.verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.verdict-score {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 0.3s;
}
.verdict-score.is-ai    { color: #ef4444; }
.verdict-score.is-human { color: #22c55e; }

.verdict-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

.verdict-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 2px solid;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.25rem;
}
.verdict-badge.is-ai    { border-color: #fca5a5; color: #ef4444; background: #fef2f2; }
.verdict-badge.is-human { border-color: #86efac; color: #16a34a; background: #f0fdf4; }

.verdict-desc {
  font-size: 0.875rem;
  color: var(--text-faint);
  font-weight: 400;
  line-height: 1.5;
}

/* ── Score bars ────────────────────────────────────────────── */
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.score-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red   { background: #ef4444; }
.dot-green { background: #22c55e; }

.score-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.score-val {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score-val-red   { color: #ef4444; }
.score-val-green { color: #22c55e; }

.bar-track {
  height: 6px;
  background: var(--border-soft);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill-red   { background: #ef4444; }
.bar-fill-green { background: #22c55e; }

/* ── Charts ────────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}
@media (max-width: 480px) { .charts-row { grid-template-columns: 1fr; } }

.chart-card { }
.doughnut-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 155px;
}
.doughnut-wrap canvas { max-height: 155px; }
.doughnut-center {
  position: absolute;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.3s 0.7s ease;
}
.doughnut-center.show { opacity: 1; }
.bar-chart-wrap {
  height: 155px;
  display: flex;
  align-items: center;
}
.bar-chart-wrap canvas { width: 100% !important; }

/* ── Stats grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat-item {
  background: var(--panel-muted);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.text-red { color: #ef4444; }

/* ── Preview card ──────────────────────────────────────────── */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.link-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: border-color 0.15s, color 0.15s;
}
.link-btn:hover { border-color: var(--text-faint); color: var(--text); }
.preview-text {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-faint);
  line-height: 1.6;
}

.sentence-list,
.phrase-list,
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sentence-item,
.phrase-item,
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.85rem;
  background: var(--panel-muted);
}

.history-item {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.history-item:hover,
.history-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  outline: none;
}

body.dark .history-item:hover,
body.dark .history-item:focus-visible {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.22);
}

.sentence-item.high {
  border-color: rgb(239 68 68 / 0.24);
  background: rgb(254 242 242 / 0.8);
}

.sentence-item.medium {
  border-color: rgb(245 158 11 / 0.2);
  background: rgb(255 251 235 / 0.8);
}

body.dark .sentence-item.high {
  background: rgb(69 10 10 / 0.28);
}

body.dark .sentence-item.medium {
  background: rgb(69 26 3 / 0.25);
}

.sentence-score,
.phrase-value,
.history-score {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.sentence-text,
.empty-state,
.phrase-meta,
.history-meta,
.compare-copy {
  color: var(--text-soft);
  line-height: 1.6;
}

.phrase-label,
.history-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.empty-state {
  font-size: 0.9rem;
}

.history-card {
  margin-top: -0.2rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.compare-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.compare-score {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

.compare-score.is-ai {
  color: #ef4444;
}

.compare-score.is-human {
  color: #22c55e;
}

.compare-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.muted {
  color: var(--text-faint);
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--overlay);
  z-index: 40;
}

.modal {
  width: min(100%, 560px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--modal-shadow);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border-soft);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.modal-body p + p,
.modal-body p + .modal-section,
.modal-body ul + p,
.modal-body ul + .modal-section,
.modal-section + .modal-section {
  margin-top: 1rem;
}

.modal-body ul {
  padding-left: 1.25rem;
}

.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 0 1.5rem 1.1rem;
  margin-top: -3.25rem;
  display: flex;
  justify-content: center;
}

.site-footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.site-footer-link {
  position: relative;
  display: inline-block;
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.08rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-footer-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.site-footer-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

@media (max-width: 640px) {
  .icon-btn-group {
    gap: 0.6rem;
    margin-bottom: 0.2rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .wrapper {
    padding-top: 2rem;
  }

  .compare-grid,
  .compare-result-grid {
    grid-template-columns: 1fr;
  }

  .field-meta,
  .api-doc-row,
  .sentence-item,
  .phrase-item,
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .modal {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 1rem;
    margin-top: -2.4rem;
  }
}

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
