/* Blotkins – paper, ink, one serif. Same palette as the app. */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Italic-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #F3EEE4; --paper-deep: #E8E2D5; --desk: #D6CCBD; --ink: #1C1F33; --graphite: #6B6866;
  --prussian: #1F4F94; --vermilion: #E34A33; --saffron: #F5B333; --viridian: #298C70; --orchid: #9C4F96; --teal: #1A99A8; --pumpkin: #ED731F;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, "SF Pro Rounded", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #15161C; --paper-deep: #1C1D25; --desk: #0F1014; --ink: #F3EEE4; --graphite: #A7A39B; } }
:root[data-theme="dark"] { --paper: #15161C; --paper-deep: #1C1D25; --desk: #0F1014; --ink: #F3EEE4; --graphite: #A7A39B; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,0.04), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.28  0 0 0 0 0.24  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(34px, 5.2vw, 64px); font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144; }
h3 { font-size: 24px; font-style: italic; }
.kicker { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite); margin: 0 0 14px; }
.sr { position: absolute; left: -9999px; }
em { font-style: italic; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wordmark-small { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 24px; text-decoration: none; font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 72; }
.top nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--graphite); }
.top nav a.pill { color: var(--paper); background: var(--ink); padding: 9px 16px; border-radius: 999px; }
@media (max-width: 720px) { .top nav a:not(.pill) { display: none; } }

main { display: block; }
section { padding: clamp(64px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }

/* Hero */
.hero { text-align: center; padding-top: clamp(40px, 8vw, 110px); position: relative; }
.hero-ink { position: relative; margin: 0 auto; max-width: 900px; }
#inkword { width: 100%; height: auto; display: block; }
#inkword path { fill: var(--ink); stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; fill-opacity: 0; }
.wordmark-fallback { font-size: clamp(64px, 16vw, 180px); font-style: italic; font-weight: 900; font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144; display: none; }
.hero-ink.fallback #inkword { display: none; }
.hero-ink.fallback .wordmark-fallback { display: block; }
.tagline { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 36px); font-weight: 600; margin: 8px 0 14px; }
.tagline em { color: var(--vermilion); }
.sub { max-width: 640px; margin: 0 auto 28px; color: var(--graphite); font-size: 17px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800; padding: 15px 28px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; font-family: var(--sans);
  box-shadow: 0 10px 28px rgba(28,31,51,0.18); transition: transform .25s cubic-bezier(.2,.8,.2,1.4); }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.97); }
.soon { font-size: 13px; color: var(--graphite); }
.hero-creature { margin: 36px auto 0; width: min(420px, 70vw); }
.hero-creature img { width: 100%; filter: drop-shadow(0 18px 30px rgba(28,31,51,0.18)); }
.hero-creature figcaption { font-family: var(--serif); font-style: italic; color: var(--graphite); margin-top: 6px; }
@keyframes breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.03, 0.985) translateY(3px); } }
.breathe { animation: breathe 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.scroll-cue { display: block; width: 26px; height: 42px; border: 2px solid var(--graphite); border-radius: 14px; margin: 40px auto 0; position: relative; opacity: .5; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--graphite); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .breathe { animation: none; } html { scroll-behavior: auto; } }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; font-size: 17px; color: var(--graphite); }
.steps strong { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 22px; display: block; margin-bottom: 2px; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.fold-scene { position: sticky; top: 90px; }
.desk { background: var(--desk); border-radius: 28px; padding: clamp(18px, 4vw, 40px); perspective: 1400px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.page { position: relative; width: 100%; aspect-ratio: 1 / 1.2; max-width: 460px; margin: 0 auto; transform-style: preserve-3d; transform: scale(calc(1 - 0.015 * var(--press, 0))); }
.half { position: absolute; top: 0; bottom: 0; width: 50%; }
.half.left { left: 0; right: calc(50% - 1px); width: auto; border-radius: 6px 0 0 6px; background: var(--paper); overflow: hidden; }
.page-shadow { position: absolute; inset: 0; right: calc(50% * var(--closed, 0)); border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); pointer-events: none; }
/* The closing half throws a shadow across the left page. */
.half.left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.3)); opacity: var(--shade, 0); pointer-events: none; }
.half.right { left: 50%; transform-origin: 0 50%; transform: rotateY(calc(var(--fold, 0) * -1deg)); transform-style: preserve-3d; will-change: transform; }
.half.right .face { position: absolute; inset: 0; overflow: hidden; border-radius: 0 6px 6px 0; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.half.right .face.front { transform: translateZ(0.5px); }
.half.right .face.front::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.22); opacity: var(--tilt, 0); pointer-events: none; }
.half.right .face.back { background: var(--paper-deep); transform: rotateY(180deg); }
/* The real print from the app: one image spanning both halves, each half shows its own side. */
.half img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: contain; pointer-events: none; }
.half.left img { left: 0; transform-origin: 32% 55%; transform: scale(calc(var(--grow, 0) * (1 + 0.06 * var(--press, 0)))); }
.half.right img { left: -100%; transform-origin: 68% 55%; transform: scale(calc(1 + 0.06 * var(--press, 0))); opacity: var(--mirror, 0); }
.half img.alive { opacity: var(--eyes, 0); }
.half.right img.alive { opacity: calc(var(--mirror, 0) * var(--eyes, 0)); }
.half.left img.print { opacity: calc(1 - var(--eyes, 0)); }
.half.right img.print { opacity: calc(var(--mirror, 0) * (1 - var(--eyes, 0))); }
/* While pressed, the ink soaks through the folded half. */
.half.right .face.back img { left: -100%; opacity: calc(0.22 * var(--bleed, 0)); transform: none; filter: blur(1.5px); }
.crease { position: absolute; left: 50%; top: 0; bottom: 0; width: 24px; margin-left: -12px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent); pointer-events: none; opacity: var(--mirror, 0); }
.scene-label { text-align: center; margin: 14px 0 0; height: 24px; font-family: var(--serif); font-style: italic; color: var(--graphite); position: relative; }
.scene-label span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .3s; }
.scene-label span.on { opacity: 1; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .fold-scene { position: relative; top: auto; order: -1; } }

