/* Lumi Diary — home page. Warm paper, rounded cards, hand-drawn accents. No build step. */
:root {
  --paper: #fbf4ea;
  --paper-2: #f5ecdf;
  --card: #fffdf9;
  --ink: #2f2a3f;
  --ink-2: #686178;
  --line: rgba(60, 45, 30, .12);
  --lav: #c9bdf5;
  --lav-d: #6f5bc4;
  --peach: #ffd8c7;
  --peach-d: #e3825f;
  --mint: #cdeee0;
  --mint-d: #3f9e7c;
  --sun: #ffe4a8;
  --dark: #2a2438;
  --shadow: 0 1px 0 rgba(60, 45, 30, .05), 0 14px 34px -12px rgba(60, 45, 30, .22);
  --r: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(rgba(60, 45, 30, .05) 1px, transparent 1.2px); background-size: 22px 22px;
}
h1, h2, h3, h4, .hand { font-family: 'Patrick Hand', 'Caveat', 'Comic Sans MS', cursive; font-weight: 400; line-height: 1.12; margin: 0; }
a { color: var(--lav-d); }
img, canvas, svg { display: block; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--lav-d); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font: 800 1rem/1 'Nunito', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 6px 16px -6px rgba(42, 36, 56, .6); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost:hover { box-shadow: 5px 5px 0 var(--ink); }
.fine { color: var(--ink-2); font-size: .9rem; margin: 14px 0 0; }
.pill { display: inline-block; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 800; color: var(--lav-d); }

