:root {
  --bg: #efefef;
  --panel: #f3f3f1;
  --ink: #1a1a1a;
  --muted: rgba(20, 20, 20, 0.65);
  --accent: #8b3e2f;
  --line: rgba(24, 24, 24, 0.16);
  --card: rgba(255, 255, 255, 0.68);
  --card-border: rgba(24, 24, 24, 0.12);
  --ink-soft: rgba(24, 24, 24, 0.68);
  --frame-pad: clamp(18px, 4vw, 54px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: "Noto Serif JP", serif;
}

/* ── stage & layers ── */

.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.bg-layer,
.dry-layer,
.wind-layer,
.content-layer {
  position: absolute;
  inset: 0;
}

.bg-layer {
  background: url("./pen.jpg") center center / cover no-repeat;
  filter: grayscale(1) contrast(1.18) brightness(1.08);
  transform: scale(1.01);
}

.dry-layer {
  background:
    radial-gradient(circle at 22% 38%, rgba(247, 245, 240, 0.46) 0, rgba(247, 245, 240, 0) 44%),
    radial-gradient(circle at 78% 64%, rgba(247, 245, 240, 0.34) 0, rgba(247, 245, 240, 0) 46%),
    linear-gradient(105deg, rgba(247, 245, 240, 0.36), rgba(237, 233, 224, 0.26)),
    rgba(247, 245, 240, 0.24);
  backdrop-filter: blur(1.5px) saturate(0.82) contrast(0.98);
  animation: veil-drift 18s ease-in-out infinite;
  will-change: transform;
}

.dry-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(247, 245, 240, 0.09) 0px,
      rgba(247, 245, 240, 0.09) 1px,
      rgba(13, 13, 13, 0.032) 1px,
      rgba(13, 13, 13, 0.032) 2px
    ),
    radial-gradient(circle at 18% 64%, rgba(90, 90, 90, 0.08) 0, transparent 24%),
    radial-gradient(circle at 70% 28%, rgba(80, 80, 80, 0.06) 0, transparent 20%);
  mix-blend-mode: soft-light;
  opacity: 0.66;
  animation: veil-grain 26s linear infinite;
  will-change: transform, opacity;
}

.dry-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8.5px) saturate(0.78) contrast(0.95);
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 18%,
    rgba(0, 0, 0, 0.4) 32%,
    rgba(0, 0, 0, 0.92) 46%,
    rgba(0, 0, 0, 0.92) 54%,
    rgba(0, 0, 0, 0.4) 68%,
    rgba(0, 0, 0, 0.08) 82%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 18%,
    rgba(0, 0, 0, 0.4) 32%,
    rgba(0, 0, 0, 0.92) 46%,
    rgba(0, 0, 0, 0.92) 54%,
    rgba(0, 0, 0, 0.4) 68%,
    rgba(0, 0, 0, 0.08) 82%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  animation: veil-focus 15s ease-in-out infinite;
  will-change: transform, opacity;
}

.wind-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wind-layer::before,
.wind-layer::after {
  content: "";
  position: absolute;
  top: -36%;
  left: 0;
  width: 56vw;
  min-width: 420px;
  height: 172%;
  background: linear-gradient(
    116deg,
    rgba(247, 243, 230, 0) 0%,
    rgba(247, 243, 230, 0.12) 36%,
    rgba(255, 255, 255, 0.46) 50%,
    rgba(247, 243, 230, 0.12) 64%,
    rgba(247, 243, 230, 0) 100%
  );
  backdrop-filter: blur(5px) saturate(0.88) brightness(1.04);
  -webkit-backdrop-filter: blur(5px) saturate(0.88) brightness(1.04);
  filter: blur(7px);
  opacity: 0;
  transform: translate3d(-175%, 6%, 0) rotate(-14deg);
  animation: wind-pass 12s ease-in-out infinite;
  will-change: transform, opacity;
}

.wind-layer::after {
  width: 46vw;
  min-width: 340px;
  top: -30%;
  filter: blur(10px);
  opacity: 0;
  animation: wind-pass-2 15s ease-in-out infinite;
  animation-delay: -3.2s;
}

/* ── content layer (scrollable) ── */

.content-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--frame-pad);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  scroll-behavior: smooth;
}

/* ── menu ── */

.top {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 44px);
  flex-wrap: nowrap;
}

.menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(20, 20, 20, 0.82);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.menu-link:hover {
  opacity: 0.62;
}

