/* ==========================================================================
   Pop Cafe — product site. The OMO system (header, footer, buttons, icons,
   type, transitions) in Pop Cafe's lavender, with the app's own pixel tiles,
   stickers and editor chrome. No light room: pages stay quick and plain.
   Loaded after omo.css on popcafe.ooooomo.com.
   ========================================================================== */

.theme-pop {
  --page: #eef0f9;
  --page-2: #e3e7f7;
  --card: #ffffff;
  --card-2: #f4f5fc;
  --ink-pop: #17161f;
  --peri: #8598c3;
  --peri-ink: #6274b8;
  --iris: #b3caff;
  --blush: #ff9fd8;
  --violet: #4b4a63;
  --bg: var(--page); --bg-2: var(--card); --fg: var(--ink-pop);
  --fg-mute: rgba(23, 22, 31, .6); --line: rgba(23, 22, 31, .1);
  --room: #8e869b; --lid: #241f2c; --dot: #6f86ff;
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -28px rgba(54, 60, 130, .45);
  background: var(--page);
  color: var(--fg);
}
html:has(body.theme-pop) { scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html:has(body.theme-pop) { scroll-behavior: smooth; } }
.theme-pop ::selection { background: var(--iris); color: var(--ink-pop); }

/* Header: ink on lavender, a soft lavender veil once you scroll. */
.theme-pop .site-header { mix-blend-mode: normal; color: var(--ink-pop); }
.theme-pop .site-header::before {
  content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--page) 45%, rgba(238, 240, 249, 0));
  opacity: 0; transition: opacity .4s;
}
.is-scrolled .theme-pop .site-header::before { opacity: 1; }
.theme-pop .mobile-menu { background: var(--ink-pop); }
.theme-pop[data-page] .brand-link { opacity: 1; transform: none; pointer-events: auto; }
.header-get {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-right: 6px; padding: 0 16px 0 14px;
  border-radius: 999px; background: var(--ink-pop); color: #fff; font: 600 14px/1 var(--display);
  transition: transform .5s var(--spring), background-color .3s;
}
.header-get svg { width: 14px; height: 17px; }
.header-get:hover { transform: translateY(-1px); background: #2b2940; }
.header-get:active { transform: scale(.96); }
@media (max-width: 860px) { .header-get { display: none; } }

/* Header mark: the Pop Café wordmark as a tintable mask. The app icon lives in the
   favicon, the download section and the footer, not here: its pastels fight the ink wordmark. */
.pop-mark {
  display: block; width: 74px; aspect-ratio: 1204 / 724; background: currentColor;
  -webkit-mask: url('/studio/product/pop-cafe-mark.png') center / contain no-repeat;
  mask: url('/studio/product/pop-cafe-mark.png') center / contain no-repeat;
}

/* ---------------------------------------------------------------- shared bits */
.pc-display { font: 600 clamp(52px, 7.2vw, 120px)/0.9 var(--display); letter-spacing: -0.055em; text-wrap: balance; }
.pc-display--center { text-align: center; }
.pc-title { font: 600 clamp(38px, 4.8vw, 74px)/0.96 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.pc-eyebrow { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--peri-ink); margin-bottom: 18px; }
.pc-lede { margin-top: 22px; max-width: 36ch; font: 400 clamp(17px, 1.35vw, 21px)/1.45 var(--text); color: var(--fg-mute); text-wrap: pretty; }
.pc-lede a, .pc-sub a:not(.arrow-link) { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.pc-fine { margin-top: 16px; font: 500 14px/1.3 var(--display); color: var(--fg-mute); }
.pc-sub { margin-top: 18px; color: var(--fg-mute); }
.theme-pop code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(98, 116, 184, .12); color: var(--fg); }

.pc-section { padding-block: clamp(72px, 8.5vw, 132px); }
.pc-section--tint { background: var(--page-2); }
.pc-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 60px); }
.pc-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.pc-head--row .arrow-link { flex: none; margin-bottom: 8px; }
.pc-head--center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* App Store badge (replace with Apple's official artwork at launch). */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #000; color: #fff; box-shadow: 0 14px 28px -16px rgba(10, 10, 30, .7);
  transition: transform .5s var(--spring), box-shadow .3s;
}
.store-badge svg { width: 21px; height: 25px; flex: none; }
.store-badge span { display: grid; gap: 2px; text-align: left; }
.store-badge small { font: 500 11px/1 var(--text); letter-spacing: .01em; opacity: .9; }
.store-badge b { font: 600 21px/1 var(--display); letter-spacing: -0.02em; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -18px rgba(10, 10, 30, .75); }
.store-badge:active { transform: scale(.97); }
.store-badge--small { height: 46px; border-radius: 13px; padding: 0 18px 0 14px; }
.store-badge--small svg { width: 17px; height: 20px; }
.store-badge--small b { font-size: 17px; }
.store-badge--small small { font-size: 9.5px; }
.store-badge--large { height: 64px; border-radius: 18px; padding: 0 26px 0 22px; }
.store-badge--large b { font-size: 24px; }
.pc-ghost {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--display); box-shadow: inset 0 0 0 1.5px rgba(23, 22, 31, .18);
  transition: box-shadow .3s, background-color .3s, transform .5s var(--spring);
}
.pc-ghost svg { width: 16px; height: 16px; transition: transform .5s var(--spring); }
.pc-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(23, 22, 31, 0), var(--shadow-soft); }
.pc-ghost:hover svg { transform: translateX(3px); }

