/* couponsaid web-v2 — tokens, reset, typography, layout utilities */

:root {
  --green-950: #07301a;
  --green-900: #0b3d1f;
  --green-800: #0f5130;
  --green-700: #146c3a;
  --green-600: #1a8a47;
  --green-500: #1f9d55;
  --green-200: #c8e6d1;
  --green-100: #e7f3ea;
  --green-50: #f1f8f3;
  --cream: #f6f3ec;
  --cream-dark: #ece7da;
  --gold: #e8c46a;
  --gold-dark: #b8912f;
  --red-100: #fde3e3;
  --red-600: #c62828;
  --amber-100: #fff1c9;
  --amber-600: #b7791f;
  --ink: #1a1a1a;
  --ink-soft: #333;
  --muted: #6b7280;
  --line: #e2e5e9;
  --white: #fff;
  --whatsapp: #25d366;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(11, 61, 31, 0.08);
  --shadow-hover: 0 12px 32px rgba(11, 61, 31, 0.14);
  --container: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; list-style: revert; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--font-display); font-style: italic; font-weight: 700; letter-spacing: -0.01em; }
h1.display { font-size: clamp(2rem, 5vw, 3.5rem); }
h2.display { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3.display { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.small { font-size: .875rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section__head { text-align: center; margin-bottom: 32px; }
.section__head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -0.2em; }
.icon--fill { fill: currentColor; stroke: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap; transition: all .15s ease;
}
.btn--primary { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-100); color: var(--green-900); }
.btn--light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--green-900); }
.btn--ghost { background: transparent; color: var(--green-700); padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { background: var(--green-100); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; border-radius: var(--radius); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* forms */
.field { margin-bottom: 18px; }
.field__label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field__control, .input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field__control:focus, .input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(31, 157, 85, .18); }
.field__control[readonly] { background: var(--cream); color: var(--muted); }
textarea.field__control { min-height: 130px; resize: vertical; }
.field--inline { display: flex; align-items: center; gap: 10px; }
.field__hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-700); }

/* alerts */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin: 0 0 18px; border: 1px solid transparent; }
.alert--success { background: var(--green-100); color: var(--green-900); border-color: var(--green-200); }
.alert--error { background: var(--red-100); color: var(--red-600); border-color: #f5c2c2; }
.alert--warning { background: var(--amber-100); color: var(--amber-600); border-color: #f1dc9b; }
.alert--info { background: var(--white); color: var(--ink-soft); border-color: var(--line); }
.alert:empty { display: none; }

/* cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; }
.card--gold { border: 1.5px solid var(--gold); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin-bottom: 12px; }

/* tables */
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs__tab { padding: 10px 16px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs__tab.is-active { color: var(--green-800); border-color: var(--green-700); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* badges, pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.pill--gold { background: var(--gold); color: var(--green-950); }
.pill--outline { border: 1.5px solid var(--gold); color: var(--white); }
.pill--green { background: var(--green-700); color: var(--white); }
.badge-state { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; }
.badge-state--paid { background: var(--green-100); color: var(--green-800); }
.badge-state--pending { background: var(--amber-100); color: var(--amber-600); }

.skeleton { background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
