/* ─────────────────────────────────────────────────────────────────────────────
   StoryMint public homepage (WS3, remediation 2026-09, PLAN §5 WS3 item 5).
   Loaded only by static/index.html and i18n/es/pages/index.html. Colours, radii,
   shadows and fonts come from the I12 --sm-* tokens (style.css :root and
   html[data-theme="dark"]); nothing here uses the legacy --bg/--text tokens.
   Class prefix: .hm-*. The blog "What's new" cards use WS5's .sm-blog-latest-*
   markup (W5-F), styled at the end of this file.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Display-font fallbacks (public-site-06) ─────────────────────────────────
   Space Grotesk arrives from Google Fonts with display=swap. Until it does, the
   headings render in a local font, and an untuned local font wraps the hero title
   differently: the Spanish H1 took 3 lines in DejaVu Sans and 2 in Space Grotesk,
   so the swap moved the sub-copy, composer and chips (phone CLS 0.147).
   These faces are local fonts scaled to Space Grotesk's advance widths and
   vertical metrics, so a heading keeps its line breaks when the web font swaps in.
   Nothing is downloaded. Measured on the EN and ES homes (every text node in the
   display font, weights 500/600/700): size-adjust = sum of Space Grotesk advances
   / sum of the local font's advances; ascent/descent-override = Space Grotesk's
   0.984 / 0.292 em divided by size-adjust; Space Grotesk has no line gap.
   One family per metric group: the first one whose local() font exists is used
   (Arial-compatible on Windows, macOS, iOS and ChromeOS; Roboto on Android;
   DejaVu Sans on Linux). 100–549 maps to the regular cut, 550–900 to the bold. */
@font-face { font-family: "Space Grotesk Fallback"; font-weight: 100 549; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Arimo"), local("Liberation Sans"); size-adjust: 106.6%; ascent-override: 92.3%; descent-override: 27.4%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; font-weight: 550 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Arimo Bold"), local("Liberation Sans Bold"); size-adjust: 101.5%; ascent-override: 96.9%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback Roboto"; font-weight: 100 549; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 108%; ascent-override: 91.1%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback Roboto"; font-weight: 550 900; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 107.7%; ascent-override: 91.4%; descent-override: 27.1%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback DejaVu"; font-weight: 100 549; src: local("DejaVu Sans"), local("DejaVuSans"); size-adjust: 98.1%; ascent-override: 100.3%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback DejaVu"; font-weight: 550 900; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); size-adjust: 85.3%; ascent-override: 115.4%; descent-override: 34.2%; line-gap-override: 0%; }

body.hm-page {
  --sm-font-display: "Space Grotesk", "Space Grotesk Fallback", "Space Grotesk Fallback Roboto", "Space Grotesk Fallback DejaVu", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--sm-paper);
  background-image: none;
  color: var(--sm-ink);
  font-family: var(--sm-font-body);
}
.hm { display: block; overflow-x: clip; }
.hm img { max-width: 100%; }
.hm-wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; } /* same box as the header and footer .shell */
.hm-section-pad,
.hm-coloring, .hm-formats, .hm-how, .hm-library, .hm-audience, .hm-news, .hm-pricing, .hm-faq {
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
}

/* ── Type ─────────────────────────────────────────────────────────────────── */
.hm-eyebrow {
  margin: 0 0 .9rem;
  font-family: var(--sm-font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sm-accent);
}
.hm-h2 {
  margin: 0 0 1.1rem;
  font-family: var(--sm-font-display);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.032em;
  color: var(--sm-ink);
  text-wrap: balance;
}
.hm-lead { margin: 0 0 1rem; max-width: 36em; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--sm-ink-2); }
.hm-body { margin: 0 0 1rem; max-width: 38em; font-size: 1rem; line-height: 1.6; color: var(--sm-ink-2); }
.hm-body a, .hm-lead a { color: var(--sm-accent); font-weight: 600; text-underline-offset: .18em; }
.hm-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.hm-head .hm-lead { margin-bottom: 0; }
.hm-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.hm-head--row .hm-h2 { margin-bottom: 0; }

/* ── Buttons and links ────────────────────────────────────────────────────── */
.hm-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--sm-font-body); font-size: .98rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.hm-btn svg { flex: 0 0 auto; transition: transform .18s ease; }
.hm-btn:hover svg { transform: translateX(2px); }
.hm-btn--primary { background: var(--sm-accent); color: var(--sm-on-accent); box-shadow: var(--sm-shadow-card); }
.hm-btn--primary:hover { background: var(--sm-accent-ink); }
.hm-btn--ghost { background: var(--sm-surface); color: var(--sm-ink); border-color: var(--sm-line); }
.hm-btn--ghost:hover { border-color: var(--sm-ink-2); }
.hm-btn--light { background: var(--sm-mint); color: var(--sm-accent-ink); }
.hm-btn--light:hover { background: var(--sm-surface); }
.hm-btn:focus-visible, .hm-link:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.hm-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--sm-accent); font-weight: 650; text-decoration: none; }
.hm-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.hm-link svg { transition: transform .18s ease; }
.hm-link:hover svg { transform: translateX(2px); }

