/* ---------- Tokens (lifted from kami / luo for Tang brand consistency) ---------- */

:root {
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --warm-sand: #e8e6dc;

  --brand: #1B365D;
  --brand-light: #2D5A8A;
  --brand-tint: #EEF2F7;

  --near-black: #141413;
  --dark-warm: #3d3d3a;
  --olive: #504e49;
  --stone: #6b6a64;

  --border: #e8e6dc;
  --border-soft: #e5e3d8;
  --line: #d8d5c8;

  --serif: Charter, Georgia, "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", Palatino, serif;
  --sans: var(--serif);
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Monaco, monospace;
  --poem-serif: var(--serif);

  /* Dark surface for product screenshots, matches the macOS app chrome */
  --shot-bg: #141318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--parchment);
  color: var(--near-black);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="zh-CN"] {
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "PingFang SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
  --poem-serif: "Kaiti SC", STKaiti, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", serif;
}

html[lang="zh-CN"] body {
  font-family: var(--serif);
  line-height: 1.75;
}

html[lang="zh-CN"] .gallery-caption .line,
html[lang="zh-CN"] .planets .name small {
  font-family: var(--poem-serif);
  font-style: normal;
}

html[lang="zh-CN"] .foot .colophon .ethos,
html[lang="zh-CN"] .help-shot figcaption {
  font-style: normal;
}

html[lang="zh-CN"] .btn-primary,
html[lang="zh-CN"] .btn-ghost {
  font-family: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "PingFang SC", serif;
  font-variant-numeric: tabular-nums;
}

html[lang="zh-Hant"] {
  --serif: "Songti TC", "Source Han Serif TC", "Noto Serif CJK TC", Georgia, serif;
  --sans: "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --poem-serif: "Kaiti TC", STKaiti, "Songti TC", serif;
}

html[lang="zh-Hant"] body {
  font-family: var(--serif);
  line-height: 1.75;
}

html[lang="zh-Hant"] .gallery-caption .line,
html[lang="zh-Hant"] .planets .name small {
  font-family: var(--poem-serif);
  font-style: normal;
}

html[lang="zh-Hant"] .foot .colophon .ethos,
html[lang="zh-Hant"] .help-shot figcaption {
  font-style: normal;
}

html[lang="zh-Hant"] .btn-primary,
html[lang="zh-Hant"] .btn-ghost {
  font-family: Georgia, "Songti TC", "Source Han Serif TC", "Noto Serif CJK TC", "PingFang TC", serif;
  font-variant-numeric: tabular-nums;
}

html[lang="ja"] {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", Georgia, serif;
  --sans: "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, sans-serif;
  --poem-serif: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

html[lang="ja"] body {
  font-family: var(--serif);
  line-height: 1.75;
}

html[lang="ja"] .gallery-caption .line,
html[lang="ja"] .planets .name small {
  font-family: var(--poem-serif);
  font-style: normal;
}

html[lang="ja"] .foot .colophon .ethos,
html[lang="ja"] .help-shot figcaption {
  font-style: normal;
}

html[lang="ja"] .btn-primary,
html[lang="ja"] .btn-ghost {
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-variant-numeric: tabular-nums;
}

html[lang="ko"] {
  --serif: "AppleMyungjo", "Nanum Myeongjo", "Batang", Georgia, serif;
  --sans: "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, sans-serif;
  --poem-serif: "AppleMyungjo", "Nanum Myeongjo", serif;
}

html[lang="ko"] body {
  font-family: var(--serif);
  line-height: 1.75;
}

html[lang="ko"] .gallery-caption .line,
html[lang="ko"] .planets .name small {
  font-family: var(--poem-serif);
  font-style: normal;
}

html[lang="ko"] .foot .colophon .ethos,
html[lang="ko"] .help-shot figcaption {
  font-style: normal;
}

html[lang="ko"] .btn-primary,
html[lang="ko"] .btn-ghost {
  font-family: "Apple SD Gothic Neo", Georgia, serif;
  font-variant-numeric: tabular-nums;
}

html[lang="zh-CN"] .legal p,
html[lang="zh-Hant"] .legal p,
html[lang="ja"] .legal p,
html[lang="ko"] .legal p {
  line-height: 1.8;
}

html[lang="zh-CN"] .faq dd,
html[lang="zh-Hant"] .faq dd,
html[lang="ja"] .faq dd,
html[lang="ko"] .faq dd {
  line-height: 1.75;
}

html[lang="ja"] .planets .what,
html[lang="ja"] .principles .body span {
  line-height: 1.7;
}

html[lang="de"] {
  hyphens: auto;
  -webkit-hyphens: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}

a:hover {
  color: var(--brand-light);
}

.lang-switch {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.08);
}