/* stores */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; text-decoration: none; border-radius: 14px; padding: 9px 18px 9px 14px; min-width: 168px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; color: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .68rem; opacity: .85; }
.store b { font-size: 1.12rem; white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 244, 234, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Patrick Hand', cursive; font-size: 1.55rem; }
.brand svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links .nav-dl-m { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 800 .85rem 'Nunito', sans-serif; border-radius: 999px; width: 44px; height: 38px; cursor: pointer; }
.menu-btn { display: none; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* hero */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 18px 0 18px; letter-spacing: -.01em; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--lav-d); }
.hero h1 .hl::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .32em; background: var(--sun); border-radius: 6px; z-index: -1; transform: rotate(-1.2deg); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 118px; gap: 16px; transform: rotate(-2deg); }
.tile { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.tile canvas { width: 100% !important; height: 100% !important; object-fit: cover; }
.t1 { grid-row: span 3; transform: rotate(1.5deg); }
.t2 { grid-row: span 2; }
.t3 { grid-row: span 2; transform: rotate(-1.5deg); }
.t4 { grid-row: span 1; }
.t5 { grid-row: span 2; transform: rotate(2deg); }
.t6 { grid-row: span 2; }
.voice-card { background: var(--lav); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.vc-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; }
.vc-top i { width: 12px; height: 12px; border-radius: 50%; background: var(--peach-d); box-shadow: 0 0 0 4px rgba(227, 130, 95, .25); }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.wave b { flex: 1; background: var(--dark); border-radius: 3px; height: 30%; animation: wv 1.4s ease-in-out infinite; }
.wave b:nth-child(3n) { animation-delay: -.4s; } .wave b:nth-child(3n+1) { animation-delay: -.9s; } .wave b:nth-child(4n) { animation-duration: 1.1s; }
@keyframes wv { 0%, 100% { height: 22%; } 50% { height: 95%; } }
.voice-card p { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.mood-card { background: var(--mint); padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mood-card .hand { font-size: 1.15rem; }
.moods { display: flex; gap: 8px; }
.moods i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(0, 0, 0, .08); }
.moods i.on { outline: 3px solid var(--dark); outline-offset: 2px; }
.doodle { position: absolute; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .7; pointer-events: none; }
.doodle use, svg.doodle[viewBox="0 0 40 40"] { fill: var(--sun); stroke: var(--ink); stroke-width: 1.6; }
.d1 { width: 120px; left: 3%; bottom: 26px; stroke: var(--peach-d); }
.d2 { width: 34px; left: 46%; top: 30px; }
.d3 { width: 54px; right: 2%; bottom: 20px; stroke: var(--peach-d); fill: var(--peach); }
.d4 { width: 24px; left: 6%; top: 40px; }
.d5 { width: 40px; right: 12%; top: -14px; }

/* sections */
section { position: relative; }
.try, .features, .library { padding: 84px 0; }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head .num { display: inline-block; font: 800 .9rem 'Nunito', sans-serif; color: var(--peach-d); border: 2px solid currentColor; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 10px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 1.08rem; }

/* try demo */
.try { background: var(--paper-2); }
.demo { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; border: 1.5px solid var(--line); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 700 .9rem 'Nunito', sans-serif; cursor: pointer; }
.chip[aria-checked="true"], .chip[aria-selected="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.dots { display: flex; gap: 8px; margin-left: auto; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); background: var(--c); cursor: pointer; padding: 0; }
.dot[aria-checked="true"] { outline: 3px solid var(--dark); outline-offset: 2px; }
.demo-stage { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); height: clamp(300px, 46vw, 460px); touch-action: none; background: #fff; }
.demo-stage canvas { width: 100%; height: 100%; cursor: crosshair; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.demo-foot .fine { margin: 0; }

/* feature tabs */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tab-list { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tab-list button { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: transparent; padding: 14px 16px; border-radius: 16px; font: 800 1.05rem 'Nunito', sans-serif; color: var(--ink-2); cursor: pointer; overflow: hidden; }
.tab-list button:hover { background: var(--paper-2); }
.tab-list button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tab-list .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; border: 2px solid currentColor; }
.tab-list button[aria-selected="true"] .n { background: var(--dark); border-color: var(--dark); color: #fff; }
.tab-list .bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--peach-d); transform-origin: left; transform: scaleX(0); }
.tab-list button[aria-selected="true"] .bar.run { animation: fill var(--dur, 6s) linear forwards; }
.tabs.paused .bar.run { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.tab-panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1.5px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; min-height: 420px; overflow: hidden; }
.tp-visual { background: var(--paper-2); display: grid; place-items: center; padding: 28px; position: relative; min-height: 320px; }
.tp-copy { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.tp-copy h3 { font-size: 2.2rem; }
.tp-copy p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.tp-copy .link { font-weight: 800; text-decoration: none; }
.fade-in { animation: fin .35s ease both; }
@keyframes fin { from { opacity: 0; transform: translateY(8px); } }
/* panel visuals */
.v-page { border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-2deg); background: #fff; }
.v-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.v-row .v-page:nth-child(2n) { transform: rotate(2deg) translateY(10px); }
.v-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; width: min(320px, 100%); }
.v-search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; margin-bottom: 12px; background: #fff; }
.v-search svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2.4; }
.v-res { padding: 10px 6px; border-top: 1px dashed var(--line); font-size: .95rem; }
.v-res b { display: block; font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 1.2rem; }
.v-res mark { background: var(--sun); border-radius: 4px; padding: 0 2px; }
.v-res small { color: var(--ink-2); }
.v-lock { text-align: center; }
.v-lock .pins { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.v-lock .pins i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.v-lock .pins i.f { background: var(--ink); }
.v-lock .keys { display: grid; grid-template-columns: repeat(3, 52px); gap: 10px; justify-content: center; }
.v-lock .keys span { height: 52px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 800; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.v-chips span { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .88rem; }
.v-browser { width: min(380px, 100%); background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.v-browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: var(--paper-2); font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.v-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.v-browser .bar span { margin-left: 10px; background: #fff; border-radius: 999px; padding: 2px 12px; }
.v-browser .body { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.v-browser .side { flex: 0 0 34%; display: flex; flex-direction: column; gap: 8px; }
.v-browser .side i { height: 10px; border-radius: 5px; background: var(--paper-2); }
.v-browser .side i:first-child { background: var(--lav); height: 26px; border-radius: 8px; }

/* library */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.stats div { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.stats b { display: block; font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--lav-d); }
.stats span { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.lib-item { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.lib-item[hidden] { display: none; }
.lib-item .th { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 3 / 4; transition: transform .2s; }
.lib-item .th canvas { width: 100% !important; height: 100% !important; }
.lib-item:hover .th { transform: translateY(-4px) rotate(-1deg); }
.lib-item span { font-weight: 700; font-size: .92rem; text-align: center; }

/* sample pages wall */
.samples { padding: 84px 0 40px; background: var(--paper-2); }
.sm-note { display: inline-block; background: var(--card); border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px 16px; margin: -14px 0 28px; color: var(--ink-2); font-size: .95rem; }
.sm-wall { columns: 4 220px; column-gap: 20px; }
.sm-card { display: block; width: 100%; break-inside: avoid; margin: 0 0 20px; padding: 0; border: 0; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; cursor: zoom-in; text-align: left; color: var(--ink); font: inherit; transition: transform .2s; }
.sm-card:nth-child(3n+1) { transform: rotate(-.8deg); }
.sm-card:nth-child(3n+2) { transform: rotate(.6deg); }
.sm-card:hover { transform: translateY(-4px) rotate(0); }
.sm-card img { width: 100%; height: auto; background: #fff; }
.sm-card .cap { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; }
.sm-card .cap b { font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.sm-card .cap small { color: var(--ink-2); font-weight: 700; font-size: .82rem; }
.sm-more { text-align: center; margin: 16px 0 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 100vw - 24px); width: 100%; max-height: calc(100vh - 24px); color: var(--ink); }
.lightbox::backdrop { background: rgba(30, 24, 44, .72); }
.lb-in { position: relative; display: grid; grid-template-columns: auto 1fr auto 300px; align-items: center; gap: 12px; background: var(--card); border-radius: 22px; padding: 18px; }
.lb-fig { margin: 0; grid-column: 2; display: grid; place-items: center; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-nav, .lb-x { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 800 1.5rem/1 'Nunito', sans-serif; cursor: pointer; display: grid; place-items: center; }
.lb-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lb-side { grid-column: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 6px; }
.lb-side h3 { font-size: 2rem; }
.lb-paper { margin: 0; color: var(--ink-2); font-weight: 700; }
.lb-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* marquee */
.pages-strip { padding: 24px 0 70px; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 22px; width: max-content; padding: 16px 0; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track .sp { flex: none; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.track .sp:nth-child(odd) { transform: rotate(-1.5deg); }
.track .sp:nth-child(even) { transform: rotate(1.5deg) translateY(8px); }
@keyframes slide { to { transform: translateX(-50%); } }

/* cta */
.cta { padding: 30px 0 100px; }
.cta-in { position: relative; text-align: center; background: var(--lav); border-radius: 36px; padding: 64px 24px; }
.cta-in h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 12px; }
.cta-in .lead { margin: 0 auto 26px; color: var(--ink); opacity: .8; }

/* footer */
.foot { background: var(--dark); color: #d9d3ea; padding: 60px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; }
.foot p { margin: 12px 0; max-width: 30em; font-size: .95rem; }
.foot h4 { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #a79fc2; margin-bottom: 12px; }
.foot a { display: block; color: #f3effc; text-decoration: none; padding: 4px 0; font-size: .95rem; }
.foot a:hover { text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .88rem; color: #a79fc2; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* what's new */
.whatsnew { padding: 84px 0; background: var(--paper-2); }
.nw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.nw-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); min-width: 0; }
.nw-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.nw-card li { display: grid; gap: 3px; }
.nw-card li b { font-size: 1.08rem; }
.nw-card li span { color: var(--ink-2); }
.nw-next { background: transparent; border-style: dashed; box-shadow: none; }
.nw-next .pill { color: var(--peach-d); }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mosaic { max-width: 560px; grid-auto-rows: 96px; margin: 10px auto 0; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list button { flex: none; padding: 10px 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; background: var(--paper); padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-btn { display: flex; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 820px) {
  .nav-links .nav-dl-m { display: inline-flex; justify-content: center; margin-top: 8px; }
  .nav-dl { display: none; }
  .tab-panel { grid-template-columns: 1fr; min-height: 0; }
  .tp-visual { min-height: 260px; padding: 22px; }
  .tp-copy { padding: 24px 22px 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .try, .features, .library, .whatsnew { padding: 60px 0; }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-card { padding: 22px 20px; }
  .samples { padding: 60px 0 30px; }
  .lb-in { grid-template-columns: auto 1fr auto; padding: 14px 8px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .lb-side { grid-column: 1 / -1; padding: 4px 10px; }
  .lb-fig img { max-height: 62vh; }
  .lb-nav { width: 34px; height: 34px; font-size: 1.2rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 32px 0 70px; }
  .mosaic { grid-auto-rows: 74px; gap: 10px; }
  .voice-card { padding: 10px; gap: 6px; } .voice-card p { font-size: .9rem; } .wave { height: 28px; }
  .mood-card { padding: 8px 10px; } .mood-card .hand { font-size: .9rem; } .moods { gap: 5px; } .moods i { width: 16px; height: 16px; }
  .store { min-width: 0; flex: 1; padding: 9px 12px; gap: 8px; }
  .store b { font-size: 1rem; }
  .d2, .d4 { display: none; }
  .cta-row .btn-ghost { width: 100%; justify-content: center; }
  .dots { margin-left: 0; }
  .demo-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .lib-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .lib-item span { font-size: .8rem; }
  .sm-wall { columns: 2; column-gap: 12px; }
  .sm-card { margin-bottom: 12px; }
  .sm-card .cap { padding: 8px 10px 10px; }
  .sm-card .cap b { font-size: 1.05rem; }
  .lb-act .btn { flex: 1; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-in { padding: 48px 18px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave b, .track { animation: none; }
  .marquee { overflow-x: auto; }
  .tab-list .bar { display: none; }
  .btn, .store, .lib-item .th, .sm-card { transition: none; }
}
