/* CueClass site — home page, layout v2 (2026-11-01, review/layout-ref/report.md §2–§3).
   One grid for the whole page: content 1200 wide, side padding clamp(20px, 6vw, 120px), one shared left
   edge. Two section-head templates only — A (split: eyebrow + H2 left, words right, top-aligned) for
   sections that end in a list, B (centred: eyebrow → 16 → H2 → 20 → words ≤ 560) for the rest. One H2
   size (44 / 28). White sections: 120 / 72 top and bottom, 64 from head to content, 1px silver rule
   between them. The dark zone (hero + demo projector) is the only dark area; the projector sits wholly
   inside it and the zone ends 80px below the frame.
   Hero text pairs (WCAG): white on the darkest glass ≥ 15:1 · rgba(255,255,255,.78) ≥ 9:1 — the glass is
   kept at ≥ 55% black under the copy so the moving wall never lowers contrast. */

body.page-home {
  --pad: clamp(20px, 6vw, 120px);
  --sec: 96px;
  --head-gap: 64px;
  --rule: #e6ebf1;
}

body.page-home .sv-wrap {
  width: min(100% - 2 * var(--pad), 1200px);
}

/* ---------------------------------------------------------------- header while it sits on the dark zone */

.sv-header {
  transition: background-color 240ms, border-color 240ms;
}

/* near-opaque, so the white projector frame scrolls under a clean dark bar rather than a grey smear */
.has-dark-hero .sv-header {
  background: rgba(7, 10, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.has-dark-hero .sv-brand,
.has-dark-hero .sv-brand:hover {
  color: #fff;
}

.has-dark-hero .sv-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.has-dark-hero .sv-nav a:hover {
  color: #fff;
}

.has-dark-hero .sv-header-cta {
  color: var(--sv-ink);
  background: #fff;
  box-shadow: none;
}

.has-dark-hero .sv-header-cta:hover {
  color: var(--sv-ink);
  background: #e9edf2;
}

.has-dark-hero .sv-menu {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.has-dark-hero .sv-btn:focus-visible,
.has-dark-hero .sv-nav a:focus-visible,
.has-dark-hero .sv-brand:focus-visible,
.has-dark-hero .sv-menu:focus-visible {
  outline-color: #fff;
}

/* an open phone menu is a white sheet: the bar above it turns white too */
.sv-menu-open .has-dark-hero .sv-header {
  background: #fff;
}

.sv-menu-open .has-dark-hero .sv-brand,
.sv-menu-open .has-dark-hero .sv-menu,
.sv-menu-open .has-dark-hero .sv-nav a {
  color: var(--sv-ink);
}

/* ---------------------------------------------------------------- the dark zone: hero + demo projector */

.dk-zone {
  position: relative;
  isolation: isolate;
  margin-top: -64px;
  padding-top: 64px;
  overflow: hidden;
  color: #fff;
  background: #070a12;
}

/* the moving wall, light and glass sit behind the hero copy and the top of the projector, then fade
   to the zone's solid dark well above its lower edge */
.dk-back {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  height: min(100%, 1040px);
  overflow: hidden;
}

.dk-back::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 0%, #070a12 100%);
}

/* the wall: four columns of real effect screens drifting upward, tilted away from the viewer */
.dk-wall {
  position: absolute;
  inset: -18% -12%;
  z-index: -4;
  display: flex;
  gap: 22px;
  opacity: 0;
  filter: saturate(150%) brightness(72%);
  transform: perspective(1600px) rotateX(16deg) rotateZ(-9deg) scale(1.08) translate3d(0, calc(var(--hp, 0) * -80px), 0);
  transition: opacity 1400ms ease;
}

.dk-wall.is-ready {
  opacity: 1;
}

.dk-col {
  flex: 1 1 0;
  min-width: 0;
}

.dk-col img {
  display: none;
}

.dk-col canvas {
  display: block;
}

.dk-col:nth-child(even) {
  margin-top: -120px;
}

.dk-col.is-moving {
  animation: dk-up var(--dur, 40s) linear infinite;
}

.dk-col:nth-child(even).is-moving {
  animation-direction: reverse;
}

.is-paused .dk-col {
  animation-play-state: paused;
}

@keyframes dk-up {
  to {
    transform: translate3d(0, -50%, 0);
  }
}

/* slow flowing light: the icon's orange and two cool tones */
.dk-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.dk-light i {
  position: absolute;
  width: 56vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  animation: dk-flow 22s ease-in-out infinite alternate;
}

.dk-light i:nth-child(1) {
  left: -14vw;
  top: 10vw;
  background: radial-gradient(circle, #ff7a1a 0%, rgba(255, 122, 26, 0) 65%);
}

.dk-light i:nth-child(2) {
  right: -18vw;
  top: -20vw;
  background: radial-gradient(circle, #3b5bdb 0%, rgba(59, 91, 219, 0) 65%);
  animation-duration: 28s;
  animation-delay: -9s;
}

.dk-light i:nth-child(3) {
  left: 30vw;
  top: 10vw;
  width: 40vw;
  background: radial-gradient(circle, #7c8cff 0%, rgba(124, 140, 255, 0) 65%);
  opacity: 0.3;
  animation-duration: 34s;
  animation-delay: -17s;
}

@keyframes dk-flow {
  to {
    transform: translate3d(8vw, -5vw, 0) scale(1.15);
  }
}

/* the frosted pane between the wall and the words: darkest under the copy (top left) */
.dk-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 45% at 22% 26%, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0) 70%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.5) 28%, rgba(7, 10, 18, 0.62) 46%, rgba(7, 10, 18, 0.9) 70%, #070a12 100%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

/* a faint diagonal sheen across the pane, like light on glass */
.dk-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 56%);
}

.dk-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(120% 70% at 70% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 70% at 70% 20%, #000 0%, transparent 70%);
}

html:not(.js) .dk-dots {
  visibility: hidden;
}

/* ---------------------------------------------------------------- hero copy: headline left, words + buttons right */

.dk-hero {
  position: relative;
}

.dk-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 64px;
  padding-top: clamp(32px, 5vh, 56px);
  transform: translate3d(0, calc(var(--hp, 0) * -48px), 0);
  opacity: calc(1 - var(--hp, 0) * 0.85);
}