.menu-en {
  font-family: "Oswald", sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.menu-ja,
.menu-zh,
.menu-zh-hans,
.menu-zh-hant,
.menu-ko {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.06em;
  color: rgba(28, 28, 28, 0.74);
  line-height: 1;
}

/* ── hero section ── */

.hero {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  min-height: calc(100vh - var(--frame-pad) * 2);
  min-height: calc(100svh - var(--frame-pad) * 2);
  min-height: calc(100dvh - var(--frame-pad) * 2);
  flex-shrink: 0;
}

.center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.4vw, 44px);
}

.center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48%;
  width: 1px;
  height: 196%;
  background: rgba(33, 33, 33, 0.24);
  transform: translateX(-50%);
}

.tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.center-tagline {
  position: absolute;
  left: 50%;
  top: calc(-50% - 130px);
  transform: translateX(-50%);
  width: min(92vw, 980px);
  text-align: center;
  z-index: 1;
}

.tagline p {
  margin: 0;
}

.tagline-en {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.1em;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--muted);
  text-transform: uppercase;
}

.tagline-ja,
.tagline-zh,
.tagline-zh-hans,
.tagline-zh-hant,
.tagline-ko {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;
  font-size: clamp(10px, 0.82vw, 12px);
  color: rgba(30, 30, 30, 0.62);
}

.title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.95;
}

.cross {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--accent);
}

.sub {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 300;
  color: rgba(22, 22, 22, 0.8);
}

.store-badges {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 30px);
  flex-wrap: wrap;
}

.store-badge-link {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.24s ease, filter 0.24s ease;
}

.store-badge-link::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-120%) rotate(10deg);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.35s ease;
  pointer-events: none;
}

.store-badge-link:hover {
  opacity: 0.62;
  transform: translateY(-1px);
  filter: brightness(1.06) contrast(1.03);
}

.store-badge-link:hover::after {
  opacity: 1;
  transform: translateX(120%) rotate(10deg);
}

.store-badge {
  height: clamp(40px, 3.1vw, 48px);
  width: auto;
  display: block;
}

/* ── features section ── */

.features-section {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 40px);
  flex-shrink: 0;
  text-align: left;
}

.features-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(24px, 4vw, 34px);
  border-bottom: 1px solid rgba(24, 24, 24, 0.1);
}

.features-heading-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-kicker {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.48);
}

.features-heading {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 0.96;
}

.features-subtitles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  max-width: 40rem;
}

.features-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  line-height: 1.7;
}

.feature-step {
  font-family: "Oswald", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139, 62, 47, 0.82);
}

.feature-category {
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.46);
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 42px);
}

.feature-lead {
  position: relative;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(24, 24, 24, 0.12);
}

.feature-lead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(240px, 48%);
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 62, 47, 0.34), rgba(139, 62, 47, 0));
}

.feature-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(18px, 3vw, 26px);
}

.feature-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(24, 24, 24, 0.1);
}

.feature-row-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 3px;
}

.feature-row-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-title .price-copy-en {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-lead .feature-title .price-copy-en {
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  letter-spacing: 0.06em;
}

.feature-title .price-copy-zh,
.feature-title .price-copy-ja {
  margin-top: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(24, 24, 24, 0.62);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 36rem;
}

.feature-paragraph {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.86rem, 1.1vw, 0.95rem);
  line-height: 1.72;
}

.feature-copy .price-copy-en {
  color: rgba(24, 24, 24, 0.84);
}

/* ── price section ── */

.price-section {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 60px);
  flex-shrink: 0;
  text-align: left;
}

.price-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(24px, 4vw, 34px);
  border-bottom: 1px solid rgba(24, 24, 24, 0.1);
}

.price-heading-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-kicker {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.48);
}

.price-heading {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 0.96;
}

.price-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  line-height: 1.7;
}

.price-subtitles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  max-width: 40rem;
}

.price-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(30px, 4vw, 46px);
  text-align: left;
}

.price-plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 24, 24, 0.12);
}

.price-plan--featured {
  border-top-color: rgba(139, 62, 47, 0.42);
}

.price-plan-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-plan-name {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.36rem, 2vw, 1.9rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-plan-tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.46);
}

