/* ----------------------------------------
   Dineline Case Studies — video-first proof page
   Matches new.webprojects.rocks/dineline/
   ---------------------------------------- */

:root {
  --brand: #FF4747;
  --brand-cta: #FF3737;
  --ink: #1A1A1A;
  --ink-deep: #0A0A0A;
  --ink-muted: #555555;
  --ink-subtle: #888888;
  --surface: #FFFFFF;
  --surface-alt: #FAFAFA;
  --surface-soft: #F9FAFB;
  --line: #E5E7EB;
  --shadow-md: 0 6px 24px rgba(10,10,10,.06);
  --shadow-lg: 0 14px 40px rgba(10,10,10,.08);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.accent { color: var(--brand); }

/* ---------- HEADER ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.logo-dot { color: var(--brand); }
.header-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(255,71,71,.06), transparent 60%),
    var(--surface);
  text-align: left;
}
.hero-inner { max-width: 900px; }
.badge {
  display: inline-block;
  background: var(--ink-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 18px;
  color: var(--ink-deep);
}
.hero-sub {
  max-width: 760px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  font-weight: 500;
}

/* ---------- CENTERPIECE (video + data) ---------- */
.centerpiece {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.centerpiece.alt { background: var(--surface-alt); }

.cp-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  max-width: 980px;
}
.cp-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.05em;
  padding-top: 6px;
  flex-shrink: 0;
  border: 2px solid var(--brand);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}
.cp-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}
.cp-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink-deep);
}
.cp-line {
  font-size: 17px;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0;
  max-width: 760px;
}

.cp-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 40px;
  align-items: start;
}
.cp-video {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0A0A0A;
}
.cp-video wistia-player {
  display: block;
  width: 100%;
}

/* Data panel */
.cp-data {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.data-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
}
.centerpiece.alt .kpi { background: #fff; }
.kpis-soft .kpi { background: var(--surface-soft); }
.kpi-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  line-height: 1.1;
}
.kpi-lbl {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.data-note {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-style: italic;
  font-weight: 500;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface-soft);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
}
.pull-quote {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cp-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-deep);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s;
}
.cp-link:hover { color: var(--brand); }

/* ---------- BAR CHART (Rebellion) ---------- */
.bars {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px 18px;
}
.bars-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.bars-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-deep);
}
.bars-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-25 { background: #C9C9C9; }
.dot-26 { background: var(--brand); }

.bars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.bar-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bar-delta {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 2px;
}
.bar-delta.neg {
  color: var(--ink-subtle);
}
.bar-delta.neg .bar-delta-dollar {
  color: var(--ink-subtle);
}
.bar-delta-dollar {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 700;
}
.bar-pair {
  display: flex;
  gap: 6px;
  align-items: end;
  width: 100%;
  height: 180px;
  justify-content: center;
}
.bar-col {
  flex: 1;
  max-width: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.bar-val {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.bar-val-25 { color: #888; }
.bar-val-26 { color: var(--brand); }
.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.bar-25 { background: #C9C9C9; }
.bar-26 { background: var(--brand); }
.bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- MORE WINS GRID ---------- */
.more {
  padding: 96px 0 64px;
  border-top: 1px solid var(--line);
}
.rule {
  width: 64px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-bottom: 28px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-deep);
  margin: 0 0 10px;
  max-width: 880px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 44px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.case:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.case:hover .case-img img {
  transform: scale(1.04);
}
.case-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
  position: relative;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.case-body {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  flex: 1;
}
.case-type {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}
.case-title {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--ink-deep);
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.case-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.case-stats b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  line-height: 1.15;
  overflow-wrap: break-word;
}
.case-stats span {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.25;
}
.case-cta {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
}

/* ---------- CLOSING ---------- */
.closing {
  padding: 72px 0 96px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}
.closing .rule { margin-bottom: 24px; }
.closing-line {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink-deep);
  margin: 0 0 8px;
  max-width: 880px;
}
.closing-sub {
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-subtle);
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .cp-grid { grid-template-columns: 1fr; gap: 28px; }
  .cp-head { gap: 16px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .centerpiece { padding: 56px 0; }
  .cp-num { width: 38px; height: 38px; font-size: 13px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-num { font-size: 18px; }
  .case-grid { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .more { padding: 64px 0 40px; }
  .closing { padding: 48px 0 64px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .bar-pair { height: 130px; }
  .bar-val { font-size: 9.5px; }
  .bar-delta { font-size: 11px; }
  .bar-delta-dollar { font-size: 10px; }
}