.dk-kicker {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 24px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dk-h1 {
  grid-column: 1;
  margin: 0;
  font-family: var(--sv-cjk);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

/* 88px at most (type.css's display size tops out at 100px), so more of the projector shows on the first screen */
body.page-home .dk-h1 {
  font-size: min(var(--t-display), 88px);
}

.dk-h1 span,
.dk-lead span {
  display: inline-block;
}

.dk-h1 span {
  display: block;
}

.dk-foot {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 10px;
}

.dk-lead {
  max-width: 30em;
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
}

.dk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.dk-btn-light {
  color: var(--sv-ink);
  background: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.dk-btn-light:hover {
  color: var(--sv-ink);
  background: #eef2f6;
  transform: translateY(-1px);
}

.dk-textlink {
  padding: 10px 4px;
  font-family: var(--sv-cjk);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.dk-textlink span {
  display: inline-block;
  transition: transform 160ms var(--sv-ease), color 160ms;
}

.dk-textlink:hover {
  color: #fff;
}

.dk-textlink:hover span {
  color: var(--sv-orange);
  transform: translateX(3px);
}

.dk-btn-light:focus-visible,
.dk-textlink:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dk-fine {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------------------------------------------------------------- section rhythm and the two head templates */

body.page-home .sv-section {
  position: relative;
  padding-block: var(--sec);
}

body.page-home main > .sv-section + .sv-section {
  border-top: 1px solid var(--rule);
}

body.page-home .sv-h2 {
  max-width: none;
  margin: 0;
  font-size: 44px;
  line-height: 1.2;
}

body.page-home .sv-h2 span {
  display: inline-block;
}

/* a sub line with sentence spans moves whole sentences to the next line */
body.page-home .sv-sub > span {
  display: inline-block;
}

body.page-home .sv-eyebrow {
  margin: 0 0 16px;
}

body.page-home .sv-head {
  max-width: none;
  margin: 0 0 var(--head-gap);
}

body.page-home .sv-head .sv-sub {
  max-width: 34em;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
}

/* A: split — eyebrow and H2 on the left half, the words on the right half, top-aligned with the H2 */
body.page-home .sv-head-a {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
  text-align: left;
}

body.page-home .sv-head-a > .sv-eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

body.page-home .sv-head-a > .sv-h2 {
  grid-column: 1;
  grid-row: 2;
}

body.page-home .sv-head-a > .sv-sub {
  grid-column: 2;
  grid-row: 2;
  padding-top: 8px;
}

/* A with tabs: H2 and words on the left, a row of tabs on the right, bottom-aligned */
body.page-home .sv-head-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 48px;
  row-gap: 24px;
  text-align: left;
}

body.page-home .sv-head-tabs .sv-sub {
  margin-top: 20px;
}

/* B: centred */
body.page-home .sv-head-b {
  display: block;
  text-align: center;
}

body.page-home .sv-head-b .sv-h2 {
  margin-inline: auto;
}

body.page-home .sv-head-b .sv-sub {
  max-width: 560px;
  margin: 20px auto 0;
}

body.page-home .sv-more {
  margin: 32px 0 0;
  text-align: left;
}

/* ---------------------------------------------------------------- 2 · demo: head, toolbar, the projector */

.sv-demo {
  position: relative;
  padding: 56px 0 80px;
}

body.page-home .demo-head {
  margin-bottom: 32px;
}

/* the one question on the site, under the demo's sub line */
body.page-home .demo-ask {
  display: block;
  margin: 10px 0 0;
  font-family: var(--sv-cjk);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

body.page-home .sv-demo .sv-h2 {
  color: #fff;
}

body.page-home .sv-demo .sv-sub {
  color: rgba(255, 255, 255, 0.74);
}

body.page-home .sv-demo .sv-eyebrow {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.demo-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.demo-key {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sv-ink);
  background: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color 160ms;
}

.demo-key:hover {
  background: #eef2f6;
}

.demo-key:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.demo-key.is-busy {
  cursor: default;
  background: #cbd5e1;
}

/* a pulsing orange dot: "press me"; while playing it stays lit */
.demo-key-icon {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sv-orange);
}

.demo-key-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--sv-orange);
  opacity: 0;
  animation: demo-ping 1.8s ease-out infinite;
}

.demo-key.is-busy .demo-key-icon::after {
  animation: none;
}

@keyframes demo-ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

body.page-home .demo-projector {
  width: 100%;
  margin: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.demo-screen > video {
  opacity: 0;
  transition: opacity 420ms ease;
}

.demo-screen.is-on > video {
  opacity: 1;
}

.demo-status {
  text-align: center;
}

/* ---------------------------------------------------------------- 3 · features: sticky preview | rows */

.fx-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}

.fx-grid > * {
  min-width: 0;
}

/* the preview fills the left half and rides at the middle of the window (never under the header),
   level with the row the band in fx.js picks */
.fx-stage {
  --fx-half: 190px;
  grid-column: 1 / span 6;
  position: sticky;
  top: max(96px, calc(50vh - var(--fx-half)));
}

.fx-stage .sv-projector {
  width: 100%;
  margin: 0;
}

.fx-screen > img {
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
}

.fx-screen > img.fx-base,
.fx-screen > img.is-on {
  opacity: 1;
}

.fx-screen > img.is-enter {
  animation: fx-enter 300ms ease both;
}

@keyframes fx-enter {
  from {
    transform: scale(0.985);
  }
  to {
    transform: none;
  }
}

.fx-items {
  grid-column: 7 / -1;
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.fx-item {
  border-bottom: 1px solid var(--rule);
}

.fx-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  width: 100%;
  padding: 30px 4px 30px 20px;
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--sv-muted);
  background: none;
  cursor: pointer;
}

/* the chosen row: ink text and a short ink bar at its left edge */
.fx-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 2px;
  border-radius: 2px;
  background: var(--sv-ink);
  transform: scaleY(0);
  transition: transform 200ms var(--sv-ease);
}

