@font-face { font-family: 'Alan Sans'; src: url('../../fonts/alan-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alan Sans'; src: url('../../fonts/alan-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --surface-3: #ececec;
  --line: #ebebeb;
  --text: #16181d;
  --muted: #7a808c;
  --red: #a10000;
  --red-strong: #870000;
  --red-soft: #fcebec;
  --food-red: #7a0000;
  --yellow: #ffc614;
  --gold: #f2a900;
  --gold-soft: #fff6dd;
  --green: #25d366;
  --danger: #d92d3a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06), 0 2px 8px rgba(28, 25, 23, 0.05);
  --shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.22);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --content: 640px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Cairo, 'Alan Sans', system-ui, sans-serif;
  --numeric-font: Outfit, Cairo, 'Alan Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.icon svg { width: 100%; height: 100%; }

.price { unicode-bidi: isolate; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-strong); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; }
.field-label { font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--red); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
.input[aria-invalid='true'] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 80px; }
.field-error { color: var(--danger); font-size: 0.8125rem; min-height: 1em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.toast {
  position: fixed; inset-inline: var(--gutter); bottom: 96px; margin-inline: auto; max-width: 420px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: #1c1917; color: #fff;
  box-shadow: var(--shadow); text-align: center; font-weight: 400; z-index: 60;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

.state { padding: 64px var(--gutter); text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