/* Creatures */
.creatures { text-align: center; }
.lead { max-width: 680px; margin: 14px auto 40px; color: var(--graphite); font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; text-align: left; }
.cc { background: color-mix(in srgb, var(--paper) 70%, #fff 30%); border-radius: 26px; padding: 18px 18px 20px; box-shadow: 0 12px 30px rgba(28,31,51,0.08); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc { background: var(--paper-deep); } }
.cc:hover { box-shadow: 0 22px 44px rgba(28,31,51,0.14); }
.cc img { width: 100%; aspect-ratio: 1; object-fit: contain; animation: breathe 3.8s ease-in-out infinite; }
.cc .r { font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--graphite); border-radius: 999px; padding: 4px 9px; display: inline-block; }
.cc .r.rare { background: var(--prussian); } .cc .r.epic { background: var(--orchid); } .cc .r.legendary { background: #D4A84B; }
.cc h3 { margin: 8px 0 2px; font-size: 26px; }
.cc .sp { font-family: var(--serif); font-style: italic; color: var(--graphite); font-size: 15px; }
.cc .lo { font-size: 13px; color: var(--graphite); margin: 8px 0 0; }

/* Duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.duo-copy p { color: var(--graphite); font-size: 17px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { background: var(--paper-deep); border-radius: 18px; padding: 14px 16px; font-size: 14px; color: var(--graphite); }
.facts b { display: block; font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.duo-art { perspective: 1600px; }
.phone { position: relative; width: min(100%, 520px); aspect-ratio: 1.42 / 1; margin: 0 auto; transform-style: preserve-3d; }
/* One inner display across both halves: bezel only on the outside, a soft crease on the hinge. */
.phone-half { position: absolute; top: 0; bottom: 0; width: 50%; background: #0B0B10; transform-style: preserve-3d; }
.phone-shadow { position: absolute; inset: 0; right: calc(50% * var(--pclosed, 1)); border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.25); pointer-events: none; }
.phone-half.pl { left: 0; border-radius: 22px 0 0 22px; }
.phone-half.pr { left: 50%; border-radius: 0 22px 22px 0; transform-origin: 0 50%; transform: rotateY(calc(var(--pfold, 180) * -1deg)); will-change: transform; }
.screen { position: absolute; inset: 10px -1px 10px 10px; background: var(--paper); border-radius: 14px 0 0 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0.3px); }
.pr .screen { inset: 10px 10px 10px 0; border-radius: 0 14px 14px 0; transform: translateZ(0.6px); }
.pl .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.35)); opacity: var(--pshade, 0); pointer-events: none; }
.screen img { position: absolute; top: -18%; height: 136%; width: 200%; max-width: none; object-fit: contain; }
.pl .screen img { left: 0; }
.pr .screen img { left: -100%; }
.screen img.alive { opacity: var(--alive, 0); }
.screen img.print { opacity: calc(1 - var(--alive, 0)); }
.phone-crease { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 16px; margin-left: -8px; transform: translateZ(0.9px); background: linear-gradient(90deg, transparent, rgba(0,0,0,0.07), transparent); pointer-events: none; z-index: 2; opacity: var(--pcrease, 0); }
.outer { position: absolute; inset: 10px 10px 10px 0; background: #050507; border-radius: 0 14px 14px 0; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-style: italic; }
.outer .bloom { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--prussian) 0%, rgba(31,79,148,0.5) 40%, transparent 70%); filter: blur(10px); animation: bloom 1.4s ease-in-out infinite; }
@keyframes bloom { 0%, 100% { transform: scale(0.9); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
.outer em { position: relative; font-size: 15px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* Features */
.features { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; text-align: left; }
.card { background: var(--paper-deep); border-radius: 24px; padding: 24px; }
.card p { color: var(--graphite); margin: 8px 0 0; font-size: 15px; }

/* Notify */
.notify { padding-bottom: clamp(64px, 8vw, 110px); }
.notify-card { background: var(--ink); color: var(--paper); border-radius: 32px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.notify-card h2 { color: var(--paper); }
.notify-card p { color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 520px; margin: 12px auto 24px; }
#notifyForm { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#notifyForm input { font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--paper) 25%, transparent); background: color-mix(in srgb, var(--paper) 10%, transparent); color: var(--paper); min-width: min(320px, 100%); }
#notifyForm input::placeholder { color: color-mix(in srgb, var(--paper) 45%, transparent); }
#notifyForm .btn { background: var(--paper); color: var(--ink); box-shadow: none; }
.form-note { width: 100%; margin: 10px 0 0; font-size: 14px; min-height: 20px; }
.form-note.ok { color: var(--saffron); }
.form-note.err { color: #FF9A8A; }
#turnstile { width: 100%; display: flex; justify-content: center; }

/* Footer */
footer { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--graphite); font-size: 14px; border-top: 1px solid rgba(0,0,0,0.08); }
footer nav { display: flex; gap: 18px; }
footer nav a { color: var(--graphite); }
footer p { margin: 6px 0 0; max-width: 520px; }

/* Try it */
[hidden] { display: none !important; }
.tryit { text-align: center; }
.demo { margin-top: 28px; }
.demo-device { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-deep); margin-bottom: 22px; }
.demo-device button { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; color: var(--graphite); padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.demo-device button.on { background: var(--ink); color: var(--paper); }
.demo-stage { position: relative; perspective: 1500px; margin: 0 auto; width: min(100%, 560px); }
.demo-frame { position: relative; margin: 0 auto; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.65,0,.25,1); }
/* One screen across both halves: the bezel sits only on the outside, the hinge is a soft crease. */
.demo-panel { position: absolute; top: 0; bottom: 0; background: #0B0B10; transform-style: preserve-3d; }
.demo-shadow { position: absolute; inset: 0; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,0.25); transition: right 1.1s cubic-bezier(.65,0,.25,1); pointer-events: none; }
.demo[data-device="duo"][data-phase="shut"] .demo-shadow, .demo[data-device="ipad"][data-phase="shut"] .demo-shadow { right: 50%; }
.demo-panel.left { left: 0; width: 50%; border-radius: 22px 0 0 22px; }
.demo-panel.right { left: 50%; width: 50%; border-radius: 0 22px 22px 0; transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.65,0,.25,1); will-change: transform; }
.demo-page, .demo-screen { position: absolute; background: var(--paper); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.demo-page { inset: 10px -1px 10px 10px; border-radius: 14px 0 0 14px; transform: translateZ(0.3px); }
.demo-screen { inset: 10px 10px 10px 0; border-radius: 0 14px 14px 0; transform: translateZ(0.6px); }
.demo-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.32)); opacity: 0; transition: opacity 1.1s; pointer-events: none; }
.demo[data-device="duo"][data-phase="shut"] .demo-page::after, .demo[data-device="ipad"][data-phase="shut"] .demo-page::after { opacity: 1; }
.demo-back { position: absolute; inset: 10px 10px 10px 0; border-radius: 0 14px 14px 0; background: #050507; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: 14px; }
.demo-bloom { position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(31,79,148,0.95), rgba(31,79,148,0.4) 45%, transparent 70%); filter: blur(8px); animation: bloom 1.3s ease-in-out infinite; }
.demo-back em { position: relative; }
.demo-page svg, .demo-screen svg { position: absolute; top: 0; height: 100%; width: 200%; touch-action: none; }
.demo-page svg { left: 0; }
.demo-screen svg { left: -100%; transform: scaleX(-1); }
.demo-ink { cursor: crosshair; }
.demo-mirror { pointer-events: none; opacity: 0; transition: opacity .5s; }
.demo-face { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 3; transform: translateZ(1px); }
.demo[data-device="ipad"] .demo-face { left: 14px; top: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.demo[data-device="iphone"] .demo-face { left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.demo-face.on { opacity: 1; }
/* No line on the screen while painting: one continuous display, like the device. A faint paper crease only once the print is open. */
.demo-crease { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 18px; margin-left: -9px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.07), transparent); pointer-events: none; z-index: 2; opacity: 0; transition: opacity .8s; transform: translateZ(0.9px); }
.demo[data-phase="open"] .demo-crease, .demo[data-phase="alive"] .demo-crease { opacity: 1; }
.demo-table { display: none; }
.demo[data-phase="open"] .demo-mirror, .demo[data-phase="alive"] .demo-mirror { opacity: 1; }

