:root {
  --bg: #FAF9F6;
  --card: #ffffff;
  --text: #2D2424;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #B07D62;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
main { padding-bottom: 2rem; }

.container { width: min(980px, 92vw); margin: 0 auto; }
.stack { display: grid; gap: 1rem; }

.topbar { background: var(--card); border-bottom: 1px solid var(--border); }
.topbar__content { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; }
.brand { font-size: 1.1rem; font-weight: 700; }
.nav { display: flex; gap: 1rem; color: var(--muted); }

.page-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: 1.5rem; }
.page-header h1 { margin: 0; font-size: 1.7rem; }
.page-header p { margin: 0.35rem 0 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(45, 36, 36, 0.08);
  padding: 1rem;
}
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border-radius: 8px; border: 1px solid var(--primary); background: var(--primary);
  color: #fff; padding: .55rem .9rem; font-weight: 600; cursor: pointer;
}
.button--ghost { background: transparent; color: var(--primary); }
.button--danger { background: #fff; border-color: #fecaca; color: var(--danger); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--border); }
.table-actions { display: flex; gap: .5rem; justify-content: flex-end; }

.flash-stack { margin-top: 1rem; }
.flash { padding: .7rem .9rem; border-radius: 8px; }
.flash--notice { background: #dcfce7; color: #166534; }
.flash--alert { background: #fee2e2; color: #991b1b; }
.alert { background: #fff7ed; border: 1px solid #fed7aa; padding: .8rem; border-radius: 8px; }

/* Minimal utility support for existing recipe views */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 920px; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: .75rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-7 { grid-column: span 7; }
.col-span-4 { grid-column: span 4; }
.col-span-1 { grid-column: span 1; }
.text-sm { font-size: .9rem; }
.text-lg { font-size: 1.1rem; }
.text-2xl { font-size: 1.6rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: var(--text); }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-white { color: white; }
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.mr-2 { margin-right: .5rem; }
.rounded-lg, .rounded-md, .rounded-xl { border-radius: 10px; }
.border { border: 1px solid var(--border); }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-rose-200 { border-color: #fecdd3; }
.border-dashed { border-style: dashed; }
.bg-white { background: white; }
.bg-slate-50 { background: var(--bg); }
.bg-slate-900 { background: var(--primary); }
.bg-emerald-50 { background: #ecfdf5; }
.shadow-sm { box-shadow: 0 8px 20px rgba(45, 36, 36, 0.08); }
.text-red-500 { color: var(--danger); }
.hidden { display: none !important; }

.landing {
  padding: 2.5rem 0 1rem;
}

.landing__hero {
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.2rem;
}

.landing__eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: .78rem;
}

.landing__hero h1 {
  margin: .65rem 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.15;
}

.landing__lead {
  margin: .9rem 0 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.6;
}

.landing__actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.landing__features {
  margin-top: 1rem;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(45, 36, 36, 0.08);
  padding: 1rem;
}

.landing-card h2 {
  margin: 0;
  font-size: 1rem;
}

.landing-card p {
  margin: .5rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .92rem;
}

.landing__proof {
  margin-top: 1rem;
  display: grid;
  gap: .9rem;
  grid-template-columns: 1.1fr 1.4fr;
}

.testimonial-card,
.comparison-card,
.story-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(45, 36, 36, 0.08);
  padding: 1.2rem;
}

.testimonial-card__quote {
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
}

.testimonial-card__author {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.comparison-card h2,
.story-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.comparison-card table {
  width: 100%;
  margin-top: .8rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.comparison-card th,
.comparison-card td {
  text-align: left;
  padding: .55rem .4rem;
  border-bottom: 1px solid var(--border);
}

.comparison-card th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}

.comparison-card tbody tr:last-child td {
  border-bottom: none;
}

.landing__story {
  margin-top: 1rem;
}

.story-card p {
  margin: .7rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .landing__hero { padding: 1.4rem; }
  .landing__features { grid-template-columns: 1fr; }
  .landing__proof { grid-template-columns: 1fr; }
}

.auth-page {
  padding: 2.2rem 0 1rem;
}

.auth-page__container {
  max-width: 560px;
}

.auth-card {
  padding: 1.4rem;
}

.auth-card h1 {
  margin: .55rem 0 0;
  font-size: 1.65rem;
}

.auth-card__lead {
  margin: .65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  margin-top: 1.1rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .92rem;
}

.auth-checkbox input {
  width: auto;
}

.auth-hint {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .82rem;
}

.auth-card__links {
  margin-top: .65rem;
}

.auth-links .button {
  width: 100%;
}

.auth-text-link {
  color: var(--primary);
  font-size: .9rem;
  text-align: center;
}

.alert ul {
  margin: .5rem 0 0;
  padding-left: 1rem;
}