.lang-switch a {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  color: var(--stone);
  text-align: center;
}

.lang-switch a:hover {
  color: var(--brand);
}

.lang-switch a.active {
  color: var(--ivory);
  background: var(--brand);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 64px 120px;
  animation: fadeIn 0.4s ease-out;
}

/* ---------- Hero ---------- */

.hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 80px;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 22px;
}

.hero-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-links a {
  color: var(--stone);
  display: flex;
  align-items: center;
}

.hero-links a:hover {
  color: var(--dark-warm);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 0 0 18px;
  color: var(--near-black);
}

.hero h1 .cn {
  display: inline-block;
  margin-left: 18px;
  letter-spacing: 0;
  color: var(--brand);
  font-weight: 400;
}

.hero .tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  color: var(--olive);
  margin: 0 0 28px;
  max-width: 820px;
}

.section-versus {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--stone);
  margin: 14px 0 0;
  letter-spacing: 0.1px;
  line-height: 1.6;
}

.section-versus b {
  color: var(--brand);
  font-weight: 500;
}

.hero-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
}

.hero-tokens span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.hero-tokens b {
  color: var(--dark-warm);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  min-width: 158px;
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  transition: transform 0.18s;
}

.btn-primary:hover .arrow {
  transform: scale(1.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--brand);
  background: transparent;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
  min-width: 158px;
}

.btn-ghost:hover {
  background: var(--brand-tint);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ---------- Section primitives ---------- */

section {
  margin-bottom: 96px;
}

.section-head {
  margin-bottom: 36px;
}

.section-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--olive);
  margin: 14px 0 0;
}

/* ---------- Product gallery (centerpiece) ---------- */

.gallery {
  --enter-from-x: 44px;
  --exit-to-x: -34px;
  --sweep-angle: 100deg;
  --sweep-from: -45%;
  --sweep-to: 65%;
  --caption-shift: -2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: baseline;
  margin: 0;
  padding: 0;
}

.gallery[data-direction="prev"] {
  --enter-from-x: -44px;
  --exit-to-x: 34px;
  --sweep-angle: 260deg;
  --sweep-from: 65%;
  --sweep-to: -45%;
  --caption-shift: 2px;
}

.gallery-frame {
  grid-column: 1 / -1;
  position: relative;
  background: var(--shot-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.10);
  cursor: ew-resize;
}

.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(var(--sweep-angle),
      rgba(245, 244, 237, 0) 32%,
      rgba(245, 244, 237, 0.16) 50%,
      rgba(245, 244, 237, 0) 68%);
  opacity: 0;
  transform: translate3d(var(--sweep-from), 0, 0);
  transition:
    opacity 540ms ease,
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery.is-switching .gallery-frame::after {
  opacity: 1;
  transform: translate3d(var(--sweep-to), 0, 0);
}

.gallery-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: translate3d(var(--enter-from-x), 0, 0) scale(0.985);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 880ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 620ms;
  will-change: opacity, transform;
}

.gallery-panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
}

.gallery-panel.was-active {
  opacity: 0;
  visibility: visible;
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translate3d(var(--exit-to-x), 0, 0) scale(0.985);
  pointer-events: none;
}

.gallery-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  grid-column: 1;
  grid-row: 2;
  min-height: 48px;
  padding: 12px 2px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery.is-switching .gallery-caption {
  opacity: 0.72;
  transform: translate3d(var(--caption-shift), 0, 0);
}

.gallery-caption .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--near-black);
  margin: 0;
  letter-spacing: 0.1px;
  flex: 0 0 auto;
}

.gallery-caption .line {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--olive);
  margin: 0;
  font-style: italic;
}

.gallery-tabs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-end;
}

.gallery-tabs button {
  appearance: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gallery-tabs button:hover {
  color: var(--brand);
  border-color: var(--line);
}

.gallery-tabs button.is-active {
  color: var(--brand);
  background: var(--brand-tint);
  border-color: var(--line);
}

/* ---------- Planets (the five tools manifesto) ---------- */

.planets {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
}

.planets li {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}

.planets .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--brand);
  margin: 0;
  line-height: 1.2;
}

.planets .name small {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--olive);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0;
}

.planets .what {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-warm);
  margin: 0;
}

/* ---------- Principles ---------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
}

.principles li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}

.principles li:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--border-soft);
}

.principles li:nth-child(even) {
  padding-left: 32px;
}

/* Odd-count overflow: a lone last item spans both columns instead of half-filling
   the grid. Drops the right border (no neighbour to separate from) and the
   right padding (no second column to balance). */