/* Duo: two panels, hinge in the middle. Shut = the right half folds over the left. */
.demo[data-device="duo"] .demo-frame { aspect-ratio: 1.42 / 1; }
.demo[data-device="duo"][data-phase="shut"] .demo-panel.right { transform: rotateY(-180deg); }

/* iPhone: one tall screen, both halves on it. Shut = the phone lies face down on the table. */
.demo[data-device="iphone"] .demo-frame { aspect-ratio: 1 / 1.45; width: min(100%, 300px); }
.demo[data-device="iphone"] .demo-panel.left, .demo[data-device="iphone"] .demo-panel.right { width: 50%; }
.demo[data-device="iphone"] .demo-shadow { border-radius: 30px; left: max(0px, calc(50% - 150px)); right: max(0px, calc(50% - 150px)); }
.demo[data-device="iphone"] .demo-panel.left { border-radius: 30px 0 0 30px; }
.demo[data-device="iphone"] .demo-panel.right { border-radius: 0 30px 30px 0; transition: none; }
.demo[data-device="iphone"] .demo-page { border-radius: 18px 0 0 18px; }
.demo[data-device="iphone"] .demo-screen { border-radius: 0 18px 18px 0; }
.demo[data-device="iphone"] .demo-back { display: none; }
.demo[data-device="iphone"] .demo-frame::after { content: ""; position: absolute; inset: 0; border-radius: 30px; background: #141420 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='26' cy='26' r='12' fill='%2322223a'/><circle cx='26' cy='26' r='5' fill='%231a1a2c'/></svg>") no-repeat 12px 12px; transform: rotateX(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.demo[data-device="iphone"] .demo-table { display: block; position: absolute; left: 10%; right: 10%; bottom: -16px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.22); filter: blur(10px); opacity: 0; transition: opacity .6s; }
.demo[data-device="iphone"][data-phase="shut"] .demo-frame { transform: rotateX(180deg); }
.demo[data-device="iphone"][data-phase="shut"] .demo-table { opacity: 1; }

/* iPad: one wide screen; the right half folds over like a page corner. */
.demo[data-device="ipad"] .demo-frame { aspect-ratio: 1.33 / 1; }
.demo[data-device="ipad"] .demo-panel.left { border-radius: 22px 0 0 22px; padding: 14px 0 14px 14px; }
.demo[data-device="ipad"] .demo-panel.right { border-radius: 0 22px 22px 0; padding: 14px 14px 14px 0; }
.demo[data-device="ipad"] .demo-page { inset: 14px -1px 14px 14px; border-radius: 10px 0 0 10px; }
.demo[data-device="ipad"] .demo-screen { inset: 14px 14px 14px 0; border-radius: 0 10px 10px 0; }
.demo[data-device="ipad"] .demo-back { inset: 14px 14px 14px 0; border-radius: 0 10px 10px 0; background: var(--paper-deep); color: var(--graphite); }
.demo[data-device="ipad"] .demo-bloom { display: none; }
.demo[data-device="ipad"][data-phase="shut"] .demo-panel.right { transform: rotateY(-180deg); }
.demo[data-device="ipad"] .demo-frame { border-radius: 22px; }

.demo-ui { margin-top: 22px; display: grid; gap: 12px; justify-items: center; width: 100%; }
.demo-pots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 400px) { .demo-pots { gap: 6px; } .demo-pot { width: 26px; height: 26px; } }
.demo-pot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.5), transparent 45%), var(--c); cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.demo-pot.on { border-color: var(--ink); transform: scale(1.15); }
.demo-hint { margin: 0; font-family: var(--serif); font-style: italic; color: var(--graphite); min-height: 24px; max-width: 100%; }
.demo-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.ghost { background: var(--paper-deep); color: var(--ink); box-shadow: none; }
.demo-card { display: none; text-align: center; }
.demo[data-phase="alive"] .demo-card { display: block; }
.demo-card .n { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 34px; }
.demo-card .s { font-family: var(--serif); font-style: italic; color: var(--graphite); }
.demo-card .l { color: var(--graphite); font-size: 14px; margin-top: 4px; }
@media (hover: none) { .demo-ink { cursor: default; } }
