/* The listing that changes with the season — standalone page (shares Concept B's palette) */
:where(:root) { --wrap: 1180px; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans, Inter, system-ui, sans-serif); line-height: 1.55; }
main { display: block; }
section { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-3); }
h1 { font-size: var(--text-3xl); line-height: 1.02; margin: 0 0 var(--space-5); }
h2 { font-size: var(--text-2xl); line-height: 1.08; margin: 0 0 var(--space-4); max-width: 22ch; }
h3 { font-size: var(--text-lg); font-weight: 600; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-4); }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; }
.lede b { color: var(--color-text); font-weight: 600; }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--color-text); color: var(--color-bg); padding: .6rem 1rem; }
.skip:focus { left: 8px; top: 8px; }

/* topbar (matches Concept B) */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: .7rem clamp(1rem, 3vw, 2.5rem); background: color-mix(in oklab, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; color: inherit; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-word { font-weight: 650; letter-spacing: -0.02em; font-size: var(--text-sm); }
.brand-sep, .brand-concept { color: var(--color-text-faint); font-size: var(--text-sm); }
.brand-concept { font-family: var(--font-display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: var(--space-4); }
.topnav a { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); text-decoration: none; }
.topnav a:hover { color: var(--accent-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: var(--radius-full); background: var(--color-text); color: var(--color-bg); font-weight: 600; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn.ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); background: transparent; }
.btn.small { padding: .5rem .9rem; font-size: var(--text-xs); }
[data-mode='dark'] .btn:hover { color: var(--color-primary-ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: clamp(3rem, 9vw, 7rem); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.hero-stat { display: grid; gap: var(--space-4); margin: 0; }
.hero-stat div { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.hero-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1; color: var(--accent-deep); }
.hero-stat small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); margin-top: .35rem; max-width: 34ch; }

/* loom */
.loom { padding-top: 0; }
.loom-head { max-width: 62ch; margin-bottom: var(--space-8); }
.loom-stage { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--space-8); align-items: start; }
.listing { border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface-2); overflow: hidden; box-shadow: var(--shadow-lg); }
.listing-scene { height: 120px; position: relative; transition: background .9s ease; background: var(--scene-bg, oklch(92% .03 80)); }
.scene-label { position: absolute; left: 1rem; bottom: .7rem; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); background: color-mix(in oklab, var(--color-surface-2) 80%, transparent); padding: .2rem .5rem; border-radius: var(--radius-full); }
.listing[data-scene='bedroom'] { --scene-bg: linear-gradient(135deg, oklch(93% .03 70), oklch(88% .04 40)); }
.listing[data-scene='giftbox'] { --scene-bg: linear-gradient(135deg, oklch(88% .07 350), oklch(80% .1 20)); }
.listing[data-scene='stocking'] { --scene-bg: linear-gradient(135deg, oklch(60% .14 25), oklch(35% .08 150)); }
.listing[data-scene='morning'] { --scene-bg: linear-gradient(135deg, oklch(95% .03 90), oklch(85% .06 200)); }
.listing[data-scene='studio'] { --scene-bg: linear-gradient(135deg, oklch(88% .03 220), oklch(78% .05 250)); }
.listing[data-scene='card'] { --scene-bg: linear-gradient(135deg, oklch(92% .05 10), oklch(84% .09 350)); }
.listing-body { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); padding: var(--space-6); }
.listing-img { position: relative; }
.listing-img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--color-divider); display: block; }
.badge { position: absolute; left: 0; top: 0; transform: translate(-6px, -8px); background: var(--color-text); color: var(--color-bg); font-family: var(--font-mono); font-size: 10px; padding: .3rem .55rem; border-radius: 3px; max-width: 92%; }
.listing-title { font-size: var(--text-base); font-weight: 600; font-family: var(--font-sans, Inter, sans-serif); line-height: 1.35; margin: 0 0 .4rem; }
.stars { color: var(--amber); font-size: var(--text-sm); }
.price { font-size: var(--text-lg); margin: .3rem 0 .6rem; }
.frame { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; color: var(--color-text); margin-bottom: var(--space-4); }
.bullets { padding-left: 1.1em; margin: 0 0 var(--space-4); display: grid; gap: .5rem; font-size: var(--text-sm); }
.bullets .fixed { color: var(--color-text-muted); }
.asin { font-size: 10.5px; color: var(--color-text-faint); margin: 0; }
.slot { outline: 1.5px dashed color-mix(in oklab, var(--accent-deep) 70%, transparent); outline-offset: 3px; border-radius: 2px; transition: opacity .35s ease, transform .35s ease; }
.slot.swap { opacity: 0; transform: translateY(4px); }

