/* Yomite landing pages (/ and /en/): flowing "ink + sound" ribbon, glass-washi cards, scroll reveals.
   Brand palette is unchanged (washi #FAF7F2, sumi #1A1815, shu #C8392E, ai #2A3F6B, gold #B8945A);
   only surfaces, depth and motion are new. Scoped to body.yh. Pairs with js/flow-ribbon.js + js/yomite-motion.js. */

/* ── ribbon canvas (palette: shu → gold → indigo, drawn onto washi) ── */
canvas[data-flow-canvas] {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; display: block;
  --flow-mode: source-over; --flow-alpha: 1;
  --flow-s0: rgba(200, 57, 46, 0.9); --flow-s1: rgba(196, 150, 70, 0.9); --flow-s2: rgba(42, 63, 107, 0.9);
  --flow-b0: rgba(200, 57, 46, 0.1); --flow-b1: rgba(196, 150, 70, 0.1); --flow-b2: rgba(42, 63, 107, 0.09);
  --flow-k0: rgba(200, 57, 46, 0.5); --flow-k1: rgba(184, 148, 90, 0.2); --flow-k2: rgba(184, 148, 90, 0);
}
.flow-pause {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1rem; font: 600 .8125rem/1 var(--yh-sans); color: #2D2A24;
  background: rgba(255,254,251,.85); border: 1px solid #E8E2D5; border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.flow-pause:hover { border-color: #C8392E; color: #A52E25; }
.flow-pause i { width: .5rem; height: .75rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.flow-pause[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-left: .6rem solid currentColor; border-top: .4rem solid transparent; border-bottom: .4rem solid transparent; }
.flow-pause .flow-pause__off { display: none; }
.flow-pause[aria-pressed="true"] .flow-pause__on { display: none; }
.flow-pause[aria-pressed="true"] .flow-pause__off { display: inline; }
html.flow-paused *, html.flow-paused *::before, html.flow-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .flow-pause { display: none; } }
@media (max-width: 640px) { .flow-pause { bottom: .75rem; } }

/* ── page surface: let the ribbon show through ── */
body.yh { background-color: #FAF7F2;
  background-image: radial-gradient(60rem 40rem at 8% -5%, rgba(200,57,46,.07), transparent 60%), radial-gradient(55rem 40rem at 95% 8%, rgba(42,63,107,.07), transparent 60%); }
body.yh > section { background: transparent !important; border-color: transparent !important; position: relative; }
body.yh > section.bg-paper { background: linear-gradient(180deg, rgba(255,254,251,.0), rgba(255,254,251,.55) 18%, rgba(255,254,251,.55) 82%, rgba(255,254,251,0)) !important; }
body.yh > section.bg-aiTint\/40 { background: linear-gradient(180deg, rgba(234,239,247,0), rgba(234,239,247,.7) 18%, rgba(234,239,247,.7) 82%, rgba(234,239,247,0)) !important; }

/* ── nav ── */
body.yh .glass-nav { background: rgba(250,247,242,.68); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(232,226,213,.7); }

/* ── glass cards ── */
body.yh .card-paper, body.yh .voice-card {
  background: linear-gradient(160deg, rgba(255,254,251,.82), rgba(255,254,251,.55));
  border: 1px solid rgba(255,255,255,.8); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px -12px rgba(26,24,21,.18), 0 2px 6px rgba(26,24,21,.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
body.yh .voice-card { border-top: 3px solid var(--voice-accent, #C8392E); }
body.yh .card-paper:hover, body.yh .voice-card:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 44px -16px rgba(26,24,21,.28), 0 4px 10px rgba(26,24,21,.06); }
body.yh .btn-shu { background: linear-gradient(135deg, #D6453A, #B3302A); box-shadow: 0 8px 22px -8px rgba(200,57,46,.6); }
body.yh .btn-shu:hover { background: linear-gradient(135deg, #C8392E, #A52E25); transform: translateY(-1px); }
body.yh .btn-ghost { background: rgba(255,254,251,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ── hero ── */
body.yh .yh-hero { overflow: hidden; }
body.yh .yh-hero .h-display { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.12;
  background: linear-gradient(100deg, #1A1815 0%, #1A1815 45%, #C8392E 92%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
body.yh .yh-hero .section-eyebrow { padding: .35rem .8rem; border-radius: 999px; background: rgba(254,233,229,.8); border: 1px solid rgba(200,57,46,.18); letter-spacing: .12em; }
body.yh .yh-stage { position: relative; transform: translate3d(0, calc(var(--yh-p, 0) * -34px), 0); will-change: transform; }
body.yh .yh-stage::before, body.yh .yh-stage::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 0; }
body.yh .yh-stage::before { width: 118%; aspect-ratio: 1; border: 1.5px solid rgba(200,57,46,.4); animation: yh-ring 6s ease-out infinite; }
body.yh .yh-stage::after { width: 118%; aspect-ratio: 1; border: 1.5px solid rgba(42,63,107,.4); animation: yh-ring 6s ease-out 3s infinite; }
@keyframes yh-ring { 0% { transform: translate(-50%,-50%) scale(.55); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.05); opacity: 0; } }
body.yh .yh-hero-devices { position: relative; z-index: 1; padding-bottom: 11%; animation: yh-float 7s ease-in-out infinite; }
@keyframes yh-float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }

/* ── trust strip as one floating glass bar ── */
body.yh .yh-trust > div { background: rgba(255,254,251,.7); border: 1px solid rgba(255,255,255,.85); border-radius: 26px; padding: 1.5rem 1rem;
  box-shadow: 0 18px 40px -22px rgba(26,24,21,.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.yh .yh-trust .font-serif.font-bold { font-size: 2.25rem; }

/* ── section headings: brush stroke under the eyebrow ── */
body.yh section .section-eyebrow { position: relative; }
body.yh section .text-center > .section-eyebrow::after { content: ""; display: block; width: 44px; height: 3px; margin: .55rem auto 0; border-radius: 3px; background: linear-gradient(90deg, #C8392E, #B8945A); }
body.yh section h2 { letter-spacing: .03em; }

/* ── ink panel (the dark indigo section) ── */
body.yh > section.bg-ai { background: radial-gradient(70rem 30rem at 15% 0%, rgba(200,57,46,.28), transparent 60%), linear-gradient(135deg, #1E2D52, #2A3F6B 55%, #1A2747) !important;
  margin: 1rem; border-radius: 36px; box-shadow: 0 40px 80px -40px rgba(26,39,71,.8); overflow: hidden; }

/* ── scroll reveal ── */
html.yh-js .yh-rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--yh-d, 0s); }
html.yh-js .yh-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.yh-js .yh-rv { opacity: 1; transform: none; transition: none; }
  body.yh .yh-hero-devices, body.yh .yh-stage::before, body.yh .yh-stage::after { animation: none; }
  body.yh .yh-stage { transform: none; }
}
@media (max-width: 640px) { body.yh > section.bg-ai { margin: .5rem; border-radius: 26px; } }

/* English headline is longer: keep the hero to three lines */
html[lang="en"] body.yh .yh-hero .h-display { font-size: clamp(2.3rem, 4.8vw, 4.1rem); }

/* ════════ STORY LAYER ════════ */
/* chapter watermark */
body.yh section[data-chap] { overflow: clip; }
body.yh section[data-chap]::before { content: attr(data-chap); position: absolute; right: max(1rem, 3vw); top: 1.2rem; z-index: 0; pointer-events: none;
  font: 700 clamp(5rem, 13vw, 11rem)/1 var(--yh-serif); color: rgba(200,57,46,.07); letter-spacing: 0; }
body.yh section[data-chap] > * { position: relative; z-index: 1; }
body.yh .yh-privacy[data-chap]::before { color: rgba(255,254,251,.07); }

/* hero entrance + reading-along card */
html.yh-js body.yh .yh-hero .section-eyebrow, html.yh-js body.yh .yh-hero h1, html.yh-js body.yh .yh-hero p, html.yh-js body.yh .yh-hero .flex { animation: yh-up .9s cubic-bezier(.2,.7,.2,1) both; }
html.yh-js body.yh .yh-hero h1 { animation-delay: .1s; } html.yh-js body.yh .yh-hero p { animation-delay: .22s; } html.yh-js body.yh .yh-hero .flex { animation-delay: .34s; }
@keyframes yh-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
body.yh .yh-read { position: absolute; z-index: 3; right: -5%; bottom: 0; width: min(290px, 66%); padding: .9rem 1rem 1rem; border-radius: 20px; color: #1A1815;
  background: rgba(255,254,251,.78); border: 1px solid rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 50px -20px rgba(26,24,21,.5); animation: yh-bob 6s ease-in-out infinite; }
@keyframes yh-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.yh-read__top { display: flex; align-items: center; gap: .5rem; font: 600 .7rem/1 var(--yh-sans); letter-spacing: .08em; color: #6B6359; margin-bottom: .6rem; }
.yh-read__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #C8392E; animation: yh-pulse 1.4s ease-in-out infinite; }
@keyframes yh-pulse { 50% { transform: scale(1.5); opacity: .5; } }
.yh-read__voice { margin-left: auto; padding: .2rem .55rem; border-radius: 999px; background: #FEE9E5; color: #A52E25; letter-spacing: 0; }
.yh-read__text { font: 700 1.2rem/1.5 var(--yh-serif); margin: 0 0 .7rem; }
.yh-read__text span { background: linear-gradient(#FEE9E5, #FEE9E5) no-repeat 0 90%/0% 55%; animation: yh-hl 8s linear infinite; animation-delay: calc(var(--i) * 1.6s); }
@keyframes yh-hl { 0% { background-size: 0% 55%; color: #1A1815; } 6%, 24% { background-size: 100% 55%; color: #A52E25; } 25%, 100% { background-size: 100% 55%; color: #1A1815; } }
.yh-read__wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.yh-read__wave i { flex: 1; min-width: 2px; border-radius: 3px; background: linear-gradient(#C8392E, #2A3F6B); height: 30%; animation: yh-eq 1.1s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -.09s); }
.yh-read__wave i:nth-child(3n) { animation-duration: .8s; } .yh-read__wave i:nth-child(4n) { animation-duration: 1.4s; }
@keyframes yh-eq { 0%,100% { height: 18%; } 50% { height: 100%; } }
@media (max-width: 640px) { body.yh .yh-read { right: 0; bottom: -8%; } }

/* prologue: words light up with scroll */
body.yh .yh-prologue { padding: clamp(5rem, 14vh, 9rem) 0; }
body.yh .yh-prologue__p { font: 700 clamp(1.5rem, 3.6vw, 2.9rem)/1.5 var(--yh-serif); color: #1A1815; margin: 0 0 .6em; text-wrap: balance; letter-spacing: .03em; }
body.yh .yh-prologue__p--accent { color: #C8392E; }
body.yh .yh-prologue__p .w { opacity: var(--o, .16); transition: opacity .25s linear; }

/* pinned phone story */
.yh-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.yh-story__stage { position: sticky; top: 5rem; height: calc(100vh - 6.5rem); min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.yh-phone { position: relative; height: min(76vh, 640px); aspect-ratio: 640 / 1391; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2b2825, #0f0d0b);
  box-shadow: 0 50px 90px -30px rgba(26,24,21,.6), 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 0 0 1px rgba(26,24,21,.5); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.yh-story[data-s="2"] .yh-phone { transform: rotate(-2.5deg); } .yh-story[data-s="3"] .yh-phone { transform: rotate(2deg); } .yh-story[data-s="4"] .yh-phone { transform: rotate(-1deg) translateY(-4px); }
.yh-phone__notch { position: absolute; z-index: 3; top: 18px; left: 50%; transform: translateX(-50%); width: 28%; height: 24px; border-radius: 14px; background: #0b0a09; }
.yh-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #FAF7F2; }
.yh-scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.yh-scr.is-on { opacity: 1; transform: none; }
.yh-scr--splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: radial-gradient(circle at 50% 38%, #3b5594, #1E2D52 60%, #141c36); color: #FFFEFB; font: 700 1.6rem/1 var(--yh-serif); letter-spacing: .06em; }
.yh-scr--splash .seal { width: 5rem; height: 5rem; font-size: 2.6rem; border-radius: 1.1rem; box-shadow: 0 16px 40px -10px rgba(200,57,46,.7); }
.yh-story__dots { display: flex; gap: .55rem; margin: 0; }
.yh-story__dots span { width: .55rem; height: .55rem; border-radius: 999px; background: rgba(26,24,21,.18); transition: width .35s, background .35s; }
.yh-story__dots span.on { width: 1.8rem; background: linear-gradient(90deg, #C8392E, #B8945A); }
.yh-story__steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.yh-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: .28; transform: translateX(14px); transition: opacity .5s, transform .5s; }
.yh-step.is-on { opacity: 1; transform: none; }
.yh-step:last-child { min-height: 60vh; }
.yh-step .seal { transform: rotate(-4deg) scale(1.2); transform-origin: left center; }
@media (max-width: 900px) {
  .yh-story__grid { grid-template-columns: 1fr; gap: 0; }
  .yh-story__stage { top: 4.2rem; height: 46vh; min-height: 0; z-index: 4; padding-bottom: .4rem; background: linear-gradient(#FAF7F2 88%, rgba(250,247,242,0)); }
  .yh-phone { height: 38vh; border-radius: 30px; padding: 6px; } .yh-phone__screen { border-radius: 24px; } .yh-phone__notch { top: 11px; height: 14px; }
  .yh-step { min-height: 64vh; justify-content: center; } .yh-step:last-child { min-height: 56vh; } .yh-step .seal { transform: rotate(-4deg); }
}

/* voices as a sideways rail */
body.yh .yh-rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .6rem max(1rem, calc((100vw - 80rem) / 2 + 1rem)) 1.6rem; margin: 0 calc(50% - 50vw); scrollbar-width: thin; scrollbar-color: #C8392E transparent; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
body.yh .yh-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
body.yh .yh-rail > .voice-card, body.yh .yh-rail--cards > .card-paper { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
body.yh .yh-rail::-webkit-scrollbar { height: 6px; } body.yh .yh-rail::-webkit-scrollbar-thumb { background: #C8392E; border-radius: 6px; }
.yh-rail-nav { display: flex; justify-content: center; gap: .6rem; margin-top: -.4rem; }
.yh-rail-nav button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #E8E2D5; background: rgba(255,254,251,.8); color: #1A1815; font-size: 1.1rem; cursor: pointer; }
.yh-rail-nav button:hover { border-color: #C8392E; color: #C8392E; }

/* correct-reading demo */
.yh-demo { max-width: 56rem; margin: 0 auto 2.5rem; display: grid; gap: .7rem; padding: 1.4rem; border-radius: 26px; background: linear-gradient(160deg, rgba(255,254,251,.9), rgba(255,254,251,.6)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 24px 50px -24px rgba(26,24,21,.35); }
.yh-demo__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; }
.yh-demo__row small { font: 600 .72rem/1.3 var(--yh-sans); letter-spacing: .06em; text-transform: uppercase; color: #6B6359; }
.yh-demo__in { background: #F5F0E6; font: 600 1.2rem/1.4 ui-monospace, "JetBrains Mono", monospace; }
.yh-demo__bad { color: #6B6359; font: 500 1.05rem/1.5 var(--yh-serif); min-height: 1.6em; }
.yh-demo__bad > span { text-decoration: line-through; text-decoration-color: rgba(200,57,46,.55); }
.yh-demo__good { background: #FEE9E5; font: 700 1.3rem/1.4 var(--yh-serif); color: #A52E25; }
.yh-demo__row > span { transition: opacity .4s, transform .4s; }
.yh-demo.is-swap .yh-demo__row > span { opacity: 0; transform: translateY(6px); }
@media (max-width: 640px) { .yh-demo__row { grid-template-columns: 1fr; gap: .2rem; } }

/* privacy: device-only diagram */
.yh-priv { display: grid; gap: 1.4rem; justify-items: center; padding: 2rem 1.4rem; border-radius: 28px; background: rgba(255,254,251,.06); border: 1px solid rgba(255,254,251,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.yh-priv__cloud { display: grid; justify-items: center; gap: .3rem; color: rgba(255,254,251,.55); font-size: .8rem; }
.yh-priv__cloud b { color: rgba(255,254,251,.8); font-weight: 600; letter-spacing: .08em; } .yh-priv__cloud span { color: #F4B7AF; font-weight: 700; }
.yh-priv__device { width: 100%; display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 1.2rem; border-radius: 24px; border: 2px solid rgba(255,254,251,.5); background: rgba(255,254,251,.08); box-shadow: 0 0 0 6px rgba(200,57,46,.12), 0 0 60px rgba(200,57,46,.25); }
.yh-priv__node { flex: 1; min-width: 0; display: grid; place-items: center; text-align: center; gap: .5rem; padding: .9rem .5rem; border-radius: 14px; background: rgba(255,254,251,.12); color: #FFFEFB; font-size: .78rem; line-height: 1.35; }
.yh-priv__node em { font-style: normal; font-weight: 600; } .yh-priv__node--core { background: linear-gradient(135deg, #C8392E, #A52E25); box-shadow: 0 10px 26px -8px rgba(200,57,46,.8); }
.yh-priv__link { flex: 0 0 1.6rem; align-self: center; height: 2px; position: relative; background: rgba(255,254,251,.35); }
.yh-priv__link::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #FFFEFB; animation: yh-flow 1.6s linear infinite; }
@keyframes yh-flow { from { left: 0; opacity: 1; } to { left: calc(100% - 8px); opacity: .2; } }
.yh-priv__eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 22px; }
.yh-priv__eq s { width: 4px; border-radius: 2px; background: #F4B7AF; animation: yh-eq 1s ease-in-out infinite; } .yh-priv__eq s:nth-child(2) { animation-delay: -.2s; } .yh-priv__eq s:nth-child(3) { animation-delay: -.5s; } .yh-priv__eq s:nth-child(4) { animation-delay: -.7s; } .yh-priv__eq s:nth-child(5) { animation-delay: -.35s; }
.yh-priv__air { margin: 0; padding: .45rem 1rem; border-radius: 999px; background: rgba(255,254,251,.12); color: #FFFEFB; font-size: .85rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  body.yh .yh-read, .yh-read__dot, .yh-read__wave i, .yh-priv__link::after, .yh-priv__eq s { animation: none; }
  .yh-read__text span { animation: none; background-size: 100% 55%; }
  .yh-step, .yh-scr, .yh-phone { transition: none; } .yh-step { opacity: 1; transform: none; }
  body.yh .yh-prologue__p .w { opacity: 1 !important; }
}

/* ════════ TYPOGRAPHY ════════
   Headings: Shippori Mincho B1 (700 and 800). Running text: system CJK sans + Inter (the old
   page set long paragraphs in small serif, which looked thin and fell back to a system font). */
body.yh { --yh-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --yh-sans: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  font-family: var(--yh-sans); font-size: 16px; }
body.yh .font-serif, body.yh h1, body.yh h2, body.yh h3, body.yh h4, body.yh .h-display { font-family: var(--yh-serif); }
body.yh p.font-serif, body.yh li.font-serif, body.yh td, body.yh tbody.font-serif, body.yh summary + *, body.yh details p, body.yh .text-sm.font-serif {
  font-family: var(--yh-sans); font-weight: 400; letter-spacing: .02em; line-height: 1.9; }
body.yh .yh-hero p.font-serif { font-size: 1.08rem; color: #3a362f; }
body.yh .yh-read__text, body.yh .yh-prologue__p, body.yh .yh-demo__bad, body.yh .yh-demo__good { font-family: var(--yh-serif); }
body.yh h1, body.yh h2 { font-weight: 800; }
body.yh h3, body.yh h4 { font-weight: 700; }
body.yh .yh-hero .h-display { font-weight: 800; letter-spacing: .02em; }
html[lang="en"] body.yh .yh-hero .h-display { letter-spacing: 0; }
body.yh .section-eyebrow { font-family: var(--yh-sans); }
body.yh .yh-read__top, body.yh .yh-demo__row small, .flow-pause { font-family: var(--yh-sans); }

/* ════════ SECOND PASS: readable sizes, bento instead of 21 identical cards, rails ════════ */
/* card copy was 12-14px light grey serif: raise size and contrast */
body.yh .card-paper p.text-sm, body.yh .card-paper .text-sm.font-serif { font-size: .9375rem; color: #36322b; line-height: 1.85; }
body.yh .card-paper p.text-xs, body.yh .card-paper .text-xs { font-size: .8125rem; line-height: 1.7; }
body.yh .text-sumiMute { color: #5d554b; }
body.yh .card-paper h3 { font-size: 1.15rem; line-height: 1.45; letter-spacing: .02em; }
body.yh #pricing li, body.yh #pricing .text-sm { font-size: .9375rem; line-height: 1.75; }
body.yh #pricing .text-xs { font-size: .8125rem; }
body.yh details summary { font-size: 1.05rem; }
body.yh details p { font-size: .975rem; }
body.yh > section { padding-top: clamp(4rem, 9vh, 6.5rem); padding-bottom: clamp(4rem, 9vh, 6.5rem); }
body.yh > section.yh-hero { padding-top: 8.5rem; }

/* bento: feature cards of different weight */
@media (min-width: 1024px) {
  .yh-bento { grid-auto-flow: dense; }
  .yh-bento > .card-paper { grid-column: span 2; }
  .yh-bento:not(.yh-bento--uc) > :nth-child(7n+1), .yh-bento:not(.yh-bento--uc) > :nth-child(7n+2) { grid-column: span 3; padding: 2.2rem; }
  .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) { grid-column: span 4; padding: 2.2rem; }
  .yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) h3, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+2) h3, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) h3 { font-size: 1.6rem; margin-bottom: .8rem; }
  .yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) p, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+2) p, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) p { font-size: 1.02rem; max-width: 34rem; }
  .yh-bento--uc { grid-template-columns: repeat(4, 1fr); }
  .yh-bento--uc > .card-paper { grid-column: span 1; }
  .yh-bento--uc > :nth-child(1), .yh-bento--uc > :nth-child(6) { grid-column: span 2; }
  .yh-bento--uc > :nth-child(7) { grid-column: span 4; }
}
/* accent cards: vermilion and indigo ink */
.yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) { background: linear-gradient(145deg, #D6453A, #A52E25); color: #FFFEFB; border-color: transparent; }
.yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) { background: linear-gradient(145deg, #2A3F6B, #1A2747); color: #FFFEFB; border-color: transparent; }
.yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) h3, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) h3 { color: #FFFEFB; }
.yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) p, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) p { color: rgba(255,254,251,.9); }
.yh-bento:not(.yh-bento--uc) > :nth-child(7n+1) > div:first-child, .yh-bento:not(.yh-bento--uc) > :nth-child(7n+6) > div:first-child { background: rgba(255,254,251,.16); color: #FFFEFB; }
.yh-bento--uc > :nth-child(1), .yh-bento--uc > :nth-child(6) { background: linear-gradient(160deg, rgba(254,233,229,.95), rgba(255,254,251,.7)); }
.yh-bento--uc > :nth-child(7) { background: linear-gradient(160deg, rgba(234,239,247,.95), rgba(255,254,251,.7)); }
.yh-bento .card-paper, .yh-bento > .card-paper { padding: 1.6rem; }

/* "what's new" rail: wider cards */
body.yh .yh-rail--cards > .card-paper { flex: 0 0 min(340px, 82vw); padding: 1.6rem; display: block; }

/* Tailwind is not rebuilt, so lg:grid-cols-6 does not exist: define the bento grid here */
@media (min-width: 1024px) { body.yh .yh-bento:not(.yh-bento--uc) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* accent cards: text colour must beat "body.yh .card-paper p.text-sm" */
body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+1) p, body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+6) p,
body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+1) p.text-sm, body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+6) p.text-sm { color: rgba(255,254,251,.92); }
body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+1) h3, body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+6) h3 { color: #FFFEFB; }
body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+1) a, body.yh .yh-bento:not(.yh-bento--uc) > .card-paper:nth-child(7n+6) a { color: #FFFEFB; }

/* ════════ PRICING: premium as the ink-blue hero card, features in two columns ════════ */
@media (min-width: 900px) { body.yh #pricing .grid.md\:grid-cols-2 { max-width: 76rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: 1.6rem; } }
body.yh #pricing .grid > .card-paper { padding: 2.2rem; display: flex; flex-direction: column; }
body.yh #pricing .grid > .card-paper > ul { flex: 1; }
body.yh #pricing .grid > .card-paper > a.btn-ghost, body.yh #pricing .grid > .card-paper > a.btn-shu { margin-top: 2rem; }
body.yh #pricing .text-5xl { font-size: 3.6rem; line-height: 1; }
body.yh #pricing .grid > .card-paper:nth-child(2) { background: radial-gradient(40rem 22rem at 100% 0%, rgba(200,57,46,.38), transparent 60%), linear-gradient(150deg, #24365f, #1A2747) !important; border: 1px solid rgba(255,254,251,.14); color: #FFFEFB;
  box-shadow: 0 40px 80px -36px rgba(26,39,71,.85); }
body.yh #pricing .grid > .card-paper:nth-child(2) * { border-color: transparent; }
body.yh #pricing .grid > .card-paper:nth-child(2) .text-shu, body.yh #pricing .grid > .card-paper:nth-child(2) .text-5xl { color: #FFB4AA; }
body.yh #pricing .grid > .card-paper:nth-child(2) .text-sumiMute, body.yh #pricing .grid > .card-paper:nth-child(2) .text-sumiSoft, body.yh #pricing .grid > .card-paper:nth-child(2) .text-xs { color: rgba(255,254,251,.78); }
body.yh #pricing .grid > .card-paper:nth-child(2) li, body.yh #pricing .grid > .card-paper:nth-child(2) strong { color: #FFFEFB; }
body.yh #pricing .grid > .card-paper:nth-child(2) .absolute { background: linear-gradient(135deg, #D6453A, #B3302A); color: #FFFEFB; }
@media (min-width: 1100px) { body.yh #pricing .grid > .card-paper:nth-child(2) > ul { columns: 2; column-gap: 2.2rem; } body.yh #pricing .grid > .card-paper:nth-child(2) > ul > li { break-inside: avoid; margin-bottom: .8rem; } }
body.yh #pricing .grid > .card-paper:nth-child(2) > ul > li.space-y-2\.5 { margin: 0; }
body.yh #pricing .grid > .card-paper:first-child { background: linear-gradient(160deg, rgba(255,254,251,.92), rgba(255,254,251,.65)); }
body.yh #pricing .max-w-2xl, body.yh #pricing .text-center > p { max-width: 46rem; }
body.yh #pricing .text-center > p { font-size: 1.02rem; line-height: 1.95; }

/* ════════ FAQ: bigger questions, vermilion rule when open ════════ */
body.yh #faq details { border-left: 4px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s; }
body.yh #faq details[open] { border-left-color: #C8392E; background: linear-gradient(160deg, rgba(255,254,251,.95), rgba(254,233,229,.45)); box-shadow: 0 16px 36px -20px rgba(200,57,46,.4); }
body.yh #faq details summary { font-family: var(--yh-serif); font-weight: 700; font-size: 1.12rem; line-height: 1.6; padding: .35rem 0; }
body.yh #faq details p, body.yh #faq details div { font-size: 1rem; line-height: 1.95; color: #36322b; }
body.yh #faq .max-w-3xl { max-width: 54rem; }

/* pricing list rows: icon + one flowing text (the old flex row split bold text and its note into separate columns) */
body.yh #pricing li.flex { display: block; position: relative; padding-left: 1.9rem; }
body.yh #pricing li.flex > span:first-child { position: absolute; left: 0; top: .2em; }

/* ════════ SOUND LAYER ════════ */
/* now-playing dock */
.yh-dock { position: fixed; z-index: 45; left: 50%; bottom: 1.1rem; transform: translate(-50%, 140%); display: flex; align-items: center; gap: .9rem; padding: .55rem .6rem .55rem .6rem; max-width: calc(100vw - 1.5rem);
  border-radius: 999px; background: rgba(255,254,251,.86); border: 1px solid rgba(255,255,255,.95); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 60px -18px rgba(26,24,21,.5), 0 0 0 1px rgba(26,24,21,.06); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.yh-dock[hidden] { display: none; } .yh-dock.is-on { transform: translate(-50%, 0); }
.yh-dock__av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #EAEFF7; flex: none; }
.yh-dock__meta { display: grid; line-height: 1.25; min-width: 0; } .yh-dock__meta b { font: 700 .95rem var(--yh-serif); color: #1A1815; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; } .yh-dock__meta span { font: 600 .7rem var(--yh-sans); color: #C8392E; letter-spacing: .06em; }
.yh-dock canvas { width: 160px; height: 30px; flex: none; }
.yh-dock__stop { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: linear-gradient(135deg, #D6453A, #B3302A); cursor: pointer; display: grid; place-items: center; flex: none; }
.yh-dock__stop i { width: .8rem; height: .8rem; border-radius: 2px; background: #fff; }
@media (max-width: 520px) { .yh-dock canvas { width: 96px; } .yh-dock__meta b { max-width: 5.5rem; } .yh-dock { bottom: .7rem; } }
.flow-pause { transition: bottom .3s; } html.yh-audio-on .flow-pause { bottom: 5.4rem; }
@media (max-width: 640px) { html.yh-audio-on .flow-pause { display: none; } }

/* playing voice card glows with the sound */
body.yh .voice-card.is-playing { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 calc(2px + var(--lvl, 0) * 9px) color-mix(in srgb, var(--voice-accent, #C8392E) 28%, transparent), 0 26px 50px -18px color-mix(in srgb, var(--voice-accent, #C8392E) 55%, transparent); transform: translateY(-4px); }
body.yh .voice-card.is-playing img { box-shadow: 0 0 0 calc(2px + var(--lvl, 0) * 7px) color-mix(in srgb, var(--voice-accent, #C8392E) 35%, transparent); }

/* hero reading card: play button, live bars */
.yh-read__play { margin-left: .4rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem .25rem .5rem; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(135deg, #D6453A, #B3302A); color: #fff; font: 700 .72rem var(--yh-sans); letter-spacing: .04em; }
.yh-read__play i { width: 0; height: 0; border-left: .5rem solid #fff; border-top: .3rem solid transparent; border-bottom: .3rem solid transparent; }
.yh-read__voice { margin-left: auto; }
.yh-read.is-live .yh-read__wave i { animation: none; transition: height .08s linear; }
.yh-read.is-live .yh-read__dot { background: #33529a; }
.yh-read.is-live .yh-read__play { display: none; }

/* sound-wave dividers drifting along the bottom of each chapter */
body.yh section[data-chap]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; z-index: 0; opacity: .55;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='56' viewBox='0 0 480 56'><g fill='none' stroke-linecap='round' stroke-width='2'><path d='M0 28h40l8-14 8 28 8-34 8 40 8-30 8 18 8-8h24l8-18 8 34 8-26 8 14 8-6h40l8-20 8 36 8-40 8 38 8-22 8 10h24l8-12 8 24 8-14 8 6h48l8-16 8 30 8-22 8 12 8-6h28' stroke='%23C8392E' stroke-opacity='.55'/><path d='M0 28h60l8-8 8 16 8-20 8 24 8-14 8 8h30l8-10 8 22 8-16 8 8h52l8-12 8 26 8-26 8 20 8-10h48l8-10 8 20 8-12h36l8-8 8 14 8-8h44' stroke='%232A3F6B' stroke-opacity='.4'/></g></svg>") repeat-x center/480px 56px;
  animation: yh-drift 24s linear infinite; }
@keyframes yh-drift { to { background-position-x: -480px; } }
body.yh .yh-privacy[data-chap]::after { opacity: .25; filter: invert(1); }
html.yh-audio-on body.yh section[data-chap]::after { animation-duration: 6s; opacity: .9; }

/* story step 4: equaliser under the phone */
.yh-story__eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; opacity: 0; transition: opacity .5s; }
.yh-story[data-s="4"] .yh-story__eq { opacity: 1; }
.yh-story__eq i { width: 4px; border-radius: 2px; height: 20%; background: linear-gradient(#C8392E, #2A3F6B); animation: yh-eq 1s ease-in-out infinite; animation-delay: calc(var(--n) * -.083s); }
.yh-story__eq i:nth-child(3n) { animation-duration: .75s; } .yh-story__eq i:nth-child(4n) { animation-duration: 1.35s; }
@media (prefers-reduced-motion: reduce) { body.yh section[data-chap]::after, .yh-story__eq i { animation: none; } .yh-dock { transition: none; } }

/* ════════ FLOATING MUSIC SYMBOLS ════════ */
.yh-notes { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.yh-ic { position: absolute; display: block; pointer-events: none; }
.yh-ic svg { width: 100%; height: 100%; display: block; }
.yh-notes .yh-ic { left: var(--x); bottom: -90px; width: var(--s); height: var(--s); color: var(--c); opacity: 0; animation: yh-rise var(--d) linear var(--dl) infinite; will-change: transform, opacity; }
@keyframes yh-rise {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0)); opacity: 0; }
  8% { opacity: var(--o); }
  50% { transform: translate3d(var(--sw), -58vh, 0) rotate(calc(var(--r0) * -1)); }
  92% { opacity: var(--o); }
  100% { transform: translate3d(calc(var(--sw) * -1), -118vh, 0) rotate(var(--r0)); opacity: 0; }
}
.yh-ic--burst { position: fixed; z-index: 44; opacity: 0; filter: drop-shadow(0 4px 10px rgba(26,24,21,.18)); }
html.yh-audio-on .yh-notes .yh-ic { animation-duration: calc(var(--d) * .55); }
@media (prefers-reduced-motion: reduce) { .yh-notes, .yh-ic--burst { display: none; } }

/* spectrum skyline along the bottom edge */
.yh-spectrum { position: fixed; left: 0; right: 0; bottom: 0; width: 100vw; height: 120px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent); mask-image: linear-gradient(to top, #000 15%, transparent); }
@media (prefers-reduced-motion: reduce) { .yh-spectrum { display: none; } }


/* ════════ DEVICE MOCKUPS (3.0 captures) ════════ */
.yh-ipad, .yh-iphone { background: linear-gradient(145deg, #2d2a27, #0f0d0b); box-shadow: 0 40px 80px -30px rgba(26,24,21,.6), 0 14px 30px -14px rgba(26,24,21,.4), 0 0 0 1.5px rgba(255,255,255,.07) inset, 0 0 0 1px rgba(26,24,21,.55); }
.yh-ipad { border-radius: 30px; padding: 10px; }
.yh-ipad img { display: block; width: 100%; height: auto; border-radius: 21px; }
.yh-iphone { border-radius: 38px; padding: 8px; }
.yh-iphone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.yh-hero-devices .yh-iphone { position: absolute; left: -7%; bottom: 0; width: 33%; transform: rotate(-3.5deg); z-index: 2; }
.yh-dev { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 66rem; margin: 0 auto; }
.yh-dev__ipad { display: grid; gap: 1.1rem; justify-items: center; }
.yh-dev__ipad .yh-ipad { width: 100%; }
.yh-dscr-wrap { position: relative; aspect-ratio: 1500 / 1015; border-radius: 21px; overflow: hidden; }
.yh-dscr { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.yh-dscr.is-on { opacity: 1; transform: none; }
.yh-dev__tabs { display: inline-flex; gap: .35rem; padding: .3rem; border-radius: 999px; background: rgba(255,254,251,.8); border: 1px solid #E8E2D5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.yh-dev__tabs button { min-height: 2.5rem; padding: 0 1.15rem; border: 0; border-radius: 999px; background: transparent; font: 600 .9rem var(--yh-sans); color: #36322b; cursor: pointer; transition: background .25s, color .25s; }
.yh-dev__tabs button.is-on { background: linear-gradient(135deg, #D6453A, #B3302A); color: #fff; }
.yh-dev__iphone { margin: 0; display: grid; gap: .9rem; justify-items: center; }
.yh-dev__iphone .yh-iphone { width: 100%; transform: rotate(2.5deg); }
.yh-dev__iphone figcaption { font: 500 .9rem/1.6 var(--yh-sans); color: #5d554b; text-align: center; max-width: 16rem; }
.yh-chips { display: inline-flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.1rem 0 0; }
.yh-chips span { padding: .35rem .95rem; border-radius: 999px; background: rgba(255,254,251,.85); border: 1px solid #E8E2D5; font: 600 .85rem var(--yh-sans); }
.yh-chips b { padding: .35rem .95rem; border-radius: 999px; background: #FEE9E5; color: #A52E25; font: 700 .85rem var(--yh-sans); }
@media (max-width: 860px) { .yh-dev { grid-template-columns: 1fr; } .yh-dev__iphone .yh-iphone { width: 210px; } }
@media (prefers-reduced-motion: reduce) { .yh-dscr { transition: none; } }

/* drawn app screens (scripts/build-app-mockups.mjs) */
svg.mk { display: block; width: 100%; height: auto; }
svg.mk text { font-family: var(--yh-sans); }
.yh-ipad svg.mk { border-radius: 21px; } .yh-iphone svg.mk { border-radius: 31px; }
.yh-scr.mk { position: absolute; inset: 0; width: 100%; height: 100%; }
.yh-dscr.mk { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }

/* macOS window */
.yh-mac { max-width: 66rem; margin: 0 auto 2.5rem; }
.yh-mac svg.mk { border-radius: 22px; box-shadow: 0 50px 90px -40px rgba(26, 42, 78,.55), 0 14px 30px -14px rgba(26,24,21,.3); }

/* Android (drawn screens) */
.yh-android { max-width: 66rem; margin: 3.5rem auto 0; text-align: center; }
.yh-android__cap { margin: 0 0 1.4rem; font: 500 1rem/1.6 var(--yh-sans); color: #36322b; }
.yh-android__cap b { display: inline-block; margin-right: .5rem; padding: .2rem .8rem; border-radius: 999px; background: #e3e8f4; color: #223767; font: 700 .85rem var(--yh-sans); }
.yh-android__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 3vw, 2rem); justify-items: center; max-width: 52rem; margin: 0 auto; }
.yh-and { width: 100%; max-width: 250px; padding: 7px; border-radius: 34px; background: linear-gradient(145deg, #2b2a2e, #0d0d0f); box-shadow: 0 36px 70px -28px rgba(26,24,21,.55), 0 0 0 1px rgba(26,24,21,.5), 0 0 0 1.5px rgba(255,255,255,.06) inset; }
.yh-and svg.mk { border-radius: 27px; }
.yh-and:nth-child(2) { transform: translateY(1.4rem); }
.yh-chips b.ok { background: #e3e8f4; color: #223767; }
@media (max-width: 640px) { .yh-android__row { grid-template-columns: 1fr; } .yh-and:nth-child(2) { transform: none; } }

/* ════════ STORY: the stage swaps devices per step (iPhone → iPad → Mac) ════════ */
.yh-story__devs { position: relative; flex: 1; width: 100%; min-height: 0; }
.yh-sd { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translate3d(0, 28px, 0) scale(.94); transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.yh-sd.is-on { opacity: 1; transform: none; }
.yh-phone--sd { aspect-ratio: 430 / 932; height: min(72vh, 620px); }
.yh-phone--sd .yh-phone__screen { background: #FAF9F6; }
.yh-phone__screen svg.mk { width: 100%; height: 100%; }
.yh-ipad--sd { width: min(100%, 600px); transform: rotate(-1.2deg); }
.yh-macwrap { width: min(100%, 640px); }
.yh-macwrap svg.mk { border-radius: 18px; box-shadow: 0 44px 80px -36px rgba(26, 42, 78,.6), 0 12px 26px -12px rgba(26,24,21,.3); }
.yh-splash { display: grid; justify-items: center; gap: 1.1rem; }
.yh-splash img { width: 168px; height: 168px; border-radius: 22.4%; box-shadow: 0 40px 80px -24px rgba(37, 58, 110,.7), 0 0 0 10px rgba(113, 141, 208,.10), 0 0 0 26px rgba(113, 141, 208,.06); }
.yh-splash b { font: 800 1.9rem var(--yh-serif); letter-spacing: .03em; }
.yh-splash__chips { display: inline-flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.yh-splash__chips i { font: 600 .82rem var(--yh-sans); font-style: normal; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,254,251,.85); border: 1px solid #E8E2D5; }
@media (max-width: 900px) {
  .yh-phone--sd { height: 38vh; }
  .yh-ipad--sd { width: min(100%, calc(38vh * 1.45)); } .yh-macwrap { width: min(100%, calc(38vh * 1.55)); }
  .yh-splash img { width: 108px; height: 108px; } .yh-splash b { font-size: 1.4rem; }
}
.yh-macwrap { overflow: hidden; border-radius: 18px; box-shadow: 0 44px 80px -36px rgba(26, 42, 78,.6), 0 12px 26px -12px rgba(26,24,21,.3); }
.yh-macwrap svg.mk { border-radius: 0; box-shadow: none; transform: scale(1.16); transform-origin: 50% 50%; }

/* ════════ FURIGANA SECTION: ruby on real text, vertical / horizontal, karaoke highlight ════════ */
.yh-fur { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.yh-fur__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.yh-fur__list li { position: relative; padding-left: 2rem; font: 600 1.02rem/1.6 var(--yh-sans); }
.yh-fur__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #FEE9E5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8392E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 6'/></svg>") center/65% no-repeat; }
.yh-reader { position: relative; padding: 1rem 1.4rem 1.2rem; border-radius: 28px; background: linear-gradient(160deg, #FBF5E6, #F6EBD2); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 40px 80px -36px rgba(80,50,20,.45), 0 10px 24px -12px rgba(26,24,21,.25); }
.yh-reader__bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.yh-fur__sw { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.5rem; padding: 0 .9rem 0 .6rem; border-radius: 999px; border: 1px solid rgba(26,24,21,.14); background: rgba(255,254,251,.8); font: 700 .9rem var(--yh-sans); cursor: pointer; }
.yh-fur__sw i { position: relative; width: 2.1rem; height: 1.2rem; border-radius: 999px; background: #CFC8B8; transition: background .25s; }
.yh-fur__sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.2rem - 4px); height: calc(1.2rem - 4px); border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.yh-fur__sw.is-on i { background: #C8392E; } .yh-fur__sw.is-on i::after { transform: translateX(.9rem); }
.yh-seg { display: inline-flex; padding: .2rem; border-radius: 999px; background: rgba(255,254,251,.7); border: 1px solid rgba(26,24,21,.12); }
.yh-seg button { min-height: 2.1rem; padding: 0 .9rem; border: 0; border-radius: 999px; background: transparent; font: 600 .85rem var(--yh-sans); cursor: pointer; color: #36322b; }
.yh-seg button.is-on { background: #1A1815; color: #FFFEFB; }
.yh-reader__pos { margin-left: auto; font: 600 .78rem var(--yh-sans); color: #7a6a4f; letter-spacing: .06em; }
.yh-reader__text { margin: 0 auto; height: 21rem; writing-mode: vertical-rl; font: 500 1.55rem/2.6 var(--yh-serif); letter-spacing: .06em; color: #231d14; text-align: start; overflow: hidden; }
.yh-reader.is-h .yh-reader__text { writing-mode: horizontal-tb; height: auto; min-height: 21rem; line-height: 2.9; font-size: 1.4rem; }
.yh-reader__text .k { border-radius: 8px; padding: .05em .02em; cursor: pointer; transition: background .35s, color .35s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.yh-reader__text .k:hover { background: rgba(200,57,46,.08); }
.yh-reader__text .k.is-hl { background: rgba(200,57,46,.16); color: #8E241B; }
.yh-reader__text rt { font: 600 .46em var(--yh-sans); color: #A52E25; letter-spacing: .02em; opacity: 1; transition: opacity .4s; }
.yh-reader.no-fur .yh-reader__text rt { opacity: 0; }
.yh-reader__hint { margin: .6rem 0 0; text-align: center; font: 500 .8rem var(--yh-sans); color: #7a6a4f; }
@media (max-width: 900px) { .yh-fur { grid-template-columns: 1fr; } .yh-reader__text { height: 19rem; font-size: 1.35rem; } }

/* hero: Mac window behind, iPad and iPhone in front */
body.yh .yh-hero-devices { padding-bottom: 16%; }
.yh-hero-devices .yh-mac { margin: 0; max-width: none; }
.yh-hero-devices .yh-mac svg.mk { border-radius: 18px; box-shadow: 0 40px 70px -34px rgba(26, 42, 78,.55), 0 10px 24px -12px rgba(26,24,21,.3); }
.yh-hero-devices .yh-ipad { position: absolute; right: -7%; bottom: 3%; width: 55%; transform: rotate(1.6deg); z-index: 2; padding: 8px; border-radius: 24px; }
.yh-hero-devices .yh-ipad svg.mk { border-radius: 17px; }
.yh-hero-devices .yh-iphone { left: -6%; bottom: -3%; width: 25%; z-index: 3; padding: 6px; border-radius: 30px; }
.yh-hero-devices .yh-iphone svg.mk { border-radius: 24px; }
body.yh .yh-read { top: -9%; left: -10%; right: auto; bottom: auto; width: min(270px, 62%); }
@media (max-width: 640px) { body.yh .yh-read { top: -12%; left: 0; } body.yh .yh-hero-devices { padding-bottom: 24%; } }

/* hero second pass: wider device stage, reading card tucked below the devices */
@media (min-width: 1024px) {
  body.yh .yh-hero .grid.lg\:grid-cols-2 { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  body.yh .yh-stage { max-width: 44rem; width: 100%; }
}
body.yh .yh-hero-devices { padding-bottom: 20%; }
body.yh .yh-read { top: auto; bottom: -1%; left: 20%; right: auto; width: min(300px, 56%); }
@media (max-width: 640px) { body.yh .yh-read { bottom: -4%; left: 6%; width: 78%; } body.yh .yh-hero-devices { padding-bottom: 34%; } }
.yh-hero-devices .yh-iphone { left: -2%; }

/* sync pass: Android in the hero + story, 3.0 label, new icon in the download section */
.yh-cta-icon { width: 96px; height: 96px; border-radius: 22.4%; box-shadow: 0 24px 50px -16px rgba(37, 58, 110,.6), 0 0 0 8px rgba(113, 141, 208,.10); }
.yh-hero-devices .yh-and--hero { position: absolute; right: -9%; top: 18%; width: 16%; max-width: none; padding: 4px; border-radius: 16px; z-index: 1; transform: rotate(4deg); }
.yh-hero-devices .yh-and--hero svg.mk { border-radius: 12px; }
.yh-soon { position: absolute; z-index: 4; right: 0; top: -9%; padding: .35rem .85rem; border-radius: 999px; background: rgba(255,254,251,.9); border: 1px solid #E8E2D5; font: 700 .75rem var(--yh-sans); color: #A52E25; letter-spacing: .04em; box-shadow: 0 8px 20px -10px rgba(26,24,21,.4); }
.yh-and--story { position: absolute; right: 4%; bottom: 10%; width: 17%; max-width: none; padding: 4px; border-radius: 18px; transform: rotate(3deg); }
.yh-and--story svg.mk { border-radius: 14px; }
.yh-story__note { margin: .2rem 0 0; font: 500 .78rem var(--yh-sans); color: #7a6a4f; text-align: center; max-width: 18rem; }
@media (max-width: 640px) { .yh-hero-devices .yh-and--hero { display: none; } .yh-soon { top: -14%; } }
@media (max-width: 900px) { .yh-and--story { width: 20%; right: 0; bottom: 4%; } }

/* ════════ SUB PAGES (use cases, voices, premium, support, compare, releases, legal): same layer, quieter ribbon ════════ */
body.yh-sub canvas[data-flow-canvas] { --flow-alpha: .5; }
body.yh-sub .yh-notes { opacity: .5; } body.yh-sub .yh-spectrum { opacity: .55; }
body.yh-sub main { position: relative; }
body.yh-sub main > section.bg-paper, body.yh-sub main section.bg-paper { background: rgba(255,254,251,.55) !important; }
body.yh-sub main .prose-yomite, body.yh-sub main article { position: relative; z-index: 1; }

/* end-of-page block on every sub page: next step + related pages */
.yh-endcta { padding: clamp(3rem, 8vh, 5rem) 1rem; position: relative; z-index: 1; }
.yh-endcta__in { max-width: 62rem; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem; align-items: center; padding: 1.8rem 2rem; border-radius: 30px; background: radial-gradient(34rem 16rem at 100% 0%, rgba(200,57,46,.28), transparent 60%), linear-gradient(150deg, #24365f, #1A2747); color: #FFFEFB; box-shadow: 0 40px 80px -36px rgba(26,39,71,.85); }
.yh-endcta .yh-cta-icon { width: 72px; height: 72px; margin: 0; box-shadow: 0 16px 34px -12px rgba(0,0,0,.6); }
.yh-endcta h2 { margin: 0 0 .3rem; font: 800 1.7rem var(--yh-serif); color: #FFFEFB; }
.yh-endcta p { margin: 0; font: 400 .98rem/1.7 var(--yh-sans); color: rgba(255,254,251,.85); }
.yh-endcta__btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.yh-endcta .btn-ghost { background: rgba(255,254,251,.12); color: #FFFEFB; border-color: rgba(255,254,251,.3); }
.yh-endcta__links { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid rgba(255,254,251,.16); }
.yh-endcta__links a, .yh-endcta__more a { padding: .4rem .95rem; border-radius: 999px; background: rgba(255,254,251,.12); color: #FFFEFB; font: 600 .85rem var(--yh-sans); text-decoration: none; transition: background .2s; }
.yh-endcta__links a:hover, .yh-endcta__more a:hover { background: rgba(255,254,251,.24); }
.yh-endcta__more { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.yh-endcta__more b { font: 700 .82rem var(--yh-sans); color: #FFB4AA; margin-right: .4rem; }
@media (max-width: 760px) { .yh-endcta__in { grid-template-columns: 1fr; text-align: center; justify-items: center; } .yh-endcta__btns { justify-content: center; } .yh-endcta__links, .yh-endcta__more { justify-content: center; } }
.yh-endcta--next .yh-endcta__in { background: rgba(255,254,251,.7); color: #1A1815; box-shadow: 0 24px 50px -30px rgba(26,24,21,.4); border: 1px solid rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.yh-endcta--next h2 { color: #1A1815; font-size: 1.35rem; }
.yh-endcta--next .yh-endcta__links a, .yh-endcta--next .yh-endcta__more a { background: #fff; color: #1A1815; border: 1px solid #E8E2D5; }
.yh-endcta--next .yh-endcta__links a:hover, .yh-endcta--next .yh-endcta__more a:hover { border-color: #C8392E; color: #A52E25; }
.yh-endcta--next .yh-endcta__more b { color: #A52E25; }
html[lang="ja"] body.yh .yh-hero .h-display { font-size: clamp(2.1rem, 3.9vw, 3.6rem); line-height: 1.2; }
/* long URLs in legal text must wrap instead of widening the page on phones */
body.yh-sub main a { overflow-wrap: anywhere; }

/* use-case pages: one drawn device under the intro */
.yh-uc-visual { display: grid; place-items: center; margin: 2.2rem auto 2.6rem; max-width: 46rem; }
.yh-uc-visual .yh-iphone { width: min(250px, 62vw); transform: rotate(-2deg); }
.yh-uc-visual .yh-ipad { width: min(100%, 560px); transform: rotate(-1deg); }
.yh-uc-visual .yh-and { width: min(230px, 60vw); transform: rotate(2deg); }
.yh-uc-visual .yh-macwrap { width: min(100%, 600px); }


/* utilities the prebuilt Tailwind file does not include (page sections and card stacks lost their spacing) */
.pt-8 { padding-top: 2rem; } .pt-16 { padding-top: 4rem; } .py-16 { padding-top: 4rem; padding-bottom: 4rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; } .mt-4 { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; } .space-y-2\.5 > * + * { margin-top: .625rem; }
@media (min-width: 640px) { .sm\:p-8 { padding: 2rem; } .sm\:p-12 { padding: 3rem; } }
/* a section edge should not be a hard rule on top of the ribbon */
body.yh-sub main section.border-y { border-color: rgba(232,226,213,.6); }

/* version chip on "recent updates" cards */
.yh-ver { font: 700 .72rem/1 var(--yh-sans); letter-spacing: .06em; color: var(--ai, #2A3F6B); background: rgba(42,63,107,.1); padding: .38rem .7rem; border-radius: 999px; white-space: nowrap; }
