:root {
  --bg: #f4f1ea;
  --paper: #fff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d5;
  --accent: #d4512a;
  --accent-2: #0f766e;
  --up: #ea580c;
  --ok: #15803d;
  --warn: #a16207;
  --bad: #b91c1c;
  --chip: #f5f0e6;
  --studio: #134e4a;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.05);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, .btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px dashed var(--line); }
.btn.accent { background: var(--accent); }
.btn.teal { background: var(--accent-2); }
.btn:disabled, .btn.disabled { opacity: 0.45; pointer-events: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 4rem; }

.demo-banner {
  background: #1c1917;
  color: #fafaf9;
  font-size: 0.8rem;
  padding: 0.45rem 1.25rem;
  text-align: center;
}
.demo-banner strong { color: #fdba74; }

header.pub {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.pub-inner, .stu-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.logo span { color: var(--accent); }
.tabs { display: flex; gap: 0.2rem; }
.tabs a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.tabs a.on, .tabs a:hover { background: var(--chip); color: var(--ink); }
.search {
  flex: 1;
  display: flex;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  background: var(--bg);
}
.header-cta { margin-left: auto; white-space: nowrap; }
.header-cta .btn { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
header.stu {
  background: var(--studio);
  color: #ecfdf5;
}
header.stu a { color: #ccfbf1; }
header.stu a:hover, header.stu .tabs a.on { color: #fff; background: rgba(255,255,255,0.08); }
header.stu .logo span { color: #5eead4; }
.exit { font-size: 0.85rem; opacity: 0.85; }

.page-title { margin: 1.4rem 0 0.4rem; font-size: 1.6rem; letter-spacing: -0.03em; }
.lede { color: var(--muted); margin: 0 0 1.2rem; max-width: 42rem; }

.feed { display: flex; flex-direction: column; gap: 0.75rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 52px 88px 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  align-items: center;
}
.rank { font-weight: 800; color: #a8a29e; font-size: 1.2rem; text-align: center; }
.thumb {
  width: 88px; height: 64px; border-radius: 8px;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #9a3412; font-size: 0.75rem;
}
.thumb.b { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); color: #065f46; }
.thumb.c { background: linear-gradient(135deg, #bfdbfe, #93c5fd); color: #1e3a8a; }
.card h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.tagline { margin: 0; color: var(--muted); font-size: 0.9rem; }
.meta { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  display: inline-block;
  background: var(--chip);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
}
.chip.ok { background: #dcfce7; color: var(--ok); }
.chip.warn { background: #fef3c7; color: var(--warn); }
.chip.bad { background: #fee2e2; color: var(--bad); }
.chip.goal { background: #ffedd5; color: #c2410c; }
.card-acts { display: flex; flex-direction: column; gap: 0.35rem; align-items: stretch; min-width: 9.5rem; }
.upvote {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 700;
}
.upvote small { display: block; font-weight: 500; color: var(--muted); font-size: 0.7rem; }
.two-nums { font-size: 0.75rem; color: var(--muted); text-align: right; }

.empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty h2 { margin-top: 0; }

.proj-nav {
  display: flex;
  gap: 0.25rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.proj-nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
}
.proj-nav a.on { background: var(--ink); color: #fff; }
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.panel h2, .panel h3 { margin-top: 0; }
.meter { margin: 0.6rem 0 1rem; }
.meter label { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }
.bar { height: 8px; background: #e7e5e4; border-radius: 99px; overflow: hidden; margin-top: 0.3rem; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar.teal > span { background: var(--accent-2); }
.bar.ok > span { background: var(--ok); }
.notice {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin: 0.7rem 0;
}
.notice.info { background: #ecfeff; border: 1px solid #a5f3fc; }
.notice.hold { background: #fff7ed; border: 1px solid #fdba74; }
.notice.bad { background: #fef2f2; border: 1px solid #fecaca; }
.notice.lock { background: #f5f5f4; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fake-ui {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 110px;
  background: repeating-linear-gradient(-45deg, #fafaf9, #fafaf9 8px, #f5f5f4 8px, #f5f5f4 16px);
  display: flex; align-items: end; padding: 0.5rem;
  font-size: 0.75rem; color: var(--muted);
}
.proto {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}
.proto-chrome { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.proto-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; display: block; }
form.stack label { display: block; font-weight: 600; font-size: 0.85rem; margin: 0.7rem 0 0.25rem; }
form.stack input, form.stack textarea, form.stack select {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.steps { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.steps span {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
}
.steps span.on { background: var(--studio); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  border-left: 3px solid var(--line);
  padding: 0 0 1rem 1rem;
  position: relative;
}
.timeline li::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
  position: absolute; left: -6.5px; top: 0.35rem;
}
.timeline li.pass { border-color: var(--ok); }
.timeline li.pass::before { background: var(--ok); }
.timeline li.wait { border-color: var(--warn); }
.timeline li.wait::before { background: var(--warn); }
.timeline li.fail { border-color: var(--bad); }
.timeline li.fail::before { background: var(--bad); }
.factory-states { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.8rem 0; }
.status-hero { font-size: 1.4rem; font-weight: 800; margin: 0.4rem 0; }
.footer {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1.25rem;
  text-align: center;
}
.footer a { color: var(--muted); text-decoration: underline; }
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) {
  .card { grid-template-columns: 36px 1fr; }
  .thumb, .card-acts { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
body.studio-bg { background: #ecfdf5; }

body.tour-on { padding-bottom: 5.5rem; }
body.tour-on .kicker { display: none; }
.tour-caption {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(42rem, calc(100% - 2rem));
  background: rgba(28, 25, 23, 0.92);
  color: #fafaf9;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  pointer-events: none;
}

body.get-started {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(212, 81, 42, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(15, 118, 110, 0.14), transparent 50%),
    var(--bg);
}
.gs {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  text-align: center;
}
.gs-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  margin: 0 0 1.2rem;
  animation: gs-in 0.7s ease both;
}
.gs-brand span { color: var(--accent); }
.gs-media {
  position: relative;
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  animation: gs-in 0.8s ease 0.12s both;
}
.gs-video {
  width: 100%;
  border-radius: 16px;
  background: #1c1917;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  display: block;
}
.gs-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 220px;
  background: #1c1917;
  color: #fafaf9;
  padding: 1.6rem 1.4rem 1.3rem;
  text-align: left;
  box-shadow: var(--shadow);
}
.gs-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4512a 0%, #0f766e 70%, transparent 71%);
  opacity: 0.55;
  animation: gs-orb 6s ease-in-out infinite alternate;
}
.gs-beats {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.7;
}
.gs-beats li {
  opacity: 0;
  transform: translateY(10px);
  animation: gs-in 0.6s ease forwards;
}
.gs-beats li:nth-child(1) { animation-delay: 0.35s; }
.gs-beats li:nth-child(2) { animation-delay: 0.85s; }
.gs-beats li:nth-child(3) { animation-delay: 1.35s; }
.gs h1 {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
  animation: gs-in 0.7s ease 0.2s both;
}
.gs-lede {
  color: var(--muted);
  margin: 0 auto 1.4rem;
  animation: gs-in 0.7s ease 0.32s both;
}
.gs-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: gs-in 0.7s ease 0.45s both;
}
.gs-start { padding: 0.7rem 1.25rem; font-size: 1.05rem; }
.gs-fine {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  animation: gs-in 0.7s ease 0.55s both;
}
.gs-fine a { color: var(--muted); text-decoration: underline; }
@keyframes gs-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes gs-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 14px) scale(1.08); }
}

.clip {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  color: #fafaf9;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(212, 81, 42, 0.45), transparent 55%),
    radial-gradient(640px 380px at 5% 90%, rgba(15, 118, 110, 0.4), transparent 50%),
    #1c1917;
}
.clip-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: gs-in 0.6s ease both;
}
.clip-brand span { color: #fdba74; }
.clip-h {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem;
  max-width: 18ch;
  animation: gs-in 0.7s ease 0.25s both;
}
.clip-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1.7;
}
.clip-steps li {
  opacity: 0;
  animation: gs-in 0.65s ease forwards;
}
.clip-steps li:nth-child(1) { animation-delay: 0.7s; }
.clip-steps li:nth-child(2) { animation-delay: 1.3s; }
.clip-steps li:nth-child(3) { animation-delay: 1.9s; }
.clip-note {
  margin-top: 1.8rem;
  color: #d6d3d1;
  animation: gs-in 0.7s ease 2.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .gs-brand, .gs-media, .gs h1, .gs-lede, .gs-actions, .gs-fine,
  .gs-beats li, .clip-brand, .clip-h, .clip-steps li, .clip-note, .gs-orb {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