.year { display: grid; gap: var(--space-5); position: sticky; top: 84px; }
.searchbar { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: .75rem 1rem; background: var(--color-surface-2); font-size: var(--text-base); min-height: 3rem; }
.typed { font-weight: 500; }
.caret { width: 1px; height: 1.1em; background: var(--color-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demand { display: grid; gap: .5rem; }
.demand-num b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1; }
.demand-num small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); margin-top: .3rem; }
.demand-alt { font-size: var(--text-xs); color: var(--color-text-faint); }
.slider { display: grid; gap: .5rem; }
.slider input { width: 100%; accent-color: var(--accent-deep); }
.ticks { display: grid; grid-template-columns: repeat(6, 1fr); font-family: var(--font-mono); font-size: 10px; color: var(--color-text-faint); }
.ticks span { text-align: center; cursor: pointer; }
.ticks span.on { color: var(--accent-deep); }
.controls { display: flex; align-items: center; gap: var(--space-3); }
.note { font-size: var(--text-sm); color: var(--color-text-muted); border-left: 2px solid var(--accent-deep); padding-left: .9rem; }

/* why */
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.chart-wrap { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-5); background: var(--color-surface); }
.chart-wrap figcaption { margin-top: var(--space-3); }

/* rules */
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.rule { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.rule > .mono { color: var(--accent-deep); font-size: var(--text-xs); display: block; margin-bottom: var(--space-3); }
.rule p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* value */
.value { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.calc { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.calc label { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.calc select { grid-column: 2 / 4; padding: .55rem .7rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); color: inherit; font: inherit; }
.calc input[type=range] { accent-color: var(--accent-deep); }
.calc output { text-align: right; font-size: var(--text-sm); }
.value-out { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); background: var(--color-surface); text-align: center; }
.value-out b { display: block; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; font-weight: 500; color: var(--accent-deep); }
.value-out small { display: block; color: var(--color-text-muted); margin-top: var(--space-3); }
.value-out p { margin: var(--space-5) 0 0; }

/* how */
.steps { counter-reset: s; list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.steps li { border-top: 1px solid var(--color-border); padding-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-deep); margin-bottom: var(--space-2); }
.steps li b { color: var(--color-text); }
.live { margin-top: var(--space-10); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); background: var(--color-surface); }
.live ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: var(--text-sm); }
.live li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: baseline; }
.live li .mono { font-size: var(--text-xs); color: var(--color-text-faint); }
.live li .st { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); }
.live li .st.running { color: var(--accent-deep); border-color: var(--accent-deep); }

/* cta + footer */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; max-width: 28ch; }
.cta .hero-cta { justify-content: center; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: var(--space-8) clamp(1rem, 3vw, 2.5rem); border-top: 1px solid var(--color-divider); display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot .fund-mark { height: 18px; opacity: .8; }

@media (max-width: 980px) {
  .hero, .loom-stage, .why, .value { grid-template-columns: 1fr; }
  .year { position: static; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
@media (max-width: 600px) {
  .listing-body { grid-template-columns: 1fr; }
  .listing-img { max-width: 240px; }
  .rule-grid { grid-template-columns: 1fr; }
  .calc label { grid-template-columns: 90px 1fr 60px; }
  .brand-concept { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slot, .listing-scene { transition: none; } .caret { animation: none; } }
