
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2?v=001becc87b") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-italic.woff2?v=f82a32bb73") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2?v=f6831a504e") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ground: #14110D; --wood: #221B14; --cream: #F1E7D0; --ink: #1D1812;
  --brass: #B8935A; --tan: #A99C84; --tan2: #BDB19B; --green: #2FA676;
  --brass-8: color-mix(in srgb, var(--brass) 8%, var(--ground));
  --brass-16: color-mix(in srgb, var(--brass) 16%, var(--ground));
  --brass-32: color-mix(in srgb, var(--brass) 32%, var(--ground));
  --brass-48: color-mix(in srgb, var(--brass) 48%, var(--ground));
  --cream-8: color-mix(in srgb, var(--cream) 8%, var(--ground));
  --cream-16: color-mix(in srgb, var(--cream) 16%, var(--ground));
  --cream-32: color-mix(in srgb, var(--cream) 32%, var(--ground));
  --tan-32: color-mix(in srgb, var(--tan) 32%, var(--ground));
  --brass-ink: #66512F;
  --tan-ink: #5A5143;     /* 6.4:1 on paper */
  --paper: #EFE4CC;       /* cream with a touch of brass */
  --paper-2: #E8DCC2;
  --rule: rgba(29,24,18,.12);
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --italic: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --t-display: clamp(40px, 5vw, 56px); --t-title: 26px; --t-body: 17px; --t-small: 14px; --t-label: 12px; --t-num: 32px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --plate: linear-gradient(180deg, #DCBE84, #C9A86A 55%, var(--brass));
  --sy: 0;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--cream); font: 400 18px/1.6 var(--sans); overflow-x: hidden; position: relative; min-height: 100vh; font-feature-settings: "ss01", "cv05"; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.75rem); line-height: .98; max-width: 11ch; }