.sticker {
  position: absolute; z-index: 3; height: auto; pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(54, 60, 130, .22));
  animation: sticker-float 7s var(--ease-in-out) infinite;
}
@keyframes sticker-float { 50% { translate: 0 -12px; rotate: 4deg; } }

/* ---------------------------------------------------------------- hero */
.pc-hero { position: relative; overflow: clip; padding: calc(var(--header-h) + clamp(20px, 4vw, 64px)) 0 clamp(64px, 8vw, 120px); }
.pc-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(98, 116, 184, .28) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 46%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 46%, #000 20%, transparent 72%);
}
.pc-hero::after {
  content: ''; position: absolute; z-index: -1; right: -10%; top: 0; width: 70%; height: 100%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(179, 202, 255, .7), transparent), radial-gradient(closest-side at 70% 80%, rgba(255, 159, 216, .35), transparent);
}
.pc-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.pc-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 15px 5px 5px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-soft); font: 600 14px/1 var(--display); margin-bottom: 26px;
}
.pc-kicker img { width: 28px; height: 28px; border-radius: 8px; }
.pc-hero .pc-lede { max-width: 33ch; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.pc-hero-media { position: relative; display: grid; place-items: center; padding-block: 20px; }
.s-disco { width: clamp(80px, 9vw, 140px); left: 2%; top: 8%; }
.s-star { width: clamp(64px, 7vw, 110px); right: 4%; top: 2%; animation-delay: -2s; }
.s-cd { width: clamp(80px, 9vw, 136px); right: -2%; bottom: 16%; animation-delay: -4s; }
.s-heart { width: clamp(56px, 6vw, 96px); left: 8%; bottom: 8%; animation-delay: -1s; }

/* The device: an iPhone running Pop Cafe's editor. The shell is the app's own art. */
.device {
  position: relative; z-index: 2; width: clamp(250px, min(24vw, (100svh - 150px) / 2.25), 360px); padding: 2.6%;
  border-radius: 15.5% / 7.3%;
  background: linear-gradient(150deg, #34323f, #121118 55%, #24222c);
  box-shadow: inset 0 0 0 1.5px #5e5b70, inset 0 0 0 4px #17161c, 0 60px 90px -44px rgba(40, 44, 110, .6), 0 24px 50px -30px rgba(40, 44, 110, .4);
}
.device-screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 13.4% / 6.2%; overflow: hidden; container-type: inline-size; background: #cdd2e6; }
.device-shell { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.device-island { display: none; }
.editor {
  position: absolute; left: 2.65%; top: 6.56%; right: 2.57%; bottom: 5.26%; z-index: 1;
  border-radius: 6cqw; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(rgba(130, 142, 200, .32) .45px, transparent .8px) 0 0 / 2.6cqw 2.6cqw, linear-gradient(#f5f6fe, #e4e7f8);
}
.editor-bar { display: flex; justify-content: flex-end; align-items: center; gap: 2.4cqw; padding: 6cqw 4.6cqw 0; }
.editor-bar img { height: 7.6cqw; width: auto; }
.ed-aspect { width: 7.6cqw; height: 7.6cqw; border-radius: 1.4cqw; background: var(--iris); box-shadow: inset 0 0 0 .5cqw #8ea0dc; }
.editor-canvas {
  width: 84cqw; aspect-ratio: 1; margin: auto; border-radius: 1.2cqw; overflow: hidden; background: #03040a;
  box-shadow: 0 0 0 .4cqw rgba(255, 255, 255, .8), 0 3cqw 7cqw -2cqw rgba(48, 52, 120, .45);
}
.editor-canvas video { display: block; width: 100%; height: 100%; object-fit: cover; }
.editor-sheet {
  position: relative; padding: 2.6cqw 3.6cqw 5cqw; border-radius: 6cqw 6cqw 0 0;
  background: rgba(236, 238, 251, .94); box-shadow: inset 0 .3cqw 0 rgba(255, 255, 255, .9), 0 -2cqw 5cqw -3cqw rgba(48, 52, 120, .2);
  color: #7d86b4;
}
.editor-sheet::before { content: ''; display: block; width: 10cqw; height: .9cqw; margin: 0 auto 2.4cqw; border-radius: 1cqw; background: #c5cbe6; }
.ed-tabs { display: flex; gap: 1.6cqw; align-items: center; }
.ed-motion { display: inline-flex; align-items: center; gap: 1.2cqw; height: 6cqw; padding: 0 2.6cqw 0 1.6cqw; border-radius: 6cqw; background: #f7a2d8; color: #fff; font: 700 2.6cqw/1 var(--display); letter-spacing: .06em; }
.ed-motion b { width: 3cqw; height: 3cqw; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 .7cqw #f7a2d8, 0 0 0 .3cqw #fff; }
.ed-lens { width: 6cqw; height: 6cqw; border-radius: 1.6cqw; background: #d7dcf3; box-shadow: inset 0 0 0 .4cqw #b9c0e3; }
.ed-transport { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqw; padding: 0 1cqw; font: 600 2.4cqw/1 var(--display); }
.ed-transport svg { width: 3.4cqw; height: 3.4cqw; }
.ed-play svg { width: 4.4cqw; height: 4.4cqw; color: #6f78b6; }
.ed-wave, .ed-off { display: inline-flex; align-items: center; gap: .8cqw; opacity: .85; }
.ed-off svg { width: 2.8cqw; height: 2.8cqw; }
.ed-play { margin: 0 2cqw; }
.ed-skip { display: inline-flex; margin-left: auto; color: #8b93c4; opacity: .7; }
.ed-skip--next { margin-left: 0; }
.ed-key { width: 2.6cqw; height: 2.6cqw; margin-left: auto; rotate: 45deg; border-radius: .5cqw; box-shadow: inset 0 0 0 .5cqw #8b93c4; }
.ed-track {
  --pps: 8cqw;
  position: relative; height: 15cqw; margin-top: 3cqw; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ed-strip { position: absolute; left: 50%; top: 0; bottom: 0; width: calc(var(--dur) * var(--pps)); transform: translateX(calc(var(--now, 0) * var(--pps) * -1)); will-change: transform; }
.ed-strip .key { position: absolute; top: 1.4cqw; left: calc(var(--t) * var(--pps)); width: 2.4cqw; height: 2.4cqw; margin-left: -1.2cqw; rotate: 45deg; border-radius: .4cqw; background: #8b9be4; }
.ed-strip .seg {
  position: absolute; top: 4.6cqw; height: 4.2cqw; left: calc(var(--a) * var(--pps) + 1.8cqw); width: calc((var(--b) - var(--a)) * var(--pps) - 3.6cqw);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1 19C30 19 40 2 99 1' fill='none' stroke='%237f8fdc' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.ed-ruler { position: absolute; left: 0; right: 0; bottom: 1cqw; height: 3cqw; }
.ed-ruler i { position: absolute; bottom: 0; left: calc(var(--t) * var(--pps)); width: 1px; height: 1.2cqw; background: #aab1d6; }
.ed-ruler i.major { height: 2.4cqw; background: #8b93c4; }
.ed-head { position: absolute; left: 50%; top: 0; bottom: .6cqw; width: 2px; margin-left: -1px; background: #6f78b6; border-radius: 2px; }
.ed-head::before { content: ''; position: absolute; left: 50%; top: 0; width: 2.4cqw; height: 2cqw; translate: -50% 0; background: #6f78b6; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ed-time { display: block; margin-top: .6cqw; text-align: center; font: 600 2.8cqw/1 var(--display); font-variant-numeric: tabular-nums; color: #6f78b6; letter-spacing: .04em; }

/* ---------------------------------------------------------------- three moves */
.move { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(28px, 6vw, 110px); padding-block: clamp(24px, 4vw, 60px); }
.move + .move { margin-top: clamp(24px, 4vw, 56px); }
.move--flip .move-copy { order: 2; }
.move-step { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); color: var(--peri-ink); }
.move-step span { display: grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); color: var(--fg); font-size: 13px; }
.move h3 { margin-top: 20px; font: 600 clamp(32px, 3.4vw, 54px)/1 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.move-copy > p:not(.move-step) { margin-top: 18px; max-width: 42ch; font: 400 clamp(16px, 1.2vw, 19px)/1.5 var(--text); color: var(--fg-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font: 500 14px/1 var(--display); }

/* Depth demo: the TV room as a picture, then as the layers it is made of. */
.depth {
  --tx: 0; --ty: 0;
  position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; margin-inline: auto;
  border-radius: clamp(24px, 3vw, 40px); overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff, #dde2f6 70%);
  box-shadow: var(--shadow-soft);
  perspective: 1500px;
}
.depth-stage { position: absolute; left: 13%; right: 13%; top: 7%; aspect-ratio: 1; transform-style: preserve-3d; transition: transform 1.5s var(--ease-out); }
.depth[data-state='space'] .depth-stage { transform: translateY(2%) rotateX(calc(12deg - var(--ty) * 10deg)) rotateY(calc(-38deg + var(--tx) * 16deg)) scale(.8); }
.dl { position: absolute; inset: 0; margin: 0; transform-style: preserve-3d; transition: transform 1.5s var(--ease-out); transition-delay: calc(var(--i) * 30ms); }
.dl img { display: block; width: 100%; height: 100%; }
.dl:first-child img { border-radius: 12px; }
.dl::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  border: 1.5px solid rgba(111, 134, 255, .55); background: rgba(179, 202, 255, .07);
  opacity: 0; transition: opacity .6s;
}
.depth[data-state='space'] .dl { transform: translateZ(calc((var(--i) - 3.5) * 54px)); }
.depth[data-state='space'] .dl::before { opacity: 1; }
.dl figcaption {
  position: absolute; right: -6px; top: calc(4% + var(--i) * 11%); translate: 100% 0;
  padding: 5px 9px; border-radius: 999px; background: rgba(23, 22, 31, .84); color: #fff;
  font: 600 11px/1 var(--display); letter-spacing: .02em; white-space: nowrap;
  opacity: 0; transition: opacity .5s;
}
.depth[data-state='space'] .dl figcaption { opacity: 1; transition-delay: .7s; }
.depth-toggle {
  position: absolute; left: 50%; bottom: 4.5%; z-index: 5; translate: -50% 0;
  display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.depth-toggle button { height: 34px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--display); color: var(--fg-mute); transition: background-color .3s, color .3s; }
.depth-toggle button[aria-pressed='true'] { background: var(--ink-pop); color: #fff; }

/* Move: a render with the curve it rides on. */
.film-card { position: relative; width: 100%; max-width: 580px; margin-inline: auto; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: #0c0c14; box-shadow: 0 50px 80px -50px rgba(40, 44, 110, .65); }
.film-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
.curve-chip {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 18px; background: rgba(245, 246, 254, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--violet); font: 600 13px/1 var(--display); box-shadow: 0 12px 30px -16px rgba(20, 20, 60, .5);
}
.curve-chip svg { width: 92px; height: 50px; fill: none; }
.cc-grid { stroke: #cdd2ea; stroke-width: 1.4; }
.cc-path { stroke: #6f86ff; stroke-width: 2.6; stroke-linecap: round; }
.cc-handle { stroke: #aab3df; stroke-width: 1.4; stroke-dasharray: 2 3; }
.curve-chip circle { fill: var(--blush); stroke: #fff; stroke-width: 1.4; }

/* Share: three formats, three renders. */
.formats { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; max-width: 620px; margin-inline: auto; }
.format--movie { grid-column: 1 / -1; }
.format { margin: 0; padding: 10px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.format-media { position: relative; border-radius: 18px; overflow: hidden; background: #0c0c14; }
.format--live .format-media, .format--gif .format-media { flex: 1; aspect-ratio: auto !important; min-height: 160px; }
.format-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.format figcaption { display: flex; align-items: center; gap: 9px; padding: 12px 6px 4px; font: 600 15px/1 var(--display); }
.format figcaption img { width: 24px; height: 24px; image-rendering: pixelated; }
.format figcaption em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--fg-mute); font-size: 13px; }
.live-badge { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, .88); color: #222; font: 700 10.5px/1 var(--display); letter-spacing: .1em; }

/* ---------------------------------------------------------------- work */
.work-card { margin: 0; }
.work-media { position: relative; border-radius: clamp(18px, 2vw, 26px); overflow: hidden; background: #0c0c14; box-shadow: 0 40px 70px -48px rgba(40, 44, 110, .7); }
.work-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.work-meta h3 { font: 600 19px/1.1 var(--display); letter-spacing: -0.02em; }
.work-meta span { font: 500 14px/1.2 var(--display); color: var(--fg-mute); white-space: nowrap; }
.work-line { margin-top: 10px; max-width: 54ch; padding: 0 4px; color: var(--fg-mute); line-height: 1.5; }
.work-spec { margin-top: 10px; padding: 0 4px; font: 600 13px/1 var(--display); letter-spacing: .02em; color: var(--peri-ink); }
.work-rail {
  --inset: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset); padding: 4px var(--inset) 24px;
  scrollbar-width: none; cursor: grab;
}
.work-rail::-webkit-scrollbar { display: none; }
.work-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work-rail .work-card { flex: none; scroll-snap-align: start; }
.work-rail .work-media { height: clamp(300px, 32vw, 460px); width: auto; }

/* ---------------------------------------------------------------- tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; min-height: clamp(190px, 16vw, 230px); padding: clamp(18px, 2vw, 26px); border-radius: 26px; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .6s var(--spring); }
.tile:hover { transform: translateY(-4px) rotate(-.5deg); }
.tile img { width: 72px; height: 72px; margin: -6px 0 auto -6px; }
.tile h3 { margin-top: 22px; font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; }
.tile p { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--fg-mute); }

/* ---------------------------------------------------------------- guide cards */
.guide-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.guide-card { display: flex; flex-direction: column; padding: 12px 12px 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .6s var(--spring); }
.guide-card:hover { transform: translateY(-4px); }
.guide-art { display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 18px; background: var(--card-2); }
.guide-art img { width: 58%; height: auto; image-rendering: pixelated; transition: transform .7s var(--spring); }
.guide-card:hover .guide-art img { transform: scale(1.08) rotate(-4deg); }
.guide-n { margin: 16px 8px 0; font: 600 12px/1 var(--display); letter-spacing: .06em; color: var(--peri-ink); }
.guide-card h3 { margin: 8px 8px 0; font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; }
.guide-card p { margin: 8px 8px 0; font-size: 14px; line-height: 1.45; color: var(--fg-mute); }

/* ---------------------------------------------------------------- pricing */
.billing { display: inline-flex; margin-top: 30px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); }
.billing button { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--display); color: var(--fg-mute); transition: background-color .3s, color .3s; }
.billing button[aria-pressed='true'] { background: var(--ink-pop); color: #fff; }
.billing em { margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--blush); color: #3c1533; font: 700 11.5px/1 var(--display); font-style: normal; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: clamp(12px, 1.6vw, 20px); }
.plan { position: relative; display: flex; flex-direction: column; padding: 10px 10px clamp(24px, 2.6vw, 34px); border-radius: 32px; background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; }
.plan-banner { position: relative; height: clamp(150px, 14vw, 190px); border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #f4f5ff, #e3e7fb); }
.plan-banner img { position: absolute; }
.plan-banner--free .b1 { width: 34%; left: 8%; top: 18%; rotate: -10deg; }
.plan-banner--free .b2 { width: 28%; left: 40%; top: 30%; rotate: 8deg; }
.plan-banner--free .b3 { width: 30%; right: 6%; top: 10%; rotate: 14deg; }
.plan-banner--pro { background: #4f8cff; }
.plan-banner--pro img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; }
.plan-body { display: flex; flex-direction: column; flex: 1; padding: 0 clamp(14px, 2vw, 26px); }
.plan h3 { display: flex; align-items: center; gap: 10px; margin-top: 26px; font: 600 28px/1 var(--display); letter-spacing: -0.03em; }
.pro-tag { padding: 5px 9px 6px; border-radius: 9px; background: linear-gradient(135deg, #5b8dff, #ff8fd5); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .02em; rotate: -4deg; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.plan-price b { font: 600 clamp(48px, 4.6vw, 64px)/1 var(--display); letter-spacing: -0.045em; }
.plan-price span { font: 500 15px/1 var(--display); color: var(--fg-mute); }
.plan-note { margin-top: 10px; min-height: 1.4em; color: var(--fg-mute); }
.plans[data-period='year'] [data-price-month], .plans[data-period='year'] [data-per-month],
.plans[data-period='month'] [data-price-year], .plans[data-period='month'] [data-per-year] { display: none; }
.plan-list { display: grid; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.35; }
.plan-list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--peri-ink); }
.plan--pro .plan-list svg { color: #ff6fc8; }
.plan-cta { display: grid; place-items: center; height: 54px; margin-top: auto; border-radius: 999px; background: var(--ink-pop); color: #fff; font: 600 16px/1 var(--display); transition: transform .5s var(--spring), background-color .3s; }
.plan-cta:hover { transform: translateY(-2px); background: #2b2940; }
.plan-cta--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px rgba(23, 22, 31, .18); }
.plan-cta--ghost:hover { background: var(--card-2); }
.plans-fine { max-width: 60ch; margin: 28px auto 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--fg-mute); }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 6vw, 110px); }
.faq-grid .pc-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none;
  font: 600 clamp(18px, 1.5vw, 22px)/1.25 var(--display); letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .5s var(--spring), background-color .3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.faq-item summary i::after { rotate: 90deg; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--blush); }
.faq-item summary:hover i { background: var(--iris); }
.faq-a p { max-width: 62ch; padding: 0 2px 24px; line-height: 1.55; color: var(--fg-mute); }
.faq-a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- get */
.pc-get { padding: clamp(40px, 6vw, 100px) 0 clamp(80px, 10vw, 150px); }
.pc-get-inner {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(60px, 8vw, 128px) var(--gutter); border-radius: clamp(28px, 4vw, 56px);
  background: radial-gradient(circle at 20% 10%, #ffffff 0, transparent 40%), linear-gradient(160deg, #dde4ff, #ecdcf6 60%, #ffd9ef);
}
.pc-get .wrap.pc-get-inner { max-width: calc(1440px - var(--gutter) * 2); width: calc(100% - var(--gutter) * 2); }
.pc-get-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 24px 40px -20px rgba(54, 60, 130, .55); }
.pc-get .pc-display { margin-top: 30px; font-size: clamp(46px, 6.4vw, 108px); }
.pc-get .pc-lede { margin: 18px auto 30px; }
.g-star { width: clamp(70px, 8vw, 120px); left: 7%; top: 14%; }
.g-daisy { width: clamp(70px, 8vw, 128px); right: 8%; top: 20%; animation-delay: -3s; }
.g-cd { width: clamp(84px, 9vw, 140px); right: 14%; bottom: 10%; animation-delay: -5s; }

/* ---------------------------------------------------------------- page heads, gallery, guide */
.pc-page-head { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px)); padding-bottom: clamp(40px, 5vw, 72px); }
.pc-page-head .pc-lede { max-width: 52ch; }
.gallery-grid { columns: 3 300px; column-gap: clamp(20px, 2.6vw, 40px); padding-bottom: clamp(40px, 6vw, 80px); }
.gallery-grid .work-card { display: block; break-inside: avoid; margin-bottom: clamp(40px, 5vw, 72px); }

.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.guide-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font: 600 15px/1 var(--display); transition: transform .5s var(--spring); }
.guide-toc a:hover { transform: translateY(-2px); }
.guide-toc img { width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: var(--card-2); image-rendering: pixelated; }
.tour { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 48px); padding: clamp(22px, 3.2vw, 46px); margin-bottom: clamp(40px, 5vw, 80px); border-radius: 34px; background: var(--card); box-shadow: var(--shadow-soft); }
.tour-head img { width: 72px; height: 72px; image-rendering: pixelated; }
.tour-head h2 { margin-top: 16px; font: 600 clamp(28px, 2.6vw, 38px)/1 var(--display); letter-spacing: -0.035em; }
.tour-head p { margin-top: 10px; color: var(--fg-mute); }
.tour-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tour-steps li { padding: 18px 16px 20px; border-radius: 22px; background: var(--card-2); }
.tour-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-pop); color: #fff; font: 600 14px/1 var(--display); }
.tour-steps h3 { margin-top: 16px; font: 600 18px/1.1 var(--display); letter-spacing: -0.02em; }
.tour-steps p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--fg-mute); }
.topics { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.topic { display: grid; grid-template-columns: clamp(160px, 18vw, 240px) minmax(0, 1fr); gap: clamp(22px, 4vw, 64px); padding: clamp(22px, 3.2vw, 46px); border-radius: 34px; background: var(--card); box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--header-h) + 20px); }
.topic-art { display: grid; place-items: center; align-self: start; aspect-ratio: 1; border-radius: 26px; background: var(--card-2); }
.topic-art img { width: 64%; height: auto; image-rendering: pixelated; }
.topic h2 { font: 600 clamp(30px, 3.2vw, 48px)/1 var(--display); letter-spacing: -0.04em; }
.topic .pc-eyebrow { margin-bottom: 12px; }
.topic-overview { margin-top: 14px; max-width: 52ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--fg-mute); }
.topic-steps { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; }
.topic-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card-2); line-height: 1.45; }
.topic-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: #3c1533; font: 700 13px/1 var(--display); }
.guide-more { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: clamp(48px, 6vw, 100px); }
.guide-next { display: flex; align-items: center; gap: 16px; padding: 24px 24px 24px 30px; border-radius: 28px; background: var(--ink-pop); color: #fff; transition: transform .6s var(--spring); }
.guide-next:hover { transform: translateY(-3px); }
.guide-next span { font-size: 14px; opacity: .6; }
.guide-next strong { margin-right: auto; font: 600 clamp(24px, 2.4vw, 34px)/1 var(--display); letter-spacing: -0.03em; }
.guide-next b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ink-pop); }
.guide-next b svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- footer (shared structure, Pop colour) */
.theme-pop .site-footer { min-height: 0; display: block; background: var(--card); color: var(--fg); padding: clamp(72px, 8vw, 120px) 0 clamp(24px, 3vw, 36px); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.theme-pop .site-footer::after { display: none; }
.pop-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.pop-foot-brand img { width: 64px; height: 64px; border-radius: 16px; }
.pop-foot-brand p { margin: 18px 0 22px; font: 600 clamp(24px, 2.2vw, 32px)/1.05 var(--display); letter-spacing: -0.035em; }
.pop-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pop-foot-cols h2 { margin-bottom: 14px; font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); }
.pop-foot-cols a { display: block; width: fit-content; padding: 6px 0; font: 500 16px/1.2 var(--display); }
.pop-foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.theme-pop .footer-mail { font-size: min(clamp(30px, 8.6vw, 156px), 16svh); }
.theme-pop .footer-base { margin-top: clamp(40px, 6vw, 80px); align-items: center; }
.made-by { display: inline-flex; align-items: center; gap: 12px; }
.made-by svg { width: 64px; height: auto; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pc-hero-grid { grid-template-columns: 1fr; }
  .pc-hero-media { padding-top: 12px; }
  .device { width: min(74vw, 320px); }
  .move, .faq-grid { grid-template-columns: 1fr; }
  .move--flip .move-copy { order: 0; }
  .faq-grid .pc-head { position: static; }
  .pc-head--row { flex-direction: column; align-items: flex-start; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .guide-row::-webkit-scrollbar { display: none; }
  .guide-card { flex: 0 0 min(64vw, 260px); scroll-snap-align: start; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .tour-steps { grid-template-columns: 1fr 1fr; }
  .topic { grid-template-columns: 1fr; }
  .topic-art { width: 140px; }
  .guide-more { grid-template-columns: 1fr; }
  .pop-foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pc-display { font-size: clamp(46px, 13.5vw, 64px); }
  .tile { min-height: 0; padding: 16px; border-radius: 22px; }
  .tile img { width: 56px; height: 56px; }
  .tile h3 { margin-top: 16px; font-size: 17px; }
  .tile p { font-size: 14px; }
  .formats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .format { padding: 8px; border-radius: 22px; }
  .format figcaption { font-size: 13px; }
  .format figcaption em { display: none; }
  .work-rail .work-media { height: 340px; }
  .tour-steps { grid-template-columns: 1fr; }
  .pop-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curve-chip { left: 10px; bottom: 10px; padding: 8px 12px 8px 8px; }
  .curve-chip svg { width: 70px; height: 38px; }
  .dl figcaption { display: none; }
  .g-star { left: 4%; top: 4%; }
  .g-daisy { right: 4%; top: 6%; }
  .g-cd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
  .depth-stage, .dl { transition-duration: .01s; }
}

/* ---------------------------------------------------------------- home, feather rhythm (v4)
   One headline, the poster, one sentence and the badge; then one screen per sample,
   each playing inside the app's editor. Quiet everywhere else. */
/* Hero: one visual centre. The poster is the hero and fits whole in the first screen;
   the words are a short caption beside it (landscape) or above and below it (portrait). */
.pc-hero--split { display: flex; align-items: center; min-height: 100svh; padding: var(--header-h) 0 0; }
.pc-hero--split::before, .pc-hero--split::after { display: none; }
.pc-hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  gap: clamp(32px, 5vw, 96px); padding-block: clamp(16px, 3svh, 40px);
}
/* The words hang off the same lines as the poster: the title starts level with its top,
   the sentence and the badge end level with its bottom. Left edge = the logo's. */
.pc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding-block: clamp(4px, 1.2svh, 16px); }
.pc-hero-split .pc-display { font-size: clamp(56px, 6.2vw, 96px); line-height: .9; }
.pc-hero-split .pc-display .l { display: block; white-space: nowrap; }
.pc-hero-split .pc-lede { margin-top: auto; max-width: 28ch; font-size: clamp(17px, 1.3vw, 20px); }
.pc-hero-split .pc-actions { margin-top: 24px; }
.pc-hero-split .store-badge { box-shadow: none; }
.pc-hero-split .pc-poster { justify-self: center; }
.pc-poster {
  --ph: calc(100svh - var(--header-h) - clamp(40px, 7svh, 88px));
  width: min(calc(var(--ph) * 1290 / 2796), 44vw); aspect-ratio: 1290 / 2796;
  border-radius: clamp(26px, 2.8vw, 40px); overflow: hidden; background: #0a52e8;
  box-shadow: 0 60px 90px -44px rgba(40, 44, 110, .6), 0 24px 50px -30px rgba(40, 44, 110, .35);
}
.pc-poster [data-popcafe-hero] { width: 100%; height: 100%; }

/* Portrait screens (phones, tall windows, iPad upright): title, then the whole poster
   in what is left of the first screen, then the sentence and the badge. */
@media (max-width: 860px), (orientation: portrait) and (max-width: 1180px) {
  .pc-hero--split { display: block; min-height: 0; padding-top: calc(var(--header-h) + clamp(8px, 2svh, 24px)); }
  .pc-hero-split { --fs: clamp(40px, 10.5vw, 76px); grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding-block: 0 clamp(48px, 8vw, 96px); text-align: center; }
  .pc-hero-copy { display: contents; }
  .pc-hero-split .pc-display { order: 1; font-size: var(--fs); }
  .pc-hero-split .pc-poster {
    order: 2; margin-top: clamp(18px, 2.6svh, 28px);
    --ph: calc(100svh - var(--header-h) - clamp(8px, 2svh, 24px) - var(--fs) * 1.8 - clamp(18px, 2.6svh, 28px) - clamp(20px, 3svh, 32px));
    width: min(calc(var(--ph) * 1290 / 2796), 86vw);
  }
  .pc-hero-split .pc-lede { order: 3; margin: clamp(32px, 5vw, 48px) auto 0; }
  .pc-hero-split .pc-actions { order: 4; justify-content: center; margin-top: 24px; }
}

.pc-section--feats { padding-top: 0; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px); padding-block: clamp(48px, 7vw, 112px); }
.feat--flip .feat-media { order: 2; }
.feat-media { display: grid; place-items: center; }
.feat-copy .pc-lede { max-width: 30ch; margin-top: 22px; }
.device--row { width: clamp(260px, min(26vw, (100svh - 140px) / 2.2), 360px); }
.editor-canvas--tall { flex: 1 1 0; min-height: 0; width: auto; aspect-ratio: 9 / 16; align-self: center; margin: 3.4cqw auto; border-radius: 1.6cqw; }
.feat-more { display: flex; justify-content: center; margin-top: clamp(8px, 2vw, 24px); }

.tile-grid--plain { gap: clamp(40px, 4.4vw, 64px) clamp(24px, 2.6vw, 44px); }
.tile--plain { min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.tile--plain:hover { transform: none; }
.tile--plain img { width: 64px; height: 64px; margin: 0; }
.tile--plain h3 { margin-top: 16px; }

.plans--plain .plan { padding: clamp(26px, 3vw, 40px) clamp(14px, 2vw, 26px) clamp(24px, 2.6vw, 34px); box-shadow: none; }
.plans--plain .plan h3 { margin-top: 0; }
.plans--plain .plan--pro { background: var(--ink-pop); color: #fff; }
.plans--plain .plan--pro .plan-price span, .plans--plain .plan--pro .plan-note { color: rgba(255, 255, 255, .62); }
.plans--plain .plan--pro .plan-list svg { color: var(--blush); }
.plans--plain .plan--pro .plan-cta { background: #fff; color: var(--ink-pop); }
.plans--plain .plan--pro .plan-cta:hover { background: var(--iris); }

.pc-get--plain .pc-get-inner { padding-block: clamp(32px, 5vw, 80px); background: none; }
.pc-get--plain .pc-title { margin-top: 28px; }
.pc-get--plain .pc-lede { margin: 12px auto 30px; }

.gallery-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); align-items: start; padding-bottom: clamp(48px, 7vw, 100px); }

@media (max-width: 860px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
  .feat--flip .feat-media { order: 0; }
  .feat-copy .pc-lede { margin-inline: auto; }
  .device--row { width: min(72vw, 320px); }
  .gallery-row { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; }
}
@media (max-width: 520px) {

  .tile-grid--plain { gap: 32px 18px; }
  .tile--plain img { width: 52px; height: 52px; }
}

/* ---------------------------------------------------------------- documents */
.reading-layout {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 760px); gap: clamp(28px, 5vw, 80px);
  justify-content: center; align-items: start;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 90px)) var(--gutter) clamp(80px, 10vw, 140px);
}
.chapter-rail { position: sticky; top: calc(var(--header-h) + 24px); }
.chapter-rail > p { display: none; }
.chapter-rail ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.chapter-rail a {
  display: block; padding: 7px 12px; border-radius: 999px; font-size: 0; color: var(--ink);
  transition: background-color .3s, opacity .3s; opacity: .55;
}
.chapter-rail a span { font: 500 14px/1.2 var(--display); }
.chapter-rail a:hover, .chapter-rail a.is-current { opacity: 1; background: var(--card); }

.reading-paper {
  min-width: 0; padding: clamp(24px, 4.4vw, 68px); border-radius: var(--radius); background: var(--card);
  font-size: 17px; line-height: 1.62;
}
.reading-paper .breadcrumb { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 52px); font: 500 14px/1 var(--display); opacity: .5; }
.reading-paper .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.reading-paper .signal-label,
.reading-paper .chapter-number,
.reading-paper .note-module > span,
.reading-paper .next-track > span { display: none; }
.reading-paper .article-hero { margin-bottom: clamp(28px, 4vw, 52px); }
.reading-paper h1 { font: 600 clamp(44px, 6.4vw, 96px)/0.92 var(--display); letter-spacing: -0.05em; text-wrap: balance; }
.reading-paper .article-hero p { margin-top: 16px; font: 400 clamp(18px, 1.5vw, 22px)/1.4 var(--text); opacity: .7; }
.reading-paper section { margin-top: clamp(36px, 4.4vw, 56px); scroll-margin-top: calc(var(--header-h) + 20px); }
.reading-paper h2 { font: 600 clamp(24px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance; }
.reading-paper p, .reading-paper li, .reading-paper address { max-width: 66ch; }
.reading-paper p + p { margin-top: 14px; }
.reading-paper a:not(.next-track) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reading-paper ul { margin: 14px 0 0; padding-left: 1.2em; }
.reading-paper li + li { margin-top: 8px; }
.reading-paper address { font-style: normal; }
.reading-paper code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(10, 10, 11, .06); }
.reading-paper .note-module { margin-top: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; }
.reading-paper .note-module h2 { margin-bottom: 10px; }
.note-module-blue { background: #dcefff; }
.note-module-lime { background: #e7f4d2; }
.note-module-violet { background: #ece4ff; }
.reading-paper .check-list { list-style: none; padding: 0; }
.reading-paper .check-list li { position: relative; padding-left: 30px; }
.reading-paper .check-list li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 18px; height: 12px; border-radius: 6px; background: var(--ink);
}
.reading-paper .check-list li::after {
  content: ''; position: absolute; left: 9px; top: calc(.42em + 3px); width: 4px; height: 6px; border-radius: 2px; background: var(--card);
}
.reading-paper .table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 16px; border: 1px solid var(--line-light); }
.reading-paper table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.reading-paper th, .reading-paper td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.reading-paper th { font: 600 14px/1.2 var(--display); background: rgba(10, 10, 11, .03); }
.reading-paper tr:last-child td { border-bottom: 0; }
.reading-paper .license-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.reading-paper .license-list li + li { margin-top: 0; }
.reading-paper .license-list a {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  background: rgba(10, 10, 11, .04); text-decoration: none; transition: background-color .3s;
}
.reading-paper .license-list a:hover { background: rgba(10, 10, 11, .09); }
.reading-paper .license-list.compact a { padding: 10px 14px; }
.reading-paper .next-track {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 2.4vw, 30px); border-radius: 22px; background: var(--ink); color: var(--bone);
  font: 600 clamp(20px, 2vw, 28px)/1.1 var(--display); letter-spacing: -0.025em; transition: transform .6s var(--spring);
}
.reading-paper .next-track:hover { transform: translateY(-3px); }
.reading-paper .next-track b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bone); color: var(--ink); font-weight: 500; }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter); }
.not-found .peek { justify-content: center; margin-bottom: 28px; }
.not-found h1 { font: 600 clamp(44px, 7vw, 110px)/0.92 var(--display); letter-spacing: -0.05em; }
.not-found p { margin: 16px auto 28px; max-width: 34ch; opacity: .65; }

@media (max-width: 860px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .chapter-rail { position: static; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .chapter-rail ol { display: flex; gap: 6px; width: max-content; }
  .chapter-rail a { background: var(--card); }
}