.fx-tab[aria-selected="true"]::before {
  transform: none;
}

.fx-tab .fx-name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--sv-cjk);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
  transition: color 160ms;
}

.fx-tab .fx-line {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--sv-cjk);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
}

.fx-tab[aria-selected="true"] .fx-name,
.fx-tab:hover .fx-name {
  color: var(--sv-ink);
}

.fx-tab:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: -2px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- 4 · themes: tabs beside the head, one wide box */

.th-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.th-tabs::-webkit-scrollbar {
  display: none;
}

.th-tabs .chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
}

@media (min-width: 761px) {
  .page-home .sv-theme-box .showcase {
    --slide-w: min(calc(100vw - 2 * var(--pad) - 260px), 880px);
  }
}

body.page-home .sv-theme-note {
  max-width: none;
  margin: 24px 0 0;
  text-align: left;
}

/* theme captions: the name, then the theme's one-line description, on a solid plate */
.sv-theme-box .tc-caption {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  text-align: center;
}

.sv-theme-box .tc-caption b {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sv-theme-box .tc-caption span {
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.themes.sv-theme-box .tc-slide .tc-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--sv-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 20px -8px rgba(15, 23, 42, 0.25);
  text-shadow: none;
  text-wrap: balance;
}

.themes.sv-theme-box .tc-slide .tc-caption b,
.themes.sv-theme-box .tc-slide .tc-caption span {
  color: var(--sv-ink);
}

.themes.sv-theme-box .tc-slide .tc-caption span {
  color: var(--sv-muted);
  opacity: 1;
}

/* each theme's own edge on the plate (the same as on themes.html) */
.themes.sv-theme-box[data-theme="halftone-comic"] .tc-slide .tc-caption {
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
}

.themes.sv-theme-box[data-theme="pop-collage"] .tc-slide .tc-caption {
  border: 2px solid #111;
  border-radius: 4px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #111;
}

.themes.sv-theme-box[data-theme="pixel-sky"] .tc-slide .tc-caption {
  border-radius: 0;
  box-shadow: 0 -3px 0 #fff, 0 3px 0 #fff, -3px 0 0 #fff, 3px 0 0 #fff, 5px 5px 0 rgba(12, 28, 56, 0.25);
}

.themes.sv-theme-box[data-theme="paper-parade"] .tc-slide .tc-caption {
  border: 2px solid #1a1a1a;
}

.tc-line {
  display: none;
}

/* ---------------------------------------------------------------- 5 · customise: three equal columns */

.cu-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cu-cell {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--rule);
}