/* ── 1. Hero ──────────────────────────────────────────────────────────────── */
.hm-hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  isolation: isolate;
}
.hm-hero::before {
  /* dotted paper, fading out downwards (Base44-style texture) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--sm-line) 1.2px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 70%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 70%, transparent);
}
.hm-hero-inner { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hm-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.4rem; padding: .3rem .8rem .3rem .35rem;
  border: 1px solid var(--sm-line); border-radius: var(--sm-r-pill); background: var(--sm-surface);
  font-size: .86rem; color: var(--sm-ink-2);
}
.hm-hero-badge span { padding: .1rem .5rem; border-radius: var(--sm-r-pill); background: var(--sm-mint); color: var(--sm-accent-ink); font-weight: 700; font-size: .76rem; }
.hm-h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-family: var(--sm-font-display);
  font-size: clamp(2.55rem, 6.3vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--sm-ink);
  text-wrap: balance;
}
html[lang="es"] .hm-h1 { max-width: 16ch; }
.hm-mark {
  /* a crayon highlight behind "one idea" */
  padding: 0 .06em;
  margin: 0 -.02em;
  border-radius: .18em;
  background-image: linear-gradient(transparent 60%, color-mix(in srgb, var(--sm-crayon-3) 62%, transparent) 60%, color-mix(in srgb, var(--sm-crayon-3) 62%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[data-theme="dark"] .hm-mark {
  background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--sm-crayon-2) 42%, transparent) 62%, color-mix(in srgb, var(--sm-crayon-2) 42%, transparent) 90%, transparent 90%);
}
.hm-hero-sub {
  margin: 1.35rem auto 2.15rem;
  max-width: 34em;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.5;
  color: var(--sm-ink-2);
  text-wrap: balance;
}

/* Composer */
.hm-composer {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: .95rem 1rem .75rem 1.15rem;
  text-align: left;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-r-card);
  box-shadow: var(--sm-shadow-card);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hm-composer:focus-within {
  border-color: color-mix(in srgb, var(--sm-accent) 55%, var(--sm-line));
  box-shadow: var(--sm-shadow-card), 0 0 0 4px color-mix(in srgb, var(--sm-accent) 14%, transparent);
}
.hm-idea {
  display: block; width: 100%; min-height: 3.2em; max-height: 9em; margin: 0; padding: 0;
  border: 0; outline: none; resize: none; background: transparent;
  font-family: var(--sm-font-body); font-size: 1.08rem; line-height: 1.5; color: var(--sm-ink);
}
.hm-idea::placeholder { color: var(--sm-muted); opacity: 1; }
.hm-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .45rem; }
.hm-format { position: relative; min-width: 0; }
.hm-format-select {
  max-width: 100%; min-height: 38px; padding: .4rem 2rem .4rem .75rem; border: 1px solid var(--sm-line); border-radius: 10px;
  background: var(--sm-mint-soft); color: var(--sm-accent-ink); font: inherit; font-size: .9rem; font-weight: 600;
}
.hm-format-btn {
  display: none; align-items: center; gap: .45rem; min-height: 38px; max-width: 100%; padding: .4rem .6rem .4rem .7rem;
  border: 1px solid transparent; border-radius: 10px; background: var(--sm-mint-soft); color: var(--sm-accent-ink);
  font-family: var(--sm-font-body); font-size: .92rem; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.hm-format-btn:hover, .hm-format-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--sm-accent) 30%, transparent); }