.price-plan-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-plan-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-plan-line .price-copy-en {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-badge {
  display: inline-block;
  background: #78869B;
  color: #fff;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 6px;
  vertical-align: middle;
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-features li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  line-height: 1.58;
  display: grid;
  grid-template-columns: 18px minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li > span {
  min-width: 0;
}

.price-copy-en {
  display: block;
}

.price-copy-zh,
.price-copy-ja,
.price-copy-zh-hans,
.price-copy-zh-hant,
.price-copy-ko {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86em;
  line-height: 1.45;
  margin-top: 2px;
}

.price-features li::before {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  margin-top: 2px;
  justify-self: start;
  align-self: start;
}

.feat-on::before {
  content: "✓";
  background: transparent;
  color: #78869B;
}

.feat-partial::before {
  content: "–";
  background: transparent;
  color: rgba(24, 24, 24, 0.5);
}

.feat-off {
  color: rgba(24, 24, 24, 0.46);
}

.feat-off::before {
  content: "–";
  background: transparent;
  color: rgba(24, 24, 24, 0.34);
}

.price-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.price-footnote {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 24, 24, 0.08);
  color: rgba(24, 24, 24, 0.52);
  font-size: 0.82rem;
  line-height: 1.6;
}

.price-badges {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.price-badge {
  display: inline-flex;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-badge:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.price-badge img {
  height: 46px;
  width: auto;
  display: block;
}

.site-footer {
  width: min(1040px, 100%);
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 24px 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid rgba(24, 24, 24, 0.12);
}

.footer-brand,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mark {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.84);
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-copy--muted {
  color: rgba(24, 24, 24, 0.48);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(24, 24, 24, 0.82);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.6;
}

/* ── animations ── */

@keyframes veil-drift {
  0% { transform: translate3d(-0.7%, 0%, 0); }
  50% { transform: translate3d(0.9%, -0.5%, 0); }
  100% { transform: translate3d(-0.7%, 0%, 0); }
}

@keyframes veil-grain {
  0% { transform: translate3d(-1.4%, 0%, 0); opacity: 0.62; }
  50% { transform: translate3d(1.5%, 0.6%, 0); opacity: 0.71; }
  100% { transform: translate3d(-1.4%, 0%, 0); opacity: 0.62; }
}

@keyframes veil-focus {
  0% { transform: translate3d(-3.2%, 0, 0); opacity: 0.82; }
  45% { transform: translate3d(2.8%, -0.3%, 0); opacity: 0.9; }
  100% { transform: translate3d(-3.2%, 0, 0); opacity: 0.82; }
}

@keyframes wind-pass {
  0% { transform: translate3d(-175%, 8%, 0) rotate(-14deg); opacity: 0; }
  18% { opacity: 0.35; }
  54% { opacity: 0.5; }
  86% { opacity: 0.24; }
  100% { transform: translate3d(210%, -8%, 0) rotate(-14deg); opacity: 0; }
}

@keyframes wind-pass-2 {
  0% { transform: translate3d(-185%, 10%, 0) rotate(-14deg); opacity: 0; }
  24% { opacity: 0.22; }
  58% { opacity: 0.34; }
  86% { opacity: 0.16; }
  100% { transform: translate3d(205%, -7%, 0) rotate(-14deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dry-layer,
  .dry-layer::before,
  .dry-layer::after,
  .wind-layer,
  .wind-layer::before,
  .wind-layer::after {
    animation: none;
  }
}

/* ── mobile ── */

@media (max-width: 860px) {
  .content-layer {
    scrollbar-gutter: auto;
  }

  .menu-bar {
    width: 100%;
    max-width: 560px;
    gap: 12px 18px;
    flex-wrap: wrap;
  }

  .menu-link {
    flex: 1 1 120px;
    min-width: 0;
  }

  .menu-en {
    font-size: clamp(11px, 3.2vw, 14px);
    letter-spacing: 0.08em;
  }

  .menu-ja,
  .menu-zh {
    font-size: clamp(8px, 2.4vw, 10px);
    letter-spacing: 0.04em;
  }

  .center {
    width: 100%;
    max-width: 560px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .center::before {
    display: none;
  }

  .center-tagline {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: min(100%, 34rem);
    order: -1;
  }

  .store-badge {
    height: clamp(34px, 7.8vw, 42px);
  }

  .store-badges {
    width: 100%;
    margin-top: 10px;
    gap: clamp(14px, 4.4vw, 22px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: clamp(32px, 10vw, 56px) 0 clamp(20px, 6vw, 28px);
    gap: clamp(24px, 6vw, 36px);
  }

  .hero-spacer {
    display: none;
  }

  .features-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features-showcase,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list {
    margin-top: 10px;
  }

  .feature-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .price-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .price-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

@media (max-width: 560px) {
  .menu-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .menu-link {
    width: 100%;
  }

  .title {
    margin: 0;
    font-size: clamp(34px, 12vw, 58px);
    letter-spacing: 0.08em;
  }

  .sub {
    margin: 0;
    font-size: clamp(16px, 5vw, 24px);
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .store-badge-link {
    width: min(100%, 220px);
  }

  .store-badge {
    width: 100%;
    height: auto;
  }

  .features-intro {
    padding-bottom: 22px;
  }

  .features-showcase {
    gap: 18px;
  }

  .feature-meta {
    gap: 10px;
    margin-bottom: 14px;
  }

  .feature-list {
    margin-top: 6px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 20px;
  }

  .feature-step {
    font-size: 0.76rem;
  }

  .feature-title .price-copy-en,
  .feature-lead .feature-title .price-copy-en {
    font-size: clamp(1rem, 5vw, 1.28rem);
  }

  .feature-category {
    font-size: 0.72rem;
  }

  .feature-copy {
    max-width: none;
  }

  .price-intro {
    padding-bottom: 22px;
  }

  .price-plan-meta {
    gap: 10px;
  }

  .price-plan-name {
    font-size: clamp(1.16rem, 5.6vw, 1.48rem);
  }

  .price-plan-line .price-copy-en {
    font-size: clamp(0.94rem, 4.6vw, 1.08rem);
  }

  .price-features li {
    grid-template-columns: 18px 1fr;
    row-gap: 4px;
  }

  .price-features li > span {
    grid-column: 2;
  }

  .site-footer {
    margin-top: 28px;
    padding-top: 20px;
  }

  .footer-copy {
    font-size: 0.86rem;
  }
}

/* ── docs page ── */

.docs-page {
  display: flex;
  flex-direction: column;
}

.menu-link.active {
  opacity: 1;
}

.docs-main {
  width: min(1040px, 100%);
  margin: clamp(30px, 4.2vw, 54px) auto 0;
}

.docs-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-copy-en {
  color: rgba(24, 24, 24, 0.84);
}

.docs-copy-zh,
.docs-copy-ja,
.docs-copy-zh-hans,
.docs-copy-zh-hant,
.docs-copy-ko {
  color: var(--ink-soft);
  font-size: 0.9em;
  line-height: 1.6;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
  padding-bottom: clamp(24px, 4vw, 34px);
  border-bottom: 1px solid rgba(24, 24, 24, 0.1);
}

.docs-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-kicker {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.48);
}

.docs-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 0.96;
}

.docs-subtitle {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.7;
}

.docs-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.docs-paragraph {
  margin: 0;
  font-size: clamp(0.96rem, 1.45vw, 1.06rem);
  line-height: 1.8;
}

.docs-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
}

.docs-toc {
  margin-top: clamp(26px, 4vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(24, 24, 24, 0.08);
}

.docs-toc-head {
  margin-bottom: 12px;
}

.docs-toc-kicker {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(24, 24, 24, 0.46);
}

.docs-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 26px;
}

.docs-toc-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
  transition: opacity 0.2s ease;
}

.docs-toc-link:hover {
  opacity: 0.62;
}

.docs-toc-index {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 62, 47, 0.82);
}

.docs-toc-copy {
  gap: 2px;
}

.docs-toc-copy .docs-copy-en {
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-toc-copy .docs-copy-zh,
.docs-toc-copy .docs-copy-ja {
  font-size: 0.74rem;
}

.docs-sections {
  display: flex;
  flex-direction: column;
  margin-top: clamp(26px, 4vw, 40px);
}

.docs-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(24px, 4vw, 34px) 0;
  border-top: 1px solid rgba(24, 24, 24, 0.1);
}

.docs-section-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-section-index {
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139, 62, 47, 0.82);
}

.docs-section-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-section-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.docs-section-lead {
  margin: 0;
  font-size: clamp(0.96rem, 1.55vw, 1.08rem);
  line-height: 1.8;
}

.docs-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.docs-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-block-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-block-title .docs-copy-zh,
.docs-block-title .docs-copy-ja,
.docs-section-title .docs-copy-zh,
.docs-section-title .docs-copy-ja {
  font-size: 0.72em;
  letter-spacing: 0.04em;
}

.docs-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.72;
}

.docs-list-item {
  color: rgba(24, 24, 24, 0.84);
}

.docs-list li + li {
  margin-top: 8px;
}

.docs-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.docs-support-link {
  color: rgba(24, 24, 24, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 24, 24, 0.18);
  padding-bottom: 2px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.docs-support-link:hover {
  opacity: 0.62;
  border-color: rgba(139, 62, 47, 0.42);
}

@media (max-width: 860px) {
  .docs-hero,
  .docs-section,
  .docs-block-grid,
  .docs-toc-grid {
    grid-template-columns: 1fr;
  }

  .docs-section {
    gap: 14px;
  }

  .docs-toc-link {
    grid-template-columns: 36px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .docs-toc {
    margin-top: 22px;
    padding-top: 14px;
  }

  .docs-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .docs-section {
    padding: 22px 0;
  }

  .docs-section-body {
    gap: 16px;
  }

  .docs-toc-link {
    padding: 12px 0;
  }

  .docs-list {
    font-size: 0.9rem;
  }
}

/* ── site language switcher ── */

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(28px, 5vw, 48px);
}

.site-controls {
  display: flex;
  justify-content: center;
  width: 100%;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px) saturate(0.9);
}

.language-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(24, 24, 24, 0.64);
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.language-button:hover {
  opacity: 0.72;
}

.language-button.active {
  background: rgba(120, 134, 155, 0.18);
  color: rgba(24, 24, 24, 0.9);
}

.lang-hidden {
  display: none !important;
}

.menu-link .lang-active {
  display: block;
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(20, 20, 20, 0.82);
}

.tagline .lang-active {
  display: block;
  font-family: "Oswald", "Noto Serif JP", serif;
  letter-spacing: 0.08em;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--muted);
}

:is(
  .price-copy-en,
  .price-copy-zh,
  .price-copy-ja,
  .price-copy-zh-hans,
  .price-copy-zh-hant,
  .price-copy-ko,
  .docs-copy-en,
  .docs-copy-zh,
  .docs-copy-ja,
  .docs-copy-zh-hans,
  .docs-copy-zh-hant,
  .docs-copy-ko
).lang-active {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-top: 0;
}

.feature-title .lang-active {
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: clamp(1.18rem, 1.8vw, 1.46rem);
  letter-spacing: 0.06em;
  line-height: 1.04;
  text-transform: uppercase;
}

.feature-lead .feature-title .lang-active {
  font-size: clamp(1.42rem, 2.5vw, 1.9rem);
}

.feature-copy .lang-active,
.features-subtitles .lang-active,
.price-subtitles .lang-active,
.price-note .lang-active,
.price-footnote .lang-active,
.docs-copy-stack .lang-active {
  color: rgba(24, 24, 24, 0.82);
}

.price-plan-line .lang-active {
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price-features li {
  grid-template-columns: 18px minmax(0, 1fr);
}

.price-features li > .lang-active {
  grid-column: 2;
}

.docs-toc-copy .lang-active {
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-section-title .lang-active,
.docs-block-title .lang-active {
  font-family: inherit;
  font-size: 1em;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  color: inherit;
}

.docs-title .lang-active {
  display: block;
  font-family: "Oswald", "Noto Serif JP", serif;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  color: inherit;
}

@media (max-width: 860px) {
  .language-switch {
    width: min(100%, 560px);
    justify-content: space-between;
  }

  .top {
    gap: clamp(22px, 6vw, 32px);
    padding-bottom: clamp(20px, 6vw, 32px);
  }

  .language-button {
    flex: 1;
    min-width: 0;
    padding: 9px 8px;
  }

  .menu-link .lang-active {
    font-size: clamp(11px, 3.2vw, 14px);
    letter-spacing: 0.08em;
  }

  .tagline .lang-active {
    font-size: clamp(10px, 2.6vw, 12px);
  }
}

@media (max-width: 560px) {
  .language-button {
    font-size: 0.7rem;
    padding: 9px 6px;
  }

  .feature-title .lang-active,
  .feature-lead .feature-title .lang-active {
    font-size: clamp(1rem, 5vw, 1.28rem);
  }

  .price-plan-line .lang-active {
    font-size: clamp(0.94rem, 4.6vw, 1.08rem);
  }

  .docs-toc-copy .lang-active {
    font-size: 0.88rem;
  }
}