/* subgrid lines up the four parts across a row, so every "更多選項" sits on
   one line that never moves: opening a card only grows the area below it */
@supports (grid-template-rows: subgrid) {
  .cu-cell {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .cu-cell > .cu-det {
    margin-top: 0;
  }
}

.cu-idx {
  margin: 0 0 28px;
  font-family: var(--sv-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--sv-muted);
}

.cu-cell h3 {
  margin: 0 0 8px;
  font-family: var(--sv-cjk);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.cu-cell > p:not(.cu-idx) {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
}

.cu-det {
  margin-top: auto;
  padding-top: 16px;
}

.cu-det summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--sv-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sv-ink);
  list-style: none;
  cursor: pointer;
}

.cu-det summary::-webkit-details-marker {
  display: none;
}

.cu-det summary::after {
  content: "+";
  font-family: var(--sv-latin);
  font-size: 16px;
  line-height: 1;
}

.cu-det[open] summary::after {
  content: "−";
}

.cu-det summary:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.cu-det ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cu-det li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-family: var(--sv-cjk);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
  border-top: 1px solid #eef1f5;
}

.cu-det li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cf;
}

/* ---------------------------------------------------------------- 6 · offline: one band, two columns */

.ob {
  display: grid;
  grid-template-columns: 6fr 5fr;
  align-items: center;
  gap: 40px;
  min-height: 280px;
  padding: 48px;
  border-radius: 28px;
  background: #f8fafc;
  border: 1px solid var(--rule);
}

.ob-copy .sv-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.ob-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ob-list li {
  position: relative;
  padding: 3px 0 3px 16px;
  font-family: var(--sv-cjk);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
}

.ob-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cf;
}