.hm-format-btn:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 2px; }
.hm-format-icon { display: inline-flex; }
.hm-format-name { overflow: hidden; text-overflow: ellipsis; }
.hm-format-chev { transition: transform .15s ease; opacity: .8; }
.hm-format-btn[aria-expanded="true"] .hm-format-chev { transform: rotate(180deg); }
.hm-js .hm-format-btn { display: inline-flex; }
.hm-js .hm-format-select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.hm-format-menu {
  position: absolute; z-index: 40; top: calc(100% + .5rem); left: -.35rem;
  width: min(340px, calc(100vw - 48px)); margin: 0; padding: .35rem; list-style: none;
  background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 14px; box-shadow: var(--sm-shadow-pop);
}
.hm-format-menu:focus { outline: none; }
.hm-format-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  padding: .6rem .65rem; border-radius: 10px; cursor: pointer; color: var(--sm-ink);
}
.hm-format-opt:hover, .hm-format-opt.is-active { background: var(--sm-mint-soft); }
.hm-format-opt[aria-selected="true"] { background: var(--sm-mint-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sm-accent) 35%, transparent); }
.hm-opt-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sm-panel); color: var(--sm-accent); }
.hm-opt-text strong { display: block; font-size: .93rem; font-weight: 650; }
.hm-opt-text small { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.3; color: var(--sm-muted); }
.hm-opt-lock, .hm-opt-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.hm-opt-lock { color: var(--sm-muted); }
.hm-opt-badge { padding: .12rem .45rem; border-radius: var(--sm-r-pill); background: var(--sm-mint); color: var(--sm-accent-ink); }
.hm-send {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 10px; background: var(--sm-accent); color: var(--sm-on-accent); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.hm-send:hover { background: var(--sm-accent-ink); transform: translateY(-1px); }
.hm-send:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.hm-reassure { display: inline-flex; align-items: center; gap: .45rem; margin: 1.05rem 0 0; font-size: .92rem; color: var(--sm-muted); }
.hm-reassure svg { color: var(--sm-accent); }
.hm-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .85rem; margin-top: 1.5rem; }
.hm-chip {
  padding: .3rem .15rem; border: 0; background: none; cursor: pointer;
  font-family: var(--sm-font-body); font-size: .98rem; font-weight: 500; color: var(--sm-ink-2);
}
.hm-chip:hover { color: var(--sm-ink); }
.hm-chip[aria-pressed="true"] { color: var(--sm-ink); font-weight: 650; }
.hm-chip[aria-pressed="true"]::before { content: "["; margin-right: .08em; }
.hm-chip[aria-pressed="true"]::after { content: "]"; margin-left: .08em; }
.hm-chip:focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 2px; border-radius: 6px; }
.hm-chip-sep { width: 5px; height: 5px; background: var(--sm-ink-2); opacity: .55; }

