/* ContributionOS v2 — consumer creative platform design system */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F6F1E8;
  --bg-soft: #EFE8DA;
  --card: #FFFFFF;
  --ink: #17130E;
  --muted: #6F6557;
  --line: rgba(23, 19, 14, 0.10);

  --lime: #D8F23C;
  --orange: #FF5A1F;
  --pink: #FF3D77;
  --blue: #2B4BFF;
  --green: #00A868;
  --gold: #FFB800;
  --violet: #7C3AED;

  --grad-stadium: linear-gradient(135deg, #FF5A1F 0%, #FF3D77 55%, #7C3AED 100%);
  --grad-pitch: linear-gradient(135deg, #00A868 0%, #0BD97E 60%, #D8F23C 100%);
  --grad-night: linear-gradient(135deg, #17130E 0%, #33260F 60%, #6B4A0E 100%);
  --grad-sky: linear-gradient(135deg, #2B4BFF 0%, #6C8CFF 70%, #BFE0FF 100%);

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 10px 30px rgba(23, 19, 14, 0.08);
  --shadow-lift: 0 18px 50px rgba(23, 19, 14, 0.16);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.logo .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-stadium); }
.logo small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; gap: 4px; margin-left: auto; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.nav a {
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: all .18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }

.topbar .cta {
  margin-left: 12px; background: var(--lime); color: var(--ink); border: none;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(216, 242, 60, .5); transition: transform .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar .cta:hover { transform: translateY(-1px); }

/* ---------- Menu button + side drawer ---------- */
.menu-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--bg-soft);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex-shrink: 0; transition: background .15s ease;
}
.menu-btn:hover { background: var(--ink); }
.menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: background .15s ease; }
.menu-btn:hover span { background: #fff; }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(23,19,14,.35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: 292px;
  background: var(--card); box-shadow: var(--shadow-lift);
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto; padding: 18px 16px 20px; display: flex; flex-direction: column;
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 12px; }
.drawer-head b { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.drawer-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-soft); font-size: 13px; }
.drawer-close:hover { background: var(--ink); color: #fff; }
.drawer-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 14px 10px 6px;
}
.drawer a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.drawer a:hover { background: var(--bg); }
.drawer a.active { background: var(--ink); color: #fff; }
.drawer a em { font-style: normal; font-size: 15px; width: 20px; text-align: center; }
.drawer-foot { margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid var(--line); }
.drawer-foot a { font-size: 13px; color: var(--muted); padding: 4px 0; }
.drawer-foot a:hover { background: none; color: var(--ink); }

/* ---------- Typography ---------- */
.hero-q {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -0.03em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-stadium); }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 28px; border: 1px solid rgba(23,19,14,.04);
}
.card.lift { transition: transform .2s ease, box-shadow .2s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink); border: 1px solid transparent;
}
.chip.on { background: var(--ink); color: #fff; }
.chip:is(button):hover { border-color: var(--ink); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pill.ready { background: rgba(0,168,104,.12); color: #00784B; }
.pill.warm { background: rgba(255,184,0,.16); color: #8A6400; }
.pill.wait { background: rgba(43,75,255,.10); color: #2B4BFF; }
.pill.hot { background: rgba(255,90,31,.12); color: #C43C0A; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 999px; font-weight: 700; font-size: 16px;
  padding: 14px 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(23,19,14,.25); }
.btn.lime { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px rgba(216,242,60,.5); }
.btn.hot { background: var(--grad-stadium); color: #fff; box-shadow: 0 8px 24px rgba(255,61,119,.35); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.small { font-size: 14px; padding: 9px 18px; }

/* ---------- AI translation layer (details) ---------- */
.translate { margin-top: 18px; border-radius: var(--r-md); overflow: hidden; border: 1px dashed rgba(23,19,14,.18); }
.translate summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 13px 18px; font-weight: 600; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; background: rgba(23,19,14,.025);
}
.translate summary::-webkit-details-marker { display: none; }
.translate summary .spark { font-size: 15px; }
.translate summary::after { content: "→"; margin-left: auto; transition: transform .2s ease; }
.translate[open] summary::after { transform: rotate(90deg); }
.translate-body { padding: 20px 22px; background: #FFFDF7; border-top: 1px dashed rgba(23,19,14,.14); }
.trow { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(23,19,14,.06); font-size: 14.5px; }
.trow:last-child { border-bottom: none; }
.trow b { font-weight: 700; color: var(--ink); }
.trow span { color: var(--muted); }
.translate .edit-note { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.translate .edit-note button { background: none; border: none; font-weight: 700; font-size: 13px; color: var(--blue); }

/* ---------- Quote / human voice ---------- */
.voice {
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em;
}
.voice::before { content: "“"; color: var(--orange); }
.voice::after { content: "”"; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .logo small { display: none; }
  .nav a { padding: 8px 12px; font-size: 13.5px; }
}
@media (max-width: 800px) {
  .topbar .cta { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; overflow-x: auto; }
}

/* ---------- Visual tiles (stand-in imagery) ---------- */
.tile {
  border-radius: var(--r-md); min-height: 150px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 54px;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0,0,0,.15), transparent 50%);
}
.tile > * { position: relative; z-index: 1; }
.t-stadium { background: var(--grad-stadium); }
.t-pitch { background: var(--grad-pitch); }
.t-night { background: var(--grad-night); }
.t-sky { background: var(--grad-sky); }
.t-gold { background: linear-gradient(135deg, #FFB800, #FF5A1F); }

/* ---------- Progress dots ---------- */
.dots { display: flex; gap: 8px; align-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(23,19,14,.15); }
.dots i.on { background: var(--ink); width: 24px; border-radius: 6px; }

/* ---------- Mic button ---------- */
.mic {
  width: 92px; height: 92px; border-radius: 50%; border: none;
  background: var(--grad-stadium); color: #fff; font-size: 36px;
  box-shadow: 0 14px 40px rgba(255, 61, 119, .45);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease; position: relative;
}
.mic:hover { transform: scale(1.06); }
.mic::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid rgba(255, 61, 119, .35); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(.92); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Idea ticker ---------- */
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: scroll 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.spark-card {
  background: var(--card); border-radius: var(--r-sm); padding: 14px 20px;
  font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.spark-card em { font-style: normal; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--muted); font-size: 13.5px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { font-weight: 600; color: var(--ink); border-bottom: 1px dashed var(--muted); }

/* ---------- Journey stepper ---------- */
.journey-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.journey-step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: rgba(23,19,14,.12); }
.journey-step:last-child::before { display: none; }
.journey-ico {
  width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--card); box-shadow: var(--shadow); z-index: 1;
}

/* ---------- Big stat ---------- */
.stat { text-align: center; }
.stat b { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 800; display: block; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Page header block ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin: 10px 0 12px; }

/* ---------- Reaction buttons ---------- */
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reactions button {
  background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; transition: all .15s ease;
}
.reactions button:hover { border-color: var(--ink); background: #fff; }
.reactions button.on { background: var(--ink); color: #fff; }