.principles li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
  padding-right: 0;
}

.principles .n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--brand);
  line-height: 1;
}

.principles .body {
  display: block;
}

.principles .body b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--near-black);
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.principles .body span {
  font-size: 13px;
  color: var(--olive);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- Pricing ---------- */

/* Price section: hairline top + bottom borders frame an editorial spread.
   Five atoms only: heading (above) + $9 + value-contrast + Buy + terms.
   Each fact (lifetime / 2 Macs / 14-day refund / payment methods) appears
   exactly once, in the .price-terms line. */
.price-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.price-amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 112px;
  line-height: 1;
  color: var(--near-black);
  margin: 0 0 24px;
  letter-spacing: -2.8px;
}

.price-vs {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark-warm);
  margin: 0 0 40px;
  line-height: 1.45;
  max-width: 580px;
}

.price-vs s {
  color: var(--stone);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--stone);
  margin: 0 2px;
}

.price-vs .price-highlight {
  color: var(--brand);
  font-weight: 500;
}

.price-card .btn-primary {
  min-width: 280px;
  padding: 15px 28px;
  font-size: 15.5px;
  justify-content: center;
}

.price-trial {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--stone);
  margin: 16px 0 0;
}

.price-trial a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.price-trial a:hover {
  color: var(--brand-light);
}

.price-terms {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--olive);
  margin: 28px 0 0;
  max-width: 640px;
  line-height: 1.7;
  text-align: center;
}

.price-terms .sep {
  color: var(--line);
  margin: 0 4px;
}

/* ---------- FAQ ---------- */

.faq dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 28px 0 6px;
  letter-spacing: 0.1px;
}

.faq dt:first-of-type {
  margin-top: 0;
}

.faq dd {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--olive);
  margin: 0 0 0;
}

.faq-tail {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  margin: 28px 0 0;
}

.faq-tail a {
  color: var(--brand);
}

.faq-tail code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 1px 6px;
  border-radius: 3px;
}

.report-tree dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 24px 0 6px;
  letter-spacing: 0.1px;
}

.report-tree dt:first-of-type {
  margin-top: 0;
}

.report-tree dd {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--olive);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--border-soft);
  max-width: 820px;
}

/* ---------- Footer (kami pattern) ---------- */

footer.foot {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
}

.foot .mark {
  display: grid;
  grid-template-columns: 64px auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
}

.foot .mark svg,
.foot .mark img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-top: -8px;
  border-radius: 13px;
  object-fit: cover;
}

.foot .mark .wm-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -0.2px;
}

.foot .mark .wm-sub {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--olive);
  margin: 3px 0 0;
}

.foot .colophon {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.65;
  max-width: 580px;
  text-align: right;
}

.foot .colophon .links a {
  color: var(--olive);
  text-decoration: none;
}

.foot .colophon .links a:hover {
  color: var(--brand);
}

.foot .colophon .ethos {
  margin-top: 13px;
  color: var(--olive);
  font-style: italic;
}

.foot .colophon .ethos a {
  color: var(--brand);
  text-decoration: none;
}

.foot .colophon .ethos a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal pages (Terms / Privacy / Refund) ---------- */

.legal {
  max-width: 720px;
}

#page-releases {
  max-width: none;
}

#page-releases h2 {
  font-size: 26px;
  font-family: var(--mono);
  color: var(--near-black);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

#page-releases h2:first-of-type {
  margin-top: 0;
}

#page-releases h2 .meta {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--stone);
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-left: 10px;
}

#page-releases hr {
  border: none;
  border-top: 1px solid rgba(109, 108, 102, 0.12);
  margin: 32px 0;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.4px;
}

.legal .back-link:hover {
  color: var(--brand);
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  margin: 0 0 6px;
  color: var(--near-black);
  letter-spacing: -0.4px;
}

.legal .meta {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.4px;
  margin: 0 0 32px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--brand);
  margin: 32px 0 8px;
  letter-spacing: 0.1px;
}

.legal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 28px 0 6px;
  letter-spacing: 0.1px;
}

.legal h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand);
  margin: 22px 0 6px;
  letter-spacing: 0;
}

.legal p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-warm);
  margin: 0 0 12px;
}

.legal code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 1px 6px;
  border-radius: 3px;
}

.ui-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.88em;
  line-height: 1.25;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-style: normal;
  white-space: nowrap;
}

.help-steps {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-warm);
  margin: 0 0 18px;
  padding-left: 22px;
}

.help-steps li {
  margin-bottom: 6px;
}

.help-shot {
  margin: 18px 0 24px;
  padding: 0;
}

.help-shot img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.08);
}

