@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Paper & Rose homepage (2026-11-23). Loaded last, on body.home-paper. The page keeps its layout,
   motion and canvases: the orbit, the voiceprint and the Studio demo draw paper colours themselves
   (see heartmula-home-orbit.js / heartmula-waveform-field.js / heartmula-studio-showcase.js). */
html:has(> body.home-paper), body.home-paper { background: #faf8f5 !important; color: #1b1613; color-scheme: light; }
body.home-paper, body.home-paper :is(button, input, textarea, select) {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif; }

/* The orbit: rose ink blooming on paper, behind everything. */
/* Without WebGL (or before it starts) a still of the paper orbit stands in; once the canvas
   draws, the still goes, or the two would bloom on top of each other. */
body.home-paper .hm-orbit-scene { background: #faf8f5 url('orbit-still-paper-wide.webp') center / cover no-repeat !important; }
@media (max-width: 760px) { body.home-paper .hm-orbit-scene { background-image: url('orbit-still-paper-narrow.webp') !important; } }
body.home-paper .hm-orbit-scene[data-renderer='webgl'] { background-image: none !important; }
body.home-paper .hm-orbit-scene canvas { opacity: .62; }
body.home-paper .hm-orbit-scene[data-renderer='webgl'] canvas { opacity: .62; }
body.home-paper .hm-orbit-scene::after {
  background:
    linear-gradient(180deg, #faf8f5 0%, rgba(250,248,245,.55) 14%, transparent 34%, transparent 70%, rgba(250,248,245,.9) 100%) !important; }

/* Line art drawn in white for the dark page: ink lines. */
body.home-paper .hm-apparatus img { filter: invert(1) sepia(.15); opacity: .82; }

/* Logo: the ink lockup (tight crop, no offsets). */
body.home-paper .original-lockup { width: auto !important; height: 28px !important; overflow: visible !important; mix-blend-mode: normal !important; }
body.home-paper .original-lockup img { position: static !important; width: auto !important; height: 28px !important; left: auto !important; top: auto !important; filter: none !important; mix-blend-mode: normal !important; }

/* One family with the app: Onest everywhere the page used its display sans. */
body.home-paper { --hm-sans: "Onest", system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif; }
body.home-paper .hero .hero-copy h1.hm-hero-title { color: #1b1613 !important; font-weight: 500 !important; letter-spacing: -.035em !important; }
body.home-paper .hm-hero-phrase, body.home-paper .hm-hero-phrase--outline { color: #1b1613 !important; -webkit-text-fill-color: #1b1613 !important; -webkit-text-stroke: 0 !important; }
body.home-paper :is(.mode-button b, .generate, .sx-cta, .plan-action, .hm-model-copy strong) { font-weight: 500 !important; }

/* Veils: the sections that sat on 54% black now sit on paper, so the bloom stays behind the hero. */
body.home-paper .site-header { background: linear-gradient(180deg, rgba(250,248,245,.92), rgba(250,248,245,.6) 72%, rgba(250,248,245,0)) !important; }
body.home-paper :is(.research-band, .plans-section, .open-section) { background: rgba(250,248,245,.9) !important; }
body.home-paper #studio.sx { background: linear-gradient(180deg, rgba(250,248,245,0), rgba(250,248,245,.9) 246px) !important; }
body.home-paper #models.model-statement { background: linear-gradient(180deg, rgba(250,248,245,0), rgba(250,248,245,.92) 295px, rgba(250,248,245,.92) calc(100% - 128px), rgba(250,248,245,0)) !important; }

/* The composer: a white card, quiet fields, the ink pill. */
body.home-paper #composer { background: rgba(255,255,255,.92) !important; border: 1px solid #ebe5dd !important; box-shadow: 0 1px 2px rgba(27,22,19,.04), 0 18px 48px -24px rgba(27,22,19,.22) !important; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
body.home-paper .mode-button.active { background: #1b1613 !important; border-color: #1b1613 !important; }
body.home-paper .mode-button.active b, body.home-paper .mode-button.active span { color: #fff !important; }
body.home-paper .mode-button:not(.active) { background: #fff !important; border-color: #ddd5cb !important; }
body.home-paper :is(.upload-label, .prompt-select, .advanced-toggle, .plaza-pick) { background: #faf8f5 !important; border-color: #ebe5dd !important; color: #1b1613 !important; }
body.home-paper :is(.plaza-pick:hover, .upload-label:hover) { background: #f3efe9 !important; }
body.home-paper .composer textarea { color: #1b1613 !important; }
body.home-paper .composer textarea::placeholder { color: #a89f97 !important; }
body.home-paper .generate { background: #1b1613 !important; color: #fff !important; border-color: #1b1613 !important; box-shadow: none !important; }
body.home-paper .generate:hover { background: #2e2723 !important; }

/* Secondary actions and cards: white pills / white cards on hairlines. */
body.home-paper :is(.sx-cta, .plan-action) { background: #fff !important; color: #1b1613 !important; border: 1px solid #ddd5cb !important; box-shadow: none !important; }
body.home-paper .plan-row.featured .plan-action { background: #1b1613 !important; color: #fff !important; border-color: #1b1613 !important; }
body.home-paper :is(.sx-window, .plan-row, .plan-row-api) { background: #fff !important; border-color: #ebe5dd !important; box-shadow: 0 1px 2px rgba(27,22,19,.04), 0 12px 32px -20px rgba(27,22,19,.18) !important; }
body.home-paper .plan-row.featured { border-color: #f4a3b2 !important; box-shadow: 0 0 0 1px #f4a3b2, 0 18px 40px -24px rgba(226,61,91,.35) !important; }
body.home-paper :is(.lang-button.active, .billing-switch button.active, .sx-ab button[aria-pressed="true"], .sx-ab button.active) { background: #1b1613 !important; color: #fff !important; }

/* Fixes after the first look. */
html body.home-paper .site-header, html body.home-paper .site-header.is-scrolled { background: linear-gradient(180deg, rgba(250,248,245,.94), rgba(250,248,245,.7) 72%, rgba(250,248,245,0)) !important; box-shadow: none !important; }
/* Solid once scrolled: at .9 the page text showed through under the logo on phones (QA 2026-11-28). */
html body.home-paper .site-header.is-scrolled { background: rgba(250,248,245,.985) !important; box-shadow: 0 1px 0 #ebe5dd !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.home-paper #composer .creation-mode-tabs .mode-button.active { background: #1b1613 !important; border-color: #1b1613 !important; }
body.home-paper #composer .creation-mode-tabs .mode-button.active :is(b, span, svg) { color: #fff !important; }
body.home-paper .open-section h2 span { -webkit-text-stroke-color: #1b1613 !important; }
body.home-paper .section-texture::before { opacity: .18 !important; filter: grayscale(1); }

/* MCP and API in the first screen (owner, 11-23): two quiet links under the hero line. */
body.home-paper .hero-connect { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; }
body.home-paper .hero-connect-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid #ebe5dd; color: #1b1613; font-size: 13.5px; font-weight: 500; text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .15s cubic-bezier(.16,1,.3,1), background-color .15s cubic-bezier(.16,1,.3,1); }
body.home-paper .hero-connect-chip svg { width: 16px; height: 16px; color: #e23d5b; flex: none; }
body.home-paper .hero-connect-chip:hover { background: #fff; border-color: #ddd5cb; }
body.home-paper .hero-connect-chip:focus-visible { outline: 2px solid #e23d5b; outline-offset: 2px; }
body:not(.home-paper) .hero-connect { display: none; }

/* The composer's main action is the ink pill, as everywhere else. */
body.home-paper #composer button.generate, body.home-paper #composer button.generate:hover { background: #1b1613 !important; color: #fff !important; border: 1px solid #1b1613 !important; box-shadow: none !important; }
body.home-paper #composer button.generate:hover { background: #2e2723 !important; }
body.home-paper #composer button.generate * { color: #fff !important; }
body.home-paper .navigation-toggle { color: #1b1613 !important; }

/* Chinese: the same sans family as the app (the dark page set these in Noto Serif SC). */
html:lang(zh) body.home-paper .hero .hero-copy > p,
html:lang(zh) body.home-paper main :is(h2, .sx-title),
html:lang(zh) body.home-paper .hm-hero-title {
  font-family: "Onest", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important; letter-spacing: 0 !important; }
html:lang(zh) body.home-paper main :is(h2, .sx-title) { font-weight: 600 !important; }
html:lang(zh) body.home-paper .hero .hero-copy > p { line-height: 1.7 !important; }

/* Open research (owner, 11-23): GitHub plus three citations in one row of four; two by two on
   tablets, stacked on phones. The name leads; the venue is a small pill (NeurIPS in rose). */
body.home-paper .research-band .tech-proof { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
body.home-paper .tech-proof-venue { align-self: flex-start; display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid #ebe5dd; background: rgba(255,255,255,.7); color: #4f4741; font-size: 12px; font-weight: 500; letter-spacing: 0; }
body.home-paper .tech-proof-venue.is-award { border-color: #f4a3b2; background: #fdecef; color: #b3243f; }
body.home-paper .tech-proof-cite .tech-proof-source { font-size: 20px; line-height: 1.2; }
body.home-paper .tech-proof-cite strong { max-width: none; color: #4f4741; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 1000px) { body.home-paper .research-band .tech-proof { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 700px) { body.home-paper .research-band .tech-proof { grid-template-columns: 1fr !important; } }

/* 2026-11-24: visible tool links in the footer (site review: the tool pages were only linked from
   footer columns that a later stylesheet hides). The top "Tools" link jumps here. */
body.home-paper footer .footer-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; width: 100%; margin: 0 0 26px; padding: 8px 0 28px; border-bottom: 1px solid rgba(27, 22, 19, .1); scroll-margin-top: 90px; }
body.home-paper .footer-tool-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.home-paper .footer-tool-group h3 { margin: 0 0 6px; color: #1b1613; font-size: 13px; font-weight: 600 !important; letter-spacing: 0; text-transform: none; }
body.home-paper .footer-tool-group a { display: block; padding: 4px 0; color: #756c64; font-size: 13.5px; line-height: 1.45; text-decoration: none; }
body.home-paper .footer-tool-group a:hover, body.home-paper .footer-tool-group a:focus-visible { color: #b3243f; }
@media (max-width: 900px) { body.home-paper footer .footer-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
@media (max-width: 420px) { body.home-paper footer .footer-tools { grid-template-columns: 1fr 1fr; gap: 22px 14px; } body.home-paper .footer-tool-group a { font-size: 13px; } }

/* 2026-11-24 homepage UI review. Play/pause are icons (the ▶ / ❚❚ text glyphs sat off-centre and
   iOS can draw ▶ as a colour emoji), centred in the round button. */
body.home-paper .plaza-pick-play { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 0; }
body.home-paper .plaza-pick-play svg { width: 14px; height: 14px; fill: currentColor; }
/* A little room between the Plaza song row and "Or upload your own song". */
body.home-paper .plaza-picker { margin-bottom: 14px; }
/* Style / Mood / Language menus on desktop (heartmula-home-menus.js): same pill as before, the
   open list in the page's paper style instead of the operating system popup. */
body.home-paper .prompt-menu { position: relative; display: inline-flex; flex: none; }
body.home-paper .prompt-menu .prompt-select-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
body.home-paper .prompt-menu-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid rgba(27, 22, 19, .2); border-radius: 999px; background: rgba(250, 248, 245, .22); color: #1b1613; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
body.home-paper .prompt-menu-button:hover, body.home-paper .prompt-menu-button[aria-expanded="true"] { border-color: rgba(27, 22, 19, .4); background: #fff; }
body.home-paper .prompt-menu-button:focus-visible { outline: 2px solid #f4a3b2; outline-offset: 2px; }
body.home-paper .prompt-menu-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
body.home-paper .prompt-menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
body.home-paper .prompt-menu-list { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 6px); min-width: 100%; margin: 0; padding: 6px; list-style: none; border: 1px solid rgba(27, 22, 19, .12); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(27, 22, 19, .14); }
body.home-paper .prompt-menu-item { padding: 8px 12px; border-radius: 9px; color: #1b1613; font-size: 13px; white-space: nowrap; cursor: pointer; }
body.home-paper .prompt-menu-item:hover, body.home-paper .prompt-menu-item:focus { background: #fdecef; color: #b3243f; outline: none; }
/* The "new set of prompts" button after the More options chips: a round icon button like the chips. */
body.home-paper .randomize { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px !important; height: 36px !important; padding: 0 !important; border: 1px solid rgba(27, 22, 19, .2) !important; border-radius: 50% !important; background: rgba(250, 248, 245, .22) !important; color: #4f4741; cursor: pointer; }
body.home-paper .randomize:hover { border-color: rgba(27, 22, 19, .4) !important; background: #fff !important; color: #1b1613; }
body.home-paper .randomize svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Showcase song row: arrows + edge fades when there are more songs than fit (heartmula-home-ui.js). */
body.home-paper .sx-songs-frame { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
body.home-paper .sx-songs-frame .sx-songs { flex: 1; scroll-behavior: smooth; }
body.home-paper .sx-songs-frame.has-more-end .sx-songs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
body.home-paper .sx-songs-frame.has-more-start .sx-songs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
body.home-paper .sx-songs-frame.has-more-start.has-more-end .sx-songs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
body.home-paper .sx-songs-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(27, 22, 19, .18); border-radius: 50%; background: #fff; color: #1b1613; box-shadow: 0 4px 12px rgba(27, 22, 19, .12); cursor: pointer; }
body.home-paper .sx-songs-arrow[hidden] { display: none; }
body.home-paper .sx-songs-prev { left: -4px; }
body.home-paper .sx-songs-next { right: -4px; }
body.home-paper .sx-songs-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { body.home-paper .sx-songs-frame { width: 100%; flex: none; } body.home-paper .sx-songs-arrow { display: none !important; } body.home-paper .sx-songs-frame .sx-songs { -webkit-mask-image: none !important; mask-image: none !important; } }

/* Site footer (site_footer.py): a solid paper base, not the page art behind it. */
.home-orbital-preview footer.hmf, body footer.hmf { background: var(--hmf-paper) !important; }

/* Invite a friend, get a free month (2026-12-01): a quiet strip under the plans. */
.plans-invite{grid-column:1/-1;display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;margin-top:22px;padding:18px 20px;border:1px solid #ebe5dd;border-radius:16px;background:#fff;}
.plans-invite[hidden]{display:none;}
.plans-invite-mark{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#fdecef;color:#b3243f;}
.plans-invite-mark svg{width:20px;height:20px;}
.plans-invite-copy{flex:1 1 320px;min-width:0;}
.plans-invite-copy h3{margin:0 0 4px;font-size:17px;font-weight:600;letter-spacing:-.01em;color:#1b1613;}
.plans-invite-copy p{margin:0;font-size:14px;line-height:1.55;color:#6f665e;}
.plans-invite-action{flex:none;min-height:42px;padding:0 18px;border-radius:999px;border:1px solid #1b1613;background:#1b1613;color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}
.plans-invite-action:hover{background:#2e2723;}
.plans-invite-action:focus-visible{outline:2px solid #b3243f;outline-offset:3px;}
@media (max-width:640px){.plans-invite-action{width:100%;}}

/* Christmas (2026-12-06, app/domain/christmas_season.py): the season's one mark, a small rose star, in the
   hero's Christmas tag (settles in once on load) and before the picker's Christmas songs. Gone after
   26 December (the server leaves the star out of the HTML). */
body.home-paper .hero-news .hero-news-tag:has(.xmas-star) { display: inline-flex; align-items: center; gap: 5px; }
body.home-paper .hero-news .xmas-star { width: 11px; height: 11px; fill: #e23d5b; stroke: #e23d5b; stroke-width: 1.2; stroke-linejoin: round; opacity: 1; transform-origin: 50% 55%; animation: hm-xmas-star-settle 900ms cubic-bezier(.2,.9,.25,1.2) 600ms both; }
body.home-paper .plaza-pick-choose .xmas-star { display: inline-block; width: 11px; height: 11px; margin: 0 6px 1px 0; vertical-align: -1px; fill: #e23d5b; stroke: #e23d5b; stroke-width: 1.2; stroke-linejoin: round; }
@keyframes hm-xmas-star-settle { from { opacity: 0; transform: scale(.4) rotate(-72deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.home-paper .hero-news .xmas-star { animation: none; } }
/* Phones: the star costs no line (the pill's text stayed on one line before it). */
@media (max-width: 480px) {
  body.home-paper .hero-news.hero-gift { gap: 7px; }
  body.home-paper .hero-news .hero-news-tag:has(.xmas-star) { gap: 3px; padding-inline: 6px; }
  body.home-paper .hero-news .xmas-star { width: 9px; height: 9px; }
}