/* ── 2. Showcase strip ────────────────────────────────────────────────────── */
/* Tall cards: the art reads at a glance and about five to six are in view at 1440 px (first-load budget). */
.hm-strip { --hm-card-h: clamp(220px, 25vw, 360px); padding: clamp(.5rem, 1.2vw, 1.25rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hm-strip-title {
  margin: 0 0 1.2rem; text-align: center;
  font-family: var(--sm-font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-muted);
}
.hm-marquee {
  position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.hm-marquee::-webkit-scrollbar { display: none; }
.hm-marquee-track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 6px clamp(16px, 4vw, 40px) 14px; list-style: none; }
.hm-marquee.is-running { overflow: hidden; }
.hm-marquee.is-running .hm-marquee-track { padding-inline: 0; animation: hm-marquee var(--hm-dur, 80s) linear infinite; will-change: transform; }
.hm-marquee.is-running:hover .hm-marquee-track,
.hm-marquee.is-running:focus-within .hm-marquee-track,
.hm-marquee.is-paused .hm-marquee-track { animation-play-state: paused; }
@keyframes hm-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--hm-shift, 50%)), 0, 0); } }
.hm-card {
  position: relative; flex: 0 0 auto; height: var(--hm-card-h); aspect-ratio: var(--ar, 2/3);
  border-radius: 12px; overflow: hidden; background: var(--sm-panel); box-shadow: var(--sm-shadow-card);
}
html:not(.hm-js) .hm-card--lazy { display: none; }
.hm-card-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.hm-card-link:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: -3px; border-radius: 12px; }
.hm-card-media, .hm-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-card-media img { object-fit: cover; display: block; }
.hm-card-img { transition: transform .5s ease; }
.hm-card-alt { opacity: 0; background: var(--sm-surface); transition: opacity .45s ease; }
.hm-card-link:hover .hm-card-img, .hm-card-link:focus-visible .hm-card-img { transform: scale(1.03); }
.hm-card-link:hover .hm-card-alt[src], .hm-card-link:focus-visible .hm-card-alt[src] { opacity: 1; }
.hm-card-tag {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .24rem .55rem; border-radius: var(--sm-r-pill);
  background: var(--sm-glass); color: var(--sm-ink); font-size: .72rem; font-weight: 650; line-height: 1.2;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hm-card-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .8rem .75rem;
  background: linear-gradient(to top, var(--sm-scrim), transparent);
  color: var(--sm-on-forest); font-family: var(--sm-font-display); font-size: .92rem; font-weight: 600; line-height: 1.25;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.hm-card-link:hover .hm-card-title, .hm-card-link:focus-visible .hm-card-title { opacity: 1; transform: none; }
.hm-strip-note { margin: 1rem 0 0; text-align: center; font-size: .84rem; color: var(--sm-muted); }
img[data-src]:not([src]) { visibility: hidden; }
html:not(.hm-js) img[data-src] { display: none; } /* without JS the <noscript> twin shows instead */

/* ── 3. Coloring ──────────────────────────────────────────────────────────── */
.hm-coloring { background: var(--sm-panel); border-block: 1px solid var(--sm-line); }
.hm-coloring-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.hm-demo { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.hm-demo-paper {
  padding: clamp(12px, 1.8vw, 20px); background: var(--sm-surface); border: 1px solid var(--sm-line);
  border-radius: 20px; box-shadow: var(--sm-shadow-pop);
}
.hm-demo-view { position: relative; width: min(420px, 78vw); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: var(--sm-surface); }
.hm-demo-view:has(.hm-demo-stage:focus-visible) { outline: 3px solid var(--sm-accent); outline-offset: 6px; }
.hm-demo-stage {
  position: absolute; left: 0; top: var(--crop, 0); width: 100%; aspect-ratio: var(--ar, 2/3);
  cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent; background: var(--sm-surface); outline: none;
}
.hm-demo-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hm-demo-cross {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 26px; height: 26px; transform: translate(-50%, -50%);
  border: 2px solid var(--sm-accent); border-radius: 50%; box-shadow: 0 0 0 2px var(--sm-surface); pointer-events: none; display: none;
}
.hm-demo-cross::before, .hm-demo-cross::after { content: ""; position: absolute; background: var(--sm-accent); }
.hm-demo-cross::before { left: 50%; top: -7px; bottom: -7px; width: 2px; transform: translateX(-50%); }
.hm-demo-cross::after { top: 50%; left: -7px; right: -7px; height: 2px; transform: translateY(-50%); }
.hm-demo-stage.is-keyboard .hm-demo-cross { display: block; }
.hm-demo-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem .6rem;
  padding: .45rem .6rem; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-r-pill); box-shadow: var(--sm-shadow-card);
}
.hm-demo-bucket { display: inline-flex; padding-left: .25rem; color: var(--sm-accent); }
.hm-swatches { display: inline-flex; gap: .4rem; }
.hm-swatch {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid var(--sm-surface); cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 1px var(--sm-line); transition: transform .15s ease, box-shadow .15s ease;
}
.hm-swatch:hover { transform: scale(1.08); }
.hm-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--sm-ink); transform: scale(1.1); }
.hm-swatch:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.hm-demo-sep { width: 1px; height: 22px; background: var(--sm-line); }
.hm-tool {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--sm-r-pill);
  background: transparent; color: var(--sm-ink-2); font-family: var(--sm-font-body); font-size: .86rem; font-weight: 600; cursor: pointer;
}
.hm-tool:hover:not(:disabled) { background: var(--sm-mint-soft); color: var(--sm-ink); }
.hm-tool:disabled { opacity: .45; cursor: default; }
.hm-tool:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 2px; }
.hm-demo-status { min-height: 1.3em; margin: 0; font-size: .86rem; color: var(--sm-muted); text-align: center; }
.hm-coloring-copy { min-width: 0; }
.hm-hint {
  display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0 1.75rem; padding: .5rem .85rem; border-radius: var(--sm-r-pill);
  background: var(--sm-surface); border: 1px solid var(--sm-line); color: var(--sm-accent-ink); font-size: .95rem; font-weight: 600;
}
.hm-hint svg { color: var(--sm-accent); flex: 0 0 auto; }
.hm-flips { margin-top: clamp(3rem, 6vw, 5rem); }
.hm-flips-hint { margin: 0 0 1.1rem; font-size: .95rem; color: var(--sm-ink-2); }
.hm-flip-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.hm-flip-item { min-width: 0; }
.hm-flip {
  display: block; width: 100%; aspect-ratio: var(--ar, 2/3); padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1100px; border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
.hm-flip:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 4px; }
.hm-flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hm-flip:hover .hm-flip-inner { transform: rotateY(-14deg); }
.hm-flip[aria-pressed="true"] .hm-flip-inner { transform: rotateY(180deg); }
.hm-flip-face {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 12px; background: var(--sm-surface);
  box-shadow: var(--sm-shadow-card); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hm-flip-back { transform: rotateY(180deg); border: 1px solid var(--sm-line); }
.hm-flip-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-flip-title {
  display: -webkit-box; margin-top: .65rem; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--sm-font-display); font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--sm-ink);
}

