:root {
  --bg: #fbf6f3;
  --ink: #2a1a1e;
  --mut: #7a6268;
  --acc: #c94f62;
  --acc-dark: #9c3345;
  --card: #ffffff;
  --line: #ecdcd8;
  --soft: #f6e6e2;
  --store: #4f9a7a;
  --live: #d08a2c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.68 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, nav, .btn, table, .tag, .seg, .kicker, .caption, .pill, .stat, .timeline-month, .cta-links {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
}
a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--acc-dark); }
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
}
.logo span { color: var(--acc); }
.logo small {
  font-weight: 400;
  color: var(--mut);
  font-size: 13px;
  margin-left: 6px;
}
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
nav a {
  color: var(--mut);
  text-decoration: none;
  font-size: 14px;
}
nav a:hover { color: var(--acc); }
.controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  background: #fff;
}
.seg button, .seg a {
  border: 0;
  background: none;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--mut);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
}
.seg button:hover, .seg a:hover { color: var(--ink); }
.seg button.on, .seg a.on {
  background: var(--acc);
  color: #fff;
}
.seg a + a, .seg button + button {
  border-left: 1px solid var(--line);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  align-items: center;
  gap: 32px;
  padding: 38px 20px 24px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--acc);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.hero p.lead {
  color: #4a3539;
  font-size: 19px;
  line-height: 1.58;
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.btn {
  display: inline-block;
  border: 1px solid var(--acc);
  color: var(--acc);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--acc);
  color: #fff;
}
.btn.primary {
  background: var(--acc);
  color: #fff;
}
.btn.primary:hover {
  background: var(--acc-dark);
  border-color: var(--acc-dark);
  color: #fff;
}

/* Blob visual container */
.blob-wrap {
  position: relative;
}
#blob {
  height: 480px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 44%, #ffffff 0%, #f5e1dc 55%, #ecd0ca 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
#blob canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.blob-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#blob.ready .blob-fallback {
  opacity: 0;
}
.blob-orb {
  width: 250px;
  height: 235px;
  border-radius: 54% 46% 49% 51% / 47% 55% 45% 53%;
  background: radial-gradient(circle at 36% 32%, #ffe9e6 0%, #ef9ba0 38%, #cf5b6e 76%, #8f2d3e 100%);
  box-shadow: inset -18px -22px 38px rgba(102, 22, 38, 0.35),
              inset 16px 16px 28px rgba(255, 255, 255, 0.65),
              0 28px 55px rgba(168, 70, 86, 0.25);
}
.mood-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.mood-label {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  font-size: 12px;
  color: var(--mut);
  margin-right: 4px;
}
.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--mut);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  cursor: pointer;
}
.pill:hover, .pill.on {
  border-color: var(--acc);
  color: var(--acc);
  background: #fff8f6;
}

/* Main layout */
main {
  max-width: 900px;
  margin: auto;
  padding: 0 20px 80px;
}
main .wide {
  max-width: 1040px;
  margin-left: -70px;
  margin-right: -70px;
}
@media (max-width: 1060px) {
  main .wide { margin-left: 0; margin-right: 0; }
}
section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: 0; }
h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 22px 0 8px;
}
.tr {
  display: block;
  font-size: 14px;
  color: var(--acc);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 3px;
}
body:not(.show-tr) .tr { display: none; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li + li { margin-top: 6px; }

/* Cards & Grids */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 14px 0;
}
.card h3 { margin-top: 0; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.lane-store { border-left: 5px solid var(--store); }
.lane-live { border-left: 5px solid var(--live); }
.lane-accent { border-left: 5px solid var(--acc); }

/* Mockup Gallery */
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0 10px;
}
figure.mockup {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
figure.mockup img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
figure.mockup figcaption {
  padding: 13px 16px 15px;
  font-size: 14px;
  line-height: 1.48;
  color: #4a3539;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
}
.mockup-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--soft);
  color: var(--acc);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Funding Box & Stats */
.funding-banner {
  background: linear-gradient(135deg, #fff7f5 0%, #f8e5e0 100%);
  border: 1px solid #e4c5be;
  border-left: 5px solid var(--acc);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 18px 0 24px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.stat {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
}
.stat strong {
  display: block;
  font-size: 24px;
  color: var(--acc);
  line-height: 1.15;
}
.stat span {
  font-size: 13px;
  color: var(--mut);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
tr:last-child td, tr:last-child th { border-bottom: 0; }
th {
  background: var(--soft);
  font-weight: 600;
  color: var(--ink);
}
tr.total-row th, tr.total-row td {
  background: #fbf0ed;
  font-weight: 700;
  border-top: 2px solid #dfc5bf;
}
td.n, th.n {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
}
.ok { background: #e1f2ea; color: #246b4c; }
.uv { background: #fdeccc; color: #8a5a0c; }
.pr { background: #f6e6e2; color: #9c3345; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.timeline-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.timeline-month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--acc);
  margin-bottom: 4px;
}
.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.timeline-item p {
  margin: 0;
  font-size: 15px;
  color: #4a3539;
  line-height: 1.52;
}

/* Misc */
code {
  background: var(--soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}
dl { margin: 10px 0 0; }
dl dt {
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  margin-top: 14px;
}
dl dd {
  margin: 3px 0 0 0;
  color: #4a3539;
}
.note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mut);
  background: var(--soft);
  border-radius: 12px;
  padding: 13px 17px;
  margin: 14px 0;
}
svg.diagram {
  display: block;
  margin: 18px 0 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
svg text { font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; }

/* CTA */
.cta-card {
  background: var(--card);
  border: 2px solid var(--acc);
  border-radius: 20px;
  padding: 28px 30px;
  margin-top: 8px;
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Mode toggles */
body.art .tech-only { display: none; }
body.tech .art-only { display: none; }

footer {
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  padding: 28px 20px 44px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  #blob { height: 340px; }
  .grid, .grid-3, .mockup-grid, .timeline, .stat-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .controls { margin-left: 0; width: 100%; justify-content: flex-start; }
}
