/* Savormark marketing site — matches the app's theme (src/lib/theme.ts). */
:root {
  --terracotta: #C96A4A;
  --terracotta-dark: #A5573D;
  --terracotta-light: #F7E9E4;
  --cream: #F7F5F2;
  --surface: #FFFFFF;
  --warm: #FDFAF7;
  --ink: #1A1207;
  --ink-2: #6B6560;
  --ink-3: #A8A29E;
  --border: #EDE8E3;
  --border-light: #F5F2EF;
  --sage: #7C9A7A;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(26, 18, 7, 0.06), 0 1px 2px rgba(26, 18, 7, 0.04);
  --shadow-md: 0 6px 24px rgba(26, 18, 7, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 18, 7, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.site-header img.logo { height: 34px; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--terracotta); }
.site-nav a.btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--terracotta); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn.secondary {
  background: var(--terracotta-light); color: var(--terracotta);
}
.btn.secondary:hover { background: #f1ded6; }
.btn.small { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero p.sub {
  margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 46ch;
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 320px; background: var(--cream);
  border: 10px solid var(--ink); border-radius: 44px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
}
.phone .screen { padding: 18px 12px 20px; }
.app-header { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px 12px; }
.app-header img { height: 22px; width: auto; align-self: flex-start; }
.app-header span { font-size: 11px; color: var(--ink-3); }
.post-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px;
}
.post-photo {
  height: 150px; position: relative;
  background: linear-gradient(135deg, #E8B98F 0%, #C96A4A 60%, #A5573D 100%);
  display: flex; align-items: center; justify-content: center; font-size: 56px;
}
.venue-chip {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.photo-author {
  position: absolute; left: 14px; bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.photo-author .ava {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.9);
}
.photo-author b { color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.post-body { padding: 10px 14px 12px; }
.post-body h4 { font-size: 14px; font-weight: 800; }
.post-body p { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.post-actions { display: flex; gap: 14px; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.post-actions .liked { color: var(--terracotta); }
.group-header {
  display: flex; align-items: center; gap: 8px;
  background: var(--terracotta-light); border-radius: var(--r-md);
  padding: 8px 12px; margin-bottom: 8px;
}
.group-header .ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.group-header div b { font-size: 12px; display: block; }
.group-header div span { font-size: 10px; color: var(--terracotta); font-weight: 600; }

/* ---------- Sections ---------- */
section.features { padding: 56px 0 24px; }
.section-kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
  font-weight: 800; color: var(--terracotta); text-align: center;
}
h2.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.01em; margin-top: 8px;
}
.features-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--terracotta-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; font-weight: 800; }
.feature p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.feature .pro {
  display: inline-block; margin-left: 6px; vertical-align: 2px;
  background: var(--terracotta-light); color: var(--terracotta);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px;
}

/* ---------- Closing CTA ---------- */
.closing { padding: 64px 0 80px; }
.closing .card {
  background: var(--terracotta); color: #fff; text-align: center;
  border-radius: var(--r-xl); padding: 56px 32px; box-shadow: var(--shadow-md);
}
.closing h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; }
.closing p { margin-top: 10px; opacity: 0.92; font-size: 1.05rem; }
.closing .btn { margin-top: 26px; background: #fff; color: var(--terracotta); }
.closing .btn:hover { background: var(--warm); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; }
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer img { height: 26px; opacity: 0.9; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer .copy { font-size: 13px; color: var(--ink-3); width: 100%; margin-top: 6px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal article {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
  padding: 48px clamp(24px, 5vw, 56px); max-width: 820px; margin: 0 auto;
}
.legal h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-top: 36px; }
.legal p { margin-top: 12px; color: var(--ink-2); }
.legal p strong, .legal li strong { color: var(--ink); }
.legal ul { margin: 12px 0 0 22px; color: var(--ink-2); }
.legal li { margin-top: 6px; }
.legal hr { border: none; border-top: 1px solid var(--border-light); margin: 28px 0; }
.legal table {
  width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px;
}
.legal th, .legal td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--border);
  color: var(--ink-2); vertical-align: top;
}
.legal th { background: var(--warm); color: var(--ink); font-weight: 700; }
.legal a { color: var(--terracotta); }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: 2; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a.hide-mobile { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