h1 em { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; color: var(--cream); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.05; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.num, .t-price, output { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--mono); font-size: 14px; line-height: 1.55; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); line-height: 1.4; }
.label.dark { color: var(--brass-ink); }
.lead { color: var(--tan2); font-size: 19px; line-height: 1.5; max-width: 62ch; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.wide { max-width: 1240px; }
section { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 56px); position: relative; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -90px; z-index: 400; background: var(--cream); color: var(--ink); padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn, .tab, .ribbon, .pay, .sug, .more { font: 600 16px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 48px; min-width: 44px; padding: 0 24px; border-radius: 999px; cursor: pointer; text-decoration: none; letter-spacing: -.01em; transition: transform 250ms var(--ease), background 250ms, border-color 250ms, box-shadow 250ms, color 250ms; -webkit-tap-highlight-color: transparent; }
.btn:active, .tab:active, .ribbon:active, .pay:active, .sug:active, .tag:active, .coin span:active, .otag-in:active, .spine:active { transform: translateY(1px); }
.btn-start { background: var(--cream); color: var(--ink); border: 1px solid var(--cream); min-height: 52px; padding: 0 26px; box-shadow: 0 10px 30px -12px rgba(241,231,208,.45), inset 0 1px 0 #fff; }
.btn-start:hover { background: #fff6e4; transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(241,231,208,.55), inset 0 1px 0 #fff; }
.btn-ghost { color: var(--cream); border: 1px solid var(--brass-32); background: rgba(20,17,13,.72); backdrop-filter: blur(4px); min-height: 52px; }
.btn-ghost:hover { border-color: var(--brass); background: var(--brass-8); }
.btn-brass { background: var(--plate); color: var(--ink); border: 1px solid var(--brass); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -10px rgba(0,0,0,.8); }
.btn-brass:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn[aria-disabled="true"], .pay[aria-disabled="true"], .more[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; filter: none; }
.status { color: var(--tan2); font-size: 15px; min-height: 1.4em; }

.loader { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; background: rgba(20,17,13,.78); backdrop-filter: blur(6px); animation: veil 600ms var(--ease) both; pointer-events: none; }
.loader-in { display: flex; align-items: center; gap: 14px; animation: loadin 600ms var(--ease) both; }
.loader .mark { width: 34px; height: 34px; animation: spin 600ms var(--ease) both; }
.loader-word { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.loader.gone { display: none; }
@keyframes veil { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes loadin { 0% { opacity: 0; transform: translateY(6px); } 30%, 60% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: rotate(0); } }

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ground); pointer-events: none; }
.photo { position: absolute; inset: -6% 0 -6% 0; background: var(--ground) center 60% / cover no-repeat;
  background-image: url("data:image/webp;base64,UklGRn4AAABXRUJQVlA4IHIAAADwAwCdASooABYAPvFoplAppqOiurmYATAeCWMAygBkdwDYZOPjXbQAAP7xmlzLrXDGkUnqWP1vuf5JHuCLSlRvJ1MzhavkonOlhdz5lpCWeQhtqUs3dnfnP64HDf9HY3GT7RQYq5DcSBSpuKQXQ2wGgAA=");
  transform: translate3d(0, calc(var(--sy) * .10px), 0) scale(1.03); will-change: transform; filter: saturate(.94) contrast(1.02); }
.photo::after { content: ""; position: absolute; inset: 0; background: inherit; background-image: var(--full); opacity: 0; transition: opacity 900ms ease; }
.photo.ready::after { opacity: 1; }
.glow { position: absolute; right: -4%; bottom: 4%; width: 60%; height: 64%; opacity: 0; mix-blend-mode: screen; transition: opacity 1200ms ease;
  -webkit-mask-image: radial-gradient(ellipse 48% 50% at 52% 66%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 48% 50% at 52% 66%, #000 10%, transparent 70%); }
.glow video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: saturate(.55) brightness(.9); display: block; }
.glow.on { opacity: .65; }
.scrim { position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 22% 48%, rgba(20,17,13,.78), rgba(20,17,13,.5) 45%, transparent 75%),
    linear-gradient(180deg, rgba(20,17,13,.6), transparent 22%, transparent 68%, var(--ground) 100%); }
.pool { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(ellipse 30% 36% at 72% 70%, rgba(241,231,208,.32), rgba(241,231,208,.12) 42%, transparent 72%);
  animation: poolrise 600ms var(--ease) both, flicker 7s ease-in-out 1.2s infinite; }
.grain { position: absolute; inset: 0; background: var(--grain); opacity: .16; mix-blend-mode: soft-light; }
@keyframes poolrise { from { opacity: 0; } to { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .98; } }
.r-app .photo { filter: saturate(.8) brightness(.72); }
.r-app .scrim { background: linear-gradient(180deg, rgba(20,17,13,.7), rgba(20,17,13,.55) 40%, var(--ground) 100%); }
.r-app .glow { display: none; }
@media (max-width: 760px) {
  .photo { background-position: 60% 46%;
    background-image: url("data:image/webp;base64,UklGRoYAAABXRUJQVlA4IHoAAABwBACdASoYACwAPwVorVArpaQitVv4AXAgiWUAvzhVlSnd8aBrdrsCr2fUQAD+8jD8Zmvi3bJO6lktkR+DFxfSWTM05APnw1l2DAPWK6+WMlKUXPgeDSEfN3zIfezer9tvCicZdllBhssLYCsafCrUVXRMP6NoiG6AAA=="); }
  .scrim { background: linear-gradient(180deg, rgba(20,17,13,.92) 0, rgba(20,17,13,.9) 70%, rgba(20,17,13,.55) 82%, rgba(20,17,13,.2) 92%, var(--ground) 100%); }
  .pool { background: radial-gradient(ellipse 48% 26% at 50% 80%, rgba(241,231,208,.3), rgba(241,231,208,.1) 45%, transparent 75%); }
  .glow { right: -10%; bottom: 0; width: 120%; height: 42%; -webkit-mask-image: radial-gradient(ellipse 45% 55% at 55% 70%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 45% 55% at 55% 70%, #000 10%, transparent 70%); }
}

/* ---------- top ---------- */
.top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand .mark { width: 22px; height: 22px; transition: transform 600ms var(--ease); }
.brand:hover .mark { transform: rotate(90deg); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; color: var(--cream); text-decoration: none; border-radius: 999px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- hero ---------- */
main.screen { position: relative; z-index: 2; }
.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; gap: 24px; padding: 8px clamp(20px, 4vw, 56px) 48px; }
.copy { max-width: 620px; padding-top: 2vh; }
.kicker { margin-bottom: 22px; }
.sub { margin: 26px 0 0; color: var(--tan2); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.honesty { margin: 18px 0 0; color: var(--cream); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; text-wrap: balance; }
.honesty::before { content: ""; display: block; width: 44px; height: 1px; background: var(--brass); opacity: .8; margin: 0 0 12px; }

.desk { position: relative; height: clamp(520px, 72vh, 680px); transform: translate3d(0, calc(var(--sy) * -.05px), 0); }
.idea-line { position: absolute; right: 0; top: 0; padding: 6px 10px; border-radius: 4px; background: rgba(20,17,13,.6); }
.plate { position: absolute; z-index: 3; top: -14px; left: 14px; padding: 7px 10px; border-radius: 3px; background: var(--plate); color: var(--ink); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 14px -6px rgba(0,0,0,.7); white-space: nowrap; }

.paper { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: -26px 34px 48px -18px rgba(0,0,0,.72), -4px 6px 12px -6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.55); }
.paper::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .2; mix-blend-mode: multiply; pointer-events: none; }
.paper > * { position: relative; z-index: 1; }
.face.paper { padding: 20px 20px 18px; }
.face.paper .mono { margin: 12px 0 14px; }

.back.dense { overflow: hidden; display: flex; flex-direction: column; }
.dense-text { flex: 1; min-height: 0; overflow: auto; margin: 10px 0 12px; overscroll-behavior: contain; max-width: 62ch; }
.dense-text p { margin: 0 0 .7em; white-space: pre-wrap; overflow-wrap: anywhere; }
.dense-text:focus-visible { outline-offset: 0; }

/* brass tab */
.tab { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); min-height: 44px; padding: 0 20px; border: 1px solid var(--brass-32); background: rgba(20,17,13,.96); color: #D2B37C; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.tab:hover { border-color: var(--brass); background: var(--brass-16); }
.tab:active { transform: translateX(-50%) translateY(1px); }
.tab .tab-b { display: none; } .tab[aria-pressed="true"] .tab-a { display: none; } .tab[aria-pressed="true"] .tab-b { display: inline; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.reveal.in, .no-reveal .reveal { opacity: 1; transform: none; }

.steps { padding-top: 72px; background: linear-gradient(180deg, transparent, rgba(20,17,13,.6) 20%, var(--ground) 45%); }
.steps h2 { max-width: 1240px; margin: 0 auto 36px; }
.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 26px 26px 22px; min-height: 230px; display: flex; flex-direction: column; gap: 16px; box-shadow: -22px 30px 44px -18px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(28px) rotate(var(--r, 0deg)); transition: opacity 700ms var(--ease), transform 900ms var(--ease), box-shadow 300ms; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .2; mix-blend-mode: multiply; pointer-events: none; }
.card::before { content: ""; position: absolute; left: 26px; right: 26px; top: 64px; height: 1px; background: var(--brass); opacity: .55; }
.card:nth-child(1) { --r: -1.2deg; } .card:nth-child(2) { --r: .6deg; transition-delay: 120ms; } .card:nth-child(3) { --r: -.5deg; transition-delay: 240ms; }
.card.in { transform: translateY(0) rotate(var(--r, 0deg)); }
.card:hover { transform: translateY(-4px) rotate(0deg); box-shadow: -26px 40px 54px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.6); }
.card-no { font-size: 30px; font-weight: 300; letter-spacing: -.02em; color: var(--brass-ink); line-height: 1; }
.card p { font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; max-width: 26ch; }
.card-foot { margin-top: auto; }

.example { background: var(--ground); }
.example:focus { outline: none; }
.example h2, .prices h2, .library h2 { margin-bottom: 14px; }
.ex-idea { margin: 34px 0 30px; padding: 20px 24px; max-width: 62ch; border-left: 3px solid var(--brass); border-radius: 0 6px 6px 0; }
.ex-idea p:last-child { font-size: 20px; line-height: 1.45; margin-top: 6px; font-weight: 500; }
.ex-rule { height: 2px; background: var(--brass-16); margin: 0 0 22px; position: relative; overflow: hidden; border-radius: 2px; }
.ex-rule span { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease); }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ex-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 22px 24px 20px; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: -18px 24px 40px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.55); position: relative; }
.ex-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .18; mix-blend-mode: multiply; pointer-events: none; }
.ex-item .qn { grid-row: span 3; color: var(--brass-ink); font-size: 30px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ex-item .q { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .4em; }
.ex-item .a { margin: 0 0 .7em; font-size: 18px; line-height: 1.5; max-width: 62ch; }
.ex-item .a::before { content: "\2014\00a0"; color: var(--brass); }
.ex-item .sg { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ex-item .sg li { font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid rgba(29,24,18,.22); border-radius: 999px; padding: 4px 11px; }
.ex-item .sg li.on { color: var(--ink); border-color: var(--brass); background: rgba(184,147,90,.18); }
.ink > * { animation: inkin 520ms var(--ease) both; }
.ink > *:nth-child(2) { animation-delay: 90ms; } .ink > *:nth-child(3) { animation-delay: 180ms; } .ink > *:nth-child(4) { animation-delay: 270ms; }
@keyframes inkin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ex-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 0; flex-wrap: wrap; }
.ex-prompt { margin-top: 64px; }
.ex-prompt h3 { font-size: 1.6rem; margin-bottom: 8px; }
.ex-prompt .lead { margin-bottom: 18px; }

.example .ex-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--brass); }
.example .ex-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); opacity: .75; }
.example h2 em { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.1em; color: var(--cream); }
.example .ex-lead { font-size: 19px; line-height: 1.5; color: var(--cream); max-width: 52ch; margin: 0 0 14px; }
.example .ex-sim { font-size: 15px; line-height: 1.5; color: var(--tan2); max-width: 62ch; padding-left: 12px; border-left: 2px solid var(--brass); }
.example .ex-sim b { color: var(--cream); font-weight: 600; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 34px 0 0; }
.ex-tab { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 60px; min-width: 44px; padding: 10px 20px; border: 1px solid var(--brass-32); border-radius: 10px; background: rgba(241,231,208,.04); color: var(--cream); font: 600 17px/1.2 var(--sans); letter-spacing: -.01em; text-align: left; cursor: pointer; transition: border-color 150ms, background 150ms; -webkit-tap-highlight-color: transparent; }
.ex-tab small { font: 500 13px/1.3 var(--sans); letter-spacing: 0; color: var(--tan2); }
.ex-tab:hover { border-color: var(--brass); background: var(--brass-8); }
.ex-tab[aria-selected="true"] { border: 2px solid var(--cream); padding: 9px 19px; background: var(--brass-16); }
.ex-panel { display: grid; gap: 64px; margin-top: 40px; }