.help-shot figcaption {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--stone);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .lang-switch {
    top: 14px;
    right: 16px;
  }

  .page {
    padding: 56px 28px 88px;
  }

  .hero {
    margin-bottom: 56px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 64px;
    letter-spacing: -1px;
  }

  .hero h1 .cn {
    margin-left: 12px;
  }

  .hero .tagline {
    font-size: 18px;
  }

  section {
    margin-bottom: 64px;
  }

  .section-title {
    font-size: 26px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-caption,
  .gallery-tabs {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-tabs {
    gap: 6px;
    justify-content: flex-start;
  }

  .gallery-tabs button {
    padding: 8px 10px;
  }

  .planets li {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 22px 0;
  }

  .planets .name {
    margin-top: 4px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles li:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .principles li:nth-child(even) {
    padding-left: 0;
  }

  .price-card {
    padding: 48px 16px 40px;
  }

  .price-amount {
    font-size: 72px;
    letter-spacing: -1.8px;
    margin-bottom: 18px;
  }

  .price-vs {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .price-card .btn-primary {
    min-width: 240px;
  }

  .price-terms {
    font-size: 12.5px;
    line-height: 1.75;
    margin-top: 24px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 32px;
    margin-top: 64px;
  }

  .foot .colophon {
    text-align: left;
    max-width: 100%;
  }

  .foot .mark {
    grid-template-columns: 64px auto;
  }

  .foot .mark svg,
  .foot .mark img {
    width: 64px;
    height: 64px;
  }

  .foot .mark .wm-name {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero .tagline {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost {
    min-width: 0;
    flex: 1;
    padding: 13px 16px;
    justify-content: center;
  }

  .gallery-caption {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-frame::after {
    display: none;
  }

  .gallery-panel,
  .gallery-caption {
    transition: none;
    transform: none;
  }
}

/* ============================================================== */
/* Hero glyph load + orbit. Gallery motion is handled above by    */
/* the product-stage horizontal transition.                       */
/* ============================================================== */

.hero h1 {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.cn-orbit {
  position: relative;
  display: inline-block;
}

.cn-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
  animation: cn-orbit 14s linear infinite;
  pointer-events: none;
}

@keyframes cn-orbit {
  from {
    transform: rotate(0deg) translateX(64px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(64px) rotate(-360deg);
  }
}

@media (max-width: 880px) {
  .cn-orbit::after {
    animation-name: cn-orbit-sm;
  }

  @keyframes cn-orbit-sm {
    from {
      transform: rotate(0deg) translateX(40px) rotate(0deg);
    }

    to {
      transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .cn-orbit::after {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Modal for index.php ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 19, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--parchment);
  border-radius: 24px;
  max-width: 560px;
  width: 90%;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.modal-overlay.is-active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -0.3px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--border-soft);
  color: var(--near-black);
}

.modal-body {
  padding: 28px;
}

.os-detected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-tint);
  padding: 8px 16px;
  border-radius: 40px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 24px;
}

.os-detected svg {
  width: 18px;
  height: 18px;
}

.command-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 8px 0 16px;
}

.command-label {
  background: var(--warm-sand);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--stone);
  border-bottom: 1px solid var(--border);
}

.command-text {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--near-black);
  background: var(--ivory);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border-bottom: 1px solid var(--border-soft);
}

.copy-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 22px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s;
}

.copy-action:hover {
  background: var(--brand-tint);
  border-color: var(--brand-light);
}

.copy-action.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ivory);
}

.modal-hint {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--stone);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  line-height: 1.55;
}

.modal-hint code {
  background: var(--warm-sand);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

/* Admin panel styles */
.admin-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.admin-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
}

.admin-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--brand);
  margin: 0 0 8px;
}

.admin-card p {
  color: var(--olive);
  font-size: 14px;
  margin-bottom: 24px;
}

.admin-form-group {
  margin-bottom: 24px;
}

.admin-form-group label {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--near-black);
  margin-bottom: 8px;
}

.admin-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--near-black);
  resize: vertical;
}

.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.1);
}

.admin-message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.admin-message.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #b3e0c0;
}

.admin-message.error {
  background: #fef0f0;
  color: #c5221f;
  border: 1px solid #f5c2c2;
}

.btn-admin {
  background: var(--brand);
  color: var(--ivory);
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-admin:hover {
  background: var(--brand-light);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--stone);
}

.btn-secondary:hover {
  background: var(--border-soft);
  color: var(--near-black);
}

@media (max-width: 600px) {
  .modal-header {
    padding: 20px 20px 12px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .command-text {
    font-size: 12px;
    padding: 16px;
  }

  .admin-card {
    padding: 20px;
  }
}