/* TastyReply — Operations Intelligence positioning
   Design tokens: deep slate-blue + warm coral accent.
   Less restaurant-cliché than the previous red/orange.
   Built for clarity, scannable density, and trust. */

:root {
  --bg: #0b1220;
  --bg-elev: #111a2e;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --surface-line: #e6e8ef;
  --ink: #0b1220;
  --ink-soft: #2a334a;
  --ink-mute: #5a6378;
  --ink-faint: #8d94a6;
  --brand: #2347d9;          /* deep blue — analytics, not restaurant */
  --brand-strong: #1a35a8;
  --brand-soft: #eaf0ff;
  --accent: #ff6b4a;          /* warm coral — energy, not food-cliché */
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
  --shadow: 0 4px 12px rgba(11, 18, 32, 0.08), 0 2px 4px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 18px 40px rgba(11, 18, 32, 0.12), 0 4px 12px rgba(11, 18, 32, 0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
small, .small { font-size: 0.875rem; color: var(--ink-mute); }
.eyebrow { text-transform: uppercase; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 0.5rem; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--surface-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.85rem;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 700px) { .nav .nav-link-hide { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--surface-line); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Hero */
.hero { padding: 96px 0 64px; background: linear-gradient(180deg, var(--surface-soft) 0%, white 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-strong); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.trust-line { margin-top: 20px; color: var(--ink-mute); font-size: 0.85rem; }
.trust-line::before { content: "✓"; color: var(--good); margin-right: 6px; font-weight: 700; }

/* Hero visual — sample weekly briefing card */
.brief-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--surface-line);
  overflow: hidden; transform: rotate(-1deg);
}
.brief-head {
  background: var(--bg); color: white; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brief-head .from { font-size: 0.8rem; opacity: 0.7; }
.brief-head .when { font-size: 0.75rem; opacity: 0.5; }
.brief-body { padding: 22px 24px; }
.brief-body h4 { font-size: 1.1rem; margin-bottom: 12px; }
.brief-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.brief-stat { background: var(--surface-soft); padding: 12px; border-radius: var(--radius-sm); text-align: center; }
.brief-stat .v { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.brief-stat .l { font-size: 0.7rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.brief-watch {
  border-left: 3px solid var(--accent); padding: 10px 14px;
  background: #fff7f4; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem; color: var(--ink-soft);
}
.brief-watch strong { color: var(--ink); }

/* Section blocks */
.block { background: var(--surface-soft); }
.problem-list { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.problem-item {
  background: white; border: 1px solid var(--surface-line);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.problem-item .ico { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #fee2e2; color: var(--bad); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.problem-item .ico.good { background: #dcfce7; color: var(--good); }

/* Feature cards */
.card {
  background: white; border: 1px solid var(--surface-line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #c7cde0; transform: translateY(-2px); }
.card .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-mute); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; background: white; border: 1px solid var(--surface-line); border-radius: var(--radius); }
.step .num { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: white; font-size: 0.75rem; font-weight: 700; margin-bottom: 12px; }

/* Dashboard preview (mock) */
.dash {
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-line); overflow: hidden;
}
.dash-head { padding: 14px 18px; border-bottom: 1px solid var(--surface-line); display: flex; align-items: center; gap: 10px; background: var(--surface-soft); }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd0dc; }
.dash-head .url { margin-left: 8px; font-size: 0.78rem; color: var(--ink-mute); font-family: ui-monospace, SFMono-Regular, monospace; }
.dash-body { padding: 22px; display: grid; gap: 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface-soft); padding: 14px; border-radius: var(--radius); }
.kpi .l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.kpi .v { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }
.kpi .d { font-size: 0.78rem; margin-top: 2px; }
.kpi .d.up { color: var(--good); }
.kpi .d.down { color: var(--bad); }

.heatmap { display: grid; gap: 8px; }
.hm-row { display: grid; grid-template-columns: 160px repeat(7, 1fr); gap: 6px; align-items: center; }
.hm-row .label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.hm-cell { aspect-ratio: 1; border-radius: 4px; }
.hm-0 { background: #ecfdf5; } .hm-1 { background: #bbf7d0; }
.hm-2 { background: #fde68a; } .hm-3 { background: #fdba74; }
.hm-4 { background: #fca5a5; } .hm-5 { background: #f87171; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: white; border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 32px; position: relative; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tier .tag { position: absolute; top: -10px; left: 24px; background: var(--brand); color: white; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tier h3 { font-size: 1.3rem; }
.tier .price { font-size: 2.4rem; font-weight: 800; margin: 6px 0 4px; color: var(--ink); }
.tier .price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-mute); }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.tier li { padding: 6px 0; color: var(--ink-soft); font-size: 0.95rem; display: flex; align-items: flex-start; gap: 8px; }
.tier li::before { content: "✓"; color: var(--good); font-weight: 700; }

/* FAQ */
.faq details { background: white; border: 1px solid var(--surface-line); border-radius: var(--radius); margin-bottom: 10px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-mute); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--brand); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--bg); color: #c8cfdf; padding: 56px 0 32px; }
.site-footer a { color: #c8cfdf; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 0.9rem; }
.site-footer .legal { grid-column: 1/-1; border-top: 1px solid #243254; margin-top: 24px; padding-top: 20px; font-size: 0.8rem; color: #6c7691; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* CTA banner */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, #4d2dba 100%); color: white; padding: 64px 0; text-align: center; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: white; color: var(--brand-strong); }
.cta-band .btn-primary:hover { background: #f1f4ff; }

/* Tag chips for review categories */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: var(--surface-soft); color: var(--ink-soft); border: 1px solid var(--surface-line); }
.chip.bad { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.chip.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chip.good { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }

/* Inline list reset for pages */
ul.clean { list-style: none; padding: 0; margin: 0; }
