/* Interactive demo, leather swatches, journal simulator, and brass ledger pricing */

.demo-section {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 55% 60% at 73% 48%, rgba(200, 162, 90, 0.09), transparent 68%),
    linear-gradient(180deg, rgba(30, 23, 18, 0.62), rgba(18, 14, 10, 0.2));
}
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.demo-intro h2 { max-width: 11ch; margin: 1.2rem 0 1.3rem; }
.demo-intro > p { max-width: 30rem; }
.demo-list { margin-top: 2rem; list-style: none; border-top: 1px solid var(--line-soft); }
.demo-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.demo-list .num { color: var(--brass); font-family: var(--mono); font-size: 0.62rem; line-height: 1.9; }
.demo-list strong { display: block; color: var(--cream); font-family: var(--ui); font-size: 0.76rem; font-weight: 500; }
.demo-list span:not(.num) { display: block; margin-top: 0.12rem; color: var(--cream-muted); font-size: 0.8rem; line-height: 1.55; }
.demo-note { display: flex; gap: 0.6rem; margin-top: 1.6rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.05em; line-height: 1.6; text-transform: uppercase; }
.demo-note::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 0.38rem; border-radius: 50%; background: var(--brass); box-shadow: 0 0 12px rgba(200, 162, 90, 0.8); }
.demo-stage { position: relative; display: flex; justify-content: center; padding: 1.4rem 0; }
.demo-stage::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 162, 90, 0.22), transparent 64%); filter: blur(30px); }
.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  padding: 0.55rem;
  border: 1px solid rgba(200, 162, 90, 0.44);
  border-radius: 2.9rem;
  background: linear-gradient(145deg, #3b2b1d, #17100b 34%, #0b0806 80%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 230, 185, 0.06);
}
.phone::before { content: ""; position: absolute; top: 28%; left: -2px; width: 2px; height: 3.5rem; border-radius: 2px; background: #5e452a; }
.phone::after { content: ""; position: absolute; right: -2px; top: 23%; width: 2px; height: 2.8rem; border-radius: 2px; background: #5e452a; }
.phone__screen {
  display: flex;
  min-height: 39.5rem;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(245, 239, 230, 0.1);
  border-radius: 2.4rem;
  background: #17110d;
}
.phone__status { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 0.65rem 1.3rem 0.35rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em; }
.phone__status span:last-child { color: var(--brass); letter-spacing: 0.16em; }
.phone__home { display: grid; flex: none; height: 1.7rem; place-items: center; }
.phone__home::before { content: ""; width: 6.5rem; height: 3px; border-radius: 4px; background: rgba(245, 239, 230, 0.28); }
.demo-tabs { display: grid; flex: none; grid-template-columns: repeat(3, 1fr); padding: 0 0.65rem; border-bottom: 1px solid var(--line-soft); }
.demo-tab { position: relative; padding: 0.8rem 0.2rem 0.7rem; border: 0; color: var(--cream-muted); background: none; font-family: var(--ui); font-size: 0.59rem; letter-spacing: 0.01em; cursor: pointer; }
.demo-tab .tab-num { display: block; margin-bottom: 0.18rem; color: var(--brass-dim); font-family: var(--mono); font-size: 0.44rem; letter-spacing: 0.12em; }
.demo-tab[aria-selected="true"] { color: var(--cream); }
.demo-tab[aria-selected="true"]::after { content: ""; position: absolute; right: 16%; bottom: -1px; left: 16%; height: 1px; background: var(--brass); box-shadow: 0 0 9px rgba(200, 162, 90, 0.55); }
.demo-panels { position: relative; display: flex; flex: 1; min-height: 0; }
.demo-panel { width: 100%; padding: 0.9rem 1rem 1.1rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--brass-dim) transparent; }
.demo-panel[hidden] { display: none !important; }
.panel-kicker { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.panel-kicker h3 { font-size: 1.35rem; }
.panel-kicker .mono { color: var(--brass); font-size: 0.48rem; }
.panel-copy { margin-bottom: 0.8rem; color: var(--cream-muted); font-size: 0.72rem; line-height: 1.6; }

.bindery-stage { position: relative; display: grid; min-height: 17.5rem; place-items: center; padding: 1.2rem 0 0.7rem; perspective: 900px; background: radial-gradient(ellipse at 50% 66%, rgba(200, 162, 90, 0.15), transparent 62%); }
.bindery-stage::after { content: ""; position: absolute; right: 18%; bottom: 0.8rem; left: 18%; height: 1.1rem; border-radius: 50%; background: rgba(0, 0, 0, 0.48); filter: blur(7px); }
.journal-cover {
  --cover: #5c1d24;
  --cover-dark: #351015;
  --cover-edge: #7c3038;
  position: relative;
  z-index: 1;
  width: 11.6rem;
  aspect-ratio: 0.72;
  border: 1px solid rgba(226, 192, 124, 0.48);
  border-radius: 2px 7px 7px 2px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 236, 196, 0.18), transparent 38%),
    repeating-linear-gradient(95deg, transparent 0 8px, rgba(0, 0, 0, 0.1) 9px 10px),
    linear-gradient(135deg, var(--cover-edge), var(--cover) 45%, var(--cover-dark));
  box-shadow: -4px 0 0 var(--cover-dark), -8px 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 0 5px var(--cover-dark), inset 0 0 0 6px rgba(226, 192, 124, 0.25);
  transform: rotateY(-9deg) rotateZ(-1deg);
  transition: background 300ms ease, transform 300ms ease;
}
.journal-cover:hover { transform: rotateY(-5deg) rotateZ(0deg) translateY(-2px); }
.journal-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7%; width: 1px; background: rgba(255, 230, 185, 0.15); }
.journal-cover::after { content: ""; position: absolute; inset: 0.9rem; border: 1px solid rgba(226, 192, 124, 0.3); }
.cover-frame { position: absolute; z-index: 2; inset: 20% 10% auto; text-align: center; }
.cover-mark { display: grid; width: 1.8rem; height: 1.8rem; margin: 0 auto 0.7rem; place-items: center; border: 1px solid rgba(226, 192, 124, 0.55); border-radius: 50%; color: var(--brass-bright); font-family: var(--serif); font-size: 0.9rem; }
.cover-title { display: block; overflow-wrap: anywhere; color: var(--brass-bright); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.02; text-shadow: 0 1px rgba(255, 245, 220, 0.15); }
.cover-rule { display: block; width: 1.8rem; height: 1px; margin: 0.7rem auto; background: var(--brass); opacity: 0.65; }
.cover-sub { display: block; color: rgba(226, 192, 124, 0.72); font-family: var(--mono); font-size: 0.42rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cover-ribbon { position: absolute; z-index: 3; top: -1px; right: 17%; width: 0.43rem; height: 28%; background: linear-gradient(90deg, #9c434b, #6d252d); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); }
.journal-cover[data-dye="forest"] { --cover: #1d3b2a; --cover-dark: #10231a; --cover-edge: #2d543e; }
.journal-cover[data-dye="midnight"] { --cover: #1a2436; --cover-dark: #0f1621; --cover-edge: #2b3950; }
.journal-cover[data-dye="walnut"] { --cover: #3b2a1d; --cover-dark: #241811; --cover-edge: #563d29; }
.journal-cover[data-dye="walnut"] .cover-ribbon { background: linear-gradient(90deg, #b08a54, #806436); }
.bindery-controls { margin-top: 0.25rem; }
.control-label { display: block; margin-bottom: 0.42rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.12em; text-transform: uppercase; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-bottom: 0.75rem; }
.swatch { min-width: 0; padding: 0.28rem; border: 1px solid transparent; border-radius: 2px; background: none; cursor: pointer; }
.swatch__chip { display: block; width: 100%; aspect-ratio: 1.25; border: 1px solid rgba(245, 239, 230, 0.16); border-radius: 2px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.12); }
.swatch[data-dye="oxblood"] .swatch__chip { background: #5c1d24; }
.swatch[data-dye="forest"] .swatch__chip { background: #1d3b2a; }
.swatch[data-dye="midnight"] .swatch__chip { background: #1a2436; }
.swatch[data-dye="walnut"] .swatch__chip { background: #3b2a1d; }
.swatch__name { display: block; min-height: 1rem; margin-top: 0.22rem; color: var(--cream-muted); font-family: var(--ui); font-size: 0.42rem; line-height: 1.25; }
.swatch:hover { border-color: rgba(200, 162, 90, 0.4); }
.swatch[aria-pressed="true"] { border-color: var(--brass); background: rgba(200, 162, 90, 0.09); }
.swatch[aria-pressed="true"] .swatch__name { color: var(--cream); }
.title-input { width: 100%; padding: 0.62rem 0.7rem; border: 1px solid rgba(200, 162, 90, 0.3); border-radius: 2px; outline: none; color: var(--cream); background: rgba(0, 0, 0, 0.2); font-family: var(--prose); font-size: 0.76rem; }
.title-input:focus { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(200, 162, 90, 0.11); }

.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.08em; text-transform: uppercase; }
.editor-page { position: relative; padding: 1.05rem 1rem 1.25rem 1.55rem; border-radius: 2px; color: #33271b; background: repeating-linear-gradient(transparent 0 1.68rem, rgba(90, 65, 42, 0.18) 1.69rem 1.71rem), linear-gradient(135deg, #f7f0e4, #eadfcd); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.33), inset 0 0 30px rgba(119, 83, 45, 0.08); }
.editor-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.05rem; width: 1px; background: rgba(92, 29, 36, 0.22); }
.page-date { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; color: #71553d; font-family: var(--mono); font-size: 0.44rem; letter-spacing: 0.1em; text-transform: uppercase; }
.journal-editor { min-height: 10.8rem; outline: none; color: #34271a; font-family: var(--prose); font-size: 0.79rem; line-height: 1.72; overflow-wrap: anywhere; }
.journal-editor:empty::before { color: #8d7862; content: "Begin anywhere. The page will keep it."; pointer-events: none; }
.journal-editor p + p { margin-top: 0.55rem; }
.journal-editor [data-ink] { padding: 0 0.04rem; background: rgba(218, 173, 74, 0.46); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.journal-editor [data-ink="rose"] { background: rgba(185, 107, 111, 0.4); }
.journal-editor [data-ink="sage"] { background: rgba(127, 155, 122, 0.42); }
.paper-stamp { display: inline-block; margin: 0.15rem 0.2rem; padding: 0.25rem 0.45rem; border: 1px solid rgba(92, 29, 36, 0.65); color: #69232b; font-family: var(--mono); font-size: 0.48rem; font-weight: 500; letter-spacing: 0.08em; transform: rotate(-4deg); }
.dictation-line { color: #4e3924; font-style: italic; }
.is-listening .dictation-line::after { content: "▍"; color: var(--oxblood); animation: blink 800ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ink-tools { display: flex; align-items: center; gap: 0.38rem; margin-top: 0.8rem; }
.ink-tools .control-label { margin: 0 0.2rem 0 0; }
.ink-swatch { width: 1.1rem; height: 1.1rem; padding: 0; border: 1px solid rgba(51, 39, 27, 0.25); border-radius: 50%; background: #d8ad59; cursor: pointer; }
.ink-swatch[data-ink="rose"] { background: #b96b6f; }
.ink-swatch[data-ink="sage"] { background: #7f9b7a; }
.ink-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #f5efe6, 0 0 0 3px #5c1d24; }
.page-actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.tool-btn { display: inline-flex; flex: 1; min-height: 2.2rem; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.4rem; border: 1px solid rgba(245, 239, 230, 0.2); border-radius: 2px; color: var(--cream-dim); background: rgba(30, 23, 18, 0.55); font-family: var(--ui); font-size: 0.56rem; cursor: pointer; }
.tool-btn:hover { border-color: var(--brass); color: var(--cream); }
.tool-btn.is-listening { border-color: var(--brass); color: var(--brass-bright); background: rgba(200, 162, 90, 0.1); }
.tool-btn .tool-icon { color: var(--brass); font-family: var(--mono); font-size: 0.62rem; }
.live-status { min-height: 1rem; margin-top: 0.4rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.04em; line-height: 1.5; }

.shelf-scene { --shelf-light: 0.21; position: relative; min-height: 25.2rem; overflow: hidden; border: 1px solid rgba(200, 162, 90, 0.2); border-radius: 3px; background: radial-gradient(ellipse at 63% 16%, rgba(200, 162, 90, var(--shelf-light)), transparent 42%), linear-gradient(180deg, #2c2016, #18100b 72%); transition: background 300ms ease; }
.shelf-scene::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: repeating-linear-gradient(3deg, transparent 0 5px, rgba(0, 0, 0, 0.07) 6px 7px); opacity: 0.6; }
.shelf-lamp { position: absolute; top: 1.2rem; right: 1.25rem; width: 3.4rem; height: 5rem; border-right: 1px solid #987345; }
.shelf-lamp::before { content: ""; position: absolute; top: 0; right: -0.65rem; width: 2.1rem; height: 1.3rem; border-radius: 50% 50% 8% 8%; background: linear-gradient(180deg, #d2ad65, #8a6331); box-shadow: 0 10px 34px rgba(226, 183, 99, 0.3); }
.shelf-lamp::after { content: ""; position: absolute; top: 1.2rem; right: -0.2rem; width: 1.4rem; height: 7rem; background: linear-gradient(180deg, rgba(226, 183, 99, 0.2), transparent); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); filter: blur(4px); }
.shelf-portrait { position: absolute; z-index: 5; top: 2.4rem; left: 1.4rem; width: 5.6rem; padding: 0.4rem; border: 1px solid #8e6a3a; background: #19100b; box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.38); cursor: pointer; }
.shelf-portrait::before { content: ""; position: absolute; inset: 0.18rem; border: 1px solid rgba(200, 162, 90, 0.28); pointer-events: none; }
.portrait-art { position: relative; height: 6.4rem; overflow: hidden; background: radial-gradient(circle at 50% 35%, #b38f68 0 14%, transparent 14.5%), radial-gradient(ellipse at 50% 55%, #2b2118 0 31%, transparent 31.5%), linear-gradient(140deg, #5b6a5a, #222d25); }
.portrait-art::after { content: ""; position: absolute; right: 18%; bottom: 14%; left: 18%; height: 1px; background: rgba(226, 192, 124, 0.3); }
.shelf-portrait span { display: block; padding: 0.4rem 0.1rem 0.1rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.38rem; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.shelf-portrait:hover .portrait-art { filter: brightness(1.12); }
.shelf-books { position: absolute; right: 1.2rem; bottom: 4.2rem; left: 7.7rem; display: flex; align-items: flex-end; gap: 0.28rem; }
.book-spine { position: relative; width: 1.5rem; min-height: 9rem; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, #3a1a1e, #64252c 50%, #2b1215); box-shadow: inset 2px 0 rgba(255, 237, 200, 0.12), 2px 0 4px rgba(0, 0, 0, 0.28); }
.book-spine::before { content: ""; position: absolute; top: 12%; right: 0.3rem; left: 0.3rem; height: 1px; background: rgba(226, 192, 124, 0.35); box-shadow: 0 4px rgba(226, 192, 124, 0.2); }
.book-spine:nth-child(2) { min-height: 11.5rem; background: linear-gradient(90deg, #152b20, #2c513b 50%, #102219); }
.book-spine:nth-child(3) { min-height: 7.8rem; background: linear-gradient(90deg, #111b2b, #273852 50%, #0e1722); }
.book-spine:nth-child(4) { min-height: 10.2rem; background: linear-gradient(90deg, #2e2117, #513a27 50%, #21160f); }
.book-spine:nth-child(5) { min-height: 8.6rem; background: linear-gradient(90deg, #2d1719, #4e2228 50%, #241114); }
.shelf-plank { position: absolute; right: 0.8rem; bottom: 3.35rem; left: 0.8rem; height: 0.85rem; border-top: 1px solid rgba(226, 192, 124, 0.27); background: linear-gradient(180deg, #5a3d27, #2d1e14); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); }
.pen-jar { position: absolute; right: 1.6rem; bottom: 4.2rem; width: 2rem; height: 2.5rem; border: 1px solid rgba(200, 162, 90, 0.45); border-radius: 2px 2px 0.5rem 0.5rem; background: linear-gradient(100deg, rgba(200, 162, 90, 0.12), rgba(255, 255, 255, 0.03)); }
.pen-jar::before { content: ""; position: absolute; top: -2.35rem; left: 0.33rem; width: 0.35rem; height: 2.4rem; background: #b08b4e; box-shadow: 0.55rem -0.45rem 0 -0.04rem #714d2c, 1rem 0.1rem 0 -0.06rem #d6c2a1; transform: rotate(-7deg); }
.settings-hint { position: absolute; right: 1.2rem; bottom: 0.75rem; left: 1.2rem; border: 1px solid rgba(200, 162, 90, 0.3); border-radius: 2px; color: var(--cream-dim); background: rgba(18, 14, 10, 0.76); font-family: var(--mono); font-size: 0.45rem; letter-spacing: 0.08em; line-height: 2.4; text-align: center; text-transform: uppercase; cursor: pointer; }
.shelf-caption { margin-top: 0.55rem; color: var(--cream-muted); font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.05em; line-height: 1.6; text-align: center; text-transform: uppercase; }
.settings-panel { position: absolute; z-index: 20; inset: 0; display: flex; align-items: flex-end; padding: 0.55rem; background: rgba(8, 6, 4, 0.7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.settings-panel.is-open { opacity: 1; pointer-events: auto; }
.settings-sheet { width: 100%; max-height: 93%; overflow-y: auto; padding: 1rem; border: 1px solid rgba(200, 162, 90, 0.45); border-radius: 3px; color: #34271b; background: linear-gradient(135deg, #f5ecdd, #e6d8c4); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45); transform: translateY(12px); transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.settings-panel.is-open .settings-sheet { transform: none; }
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(52, 39, 27, 0.18); }
.settings-head h3 { color: #2f2317; font-size: 1.25rem; }
.settings-close { width: 1.7rem; height: 1.7rem; border: 1px solid rgba(52, 39, 27, 0.28); border-radius: 50%; color: #493625; background: transparent; font-family: var(--ui); font-size: 0.85rem; line-height: 1; cursor: pointer; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(52, 39, 27, 0.13); }
.setting-row p { color: #4d3a28; font-family: var(--ui); font-size: 0.62rem; font-weight: 500; }
.setting-row small { display: block; margin-top: 0.1rem; color: #816b56; font-family: var(--mono); font-size: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.switch { position: relative; display: inline-block; width: 2rem; height: 1.1rem; flex: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 1rem; background: rgba(52, 39, 27, 0.22); transition: background 180ms ease; }
.switch span::after { content: ""; position: absolute; top: 0.18rem; left: 0.2rem; width: 0.74rem; height: 0.74rem; border-radius: 50%; background: #f5ecdd; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 180ms ease; }
.switch input:checked + span { background: var(--oxblood); }
.switch input:checked + span::after { transform: translateX(0.85rem); }
.switch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.lamp-range { width: 5.4rem; accent-color: var(--brass); }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.7rem; color: #816b56; font-family: var(--mono); font-size: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }

.ledger { position: relative; overflow: hidden; border: 1px solid rgba(200, 162, 90, 0.54); border-radius: 3px; background: linear-gradient(145deg, rgba(47, 35, 24, 0.7), rgba(20, 15, 11, 0.95)); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34), inset 0 0 0 5px rgba(18, 14, 10, 0.8), inset 0 0 0 6px rgba(200, 162, 90, 0.12); }
.ledger::before, .ledger::after { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efd39c, #8f6c35); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); content: ""; }
.ledger::before { top: 0.7rem; left: 0.7rem; }
.ledger::after { right: 0.7rem; bottom: 0.7rem; }
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 1.7rem); border-bottom: 1px solid var(--line); background: rgba(18, 14, 10, 0.52); }
.ledger-head .mono { color: var(--brass); font-size: 0.53rem; letter-spacing: 0.14em; }
.ledger-head span:last-child { color: var(--cream-muted); font-size: 0.47rem; }
.ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.price-card { display: flex; flex-direction: column; padding: clamp(1.3rem, 3vw, 2rem); background: #18110c; }
.price-card h3 { margin: 0.55rem 0 0.6rem; font-size: clamp(1.65rem, 3vw, 2.1rem); }
.price-card > p { color: var(--cream-muted); font-size: 0.79rem; line-height: 1.65; }
.price-tag { display: flex; align-items: baseline; gap: 0.3rem; margin: 1rem 0 0.8rem; color: var(--cream); font-family: var(--serif); font-size: 2.65rem; line-height: 1; }
.price-tag small { color: var(--cream-muted); font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.05em; }
.price-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.2rem 0 1.2rem; list-style: none; }
.price-list li { position: relative; padding-left: 1rem; color: var(--cream-dim); font-size: 0.76rem; line-height: 1.45; }
.price-list li::before { position: absolute; left: 0; color: var(--brass); content: "✓"; font-family: var(--mono); font-size: 0.65rem; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card--pass { grid-column: 1 / -1; padding: clamp(1.4rem, 3.5vw, 2.4rem); background: radial-gradient(ellipse at 86% 0%, rgba(200, 162, 90, 0.17), transparent 43%), #1b130d; }
.pass-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.7rem 2rem; }
.pass-head h3 { margin: 0.45rem 0 0.35rem; }
.pass-head p { max-width: 31rem; color: var(--cream-muted); font-size: 0.8rem; }
.pass-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.2rem 0 1.15rem; }
.pass-option { position: relative; padding: 0.8rem; border: 1px solid var(--line-soft); background: rgba(18, 14, 10, 0.38); }
.pass-option > span { display: block; color: var(--cream-muted); font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pass-option strong { display: block; margin-top: 0.4rem; color: var(--cream); font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 500; line-height: 1; }
.pass-option strong small { color: var(--cream-muted); font-family: var(--mono); font-size: 0.46rem; font-weight: 400; }
.pass-option em { display: block; margin-top: 0.35rem; color: var(--brass); font-family: var(--mono); font-size: 0.43rem; font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; }
.pass-option--founding { border-color: rgba(200, 162, 90, 0.45); background: linear-gradient(145deg, rgba(200, 162, 90, 0.12), rgba(18, 14, 10, 0.4)); }
.seat-counter { display: flex; align-items: baseline; gap: 0.28rem; width: max-content; margin-top: 0.55rem; padding: 0.2rem 0.35rem; border: 1px solid rgba(200, 162, 90, 0.4); color: var(--brass-bright); background: #120d09; box-shadow: inset 0 0 8px rgba(200, 162, 90, 0.1); font-family: var(--mono); font-size: 0.7rem; line-height: 1.2; }
.seat-counter small { color: var(--cream-muted); font-size: 0.36rem; letter-spacing: 0.04em; text-transform: uppercase; }
.seat-counter::before { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 7px rgba(200, 162, 90, 0.9); content: ""; }
.pass-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.pass-actions .btn { width: auto; min-width: 12rem; }
.pass-actions p { color: var(--cream-muted); font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.04em; line-height: 1.6; text-transform: uppercase; }
.ledger-note { padding: 0.9rem clamp(1rem, 3vw, 1.7rem); border-top: 1px solid var(--line-soft); color: var(--cream-muted); font-family: var(--mono); font-size: 0.47rem; letter-spacing: 0.03em; line-height: 1.7; }
.ledger-note a { color: var(--brass); text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-intro { max-width: 43rem; }
  .demo-intro h2 { max-width: 15ch; }
  .demo-stage { padding-top: 0; }
}

@media (max-width: 760px) {
  .phone { width: min(100%, 24.5rem); padding: 0.45rem; border-radius: 2.5rem; }
  .phone__screen { min-height: 37rem; border-radius: 2.1rem; }
  .ledger-grid { grid-template-columns: 1fr; }
  .price-card--pass { grid-column: auto; }
  .pass-options { grid-template-columns: 1fr; }
  .pass-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 0.7rem; }
  .pass-option strong { grid-row: span 2; margin-top: 0; }
  .pass-option em { margin-top: 0; }
  .seat-counter { margin-top: 0.3rem; }
  .ledger-head span:last-child { display: none; }
}

@media (max-width: 480px) {
  .demo-panel { padding: 0.8rem 0.75rem 1rem; }
  .phone__screen { min-height: 36rem; }
  .bindery-stage { min-height: 15.5rem; }
  .journal-cover { width: 10rem; }
  .shelf-books { left: 7.2rem; }
  .shelf-scene { min-height: 23.5rem; }
}
