/* TACIBO marketing site — design tokens ported 1:1 from the app's
   src/theme/theme.ts so the website reads as the same product. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1a1a;
  --bg: #f6f5f2;
  --card: #fefdfc;
  --sub: #585858;
  --accent: #e9411f;
  --pop: #acdf3f;
  --line: rgba(26, 26, 26, 0.16);
  --shade: #e2e1de;
  --white: #ffffff;
  --gradient-top: #a8e6cf;
  --gradient-bottom: #8ecbec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 19px; }

p { color: var(--ink); }
.sub { color: var(--sub); }

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo { height: 24px; width: auto; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink);
}
.site-header nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
  padding: 80px 0 96px;
}
.hero .wrap { text-align: center; max-width: 760px; }
.hero h1 { color: var(--ink); }
.hero .tagline {
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--ink);
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.card .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pop);
  margin-bottom: 16px;
}
.card p { color: var(--sub); font-size: 14.5px; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Table */
table.rates {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
table.rates th, table.rates td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.rates th {
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
  color: var(--sub);
  background: var(--shade);
}
table.rates tr:last-child td { border-bottom: none; }
table.rates td.you { color: var(--accent); font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 28px; }
.cta-band .btn-primary { border-color: var(--accent); }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; font-size: 13px; color: var(--sub); }
footer a:hover { color: var(--accent); }
footer .fine { font-size: 12.5px; color: var(--sub); }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal .updated { color: var(--sub); font-size: 13px; margin-bottom: 40px; display: block; }
.legal h2 {
  font-size: 18px;
  text-transform: none;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.legal p, .legal li { color: var(--ink); font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; }

/* ── Creator portal (login / dashboard / recipe form) ─────────────── */

.wrap-narrow { max-width: 680px; }

.site-header nav { align-items: center; }
.user-email { font-size: 13px; color: var(--sub); margin-right: 4px; }

/* Auth */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 40px 32px;
}
.auth-heading { font-size: 22px; margin-bottom: 6px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--sub); margin-top: 20px; }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: none; }
.auth-eyebrow-wrap { text-align: center; }
.auth-eyebrow-wrap .auth-heading { text-align: center; }

/* Password field with show/hide toggle, mirrors PasswordField.tsx */
.password-field { position: relative; }
.password-field input { padding-right: 44px !important; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub);
}
.password-toggle svg { display: block; }

.forgot-row { text-align: right; margin: -8px 0 18px; }
.forgot-row a { font-size: 12.5px; color: var(--sub); text-decoration: none; font-weight: 600; }
.forgot-row a:hover { color: var(--accent); }

/* "Continue with Google" — mirrors GoogleSignInButton.tsx */
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.auth-divider .line { flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sub); }
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 12px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink);
  cursor: pointer;
}
.google-btn:disabled { opacity: 0.6; cursor: default; }

/* Form fields, shared by login/dashboard/recipe-form */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field-hint { display: block; font-size: 12px; color: var(--sub); font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea,
.auth-card input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  padding: 11px 13px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-error { color: var(--accent); font-size: 13px; margin: 4px 0 14px; }
.form-success { color: #2a7a2a; font-size: 13px; margin: 4px 0 14px; }

.stacked-form { max-width: 100%; }
.form-actions { display: flex; gap: 12px; margin-top: 12px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--accent); }

.dash-section { padding: 48px 0 96px; min-height: 60vh; }
.dash-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

/* Recipe list */
.recipe-list { display: flex; flex-direction: column; gap: 12px; }
.recipe-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.recipe-row-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: var(--shade);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.recipe-row-body { flex: 1; min-width: 160px; }
.recipe-row-title { font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 15px; }
.recipe-row-badges { display: flex; gap: 8px; margin-top: 4px; }
.recipe-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-public { background: rgba(172, 223, 63, 0.35); color: #4c6b12; }
.badge-private { background: var(--shade); color: var(--sub); }
.badge-premium { background: rgba(233, 65, 31, 0.15); color: var(--accent); margin-left: 6px; }
.badge-views { background: var(--shade); color: var(--sub); margin-left: 6px; }
.badge-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--sub); margin-right: 8px; }

/* Recipe form: visibility row */
.visibility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.visibility-actions { display: flex; gap: 8px; }

/* Dynamic list rows (ingredients/steps) */
.list-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.list-row input { flex: 1; }
.remove-row-btn, .remove-social-btn, .remove-photo-btn, .remove-pending-btn {
  background: var(--shade);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

/* Tag chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  cursor: pointer;
}
.tag-chip.selected { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Cover photo */
.cover-preview-wrap { margin-bottom: 10px; }
.cover-preview { width: 100%; max-width: 320px; border-radius: 8px; border: 1px solid var(--line); }

/* Process photo gallery */
.process-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.process-photo { position: relative; width: 90px; height: 90px; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.process-photo.pending img { opacity: 0.6; }
.process-photo button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; padding: 0; font-size: 13px; line-height: 1; }

/* Socials editor */
.social-row { display: flex; gap: 8px; margin-bottom: 8px; }
.social-row input { flex: 1; min-width: 0; }

/* Featured recipes */
.featured-list { display: flex; flex-direction: column; gap: 8px; }
.featured-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
