/* ============================================================
   BOFU Content — marketing site.
   Same design tokens as the app (frontend/src/styles/plotline.css)
   so bofucontent.us and app.bofucontent.us read as one product.
   ============================================================ */

:root {
  --bg: #f5f1e9;
  --surface: #fffdf9;
  --surface-2: #efe9dd;
  --border: #e8e0d3;
  --accent: #e8552a;
  --accent-soft: #f6d9cc;
  --ink: #1c140d;
  --muted: #6e6052;
  --faint: #a59785;
  --body: #463c31;
  --dark: #1c140d;
  --good: #15803d;
  --good-bg: #e8fdf0;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --info: #2563eb;
  --info-bg: #e0edff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 20, 13, 0.05);
  --shadow-pop: 0 8px 22px rgba(232, 85, 42, 0.28);
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ---- hero ---- */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(232, 85, 42, 0.10), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 20, 13, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18.5px;
  color: var(--body);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--faint); margin-top: 14px; }

/* ---- hero demo card (mirrors the app's opportunity card) ---- */
.demo-stack { display: flex; flex-direction: column; gap: 14px; }
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.demo-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.demo-card.top { border-color: var(--accent); box-shadow: 0 6px 18px rgba(232, 85, 42, 0.14); }
@media (min-width: 901px) {
  .demo-card.top { transform: rotate(-1.1deg) translateX(-6px); }
  .demo-card:nth-child(2) { transform: rotate(0.7deg) translateX(10px); }
  .demo-card:nth-child(3) { transform: rotate(-0.4deg); }
  .demo-card:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 10px 26px rgba(28, 20, 13, 0.10); }
}
.demo-rank { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.demo-rank-num { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.start-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
}
.demo-kw { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.demo-angle { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-good { color: var(--good); background: var(--good-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-warn { color: var(--warn); background: var(--warn-bg); }
.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.m-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 2px;
}
.m-val { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.m-val.green { color: var(--good); }

/* ---- sections ---- */
section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 700;
}
.sec-sub { font-size: 17px; color: var(--body); margin: 0; }

/* ---- shift (two columns) ---- */
.shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shift-col {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 26px;
}
.shift-col.win { background: var(--surface); border-color: var(--good); }
.shift-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.shift-item { margin-bottom: 16px; }
.shift-item:last-child { margin-bottom: 0; }
.shift-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.shift-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28, 20, 13, 0.08); }
.step-payoff {
  margin: 12px 0 0 !important;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-weight: 600;
  color: var(--accent) !important;
  font-size: 13.5px !important;
  margin-top: auto !important;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- feature grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28, 20, 13, 0.08); border-color: var(--accent-soft); }
.feature-icon { font-size: 22px; margin-bottom: 12px; }
.feature h3 { font-size: 16.5px; margin: 0 0 8px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- integrations ---- */
.int-row { display: flex; flex-wrap: wrap; gap: 12px; }
.int-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  font-weight: 600;
  font-size: 14.5px;
}
.int-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---- faq ---- */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 0;
  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(--accent); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; font-size: 14.5px; color: var(--body); }

/* ---- final cta ---- */
.cta-panel {
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.75); font-size: 17px; max-width: 52ch; margin: 0 auto 28px; }

/* ---- footer ---- */
.site-foot { padding: 44px 0 56px; border-top: 1px solid var(--border); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-copy { font-size: 13.5px; color: var(--faint); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .steps, .features, .shift-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .cta-panel { padding: 44px 24px; }
}

@media (max-width: 560px) {
  .site-head .wrap { height: 56px; }
  .head-actions .btn { padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
  .btn-ghost { padding-left: 6px; padding-right: 6px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }
}

/* ---- pricing ---- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(232, 85, 42, 0.16);
}
.price-flag {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-name { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.price-amount { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--faint); }
.price-blurb { font-size: 14.5px; color: var(--body); margin: 0 0 18px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.price-list li {
  padding: 11px 0 11px 26px;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  color: var(--good);
  font-weight: 700;
}
.price-card .btn { text-align: center; }
.price-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 62ch;
  margin: 26px auto 0;
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ---- outcomes ---- */
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.outcome h3 { font-size: 19px; margin: 0 0 8px; }
.outcome p { margin: 0; font-size: 14.5px; color: var(--body); }
.outcome-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
  border: 1px solid var(--accent-soft);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---- first-week timeline ---- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 2%;
  right: 2%;
  border-top: 2px dashed var(--border);
}
.tl-item { position: relative; padding-top: 40px; }
.tl-item::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.tl-when { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); position: absolute; top: 4px; left: 26px; }
.tl-item p { margin: 0; font-size: 14px; color: var(--body); }

/* ---- control ---- */
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.control-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.control-item h3 { font-size: 16.5px; margin: 0 0 8px; }
.control-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- desktop rhythm ---- */
@media (min-width: 901px) {
  h1 { font-size: clamp(44px, 4.8vw, 64px); }
  .hero-sub { font-size: 19.5px; max-width: 50ch; }
  .sec-head { max-width: 700px; }
  .cta-panel { padding: 80px 64px; }
  .int-chip { padding: 12px 22px 12px 12px; font-size: 15px; }
}

@media (max-width: 900px) {
  .outcome-grid, .control-grid { grid-template-columns: 1fr; gap: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { display: none; }
  .tl-item { padding-top: 0; padding-left: 30px; }
  .tl-item::before { top: 3px; }
  .tl-when { position: static; display: block; margin-bottom: 6px; }
  .tl-item p { margin-left: 0; }
}