/* ── 4. Formats bento ─────────────────────────────────────────────────────── */
.hm-bento { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(14px, 1.8vw, 22px); }
.hm-tile {
  position: relative; display: grid; min-width: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--sm-line);
  background: var(--sm-surface); color: var(--sm-ink); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease;
}
.hm-tile:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-card); }
.hm-tile:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.hm-tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; padding: clamp(1.4rem, 2.6vw, 2.1rem); }
.hm-tile-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: .35rem; border-radius: 12px; background: var(--sm-surface); color: var(--sm-accent); border: 1px solid var(--sm-line); }
.hm-tile-title { margin: 0; font-family: var(--sm-font-display); font-size: clamp(1.45rem, 2.3vw, 1.95rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.hm-tile-text { font-size: 1.02rem; line-height: 1.5; color: var(--sm-ink-2); }
.hm-tile-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .75rem; font-weight: 650; color: var(--sm-accent); }
.hm-tile:hover .hm-tile-cta svg { transform: translateX(3px); }
.hm-tile-cta svg { transition: transform .18s ease; }
.hm-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: var(--sm-r-pill); font-size: .76rem; font-weight: 700; line-height: 1.2; }
.hm-tag--lock { background: var(--sm-surface); border: 1px solid var(--sm-line); color: var(--sm-ink-2); }
.hm-tile-media[data-note]::after {
  content: attr(data-note); position: absolute; top: 12px; right: 12px; z-index: 1; padding: .22rem .6rem; border-radius: var(--sm-r-pill);
  background: var(--sm-glass); color: var(--sm-ink); font-size: .76rem; font-weight: 700; line-height: 1.2;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hm-tile-media { position: relative; display: block; min-width: 0; }
.hm-tile-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-tile--picture { grid-row: span 2; grid-template-rows: auto 1fr; background: var(--sm-mint-soft); }
.hm-tile--picture .hm-tile-media { padding: 0 clamp(1.2rem, 2.4vw, 2rem) clamp(1.2rem, 2.4vw, 2rem); }
.hm-tile--picture .hm-tile-img { aspect-ratio: 4 / 3; height: auto; object-position: center 38%; border-radius: 16px; box-shadow: var(--sm-shadow-card); }
.hm-tile--picture .hm-tile-media[data-note]::after { top: 12px; right: calc(clamp(1.2rem, 2.4vw, 2rem) + 12px); }
.hm-tile--comic { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); background: var(--sm-panel); }
.hm-tile--comic .hm-tile-media { min-height: 260px; }
.hm-tile--comic .hm-tile-img { position: absolute; inset: 0; object-position: top center; }
.hm-tile--novel { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); background: var(--sm-forest); border-color: transparent; color: var(--sm-on-forest); }
.hm-tile--novel .hm-tile-text { color: var(--sm-on-forest); opacity: .86; }
.hm-tile--novel .hm-tile-icon { background: color-mix(in srgb, var(--sm-on-forest) 12%, transparent); border-color: transparent; color: var(--sm-on-forest); }
.hm-tile--novel .hm-tag--lock { background: color-mix(in srgb, var(--sm-on-forest) 12%, transparent); border-color: transparent; color: var(--sm-on-forest); }
.hm-tile--novel .hm-tile-cta { color: var(--sm-on-forest); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.hm-tile--novel .hm-tile-media { display: flex; align-items: flex-end; justify-content: center; padding: clamp(1.2rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.8rem) 0; }
.hm-tile--novel .hm-tile-img { width: min(100%, 200px); height: auto; aspect-ratio: 2 / 3; border-radius: 6px 6px 0 0; box-shadow: var(--sm-shadow-pop); }

/* ── 5. How it works ──────────────────────────────────────────────────────── */
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.hm-step { min-width: 0; }
.hm-step-visual {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 1.35rem; overflow: hidden;
  border-radius: 20px; background: var(--sm-panel); border: 1px solid var(--sm-line);
}
.hm-step-num { font-family: var(--sm-font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--sm-accent); }
.hm-step-title { margin: .4rem 0 .45rem; font-family: var(--sm-font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; color: var(--sm-ink); }
.hm-step-text { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--sm-ink-2); }
.hm-mini { width: 84%; padding: 1rem 1rem .7rem; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 14px; box-shadow: var(--sm-shadow-card); }
.hm-mini-text { margin: 0 0 .9rem; min-height: 2.9em; font-size: .95rem; line-height: 1.45; color: var(--sm-ink); }
.hm-mini-text::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--sm-accent); animation: hm-caret 1.1s steps(1) infinite; }
@keyframes hm-caret { 50% { opacity: 0; } }
.hm-mini-bar { display: flex; align-items: center; justify-content: space-between; }
.hm-mini-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: 8px; background: var(--sm-mint-soft); color: var(--sm-accent-ink); font-size: .76rem; font-weight: 650; }
.hm-mini-send { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sm-accent); color: var(--sm-on-accent); }
.hm-spread { position: relative; display: flex; width: 78%; border-radius: 6px; overflow: hidden; box-shadow: var(--sm-shadow-pop); background: var(--sm-surface); }
.hm-spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 22px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sm-ink) 10%, transparent), transparent); pointer-events: none; }
.hm-spread-img { display: block; width: 50%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--sm-surface); }
.hm-bubble {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .35rem; max-width: calc(100% - 24px);
  padding: .45rem .7rem; border-radius: 14px 14px 4px 14px; background: var(--sm-surface); border: 1px solid var(--sm-line);
  box-shadow: var(--sm-shadow-card); font-size: .8rem; font-weight: 600; color: var(--sm-ink);
}
.hm-bubble svg { color: var(--sm-accent); flex: 0 0 auto; }
.hm-step-cover { display: block; height: 78%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: var(--sm-shadow-pop); margin-bottom: 8%; }
.hm-pills { position: absolute; left: 50%; bottom: 12px; display: flex; gap: .4rem; transform: translateX(-50%); white-space: nowrap; }
.hm-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .65rem; border-radius: var(--sm-r-pill); background: var(--sm-surface); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-card); font-size: .78rem; font-weight: 650; color: var(--sm-ink); }
.hm-pill svg { color: var(--sm-accent); }