.ex-panel[aria-busy="true"] #ex-idea { min-height: 2.9em; }
.ex-panel[aria-busy="true"] .ex-qa-lead { min-height: 1.5em; }
.ex-panel[aria-busy="true"] .ex-list { min-height: 148px; }
.ex-panel[aria-busy="true"] .ex-words { min-height: 1.3em; }
.ex-panel[aria-busy="true"] #ex-prompt-words { min-height: 1.1em; }
.ex-panel[aria-busy="true"] #ex-note { min-height: 3em; }
.ex-panel[aria-busy="true"] #ex-prompt { height: 70vh; }
.ex-panel[aria-busy="true"] .ex-res-grid::before, .ex-panel[aria-busy="true"] .ex-res-grid::after { content: ""; aspect-ratio: 1440 / 900; margin: 56px 0 60px; border-radius: 10px; background: var(--wood); }
.example .ex-no { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--brass); }
.example .ex-no .num { font-size: 13px; letter-spacing: .04em; }
.example .ex-no::after { content: ""; flex: 1; height: 1px; background: var(--brass-32); }
.example .ex-idea { margin: 0; max-width: 62ch; }
.example .ex-idea #ex-idea { font-size: 20px; line-height: 1.45; font-weight: 500; margin: 0; }
.example .ex-idea .ex-words { margin: 12px 0 0; font-size: 12px; }
.example .ex-qa-lead { margin: 0 0 6px; }
.example .ex-lang { margin: 0 0 6px; color: var(--cream); }
.example .ex-qa-lead + .ex-rule, .example .ex-lang + .ex-rule { margin-top: 16px; }
.ex-item .a-en { margin: -.3em 0 .8em; font-size: 15px; line-height: 1.5; color: var(--tan-ink); max-width: 62ch; }
.ex-item .a-en .label { margin-right: 6px; }
.ex-more { margin: 16px 0 0; }
.example .ex-prompt { margin-top: 0; }
.example .ex-pwords { font-size: var(--t-num); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--cream); margin: 0 0 10px; }
.ex-res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.ex-res { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ex-res-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--cream); min-height: 44px; }
.ex-res-k { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font-size: 14px; font-weight: 700; background: var(--tan-32); color: var(--cream); border: 1px solid var(--brass-48); }
.ex-res[data-k="b"] .ex-res-k { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.ex-shot { position: relative; aspect-ratio: 1440 / 900; border-radius: 10px; overflow: hidden; border: 1px solid var(--brass-32); background: var(--wood); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.ex-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ex-soon { display: grid; place-items: center; border-style: dashed; border-color: var(--brass-48); background: rgba(241,231,208,.03); box-shadow: none; }
.ex-soon p { color: var(--tan2); font-size: 15px; line-height: 1.4; text-align: center; padding: 12px; }
.example .ex-open { align-self: flex-start; min-height: 48px; }
.example .ex-cap { margin: 20px 0 0; font-size: 15px; line-height: 1.5; color: var(--tan2); max-width: 62ch; }
@media (max-width: 640px) {
  .ex-tabs { flex-direction: column; }
  .ex-tab { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; gap: 12px; }
  .ex-tab small { text-align: right; }
  .ex-panel { gap: 52px; }
  .ex-res-grid { gap: 12px; }
  .ex-shot, .ex-panel[aria-busy="true"] .ex-res-grid::before, .ex-panel[aria-busy="true"] .ex-res-grid::after { aspect-ratio: 390 / 844; }
  .ex-panel[aria-busy="true"] .ex-list { min-height: 420px; }
  .ex-panel[aria-busy="true"] #ex-idea { min-height: 7.25em; }
  .ex-panel[aria-busy="true"] .ex-qa-lead { min-height: 3em; }
  .ex-panel[aria-busy="true"] #ex-note { min-height: 4.5em; }
  .ex-res-h { font-size: 15px; align-items: flex-start; gap: 8px; }
  .ex-res-k { width: 24px; height: 24px; font-size: 13px; }
  .example .ex-open { width: 100%; padding: 8px 10px; font-size: 15px; line-height: 1.25; white-space: normal; text-align: center; }
  .example .ex-pwords { font-size: 28px; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.prompt { padding: 26px clamp(18px, 3vw, 32px); white-space: pre-wrap; max-height: 70vh; overflow: auto; margin: 18px 0 0; overflow-wrap: anywhere; max-width: calc(62ch + 2 * clamp(18px, 3vw, 32px)); overscroll-behavior: contain; }

.prices { background: var(--ground); }
.rail { height: 4px; margin: 38px 0 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brass) 6%, #DCBE84 50%, var(--brass) 94%, transparent); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 32px); }
.tags li { display: flex; justify-content: center; }
.tag { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-top: 58px; width: 100%; max-width: 220px; min-height: 160px; padding: 36px 14px 22px; text-align: center; background: var(--paper); color: var(--ink); text-decoration: none; border-radius: 6px 6px 4px 4px; box-shadow: -14px 22px 34px -16px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.55); transform-origin: 50% -58px; transition: transform .25s var(--ease), background-color .2s; }
.tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .2; mix-blend-mode: multiply; pointer-events: none; }
.tag:hover { background: #F6ECD6; transform: rotate(-1.5deg); }
.tag:focus-visible { outline-offset: 4px; }
.tag .string { position: absolute; top: -58px; left: 50%; width: 20px; height: 62px; margin-left: -10px; overflow: visible; }
.tag .string path { stroke: var(--brass); stroke-width: 1.4; fill: none; }
.hole { position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px var(--brass); }
.t-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.t-price { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.note { color: var(--tan2); margin-top: 30px; max-width: 62ch; }

/* ---------- library ---------- */
.library { background: var(--ground); }
.keys { max-width: 70ch; margin: 18px 0 0; color: #CDAE75; }
.lib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 28px; min-width: 0; }
.bookcase { position: relative; min-width: 0; background: var(--wood); padding: 14px 14px 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--brass-16), -20px 30px 50px -20px rgba(0,0,0,.8); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 9px); }
.bookcase.has-grain { background-size: 512px 512px; }
.shelf { margin-bottom: 12px; min-width: 0; }
.shelf-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.shelf-plate { display: inline-block; margin: 0; padding: 5px 12px; background: var(--plate); color: var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 4px rgba(0,0,0,.5); }
.shelf-count { color: var(--tan2); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

.row { position: relative; isolation: isolate; min-width: 0; display: flex; align-items: flex-end; gap: 2px; min-height: 290px; padding: 24px 12px 19px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 12px; scrollbar-width: thin; scrollbar-color: var(--brass-32) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background: linear-gradient(180deg, #8C6A47 0 1px, #5E4430 1px 4px, #3D2C1D 4px 9px, #1E160F) 0 100% / 100% 12px no-repeat,
    linear-gradient(180deg, #23190F, #4A3523) 0 calc(100% - 12px) / 100% 7px no-repeat,
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.12) 20%, transparent 50%, rgba(0,0,0,.22) calc(100% - 19px), transparent calc(100% - 19px)); }
.spine { --cloth: #E6D9BC; --ttl: #2A2017; --band: #7A2C24; --foil: #8A6A3A; --lbl: #2A2017; --lbl-ink: #EBD49E; --tb: 0px; --deco: none;
  flex: none; position: relative; margin: 0; padding: 0; border: 0; cursor: pointer; scroll-snap-align: start; writing-mode: horizontal-tb; color: var(--ttl); font: 600 14px/1.2 var(--sans); letter-spacing: .01em; min-width: 44px; width: 52px; height: 200px; border-radius: 3px 3px 2px 2px; transform-origin: 50% 100%; transition: transform .18s var(--ease), opacity .3s; background-color: var(--cloth);
  background-image: linear-gradient(180deg, var(--band) 0 4px, rgba(255,255,255,.3) 4px 5px, transparent 5px calc(100% - 5px), rgba(0,0,0,.28) calc(100% - 5px) calc(100% - 4px), var(--band) calc(100% - 4px)),
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.12) 3px, transparent 6px, rgba(255,255,255,.07) 40%, transparent 62%, transparent calc(100% - 7px), rgba(0,0,0,.16) calc(100% - 4px), rgba(0,0,0,.52)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(0,0,0,.45), 3px 0 5px -1px rgba(0,0,0,.6); }

.spine.c0 { --cloth: #E6D9BC; --ttl: #2A2017; --band: #7A2C24; --foil: #8A6A3A; }
.spine.c1 { --cloth: #C6964A; --ttl: #1D1812; --band: #3B2A18; --foil: #5B3F1C; }
.spine.c2 { --cloth: #7A2C24; --ttl: #F0DCA8; --band: #D4B373; --foil: #D4B373; --lbl: #EFE4CC; --lbl-ink: #1D1812; }
.spine.c3 { --cloth: #245542; --ttl: #F1E3BC; --band: #C9A86A; --foil: #C9A86A; --lbl: #EFE4CC; --lbl-ink: #1D1812; }
.spine.c4 { --cloth: #2A4566; --ttl: #F1E7D0; --band: #C9A86A; --foil: #B8935A; --lbl: #EFE4CC; --lbl-ink: #1D1812; }
.spine.c5 { --cloth: #ADB797; --ttl: #1D1812; --band: #3F4B34; --foil: #4D5A40; }

.spine.v0 { --deco: linear-gradient(180deg, transparent 12px, var(--foil) 12px 13px, transparent 13px 16px, var(--foil) 16px 17px, transparent 17px calc(100% - var(--tb) - 17px), var(--foil) calc(100% - var(--tb) - 17px) calc(100% - var(--tb) - 16px), transparent calc(100% - var(--tb) - 16px) calc(100% - var(--tb) - 13px), var(--foil) calc(100% - var(--tb) - 13px) calc(100% - var(--tb) - 12px), transparent calc(100% - var(--tb) - 12px)); }
.spine.v1, .spine.v2 { --deco: linear-gradient(180deg, transparent 10px, rgba(255,255,255,.32) 10px 11px, rgba(255,255,255,.1) 11px 13px, rgba(0,0,0,.45) 13px 14px, transparent 14px 17px, rgba(255,255,255,.32) 17px 18px, rgba(255,255,255,.1) 18px 20px, rgba(0,0,0,.45) 20px 21px, transparent 21px calc(100% - var(--tb) - 21px), rgba(255,255,255,.32) calc(100% - var(--tb) - 21px) calc(100% - var(--tb) - 20px), rgba(255,255,255,.1) calc(100% - var(--tb) - 20px) calc(100% - var(--tb) - 18px), rgba(0,0,0,.45) calc(100% - var(--tb) - 18px) calc(100% - var(--tb) - 17px), transparent calc(100% - var(--tb) - 17px) calc(100% - var(--tb) - 14px), rgba(255,255,255,.32) calc(100% - var(--tb) - 14px) calc(100% - var(--tb) - 13px), rgba(255,255,255,.1) calc(100% - var(--tb) - 13px) calc(100% - var(--tb) - 11px), rgba(0,0,0,.45) calc(100% - var(--tb) - 11px) calc(100% - var(--tb) - 10px), transparent calc(100% - var(--tb) - 10px)); }
.spine::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--deco); pointer-events: none; }
.spine::after { content: ""; position: absolute; z-index: -1; left: -3px; right: -7px; bottom: -6px; height: 8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none; }
.spine .ttl { position: absolute; inset: 26px 6px calc(26px + var(--tb)); margin: auto; width: fit-content; height: fit-content; max-width: min(calc(100% - 12px), calc(2.4em + 8px)); padding: 4px; writing-mode: vertical-rl; text-orientation: mixed; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; text-align: center; overflow: hidden; color: var(--ttl); }
.spine.v2 .ttl { padding: 8px 4px; background: var(--lbl); color: var(--lbl-ink); border-radius: 1px; box-shadow: 0 0 0 1px var(--foil), 0 1px 2px rgba(0,0,0,.4); }
.spine:hover, .spine:focus-visible { transform: translateY(-6px); }
.spine:active { transform: translateY(-5px); }
.spine:focus-visible { outline-offset: 3px; }
.spine.ex { --tb: 24px; }
.mk { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 26px; background: var(--plate); color: var(--ink); font: 800 12px/1 var(--sans); letter-spacing: .02em; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.45); }
.mk:not(.wk) { background: #F1E7D0; }
.spine .mk { position: absolute; left: 6px; right: 6px; bottom: 9px; min-width: 0; }
.lib-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin: 2px 0 12px; padding: 9px 12px; background: rgba(20,17,13,.86); border-radius: 4px; color: var(--cream); font: 500 14px/1.4 var(--sans); }
.lib-legend .lg { display: inline-flex; align-items: center; gap: 8px; }

.spine-tip { position: absolute; z-index: 5; left: 0; top: 0; width: max-content; max-width: min(280px, calc(100% - 12px)); padding: 8px 12px 9px; background: var(--plate); color: var(--ink); font: 600 15px/1.3 var(--sans); letter-spacing: -.005em; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px rgba(0,0,0,.55); pointer-events: none; writing-mode: horizontal-tb; }
.spine-tip[hidden] { display: none; }
.spine-tip::after { content: ""; position: absolute; top: 100%; left: var(--ax, 50%); margin-left: -7px; border: 7px solid transparent; border-top-color: var(--brass); }
.tip-t { display: block; }
.tip-m { display: block; margin-top: 2px; font: 700 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tip-m[hidden] { display: none; }
.spine.out { opacity: .18; }
.marker { position: absolute; top: 4px; width: 10px; margin-left: -5px; height: 46px; z-index: 2; background: var(--plate); pointer-events: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); writing-mode: horizontal-tb; }
.more { margin: 8px 0 4px; color: var(--cream); border: 1px solid var(--brass-32); background: transparent; min-height: 44px; }
.more:hover { border-color: var(--brass); background: var(--brass-8); }
.empty { color: var(--tan2); padding: 34px 6px 0; margin: 0; writing-mode: horizontal-tb; align-self: center; white-space: normal; font-size: 16px; }

.readdesk { position: sticky; top: 16px; min-height: 560px; border-radius: 6px; overflow: hidden; background: var(--wood); box-shadow: inset 0 0 0 1px var(--brass-16), -20px 30px 50px -20px rgba(0,0,0,.8); }
.slot-desk { position: absolute; inset: 0; background-color: var(--wood); background-size: cover; background-position: center; background-image: repeating-linear-gradient(92deg, rgba(0,0,0,.10) 0 3px, transparent 3px 11px, rgba(184,147,90,.04) 11px 13px, transparent 13px 23px), linear-gradient(180deg, var(--wood), color-mix(in srgb, var(--wood) 70%, #000)); }
.slot-desk.has-pic { background-image: var(--pic); }
.desk-pool { position: absolute; inset: 0; opacity: .9; transition: opacity 600ms var(--ease); background: radial-gradient(ellipse 62% 54% at 50% 46%, rgba(241,231,208,.22), rgba(241,231,208,.06) 60%, transparent 80%); }
.desk-pool.bright { opacity: .98; }
.desk-empty { position: absolute; left: 0; right: 0; top: 46%; text-align: center; margin: 0; padding: 0 24px; display: flex; justify-content: center; }
.desk-empty span { display: inline-block; background: rgba(20,17,13,.72); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 16px; max-width: 34ch; }
.book-stage { position: relative; padding: 26px clamp(12px, 2vw, 26px); }
.book { position: relative; }
.spread { position: relative; display: grid; grid-template-columns: 34% 66%; perspective: 1800px; min-height: 500px; }
.inside { grid-column: 1; grid-row: 1; background: var(--paper-2); border-radius: 3px 0 0 3px; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px rgba(0,0,0,.5), inset -14px 0 18px -12px rgba(0,0,0,.35); }
.book.closed .inside { visibility: hidden; }
.book:not(.closed) .cover { visibility: hidden; }
.book:focus-visible { outline-offset: 6px; }
.pg { grid-column: 2; grid-row: 1; background: var(--paper); color: var(--ink); padding: 22px 22px 16px; border-radius: 0 3px 3px 0; box-shadow: 0 16px 34px rgba(0,0,0,.5); display: flex; flex-direction: column; min-height: 500px; max-height: 76vh; position: relative; }
.pg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .16; mix-blend-mode: multiply; pointer-events: none; }
.pg > * { position: relative; z-index: 1; }
.pg h3 { margin: 4px 0 .3em; font-size: 1.5rem; }
.book-sub { font-size: 15px; line-height: 1.45; color: var(--tan-ink); margin: 0 0 8px; max-width: 62ch; }
.book-ex { font-size: 14px; color: var(--tan-ink); margin: 0 0 10px; }
.book-ex.wk { font-weight: 600; color: var(--brass-ink); padding-left: 10px; border-left: 2px solid var(--brass); }
.lib-note { font-size: 15px; margin-top: -8px; }
.plate-sm { display: none; }
.book-text { flex: 1; overflow: auto; font-size: 14px; line-height: 1.55; overscroll-behavior: contain; padding-right: 4px; max-width: 62ch; }
.book-text p { margin: 0 0 .6em; white-space: pre-wrap; overflow-wrap: anywhere; }
.book-text p.ln-0 { opacity: 0; }
.cover { position: absolute; top: 0; bottom: 0; left: 34%; width: 66%; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 3; transform: rotateY(-180deg) scaleX(.515); pointer-events: none; }
.book.closed .cover { transform: none; }
.cv { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px; }
.cv-front { background-color: var(--brass-32); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px), linear-gradient(90deg, rgba(0,0,0,.35), transparent 10%); box-shadow: inset 0 0 0 10px rgba(0,0,0,.12), inset 0 0 0 11px var(--brass-32), 0 16px 34px rgba(0,0,0,.55); }
.cv-rule { width: 40px; height: 1px; background: var(--brass); }
.cv-no { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.cv-back { transform: rotateY(180deg); background: var(--paper-2); color: var(--ink); display: flex; align-items: center; justify-content: center; border-radius: 3px 0 0 3px; box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.explate { margin: 0; border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 3px; padding: 12px 12px; text-align: center; font-size: 12px; font-style: italic; font-family: var(--italic); font-size: 15px; color: var(--tan-ink); white-space: nowrap; letter-spacing: .01em; }
.book-actions { grid-column: 1 / -1; margin: 16px 0 0; justify-content: flex-end; }
.ribbon { background: var(--plate); color: var(--ink); border: 0; border-radius: 0; padding: 0 28px 0 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
.ribbon:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--brass); clip-path: none; }
.flyer { position: fixed; left: 0; top: 0; width: 10px; height: 10px; z-index: 60; display: none; pointer-events: none; border-radius: 3px; background-color: var(--brass-32); transform-origin: 0 0; will-change: transform; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 4px rgba(0,0,0,.12); }
.flyer span { position: absolute; inset: 8% -6% -14% -6%; background: rgba(0,0,0,.45); filter: blur(12px); z-index: -1; border-radius: 6px; }

.invite { background: var(--ground); padding-top: 20px; }
.invite-card { padding: clamp(28px, 4vw, 48px); border-radius: 8px; }
.invite-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 10px 0 16px; max-width: 24ch; }
.invite-card .lead { color: var(--ink); font-size: 17px; opacity: .85; }
.colophon { position: relative; z-index: 1; border-top: 1px solid var(--brass-16); padding: 36px clamp(20px, 4vw, 56px) 48px; background: var(--ground); }
.colophon-in { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.colophon p { margin: 0; font-weight: 500; }
.colophon .small { color: var(--tan2); font-size: 15px; font-weight: 400; flex: 1 1 320px; }

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 300; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--brass); border-radius: 50%; pointer-events: none; opacity: 0; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1)); transition: opacity 300ms, transform 120ms linear; mix-blend-mode: screen; }
  body.has-cursor .cursor { opacity: .9; }
  .cursor.on { --cs: 1.6; background: rgba(184,147,90,.12); }
}

.screen-app { max-width: 780px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 32px) 64px; }
.testbar { margin: 0 auto 18px; width: max-content; max-width: 100%; padding: 8px 14px; border-radius: 3px; background: var(--plate); color: var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 10px -4px rgba(0,0,0,.6); }
.backrow { margin: 22px 0 0; }
.backlink { display: inline-flex; min-height: 44px; align-items: center; color: var(--tan2); font-size: 15px; }
.backlink::before { content: "\2190\00a0"; color: var(--brass); }
.sheetpaper { padding: clamp(22px, 4vw, 44px); border-radius: 8px; margin-top: 8px; }
.sheetpaper .lead { color: var(--tan-ink); font-size: 18px; }
.sheetpaper a { color: var(--ink); }
.sheetpaper .btn-ghost { color: var(--ink); border-color: rgba(29,24,18,.3); background: transparent; backdrop-filter: none; }
.sheetpaper .btn-ghost:hover { background: rgba(184,147,90,.14); border-color: var(--brass-ink); }
.sheetpaper .status { color: var(--tan-ink); }
.h-app { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.05; margin-bottom: 14px; max-width: none; }
.h-app:focus-visible { outline-offset: 6px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kinds legend { grid-column: 1 / -1; }
.otag, .coin { position: relative; display: block; }
.otag input, .coin input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.otag-in { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 150px; padding: 30px 16px 16px; border: 1px solid rgba(29,24,18,.18); border-radius: 6px 6px 4px 4px; cursor: pointer; background: #F6ECD6; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); text-align: center; align-items: center; }
.otag-in b { font-weight: 600; font-size: 17px; }
.otag-in .t-price { font-size: 30px; }
.otag-in small { color: var(--tan-ink); font-size: 14px; line-height: 1.4; margin-top: 6px; }
.otag:hover .otag-in { border-color: var(--brass); transform: rotate(-1deg); }
.otag input:checked + .otag-in { border: 2px solid var(--ink); padding: 29px 15px 15px; background: var(--cream); }
.otag input:focus-visible + .otag-in, .coin input:focus-visible + span, .shelfpick input:focus-visible + span { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
.final { font-size: 15px; color: var(--tan-ink); margin-top: 12px; }
.coins { display: flex; gap: 14px; flex-wrap: wrap; }
.coins legend { width: 100%; }
.coin span { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: radial-gradient(circle at 35% 30%, #E3C78C, var(--brass) 60%, #8F6F3E); box-shadow: inset 0 0 0 3px #8F6F3E, inset 0 0 0 4px rgba(255,255,255,.25), 0 6px 12px -6px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.coin:hover span { transform: translateY(-2px) rotate(-6deg); }
.coin input:checked + span { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; max-width: 300px; margin-top: 22px; }
.field input, textarea, select { font: 18px/1.4 var(--sans); color: var(--ink); background: #F8F0DD; border: 1px solid rgba(29,24,18,.22); border-radius: 6px; padding: 10px 12px; min-height: 48px; width: 100%; }
.field input { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.field input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
.msg { font-size: 15px; min-height: 1.3em; color: var(--tan-ink); margin: 8px 0 0; }
.msg.err { color: #7A2E1E; }
.msg.err:empty { display: none; }
.total { display: flex; align-items: baseline; gap: 14px; font-size: 18px; margin: 22px 0 14px; }
.total output { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.pay { background: var(--green); color: var(--ground); border: 0; font-size: 18px; min-height: 56px; padding: 0 34px; min-width: 220px; box-shadow: 0 14px 30px -14px rgba(47,166,118,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.pay:hover { background: #35B682; transform: translateY(-1px); }
.pay[aria-busy="true"] { cursor: progress; }
.paybox { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 22px 0; align-items: baseline; }
.paybox dd { margin: 0; font-size: 18px; }
.addr { overflow-wrap: anywhere; word-break: break-all; background: #F8F0DD; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(29,24,18,.18); font-size: 14px; }
.waittext { font-size: 19px; }
.waittext::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 10px; animation: breathe 2.4s ease-in-out infinite; vertical-align: 2px; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.warn { font-size: 20px; font-weight: 500; border-left: 3px solid var(--brass); padding-left: 14px; margin: 18px 0; line-height: 1.4; }
.paidmark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--ground); margin-right: 12px; vertical-align: middle; }
.paidmark::before { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--ground); border-bottom: 3px solid var(--ground); transform: translateY(-2px) rotate(-45deg); }
.err-line { color: var(--ink); background: rgba(184,147,90,.22); padding: 10px 14px; border-radius: 6px; margin-top: 12px; }
.deskblock { border-top: 1px solid rgba(29,24,18,.14); padding-top: 24px; margin-top: 28px; }
.deskblock h2 { font-size: 1.55rem; margin-bottom: 10px; }
.deskblock .lead { margin-bottom: 14px; }
.keyblock .label { margin-top: 6px; }
.keyblock .actions { margin-top: 12px; }
.qcard { background: #F6ECD6; border: 1px solid rgba(29,24,18,.14); border-radius: 8px; padding: 22px; margin-top: 10px; box-shadow: 0 12px 26px -18px rgba(0,0,0,.6); }
.qcard .q { font-size: 23px; margin: 6px 0 8px; line-height: 1.25; }
.qnote { font-size: 15px; color: var(--tan-ink); margin: 0 0 14px; }
.qcap { padding-left: 12px; border-left: 2px solid var(--brass); }
.qbar { height: 3px; background: rgba(29,24,18,.1); border-radius: 2px; margin: 6px 0 16px; overflow: hidden; }
.qbar span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease); }
.sugs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.sug { font-size: 16px; font-weight: 500; text-align: left; justify-content: flex-start; width: 100%; min-height: 48px; padding: 8px 14px; color: var(--ink); background: var(--cream); border: 1px solid rgba(29,24,18,.18); border-radius: 8px; gap: 12px; line-height: 1.3; }
.sug:hover { border-color: var(--brass); }
.sug[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px 13px; background: #FFF6E4; }
.sug kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--brass); border-radius: 4px; padding: 1px 6px; color: var(--brass-ink); flex: none; }
textarea { min-height: 104px; resize: vertical; }
textarea[readonly] { background: #EFE4CC; color: var(--tan-ink); }
.hint { font-size: 14px; color: var(--tan-ink); margin: 8px 0 14px; }
.thinking { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.thinking:empty { display: none; }
.thinking .tline { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.thinking .tline::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(29,24,18,.15); border-top-color: var(--brass-ink); animation: turn 900ms linear infinite; flex: none; }
.thinking .tmore { font-size: 15px; color: var(--tan-ink); animation: inkin 400ms var(--ease) both; }
@keyframes turn { to { transform: rotate(360deg); } }
.shelfpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shelfpick label { position: relative; }
.shelfpick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.shelfpick span { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 16px; border: 1px solid rgba(29,24,18,.22); border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; }
.shelfpick input:checked + span { border: 2px solid var(--ink); padding: 5px 15px; background: var(--cream); color: var(--ink); }
.mylist { list-style: none; padding: 0; margin: 0; }
.mylist li { padding: 14px 0; border-bottom: 1px solid rgba(29,24,18,.12); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.mylist .t { font-size: 18px; font-weight: 500; flex: 1 1 220px; }
.sheetpaper .prompt { box-shadow: none; border: 1px solid rgba(29,24,18,.14); background: #F8F0DD; max-width: none; }
.sheetpaper .prompt::after { display: none; }
.sheetpaper .prompt { max-width: calc(62ch + 2 * clamp(18px, 3vw, 32px)); }
.sheetpaper label.label { display: block; margin: 16px 0 8px; }
.sheetpaper form .actions { margin-top: 14px; }
.r-home #order, .r-home #deskscreen { display: none; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; align-items: start; min-height: 0; }
  h1 { max-width: 13ch; }
  .desk { height: auto; padding-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 44px; transform: none; }
  .idea-line { position: static; align-self: flex-start; background: none; padding: 0; }
  .tab { position: static; transform: none; margin-top: 8px; }
  .tab:active { transform: translateY(1px); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib { grid-template-columns: minmax(0, 1fr); }
  .readdesk { position: relative; top: 0; min-height: 150px; }
  .desk-empty { position: relative; z-index: 1; top: auto; padding: 50px 20px; }
  .book-stage:not([hidden]) { position: fixed; inset: 0; z-index: 320; padding: 0; background: var(--ground); display: flex; }
  .book { min-height: 0; flex: 1; display: flex; flex-direction: column; }
  .spread { grid-template-columns: 1fr; min-height: 0; flex: 1; display: flex; flex-direction: column; }
  .inside { display: none; }
  .pg { grid-column: 1; border-radius: 0; flex: 1; max-height: none; min-height: 0; padding: 18px 16px 10px; }
  .plate-sm { display: block; margin-bottom: 6px; }
  .cover { left: 0; width: 100%; transform: rotateY(-180deg); }
  .cv-back { display: none; }
  .book-actions { margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--wood); justify-content: center; }

  .book { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
  .spread { flex: none; display: block; }
  .pg { flex: none; display: block; max-height: none; min-height: 0; }
  .book-text { flex: none; overflow: visible; max-height: none; overscroll-behavior: auto; }
  .book-actions { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 20px -12px rgba(0,0,0,.7); }
  body.reader-open { overflow: hidden; }
  .ex-item { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 16px 16px; }
  .ex-item .qn { font-size: 24px; }
  .ex-item .q { font-size: 19px; }
}
@media (max-width: 520px) {
  .btn-start, .btn-ghost { width: 100%; }
  .face.paper { padding: 14px; }
  .tags { gap: 10px; }
  .tag { min-height: 140px; margin-top: 50px; padding-top: 32px; }
  .tag .string { top: -50px; height: 54px; }
  .t-price { font-size: 28px; }
  .kinds { grid-template-columns: 1fr; }
  .otag-in { min-height: 0; }
  .ex-ctrl .btn { flex: 1 1 40%; }
  .colophon-in { align-items: flex-start; }
}

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .loader { display: none; }
  .photo, .desk { transform: none; }
  .pool { opacity: 1; }
  .reveal, .card { opacity: 1; transform: none; }
  .cursor, .glow { display: none; }
  .spine:hover, .spine:focus-visible { transform: none; }
  .waittext::before { animation: none; opacity: 1; }
  .thinking .tline::before { animation: none; border-top-color: var(--brass-ink); }
}

.screen-app { padding-bottom: 72px; }
.screen-app .testbar { font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .08em; border-radius: 999px; padding: 6px 14px; }
.h-app { font-size: var(--t-display); line-height: 1; letter-spacing: -.02em; font-weight: 500; margin: 0 0 var(--s2); }
.sheetpaper .lead, .lead { font-size: var(--t-body); line-height: 1.5; font-weight: 400; max-width: 46ch; margin: 0 0 var(--s3); }
.label, .sheetpaper .label { font-size: var(--t-label); letter-spacing: .08em; font-weight: 600; line-height: 1.3; }
.sheetpaper label.label { margin: var(--s3) 0 var(--s1); }
.warn { font-size: var(--t-body); font-weight: 500; line-height: 1.45; margin: 0 0 var(--s2); padding-left: 12px; border-left-width: 2px; }
.keyblock .label { display: none; }
.mono, .addr, .sheetpaper .prompt, .prompt { font-family: var(--mono); font-size: var(--t-small); line-height: 1.55; font-feature-settings: "zero" 1; }
.addr { padding: 12px 14px; border-radius: 8px; margin: 0 0 var(--s2); }
.field input { letter-spacing: .08em; }
.field input, textarea, select { font-size: var(--t-body); border-radius: 8px; }
.btn, .pay, .sug, .more { font: 600 var(--t-body)/1 var(--sans); min-height: 48px; border-radius: 10px; padding: 0 20px; }
.btn-brass, .pay, .btn-start { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); box-shadow: none; filter: none; min-height: 48px; min-width: 0; font-size: var(--t-body); }
.btn-brass:hover, .pay:hover, .btn-start:hover { background: #2B241B; transform: none; filter: none; box-shadow: none; }
.btn-ghost, .sheetpaper .btn-ghost { background: transparent; backdrop-filter: none; min-height: 48px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; margin: var(--s2) 0 0; }
/* ordine */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); margin: 0 0 var(--s1); }
.otag-in { min-height: 0; padding: 16px 16px 14px; border-radius: 10px; gap: 2px; transition: border-color 150ms; }
.otag-in .hole { display: none; }
.otag:hover .otag-in { transform: none; }
.otag-in b { font-size: var(--t-body); font-weight: 600; }
.otag-in .t-price { font-size: var(--t-num); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.otag-in small { font-size: var(--t-small); margin-top: 4px; }
.otag input:checked + .otag-in { padding: 15px 15px 13px; }
.final { font-size: var(--t-small); margin: 0 0 var(--s3); }
.coins { margin: 0; } .coins > div, .coins { display: flex; flex-wrap: wrap; gap: var(--s1); }
.coins legend { float: left; width: 100%; margin-bottom: var(--s1); }
.coin span { width: auto; height: 44px; padding: 0 16px; border-radius: 999px; font-size: var(--t-small); letter-spacing: .04em; background: transparent; box-shadow: none; border: 1px solid rgba(29,24,18,.22); color: inherit; background-image: none; }
.coin:hover span { transform: none; border-color: var(--brass); }
.coin input:checked + span { box-shadow: none; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.field { max-width: 240px; margin-top: var(--s3); }
.total { font-size: var(--t-body); margin: var(--s4) 0 var(--s2); gap: var(--s2); }
.total output { font-size: var(--t-num); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay { width: 100%; min-height: 52px; }
.paybox { gap: var(--s1) var(--s2); margin: var(--s3) 0; }
.paybox dd { font-size: var(--t-body); } .paybox dd.num { font-size: var(--t-num); font-weight: 600; font-family: var(--sans); font-variant-numeric: tabular-nums; }
/* scrivania */
.deskblock { border-top: 1px solid var(--rule); padding-top: var(--s3); margin-top: var(--s4); }
.deskblock h2 { font-size: var(--t-title); line-height: 1.2; font-weight: 500; margin: 0 0 var(--s1); }
.sheetpaper .prompt { padding: var(--s3); margin-top: var(--s2); border-radius: 10px; max-height: none; }
.mylist .t { font-size: var(--t-body); } .mylist li { padding: 12px 0; }
/* intervista */
.qcard { padding: var(--s3); border-radius: 12px; margin-top: 0; box-shadow: none; }
.qcard .q { font-size: var(--t-title); line-height: 1.25; margin: var(--s1) 0 var(--s2); font-weight: 500; }
.qnote, .hint, .thinking .tmore { font-size: var(--t-small); }
.qbar { margin: var(--s1) 0 var(--s2); }
.sugs { gap: var(--s1); margin: 0 0 var(--s3); }
.sug { font-size: var(--t-body); font-weight: 500; min-height: 48px; padding: 10px 14px; border-radius: 10px; gap: 12px; }
.sug kbd { font-size: var(--t-label); border-radius: 6px; padding: 2px 7px; min-width: 24px; text-align: center; }
.thinking .tline { font-size: var(--t-body); }
textarea { min-height: 112px; }
@media (max-width: 640px) { .kinds { grid-template-columns: 1fr; } .field { max-width: none; } .h-app { font-size: 36px; } }

.screen-app { max-width: 560px; }
#order.screen-app { max-width: 480px; }
.sheetpaper.paper { background: rgba(20,17,13,.74); background-image: none; -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--brass-32); border-radius: 16px; padding: clamp(24px, 4vw, 40px); margin-top: var(--s2); color: var(--cream);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(241,231,208,.08); }
.sheetpaper.paper::before, .sheetpaper.paper::after { display: none; }
.sheetpaper, .sheetpaper .h-app, .sheetpaper h2, .sheetpaper .q, .sheetpaper .total, .sheetpaper .paybox dd, .sheetpaper .mylist .t, .sheetpaper a { color: var(--cream); }
.sheetpaper .lead, .sheetpaper .final, .sheetpaper .qnote, .sheetpaper .hint, .sheetpaper .status, .sheetpaper .thinking .tmore, .otag-in small { color: var(--tan2); }
.sheetpaper .label, .sheetpaper .label.dark { color: var(--brass); }
.warn { color: var(--cream); border-left-color: var(--brass); }
.addr, .field input, textarea, select, .sheetpaper .prompt { background: rgba(241,231,208,.06); border: 1px solid var(--brass-32); color: var(--cream); }
textarea[readonly] { background: rgba(241,231,208,.04); color: var(--tan2); }
.btn-brass, .pay, .btn-start { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-brass:hover, .pay:hover, .btn-start:hover { background: #fff6e4; }
.sheetpaper .btn-ghost { color: var(--cream); border-color: var(--brass-32); }
.sheetpaper .btn-ghost:hover { border-color: var(--brass); background: var(--brass-8); }
.qcard { background: transparent; border: 0; padding: 0; }
.sug { background: rgba(241,231,208,.05); border-color: var(--brass-32); color: var(--cream); }
.sug:hover { border-color: var(--brass); background: var(--brass-8); }
.sug[aria-pressed="true"] { border: 2px solid var(--cream); padding: 9px 13px; background: var(--brass-16); }
.sug kbd { color: var(--brass); border-color: var(--brass-48); }
.sug.on kbd { background: var(--cream); color: var(--ink); border-color: var(--cream); } /* A5 */
.otag-in { background: rgba(241,231,208,.05); border-color: var(--brass-32); color: var(--cream); }
.otag input:checked + .otag-in { border: 2px solid var(--cream); background: var(--brass-16); }
.coin span { border-color: var(--brass-32); color: var(--cream); }
.coin input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.deskblock { border-top-color: var(--brass-32); }
.mylist li { border-bottom-color: var(--brass-32); }
.qbar { background: rgba(241,231,208,.12); }
.thinking .tline::before { border-color: rgba(241,231,208,.18); border-top-color: var(--brass); }
.backrow { text-align: center; margin-top: var(--s3); } .backlink { color: var(--tan2); }

#order.screen-app { max-width: 520px; }
.sheetpaper .testbar { background: transparent; color: var(--brass); border: 1px solid var(--brass-48); border-radius: 999px; box-shadow: none; margin: 0 0 var(--s2); }
.sheetpaper .prompt { max-width: 62ch; }
.deskblock h2#pr-t { font-size: var(--t-title); }

.invite-card.paper { background: rgba(20,17,13,.74); background-image: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--brass-32); border-radius: 16px; color: var(--cream); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.invite-card.paper::after { display: none; }
.invite-card h2 { font-size: var(--t-title); line-height: 1.2; font-weight: 500; max-width: 30ch; color: var(--cream); }
.invite-card .lead { color: var(--tan2); font-size: var(--t-body); opacity: 1; }
.invite-card .label { color: var(--brass); }
.ex-prompt h3 { font-size: var(--t-title); font-weight: 500; }
.colophon .small { font-size: var(--t-small); }
.t-price { font-size: var(--t-num); }

.sheetpaper h2.h-app { font-size: var(--t-title); line-height: 1.2; margin: var(--s2) 0 var(--s1); }
.paybox dd.num { font-size: var(--t-title); }
.sheetpaper a.btn-brass, .sheetpaper a.btn-start { color: var(--ink); }

.screen-app .eyebrow { color: var(--brass); margin: 0 0 var(--s1); }
.screen-app h1.h-app { font-size: clamp(40px, 4.2vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.025em; margin: 0 0 var(--s3); }
.screen-app .h-app em { font-family: var(--italic); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; color: var(--cream); }
.screen-app h1.h-app::after { content: ""; display: block; width: 56px; height: 1px; background: var(--brass); opacity: .75; margin-top: var(--s2); }
.h-app:focus, .h-app:focus-visible { outline: none; } /* bersaglio di focus programmatico (tabindex=-1), non interattivo: nessun anello (Satoshi 17:41 a) */
@media (max-width: 640px) { .screen-app h1.h-app { font-size: 38px; } }
@media (min-width: 1024px) { #deskscreen.screen-app { max-width: 720px; } } /* scrivania/intervista: contenuto lungo, carta più larga (Satoshi 17:41 b) */

/* v2.2 copy A + FAQ + «Help or refund» + scadenza priva… */
.cta-item { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cta-note { font-size: 14px; line-height: 1.4; color: var(--tan2); }
.card .card-note { font-size: 14px; line-height: 1.45; font-weight: 400; letter-spacing: 0; color: var(--tan-ink); max-width: 30ch; margin: -6px 0 0; }
.subnote { color: var(--tan2); font-size: 15px; line-height: 1.5; max-width: 62ch; margin: 12px 0 0; }
.ex-prompt .subnote { margin: 0 0 18px; }
.prices .what { margin: 34px 0 0; }
.price-notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 72ch; }
.price-notes li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.45; color: var(--tan2); padding-left: 14px; border-left: 1px solid var(--brass-32); }
.price-notes b { color: var(--cream); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
/* FAQ: <details> with an accessible <summary> (Enter/Space), brass rules, chevron drawn in CSS */
.faq { background: var(--ground); padding-top: 20px; }
.faq h2, .support h2 { margin-bottom: 14px; } /* same breath under the title as example/prices/library */
.faq-list { margin-top: 14px; border-top: 1px solid var(--brass-32); max-width: 72ch; }
.faq-item { border-bottom: 1px solid var(--brass-32); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; padding: 14px 0; font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--cream); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1px solid var(--brass); border-bottom: 1px solid var(--brass); transform: translateY(-3px) rotate(45deg); margin-right: 6px; transition: transform 250ms var(--ease); }
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:hover { color: #FFF6E4; }
.faq-item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
.faq-a { padding: 0 0 20px; color: var(--tan2); font-size: 17px; line-height: 1.55; max-width: 62ch; }
.faq-a p { margin: 0 0 10px; }
.faq-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration-color: var(--brass); }
/* Help or refund: glass card on the home, a deskblock on the desk; the button stays ghost (the cream one is Pay / Send) */
.support { background: var(--ground); padding-top: 20px; }
.support-card { margin-top: 10px; padding: clamp(22px, 3.5vw, 36px); border-radius: 16px; background: rgba(20,17,13,.74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--brass-32); color: var(--cream); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); max-width: 640px; }
.support-form fieldset { margin: 0 0 var(--s3); }
.support-form legend { color: var(--brass); margin-bottom: 10px; }
.skind { display: flex; flex-wrap: wrap; gap: var(--s1); }
.schoice { position: relative; display: block; }
.schoice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.schoice span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--brass-32); border-radius: 999px; cursor: pointer; font-size: var(--t-small); font-weight: 500; color: var(--cream); background: rgba(241,231,208,.05); }
.schoice:hover span { border-color: var(--brass); }
.schoice input:checked + span { border: 2px solid var(--cream); padding: 0 15px; background: var(--brass-16); }
.schoice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.sfield { display: flex; flex-direction: column; gap: 8px; margin: 0 0 var(--s2); max-width: none; }
.sfield .label, .sheetpaper .sfield .label { color: var(--brass); margin: 0; display: block; }
.sfield input, .sfield textarea { font: var(--t-body)/1.4 var(--sans); color: var(--cream); background: rgba(241,231,208,.06); border: 1px solid var(--brass-32); border-radius: 8px; padding: 10px 12px; min-height: 48px; width: 100%; letter-spacing: 0; text-transform: none; }
.sfield textarea { min-height: 128px; resize: vertical; }
.sfield input:focus-visible, .sfield textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.scount { margin: -8px 0 var(--s2); font-size: var(--t-small); color: var(--tan2); text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.support-form .actions { margin-top: 0; }
.support-form .msg.err, .sheetpaper .msg.err { color: #EFC2B3; }
.support-form .status { color: var(--tan2); }
/* desk §2: the private prompt has a date; after the 7 days the line says it was deleted */
.expires { font-size: var(--t-small); color: var(--tan2); border-left: 2px solid var(--brass); padding-left: 12px; margin: 0 0 var(--s2); line-height: 1.5; max-width: 46ch; }
.expires.purged { color: var(--cream); }
.mylist .expires { flex: 1 1 100%; margin: 0; }
.deskblock .support-form { margin-top: var(--s2); }
@media (max-width: 520px) { .cta-item { width: 100%; } .price-notes { grid-template-columns: 1fr; } .faq-item summary { font-size: 17px; } .skind label, .skind span { width: 100%; justify-content: center; } }

/* v2.3 hero in 5 seconds (Mirko via Satoshi 19:43/19:44… */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kk, .kk-g { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kk-g { gap: 10px; }
.kk svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.kk-arr { font-style: normal; font-size: 14px; letter-spacing: 0; color: var(--brass); }
.hero .sub { max-width: 40ch; }
.btn-start { white-space: nowrap; }
.desk { height: auto; display: flex; flex-direction: column; gap: 18px; }
.idea-line { position: static; align-self: flex-start; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.demo-col { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.demo-h { font: 600 clamp(18px, 1.5vw, 21px)/1.25 var(--sans); letter-spacing: -.015em; color: var(--cream); text-align: center; }
.demo-arrow { align-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--brass); border: 1px solid var(--brass-48); background: rgba(20,17,13,.86); box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.demo-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.desk .tab { position: static; transform: none; align-self: center; margin-top: 4px; }
.desk .tab:active { transform: translateY(1px); }
/* steps: a short title per card, the word "prompt" in each */
.card .card-h { font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.card .card-h + p { font-size: 17px; line-height: 1.45; font-weight: 400; max-width: 30ch; margin-top: -6px; }
@media (min-width: 901px) { .card { min-height: 300px; } } /* one whole-pixel height for the row (the titles made it taller than the old 230 px): the sections below keep whole-pixel offsets */
@media (max-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; width: 100%; }
  .demo-col { width: 100%; }
  .demo-arrow svg { transform: rotate(90deg); }
}
/* v2.2.1 hero: the two REAL first screens (Mirko 8436 via… */
.shot { position: relative; margin: 0; width: 100%; max-width: 340px; }
.shot .plate { top: -13px; left: 12px; }
.shot .flip { transition: transform 480ms var(--ease); }
.demo-a .flip { transform: perspective(1200px) rotateY(6deg) rotateZ(-1deg); }
.demo-b .flip { transform: perspective(1200px) rotateY(-6deg) rotateZ(1deg); }
.shot.turned .flip { transform: none; }
.shot .face.back, .shot.turned .face.front { display: none; }
.shot.turned .face.back { display: flex; flex-direction: column; animation: turnin 460ms var(--ease) both; }
.shot[data-t] .face.front { animation: turnin 460ms var(--ease) both; }
@keyframes turnin { from { opacity: 0; transform: perspective(1000px) rotateY(-60deg); } to { opacity: 1; transform: none; } }
.frame { position: relative; padding: 7px; border-radius: 12px; background: linear-gradient(135deg, #2A2520, #110E0B 60%); box-shadow: -26px 34px 52px -20px rgba(0,0,0,.82), -6px 8px 16px -8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(184,147,90,.5), inset 0 0 0 3px #0B0907; }
.frame::after { content: ""; position: absolute; inset: 7px; border-radius: 6px; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 30%, transparent 50%); }
.frame picture { display: block; }
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 640; /* the phone picture at every width: taller and legible side by side (engineer 14/11 22:05) */ object-fit: cover; object-position: top center; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 13px; }
.shot .face.paper { padding-top: 28px; }
.shot .back.dense { height: clamp(320px, 42vh, 400px); }
.shot .face.back .mono { overflow-wrap: anywhere; }
.demo-cap { margin: -6px 0 0; align-self: center; text-align: center; color: var(--tan2); font-size: 15px; line-height: 1.45; max-width: 48ch; }
.demo-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--cream); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.demo-more:hover { color: #fff; }
@media (max-width: 900px) { .shot { max-width: min(460px, 92%); } }
@media (max-width: 640px) {
  .shot { max-width: min(280px, 86%); }
  .frame img { aspect-ratio: 390 / 640; } /* the phone picture (390×844): its top, the first screen a person sees */
  .demo-a .flip { transform: perspective(1200px) rotateY(4deg) rotateZ(-.8deg); }
  .demo-b .flip { transform: perspective(1200px) rotateY(-4deg) rotateZ(.8deg); }
  .shot .back.dense { height: 420px; }
}

/* v2.2.2 chiusura del libro a 1440 tornata a ~400 ms (mis… */
#example, #faq, #support { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

.otag.off .otag-in { opacity: .5; cursor: not-allowed; }
.otag.off:hover .otag-in { transform: none; border-color: var(--brass-32); }
.freenote { grid-column: 1 / -1; margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--tan2); }
.book-report { flex: none; margin-top: 6px; border-top: 1px solid rgba(29,24,18,.14); }
.reportlink { font: 500 14px/1 var(--sans); color: var(--tan-ink); background: none; border: 0; min-height: 44px; min-width: 44px; padding: 0 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.reportlink:hover { color: var(--ink); }
.reportlink:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
.report-form { padding: 2px 0 6px; }
.rfield { display: flex; flex-direction: column; gap: 6px; }
.report-form textarea { min-height: 64px; font-size: 15px; background: #F8F0DD; color: var(--ink); border: 1px solid rgba(29,24,18,.3); }
.report-form .actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report-form .btn-ghost { color: var(--ink); border-color: rgba(29,24,18,.4); background: transparent; backdrop-filter: none; min-height: 44px; width: auto; }
.report-form .btn-ghost:hover { background: rgba(184,147,90,.14); border-color: var(--brass-ink); }
.report-form .status { color: var(--tan-ink); }
.sheetpaper .msg:not(.err) { color: var(--tan2); } /* the invite/free line on the dark sheet (was ink-on-paper tan, 2.4:1) */
/* v2.1.2 A4, A2 */
#wait, #paid, .qcard { scroll-margin-top: var(--s2); }
.deskblock { padding-left: 0; padding-right: 0; padding-bottom: 0; }
@media (min-width: 1024px) { .deskblock { margin-top: var(--s3); } }
.consent { font-size: var(--t-small); color: var(--tan-ink); margin: 8px 0 0; line-height: 1.45; }
.consent a { color: var(--ink); }
/* v2.4 library cards: the home teaser, /library, the categories and the related books (the rest of the library pages: library.css) */
.lib-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.lib-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--wood); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--brass-16), 0 12px 24px -16px rgba(0,0,0,.8); transition: box-shadow .2s var(--ease); }
.lib-card:hover { box-shadow: inset 0 0 0 1px var(--brass-48), 0 12px 24px -16px rgba(0,0,0,.8); }
.lib-card:focus-within { outline: 2px solid var(--brass); outline-offset: 3px; }
.lib-card-meta { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #CDAE75; line-height: 1.3; }
.lib-card-h { font-size: 1.2rem; line-height: 1.25; }
.lib-card-h a { display: flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; }
.lib-card-h a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card opens the book */
.lib-card-h a:focus-visible { outline: none; }
.lib-card-sub { font-size: 15px; line-height: 1.45; color: var(--tan2); }
.lib-card-badge { margin-top: auto; font-size: 13px; line-height: 1.4; color: var(--tan2); }
.lib-card-badge.wk { color: #CDAE75; font-weight: 600; }
.lib-more { margin-top: 28px; }
