/* CueClass site — "silver keycap" direction (DESIGN.md §0.4, ADV 2026-10-28). First screen only so far:
   header + hero. Pure white ground; brushed-silver metal only on objects (keycap, projector rim) so it
   reads as the highlight; frosting only on the header. One accent: the icon's orange.
   Text pairs (WCAG): ink #0F172A on #FFF 17.9:1 · muted #475569 on #FFF 7.6:1 · white on ink 17.9:1
   · orange is never used for text on white. */

:root {
  --sv-ink: #0f172a;
  --sv-muted: #475569;
  --sv-bg: #ffffff;
  --sv-orange: #ff7a1a;
  --sv-orange-deep: #e4570a;
  --sv-hairline: rgba(15, 23, 42, 0.08);
  --sv-line: #e5e9ef;
  --sv-metal: linear-gradient(180deg, #ffffff 0%, #e6ebf1 45%, #c5cdd8 100%);
  --sv-metal-low: #aab4c2;
  --sv-cjk: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sv-latin: "Inter", "Noto Sans TC", "Segoe UI", sans-serif;
  --sv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body {
  background: var(--sv-bg);
}

body {
  font-family: var(--sv-latin);
  color: var(--sv-ink);
}

.sv-wrap {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- buttons */

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--sv-ease), box-shadow 160ms var(--sv-ease), background-color 160ms;
}

.sv-btn-ink {
  color: #fff;
  background: var(--sv-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(15, 23, 42, 0.18);
}

.sv-btn-ink:hover {
  color: #fff;
  background: #1e293b;
  transform: translateY(-1px);
}

.sv-btn-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 1.0625rem;
}

.sv-btn:focus-visible,
.sv-textlink:focus-visible,
.sv-nav a:focus-visible,
.sv-brand:focus-visible,
.sv-menu:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 3px;
}

.sv-textlink {
  font-family: var(--sv-cjk);
  font-weight: 500;
  color: var(--sv-ink);
  text-decoration: none;
  padding: 10px 4px;
}

.sv-textlink span {
  display: inline-block;
  transition: transform 160ms var(--sv-ease), color 160ms;
}

.sv-textlink:hover {
  color: var(--sv-ink);
}

.sv-textlink:hover span {
  color: var(--sv-orange-deep);
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- header */

.sv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--sv-hairline);
}

.sv-header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.sv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--sv-latin);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sv-ink);
  text-decoration: none;
}

.sv-brand:hover {
  color: var(--sv-ink);
}

.sv-brand img {
  width: 36px;
  height: 36px;
}

.sv-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sv-muted);
  text-decoration: none;
  transition: color 160ms, background-color 160ms;
}

.sv-nav a[aria-current="page"] {
  color: var(--sv-ink);
  background: #f1f4f8;
}

.sv-nav a:hover {
  color: var(--sv-ink);
  background: #f3f5f8;
}

.sv-menu {
  display: none;
}

/* ---------------------------------------------------------------- hero */

.sv-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(40px, 5.5vh, 72px);
  overflow: hidden;
}

.sv-hero-copy {
  text-align: center;
}

.sv-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
  background: #fff;
  border: 1px solid var(--sv-line);
}

.sv-h1 {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--sv-ink);
  text-wrap: balance;
}

.sv-h1 span,
.sv-h2 span,
.sv-lead span {
  display: inline-block;
}

.sv-lead {
  max-width: 34em;
  margin: 18px auto 0;
  font-family: var(--sv-cjk);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--sv-muted);
}

.sv-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 28px;
}

.sv-fine {
  margin: 14px 0 0;
  font-family: var(--sv-cjk);
  font-size: 0.85rem;
  color: var(--sv-muted);
}

/* ---------------------------------------------------------------- stage: glyph band + projector */

.sv-stage {
  position: relative;
  margin-top: clamp(36px, 5vh, 52px);
  padding: 0 24px clamp(64px, 9vw, 120px);
}

/* one full-bleed band of glyphs behind the projector, never split by it */
.sv-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 52%;
  width: 100%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

html:not(.js) .sv-band {
  visibility: hidden;
}

.sv-projector {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 23, 42, 0.06), 0 40px 80px -36px rgba(15, 23, 42, 0.22);
}

/* brushed-silver rim */
.sv-projector::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: 25px;
  background: linear-gradient(180deg, #dfe4ea 0%, #c9d1db 45%, #a3aebd 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.sv-projector-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 8px 12px;
  font-family: var(--sv-cjk);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
}

.sv-lights {
  display: flex;
  gap: 6px;
}