/* ── 6. Library ───────────────────────────────────────────────────────────── */
.hm-library { background: var(--sm-mint-soft); border-block: 1px solid var(--sm-line); }
.hm-library-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hm-library-count { margin: .25rem 0 1.5rem; font-family: var(--sm-font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; color: var(--sm-accent-ink); }
.hm-library-stack { position: relative; height: clamp(260px, 30vw, 380px); }
.hm-stack-book { position: absolute; top: 50%; width: 38%; border-radius: 6px 10px 10px 6px; overflow: hidden; box-shadow: var(--sm-shadow-pop); background: var(--sm-surface); transition: transform .3s ease; }
.hm-stack-img { display: block; width: 100%; height: auto; }
.hm-stack-book:nth-child(1) { left: 6%; transform: translateY(-50%) rotate(-9deg); z-index: 1; }
.hm-stack-book:nth-child(2) { left: 31%; transform: translateY(-54%); z-index: 3; width: 40%; }
.hm-stack-book:nth-child(3) { left: 57%; transform: translateY(-48%) rotate(8deg); z-index: 2; }
.hm-library--compact .hm-library-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.hm-library--compact .hm-lead { margin-inline: auto; }
.hm-library--compact .hm-actions { justify-content: center; }

/* ── 7. Who it's for ──────────────────────────────────────────────────────── */
.hm-tablist {
  display: inline-flex; gap: .25rem; max-width: 100%; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); padding: .3rem; overflow-x: auto; scrollbar-width: none;
  background: var(--sm-panel); border: 1px solid var(--sm-line); border-radius: var(--sm-r-pill);
}
.hm-tablist::-webkit-scrollbar { display: none; }
html:not(.hm-js) .hm-tablist { display: none; }
.hm-tab {
  flex: 0 0 auto; padding: .55rem 1.15rem; border: 0; border-radius: var(--sm-r-pill); background: transparent; cursor: pointer;
  font-family: var(--sm-font-body); font-size: .95rem; font-weight: 600; color: var(--sm-ink-2); transition: background .15s ease, color .15s ease;
}
.hm-tab:hover { color: var(--sm-ink); }
.hm-tab[aria-selected="true"] { background: var(--sm-surface); color: var(--sm-ink); box-shadow: var(--sm-shadow-card); }
.hm-tab:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 2px; }
.hm-tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.hm-tabpanel + .hm-tabpanel { margin-top: 2.5rem; }
.hm-js [data-hm-tabs] .hm-tabpanel + .hm-tabpanel { margin-top: 0; }
.hm-js [data-hm-tabs]:not(.is-ready) .hm-tabpanel ~ .hm-tabpanel { display: none; }
.hm-tabpanel:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 6px; border-radius: 12px; }
.hm-tabpanel-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: var(--sm-panel); border: 1px solid var(--sm-line); }
.hm-aud-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hm-tabpanel-label { margin: 0 0 .5rem; font-family: var(--sm-font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-accent); }
.hm-tabpanel-text { margin: 0 0 1.5rem; font-family: var(--sm-font-display); font-size: clamp(1.6rem, 3.1vw, 2.45rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--sm-ink); text-wrap: balance; }