.ob-list li.ob-more {
  margin-top: 6px;
  padding-left: 0;
}

.ob-list li.ob-more::before {
  content: none;
}

.ob-more a {
  color: var(--sv-ink);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- 7 · pricing  ·  8 · closing */

body.page-home .sv-prices {
  align-items: stretch;
}

body.page-home .sv-price .sv-amount {
  min-height: 2.4rem;
}

/* under the cards: the refund promise, then the owner's one closing line, then the school link */
body.page-home #pricing .sv-refund {
  margin: 32px 0 0;
  font-family: var(--sv-cjk);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--sv-muted);
}

body.page-home #pricing .sv-fair {
  margin: 20px 0 0;
  font-family: var(--sv-cjk);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--sv-ink);
}

body.page-home #pricing .sv-more {
  margin-top: 20px;
  text-align: center;
}

body.page-home .sv-offline-sec {
  padding-block: 64px;
}

body.page-home .sv-finale {
  padding-block: 112px;
}

body.page-home .sv-finale .sv-head {
  margin-bottom: 40px;
}

body.page-home .sv-finale .sv-btn span {
  margin-left: 6px;
}

body.page-home .sv-finale .sv-cta {
  justify-content: center;
  margin: 0;
}

.page-home .sv-footer {
  padding-block: 40px 28px;
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 1199px) {
  /* the headline takes the first row, the words the second */
  .ob {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
}

@media (max-width: 1023px) {
  body.page-home .sv-head-a,
  body.page-home .sv-head-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-home .sv-head-a > .sv-sub {
    grid-column: 1;
    grid-row: 3;
    padding-top: 0;
    margin-top: 16px;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx-stage {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 32px;
  }

  .fx-items {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .cu-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.page-home {
    --sec: 64px;
    --head-gap: 40px;
  }

  body.page-home .sv-h2 {
    font-size: 28px;
  }

  body.page-home .sv-head .sv-sub {
    font-size: 16px;
  }

  body.page-home .sv-finale {
    padding-block: 72px;
  }

  /* phones: no live blur; the wall itself is softened, two columns only (decor.js) */
  .dk-glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.6) 0%, rgba(7, 10, 18, 0.55) 40%, rgba(7, 10, 18, 0.88) 72%, #070a12 100%);
  }

  .dk-wall {
    inset: -10% -30%;
    filter: blur(5px) saturate(120%);
  }

  .dk-col:nth-child(n + 3) {
    display: none;
  }

  .dk-copy {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
  }

  .dk-foot {
    grid-column: 1;
    margin-top: 28px;
    padding-bottom: 0;
  }

  .dk-lead {
    font-size: 1rem;
  }

  .sv-demo {
    padding: 56px 0 64px;
  }

  .demo-bar {
    align-items: stretch;
  }


  .demo-key {
    justify-content: center;
  }

  .th-tabs {
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }

  .fx-tab {
    padding: 16px 0 16px 16px;
    column-gap: 12px;
  }

  .fx-tab .fx-name {
    font-size: 18px;
  }

  .fx-tab .fx-line {
    grid-column: 1 / -1;
  }

  .cu-cells {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cu-cell {
    padding: 20px 20px 14px;
  }

  .cu-idx {
    margin-bottom: 10px;
  }

  .cu-det {
    padding-top: 8px;
  }

  .ob {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 32px 24px;
    border-radius: 22px;
  }

  /* phones: the plate keeps only the name; the one-liner goes on the page below the box */
  .themes.sv-theme-box .tc-slide .tc-caption {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .themes.sv-theme-box .tc-slide .tc-caption span {
    display: none;
  }

  .tc-line {
    display: block;
    min-height: 1.7em;
    margin: 14px 0 0;
    font-family: var(--sv-cjk);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--sv-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dk-light i,
  .dk-col.is-moving,
  .demo-key-icon::after,
  .fx-screen > img.is-enter {
    animation: none;
  }

  .dk-copy,
  .dk-wall {
    transform: none;
    opacity: 1;
  }

  .demo-screen > video,
  .fx-screen > img,
  .fx-tab::before {
    transition: none;
  }
}