.sv-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sv-metal);
  box-shadow: inset 0 -1px 0 var(--sv-metal-low), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.sv-num {
  margin-left: auto;
  font-family: var(--sv-latin);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.sv-screen {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sv-caption {
  padding: 12px 8px 4px;
  font-family: var(--sv-cjk);
  font-size: 0.85rem;
  color: var(--sv-muted);
}

/* ---------------------------------------------------------------- phones and small tablets */

/* ---------------------------------------------------------------- sections (one rhythm for all five) */

.sv-section {
  padding-block: clamp(56px, 6vw, 88px);
}

.sv-hero + .sv-section {
  padding-top: clamp(24px, 3vw, 40px);
}

.sv-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 4vw, 56px);
  text-align: center;
}

.sv-h2 {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--sv-ink);
  text-wrap: balance;
}

.sv-sub {
  margin: 14px 0 0;
  font-family: var(--sv-cjk);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sv-muted);
  text-wrap: pretty;
}

.sv-sub a {
  color: var(--sv-ink);
}

.sv-more {
  margin: clamp(28px, 3vw, 40px) 0 0;
  font-family: var(--sv-cjk);
  text-align: center;
  color: var(--sv-muted);
}

.sv-more .sv-textlink {
  margin-left: 6px;
  white-space: nowrap;
}

/* reveal: once, fade + 8px (ui.js adds .rv / .in) */
.js-reveal .sv-rv.rv {
  transform: translate3d(0, 8px, 0);
  transition: opacity 500ms var(--sv-ease), transform 600ms var(--sv-ease);
  transition-delay: var(--rv-delay, 0ms);
}

.js-reveal .sv-rv.rv.in {
  transform: none;
}

/* ---------------------------------------------------------------- features: 3 x 2 cards */

.sv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-card {
  padding: 10px 10px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--sv-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 200ms var(--sv-ease), transform 200ms var(--sv-ease);
}

.sv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.18);
}

.sv-shot {
  margin: 0 0 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f4f7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.sv-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-shot-ui {
  display: grid;
  place-items: center;
  padding: 10px;
}

.sv-shot-ui img {
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.sv-card h3 {
  margin: 0 12px 6px;
  font-family: var(--sv-cjk);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.sv-card p {
  margin: 0 12px;
  font-family: var(--sv-cjk);
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--sv-muted);
}

/* ---------------------------------------------------------------- themes: the carousel inside one rounded box */

.sv-theme-box.themes {
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--sv-line), 0 40px 80px -48px rgba(15, 23, 42, 0.3);
}

.sv-theme-box .showcase {
  /* the centred theme nearly fills the box; neighbours peek in at the edges to invite a drag */
  --slide-w: min(calc(100vw - 48px - 220px), 960px);
  --slide-gap: clamp(16px, 2vw, 28px);
}

/* centre the first and last slide in the box, not the window (percent padding = the viewport's width) */
.sv-theme-box .tc-track {
  padding: 0 calc(50% - var(--slide-w) / 2);
}

.sv-theme-box .tc-viewport {
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(20px, 2.6vw, 32px);
}

.sv-theme-box .tc-caption {
  justify-content: center;
}

.sv-theme-note {
  margin: 20px auto 0;
  max-width: 40em;
  font-family: var(--sv-cjk);
  font-size: 0.95rem;
  text-align: center;
  color: var(--sv-muted);
}

/* ---------------------------------------------------------------- offline: one wide card */

.sv-offline {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px 64px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--sv-line);
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.2);
}

.sv-checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-checks li {
  position: relative;
  padding-left: 38px;
  font-family: var(--sv-cjk);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.sv-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sv-metal);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 var(--sv-metal-low), 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sv-checks li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--sv-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- pricing */

.sv-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.sv-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--sv-line);
}

.sv-price h3 {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: 1.1rem;
  font-weight: 700;
}

.sv-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 20px;
  font-family: var(--sv-latin);
  font-variant-numeric: tabular-nums;
}

.sv-amount .amount {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sv-amount .per,
.sv-amount .was {
  font-family: var(--sv-cjk);
  color: var(--sv-muted);
}

.sv-price ul {
  flex: 1;
  margin: 0 0 24px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--sv-line);
}

.sv-price li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-family: var(--sv-cjk);
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--sv-muted);
}

.sv-price li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cf;
}

.sv-price .sv-btn {
  align-self: stretch;
}

/* the one silver card: brushed-metal rim */
.sv-price-metal {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #e6ebf1 0%, #c5cdd8 50%, #9aa6b6 100%) border-box;
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -36px rgba(15, 23, 42, 0.28);
}

.sv-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sv-ink);
  background: var(--sv-metal);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 var(--sv-metal-low);
}

.sv-btn-ghost {
  color: var(--sv-ink);
  background: #fff;
  border: 1px solid #d5dce5;
}

.sv-btn-ghost:hover {
  color: var(--sv-ink);
  border-color: var(--sv-ink);
}

/* ---------------------------------------------------------------- closing */

.sv-finale {
  text-align: center;
  padding-bottom: clamp(88px, 11vw, 140px);
}

.sv-finale .sv-sub {
  margin-top: 12px;
}