/* ── 8. What's new (WS5 fills <!-- blog:latest --> with the same classes) ─── */
.hm-news { background: var(--sm-panel); border-block: 1px solid var(--sm-line); }
.sm-blog-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.sm-blog-latest-item { min-width: 0; }
.sm-blog-latest-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; border: 1px solid var(--sm-line);
  background: var(--sm-surface); color: var(--sm-ink); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease;
}
.sm-blog-latest-link:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-card); }
.sm-blog-latest-link:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.sm-blog-latest-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; background: var(--sm-panel); border-bottom: 1px solid var(--sm-line); }
.sm-blog-latest-tag {
  align-self: flex-start; margin: 1.15rem 1.25rem 0; padding: .2rem .55rem; border-radius: var(--sm-r-pill); background: var(--sm-mint-soft);
  color: var(--sm-accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sm-blog-latest-title { display: block; margin: .65rem 1.25rem 0; font-family: var(--sm-font-display); font-size: 1.14rem; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; }
.sm-blog-latest-dek { display: block; margin: .5rem 1.25rem 1.35rem; font-size: .93rem; line-height: 1.5; color: var(--sm-ink-2); }
.sm-blog-latest-date { display: block; margin: auto 1.25rem 1.25rem; padding-top: .7rem; font-size: .86rem; color: var(--sm-muted); }

/* ── 9. Pricing teaser ────────────────────────────────────────────────────── */
.hm-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hm-plan { min-width: 0; }
.hm-plan-link {
  display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.35rem 1.5rem; border-radius: 16px; border: 1px solid var(--sm-line);
  background: var(--sm-surface); color: var(--sm-ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease;
}
.hm-plan-link:hover { border-color: var(--sm-accent); transform: translateY(-2px); }
.hm-plan-link:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
.hm-plan--free .hm-plan-link { background: var(--sm-mint-soft); }
.hm-plan-name { margin: 0 0 .95rem; font-family: var(--sm-font-body); font-size: .98rem; font-weight: 700; color: var(--sm-ink); }
.hm-plan-price { display: flex; align-items: baseline; gap: .2rem; margin: 0 0 .65rem; }
.hm-plan-price strong { font-family: var(--sm-font-display); font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
.hm-plan-per { font-size: .9rem; color: var(--sm-muted); }
.hm-plan-line { margin: 0; font-size: .93rem; line-height: 1.45; color: var(--sm-ink-2); }

/* ── 10. FAQ ──────────────────────────────────────────────────────────────── */
.hm-faq { border-top: 1px solid var(--sm-line); }
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.hm-faq-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.hm-faq-list { border-top: 1px solid var(--sm-line); }
.hm-faq-item { border-bottom: 1px solid var(--sm-line); }
.hm-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem .1rem; cursor: pointer; list-style: none;
  font-family: var(--sm-font-display); font-size: clamp(1.02rem, 1.4vw, 1.14rem); font-weight: 600; line-height: 1.35; color: var(--sm-ink);
}
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-item summary:focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 2px; border-radius: 8px; }
.hm-faq-icon { flex: 0 0 auto; color: var(--sm-accent); transition: transform .2s ease; }
.hm-faq-item[open] .hm-faq-icon { transform: rotate(45deg); }
.hm-faq-a p { max-width: 62ch; margin: -.2rem 0 1.4rem; font-size: 1rem; line-height: 1.65; color: var(--sm-ink-2); }

/* ── 11. CTA band ─────────────────────────────────────────────────────────── */
.hm-cta { padding-block: 0 clamp(4rem, 8vw, 6.5rem); }
.hm-cta-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2rem; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); border-radius: 28px; background: var(--sm-forest); color: var(--sm-on-forest);
}
.hm-cta .hm-h2 { color: var(--sm-on-forest); margin-bottom: 1.8rem; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hm-cta-note { margin: 1rem 0 0; font-size: .92rem; color: var(--sm-on-forest); opacity: .85; }
.hm-cta .hm-btn--light:focus-visible { outline-color: var(--sm-mint); }
.hm-cta-art { position: relative; height: clamp(220px, 26vw, 320px); }
.hm-cta-page { position: absolute; top: 50%; width: 40%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--sm-surface); box-shadow: var(--sm-shadow-pop); }
.hm-cta-page:nth-child(1) { left: 4%; transform: translateY(-50%) rotate(-10deg); }
.hm-cta-page:nth-child(2) { left: 30%; transform: translateY(-56%) rotate(2deg); z-index: 2; }
.hm-cta-page:nth-child(3) { left: 56%; transform: translateY(-46%) rotate(11deg); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hm-flip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-coloring-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-coloring-copy { order: -1; }
  .hm-bento { grid-template-columns: minmax(0, 1fr); }
  .hm-tile--picture { grid-row: auto; }
  .hm-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .hm-library-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-tabpanel { grid-template-columns: minmax(0, 1fr); }
  .sm-blog-latest { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .hm-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-faq-head { position: static; }
  .hm-cta-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hm-hero { padding-top: 2.5rem; }
  .hm-h1 { letter-spacing: -.04em; }
  .hm-hero-sub { margin: 1rem auto 1.6rem; }
  .hm-composer { padding: .8rem .8rem .65rem .95rem; }
  .hm-idea { font-size: 1rem; }
  .hm-format-menu { left: -.2rem; }
  .hm-chip { font-size: .92rem; }
  .hm-flip-row { display: flex; gap: 12px; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: 4px clamp(16px, 4vw, 40px) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-flip-row::-webkit-scrollbar { display: none; }
  .hm-flip-item { flex: 0 0 42%; scroll-snap-align: start; }
  .hm-tile--comic, .hm-tile--novel { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hm-tile--comic .hm-tile-media { min-height: 220px; }
  .hm-demo-tools { border-radius: 18px; }
  .hm-swatch { width: 28px; height: 28px; }
  .hm-chip-sep { display: none; }
  .hm-chips { gap: .3rem 1.1rem; }
  .hm-tablist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  .hm-tab { padding: .55rem .3rem; font-size: .86rem; border-radius: 12px; }
  .hm-library-stack { height: 230px; }
  .hm-tabpanel-text { font-size: 1.5rem; }
  .hm-plan-link { padding: 1.1rem 1rem 1.2rem; }
  .hm-plan-price strong { font-size: 1.55rem; }
  .hm-cta-inner { border-radius: 22px; }
  .hm-cta-art { height: 200px; }
}
@media (max-width: 380px) {
  .hm-plans { grid-template-columns: minmax(0, 1fr); }
  .hm-tile--comic, .hm-tile--novel { grid-template-columns: minmax(0, 1fr); }
  .hm-tile--comic .hm-tile-media { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-marquee.is-running .hm-marquee-track { animation: none; }
  .hm-mini-text::after { animation: none; }
  .hm-flip-inner, .hm-card-img, .hm-card-title, .hm-tile, .hm-plan-link, .sm-blog-latest-link { transition: none; }
}

/* ── Design polish 2026-10 (tokens: style.css "Additive polish tokens") ─────────────────────────────────────────
   The hero composer as the centrepiece: a gradient ring and a soft green glow on a faint wash, brighter on focus.
   Buttons get depth and a press; tiles and plan links lift with a layered shadow. */
.hm-hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1000px, 100%); height: 46%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--sm-mint) 32%, transparent), transparent 72%);
  filter: blur(10px);
}
.hm-composer {
  border: 1px solid transparent; border-radius: var(--sm-r-xl);
  background: linear-gradient(var(--sm-surface), var(--sm-surface)) padding-box, var(--sm-glow-ring) border-box;
  box-shadow: var(--sm-shadow-md), var(--sm-glow);
  transition: box-shadow var(--sm-dur) var(--sm-ease), background var(--sm-dur) var(--sm-ease);
}
.hm-composer:hover { box-shadow: var(--sm-shadow-lg), var(--sm-glow); }
.hm-composer:focus-within {
  border-color: transparent;
  background: linear-gradient(var(--sm-surface), var(--sm-surface)) padding-box,
              linear-gradient(135deg, var(--sm-accent), color-mix(in srgb, var(--sm-accent) 45%, var(--sm-mint)) 45%, color-mix(in srgb, var(--sm-gold) 70%, var(--sm-accent))) border-box;
  box-shadow: var(--sm-ring), var(--sm-shadow-lg), 0 28px 70px -26px color-mix(in srgb, var(--sm-accent) 60%, transparent);
}
.hm-format-btn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sm-accent) 14%, transparent); }
.hm-format-menu { border-radius: var(--sm-r-lg); box-shadow: var(--sm-shadow-lg); }
.hm-send {
  box-shadow: var(--sm-shadow-btn), 0 4px 12px -4px color-mix(in srgb, var(--sm-accent) 60%, transparent);
  transition: background-color var(--sm-dur) var(--sm-ease), box-shadow var(--sm-dur) var(--sm-ease), transform var(--sm-dur-fast) var(--sm-ease);
}
.hm-send:hover { box-shadow: var(--sm-shadow-btn), 0 8px 18px -6px color-mix(in srgb, var(--sm-accent) 70%, transparent); }
.hm-send:active { transform: scale(.95); }
.hm-btn { transition: background-color var(--sm-dur) var(--sm-ease), border-color var(--sm-dur) var(--sm-ease), color var(--sm-dur) var(--sm-ease), box-shadow var(--sm-dur) var(--sm-ease), transform var(--sm-dur-fast) var(--sm-ease); letter-spacing: -.005em; }
.hm-btn--primary { box-shadow: var(--sm-shadow-btn), 0 4px 12px -6px color-mix(in srgb, var(--sm-accent) 60%, transparent); }
.hm-btn--primary:hover { box-shadow: var(--sm-shadow-btn), 0 10px 22px -8px color-mix(in srgb, var(--sm-accent) 65%, transparent); }
.hm-btn--ghost { border-color: var(--sm-line-strong); box-shadow: var(--sm-shadow-xs); }
.hm-btn--ghost:hover { background: var(--sm-tint); border-color: color-mix(in srgb, var(--sm-accent) 35%, var(--sm-line)); }
.hm-btn:active { transform: translateY(1px) scale(.99); }
.hm-card { border-radius: 14px; box-shadow: var(--sm-shadow-md); }
.hm-tile { border-color: color-mix(in srgb, var(--sm-line) 85%, transparent); box-shadow: var(--sm-shadow-sm); transition: transform .28s var(--sm-ease), box-shadow .28s var(--sm-ease), border-color .2s ease; }
.hm-tile:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow-lift); border-color: color-mix(in srgb, var(--sm-accent) 22%, var(--sm-line)); }
.hm-plan-link { box-shadow: var(--sm-shadow-sm); transition: border-color .2s ease, box-shadow .28s var(--sm-ease), transform .28s var(--sm-ease); }
.hm-plan-link:hover { box-shadow: var(--sm-shadow-lg); }

.hm-composer, .hm-composer:focus-within { background-color: var(--sm-surface); }
@media (prefers-reduced-motion: reduce) {
  .hm-composer, .hm-send, .hm-btn, .hm-tile, .hm-plan-link { transition: none; }
  .hm-send:active, .hm-btn:active, .hm-tile:hover, .hm-plan-link:hover { transform: none; }
}