/* ---------------------------------------------------------------- footer */

.sv-footer {
  border-top: 1px solid var(--sv-line);
  padding-block: 28px;
}

.sv-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.sv-footer .sv-brand {
  margin-right: 0;
  font-size: 1rem;
}

.sv-footer .sv-brand img {
  width: 28px;
  height: 28px;
}

.sv-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-footer-links a {
  font-family: var(--sv-cjk);
  font-size: 0.9rem;
  color: var(--sv-muted);
  text-decoration: none;
}

.sv-footer-links a:hover {
  color: var(--sv-ink);
}

.sv-copy {
  margin: 0 0 0 auto;
  font-size: 0.85rem;
  color: var(--sv-muted);
}

@media (max-width: 1024px) {
  .sv-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-prices {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .sv-wrap {
    width: min(100% - 32px, 1200px);
  }

  .sv-header-row {
    gap: 10px;
  }

  .sv-header-cta {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.875rem;
  }

  .js .sv-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    font: 500 0.875rem/1 var(--sv-cjk);
    color: var(--sv-ink);
    background: #fff;
    cursor: pointer;
  }

  .sv-menu span,
  .sv-menu span::before {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 200ms var(--sv-ease);
  }

  .sv-menu span {
    position: relative;
    box-shadow: 0 -4px 0 currentColor;
    transform: translateY(2px);
  }

  .sv-menu span::before {
    content: "";
    position: absolute;
    top: 4px;
  }

  .sv-menu[aria-expanded="true"] span {
    box-shadow: none;
    transform: rotate(45deg);
  }

  .sv-menu[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(-90deg);
  }

  /* the header's backdrop-filter makes it the containing block, so the sheet hangs from it;
     a nested backdrop-filter would only see the header, hence a solid sheet */
  .js .sv-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 64px);
    z-index: 99;
    padding: 24px 16px;
    background: #fff;
    border-top: 1px solid var(--sv-hairline);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms, visibility 0s 200ms;
  }

  .js .sv-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms;
  }

  .js .sv-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .sv-nav a {
    padding: 16px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--sv-hairline);
    font-size: 1.25rem;
    color: var(--sv-ink);
  }

  .sv-menu-open {
    overflow: hidden;
  }

  .sv-hero {
    padding-top: 40px;
  }

  .sv-section {
    padding-block: 56px;
  }

  .sv-kicker {
    margin-bottom: 16px;
  }

  .sv-h1 {
    font-size: 2.2rem;
  }

  .sv-lead {
    font-size: 1rem;
  }

  .sv-cta {
    margin-top: 24px;
  }

  .sv-stage {
    margin-top: 40px;
    padding: 0 16px 64px;
  }

  .sv-projector {
    padding: 6px;
    border-radius: 18px;
  }

  .sv-projector::before {
    border-radius: 19px;
  }

  .sv-projector-bar {
    padding: 4px 6px 8px;
  }

  .sv-screen {
    border-radius: 12px;
  }

  .sv-caption {
    padding: 8px 6px 2px;
    font-size: 0.8rem;
  }

  .sv-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sv-card {
    padding: 6px 6px 14px;
    border-radius: 16px;
  }

  .sv-shot {
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .sv-shot-ui {
    padding: 4px;
  }

  .sv-card h3 {
    margin: 0 6px 4px;
    font-size: 1rem;
  }

  .sv-card p {
    margin: 0 6px;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .sv-offline {
    grid-template-columns: 1fr;
  }

  .sv-theme-box.themes {
    border-radius: 20px;
  }

  .sv-theme-box .showcase {
    --slide-w: calc(100vw - 32px - 84px);
    --slide-gap: 12px;
  }

  .sv-copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-btn,
  .sv-textlink span {
    transition: none;
  }
}

/* The recording sits 1px inside its poster so the poster (already painted, high priority) stays the
   page's largest paint; otherwise phones report LCP at the clip's first frame, seconds later. */
.sv-screen > video {
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
}

/* ---------------------------------------------------------------- tracking (owner 2026-10-28: 字距全部拉開一點)
   CJK reads calmer with air between characters: headings +0.035em, running text +0.045em. Prices and
   other numerals keep their own tight setting. */

body {
  letter-spacing: 0.04em;
}

.sv-h1,
.sv-h2 {
  letter-spacing: 0.035em;
}

.sv-sub,
.sv-lead,
.sv-more,
.sv-theme-note,
.sv-card p,
.sv-checks li,
.sv-price li,
.sv-caption,
.sv-fine,
.sv-kicker {
  letter-spacing: 0.045em;
}

.sv-card h3,
.sv-price h3 {
  letter-spacing: 0.04em;
}

.sv-btn {
  letter-spacing: 0.08em;
}

.sv-nav a,
.sv-footer-links a,
.sv-textlink {
  letter-spacing: 0.06em;
}

.nw {
  white-space: nowrap;
}
