:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #59636f;
  --paper: #ffffff;
  --paper-strong: #f3f5f7;
  --surface: #ffffff;
  --sage: #f3f5f7;
  --line: #d6dbe3;
  --gold: #ffd21f;
  --gold-ink: #171100;
  --gold-deep: #8a6b00;
  --green: #2f3843;
  --black: #060708;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

br.mobile-break {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 32px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  color: var(--ink);
  border-bottom: 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 8px solid var(--gold);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
  justify-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 88px;
}

.hero-copy {
  max-width: 720px;
  text-align: center;
}

.hero-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-product img {
  width: 104px;
  flex: 0 0 auto;
  border-radius: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 58px;
  line-height: 1;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero h1 {
  margin: 0;
  font-size: 92px;
  line-height: 0.95;
}

.hero-catch {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 76px;
  font-weight: 900;
  line-height: 1.04;
  word-break: keep-all;
  overflow-wrap: normal;
}

.optical-period {
  display: inline-block;
  width: 0;
  transform: translateX(0.04em);
}

h2 {
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: normal;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}

.lead {
  max-width: 600px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: var(--gold-ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.on-dark {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-actions .button {
  width: 260px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.icon-link-only {
  width: 38px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
  border-color: #000;
  color: #fff;
  background: #000;
}

.icon-link-mark {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.hero-motion {
  width: min(100%, 700px);
  margin: 0;
  padding: 22px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-align: left;
}

.hero-motion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.hero-motion-top span,
.hero-motion-top strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.hero-motion-top i {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--gold);
}

.hero-motion-top strong {
  color: var(--gold);
}

.motion-mode {
  gap: 6px;
}

.motion-mode span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.motion-mode .mode-separator {
  padding-inline: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.48);
}

.mode-en {
  animation: heroModeEn 5.4s step-end infinite;
}

.mode-ja {
  animation: heroModeJa 5.4s step-end infinite;
}

.hero-motion-line {
  display: flex;
  align-items: baseline;
  min-height: 140px;
  padding: 34px 0 30px;
  overflow: hidden;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.motion-hello {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  animation: heroTypeHello 5.4s steps(11, end) infinite;
}

.motion-kana {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  margin-left: 0.22em;
  color: var(--gold);
  animation: heroTypeKana 5.4s steps(8, end) infinite;
}

.motion-caret {
  width: 3px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--paper);
  animation: heroCaret 0.9s step-end infinite;
}

.hero-motion-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hero-motion-keys span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
}

.motion-key-left {
  animation: heroLeftCommand 5.4s step-end infinite;
}

.motion-key-right {
  animation: heroRightCommand 5.4s step-end infinite;
}

.hero-motion figcaption {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.hero-motion:hover * {
  animation-play-state: paused;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.mascot-card {
  justify-self: end;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(100%, 430px);
  padding: 14px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 0;
  background: var(--surface);
}

.mascot-card img {
  width: 72px;
  height: 72px;
  border-radius: 0;
}

.mascot-card p {
  margin: 0;
}

.mascot-card strong,
.mascot-card span {
  display: block;
}

.mascot-card strong {
  margin-bottom: 3px;
  font-size: 17px;
}

.mascot-card span {
  color: var(--muted);
  font-size: 13px;
}

.keyboard-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mini-key,
.mini-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 0;
  font-weight: 800;
}

.mini-key {
  min-width: 64px;
  padding: 0 13px;
  color: var(--gold-ink);
  background: var(--gold);
}

.mini-arrow {
  min-width: 56px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
}

.hero-visual img {
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 0;
}

.hero-facts {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.container.narrow {
  width: min(780px, calc(100% - 48px));
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 68px 0;
}

.keys-section {
  background: var(--sage);
}

.key-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.key-card,
.promise-panel {
  min-height: 188px;
  padding: 22px;
  border-radius: 0;
  background: var(--surface);
}

.key-card p,
.promise-panel li {
  margin-bottom: 0;
  color: var(--muted);
}

.promise-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.keycap-row {
  display: flex;
  gap: 8px;
  min-height: 46px;
  margin-bottom: 18px;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #bcc3cc;
  border-bottom-width: 3px;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  line-height: 1;
}

.promise-section {
  background: var(--paper);
}

.promise-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promise-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.promise-panel li {
  padding-left: 18px;
  position: relative;
}

.promise-panel li::before {
  position: absolute;
  left: 0;
  content: "・";
  color: var(--green);
  font-weight: 800;
}

.promise-panel-strong {
  background: #f5fbf7;
}

.concept-grid {
  margin-top: 30px;
}

.product-shot {
  background: var(--paper-strong);
}

.origin-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.origin-copy {
  padding: 24px 0;
  border-top: 3px solid var(--ink);
}

.origin-copy p {
  color: var(--muted);
}

.origin-copy p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: center;
}

.split > * {
  min-width: 0;
}

.split p {
  color: var(--muted);
}

.split img {
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 0;
}

.privacy-note-section {
  padding: 34px 0;
  color: var(--surface);
  background: var(--ink);
}

.privacy-note-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-note-inner h2 {
  margin: 0;
  font-size: 26px;
}

.privacy-note-inner a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.site-doors {
  background: var(--paper);
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.door-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: var(--surface);
  text-decoration: none;
}

.door-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.door-card strong {
  font-size: 17px;
  line-height: 1.45;
}

.door-actions {
  margin-top: 22px;
}

.site-map-section {
  background: var(--sage);
}

.feature-index-grid,
.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-index-card,
.mini-feature-grid article,
.release-note,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.feature-index-card {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.feature-index-card h2,
.mini-feature-grid h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.feature-index-card p,
.mini-feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  color: var(--gold-ink);
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.detail-main p {
  color: var(--muted);
}

.detail-side {
  padding: 22px;
}

.detail-side img {
  margin-bottom: 14px;
}

.detail-side p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-side p + p {
  margin-top: 10px;
}

.detail-side strong {
  color: var(--ink);
}

.detail-key-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
}

.mini-feature-grid article {
  padding: 24px;
}

.release-note {
  padding: 24px;
}

.release-note a {
  color: inherit;
}

.release-note + .release-note {
  margin-top: 16px;
}

.feature-toc-band {
  position: sticky;
  top: 64px;
  z-index: 8;
  padding: 14px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.feature-toc-band h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-toc a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.feature-demo-intro {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.feature-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  gap: 32px;
  align-items: center;
}

.feature-demo-grid p {
  color: var(--muted);
}

.typing-demo,
.guard-demo,
.wrap-demo,
.plain-demo,
.snippet-demo,
.keypad-demo,
.preset-demo,
.input-stage {
  border: 1px solid var(--ink);
  background: var(--surface);
}

.input-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  min-height: 330px;
}

.stage-editor {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.stage-line {
  position: relative;
  min-height: 126px;
  margin: 28px 0 24px;
  color: var(--ink);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.45;
}

.stage-typing-ja,
.stage-typing-en {
  display: inline-block;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.stage-typing-ja {
  animation: stageTypeJa 7s steps(18, end) infinite;
}

.stage-typing-en {
  color: var(--green);
  animation: stageTypeEn 7s steps(9, end) infinite;
}

.stage-wrap-before,
.stage-wrap-after {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-block;
  font-size: 24px;
}

.stage-wrap-before {
  animation: stageWrapBefore 7s linear infinite;
}

.stage-wrap-after {
  color: var(--green);
  opacity: 0;
  animation: stageWrapAfter 7s linear infinite;
}

.stage-command {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.stage-command span,
.stage-command strong {
  padding: 8px 10px;
}

.stage-command span {
  height: 100%;
  border-right: 1px solid var(--line);
  color: var(--gold-ink);
  background: var(--gold);
  font-weight: 900;
  text-align: center;
}

.stage-command strong {
  color: var(--muted);
  font-size: 13px;
}

.stage-command-one {
  animation: stageCommandOne 7s linear infinite;
}

.stage-command-two {
  animation: stageCommandTwo 7s linear infinite;
}

.stage-command-three {
  animation: stageCommandThree 7s linear infinite;
}

.stage-side {
  display: grid;
  align-content: stretch;
  min-width: 0;
}

.stage-side div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.stage-side div:last-child {
  border-bottom: 0;
}

.stage-side span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stage-side strong {
  font-size: 16px;
}

.stage-mode-text {
  animation: stageModeText 7s linear infinite;
}

.typing-demo {
  padding: 18px;
  margin-top: 24px;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.demo-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.demo-title {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mode-badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.mode-kana {
  animation: modeKana 6s linear infinite;
}

.mode-eisu {
  animation: modeEisu 6s linear infinite;
}

.demo-line {
  min-height: 112px;
  margin: 22px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.45;
}

.demo-ja {
  display: inline-block;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  animation: typeJa 6s steps(15, end) infinite;
}

.demo-ja-second {
  animation: typeJaSecond 6s steps(3, end) infinite;
}

.demo-en {
  display: inline-block;
  max-width: 0;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  animation: typeEn 6s steps(9, end) infinite;
}

.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--ink);
  vertical-align: -0.16em;
  animation: blinkCaret 0.8s steps(2, start) infinite;
}

.demo-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.demo-keys span {
  min-height: 40px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  font-weight: 800;
}

.feature-detail-section,
.feature-faq-section {
  scroll-margin-top: 150px;
}

.feature-detail-section {
  border-bottom: 1px solid var(--line);
}

.feature-detail-section.alt {
  background: var(--paper-strong);
}

.feature-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 34px;
  align-items: start;
}

.feature-detail-copy p {
  color: var(--muted);
}

.feature-detail-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.feature-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  counter-reset: feature-step;
  list-style: none;
}

.feature-step {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  counter-increment: feature-step;
}

.feature-step:last-child {
  border-bottom: 0;
}

.feature-step__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feature-step__label::before {
  content: counter(feature-step) ". ";
}

.feature-step__body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.feature-step--can .check-list {
  gap: 8px;
  margin: 8px 0 0;
}

.feature-step--can .check-list li {
  padding: 10px 12px;
  background: var(--surface);
}

.feature-detail-panel .check-list {
  margin-bottom: 0;
}

.feature-faq-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.faq-item {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-next-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.step-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.step-key {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-bottom-width: 2px;
  font-size: 13px;
}

.step-conjunction {
  color: var(--muted);
}

.settings-preview {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.settings-preview-head,
.settings-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 80px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-preview-head {
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.settings-row {
  font-weight: 900;
}

.settings-row em {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  color: var(--gold-ink);
  background: var(--gold);
  font-style: normal;
  font-size: 12px;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-tabs span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.settings-tabs .is-active {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}

.settings-preview figcaption {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.guard-demo {
  display: grid;
  grid-template-columns: 86px 1fr 1fr;
  gap: 0;
  margin-top: 24px;
}

.guard-demo > * {
  min-height: 58px;
  padding: 16px;
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.guard-demo > *:last-child {
  border-right: 0;
}

.guard-key {
  color: var(--gold-ink);
  background: var(--gold);
}

.step-one {
  animation: guardHold 4s linear infinite;
}

.step-two {
  animation: guardPass 4s linear infinite;
}

.wrap-demo {
  position: relative;
  min-height: 92px;
  margin-top: 24px;
  padding: 26px;
  font-size: 28px;
  font-weight: 800;
}

.wrap-before,
.wrap-after {
  position: absolute;
  left: 26px;
  top: 26px;
}

.wrap-before {
  animation: wrapBefore 4s linear infinite;
}

.wrap-after {
  color: var(--green);
  opacity: 0;
  animation: wrapAfter 4s linear infinite;
}

.pair-demo {
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
  font-weight: 800;
}

.pair-demo span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.pair-demo span:last-child {
  border-right: 0;
}

.pair-key {
  color: var(--gold-ink);
  background: var(--gold);
}

.pair-after {
  color: var(--green);
  opacity: 0;
  animation: pairReveal 4s linear infinite;
}

.plain-demo,
.snippet-demo {
  margin-top: 24px;
}

.plain-demo {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: stretch;
}

.plain-demo > * {
  min-height: 88px;
  padding: 16px;
}

.plain-source,
.plain-result {
  display: grid;
  gap: 8px;
  align-content: center;
  font-weight: 800;
}

.plain-source {
  color: var(--muted);
  background: var(--paper-strong);
}

.plain-source em {
  color: var(--ink);
  font-weight: 900;
  font-style: normal;
  text-decoration: underline;
}

.plain-action {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  color: var(--gold-ink);
  background: var(--gold);
  font-weight: 900;
  animation: plainPulse 4s linear infinite;
}

.plain-result {
  color: var(--ink);
}

.plain-result span {
  opacity: 0;
  animation: plainReveal 4s linear infinite;
}

.character-demo {
  display: grid;
  grid-template-columns: 1fr 94px 190px;
  align-items: stretch;
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
}

.character-selection,
.character-shortcut,
.character-hud {
  min-height: 96px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.character-selection {
  display: grid;
  align-content: center;
  color: var(--muted);
  font-weight: 800;
}

.character-shortcut {
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: var(--gold);
  font-weight: 900;
  animation: characterShortcutPulse 5s linear infinite;
}

.character-hud {
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 0;
  opacity: 0;
  animation: characterHUD 5s linear infinite;
}

.character-hud span,
.character-hud small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.character-hud strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.snippet-demo {
  padding: 18px;
}

.snippet-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.snippet-row:last-child {
  border-bottom: 0;
}

.snippet-key {
  color: var(--green);
}

.snippet-body {
  color: var(--muted);
}

.snippet-demo .snippet-row:nth-child(1) {
  animation: snippetFocusOne 5s linear infinite;
}

.snippet-demo .snippet-row:nth-child(2) {
  animation: snippetFocusTwo 5s linear infinite;
}

.snippet-insert-demo {
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.snippet-editor {
  padding: 16px;
}

.snippet-editor p {
  min-height: 70px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}

.snippet-output {
  display: inline-block;
  max-width: 0;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  animation: snippetInsert 5s steps(14, end) infinite;
}

.keypad-demo {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.55fr) 0.65fr 1.2fr;
  gap: 0;
  align-items: stretch;
  margin-top: 24px;
  overflow: hidden;
  font-weight: 900;
}

.num-key,
.num-result,
.num-caption {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.num-caption {
  border-right: 0;
  color: var(--muted);
  font-size: 13px;
}

.num-key {
  background: var(--paper);
}

.num-key.active {
  animation: keypadActive 4s linear infinite;
}

.num-result {
  color: var(--green);
  font-size: 28px;
  animation: keypadResult 4s linear infinite;
}

.preset-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  overflow: hidden;
}

.preset-pill {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.preset-pill:last-child {
  border-right: 0;
}

.preset-one {
  animation: presetOne 6s linear infinite;
}

.preset-two {
  animation: presetTwo 6s linear infinite;
}

.preset-three {
  animation: presetThree 6s linear infinite;
}

@keyframes stageTypeJa {
  0%, 8% { max-width: 0; }
  28%, 100% { max-width: 19em; }
}

@keyframes stageTypeEn {
  0%, 67% { max-width: 0; }
  84%, 100% { max-width: 8em; }
}

@keyframes stageWrapBefore {
  0%, 38% { opacity: 0; transform: translateY(8px); }
  39%, 52% { opacity: 1; transform: translateY(0); }
  53%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes stageWrapAfter {
  0%, 52% { opacity: 0; transform: translateY(8px); }
  53%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes stageCommandOne {
  0%, 31% { background: var(--gold); }
  32%, 100% { background: var(--paper); }
}

@keyframes stageCommandTwo {
  0%, 45% { background: var(--paper); }
  46%, 61% { background: var(--gold); }
  62%, 100% { background: var(--paper); }
}

@keyframes stageCommandThree {
  0%, 70% { background: var(--paper); }
  71%, 100% { background: var(--gold); }
}

@keyframes stageModeText {
  0%, 65% { color: var(--ink); }
  66%, 100% { color: var(--green); }
}

@keyframes typeJa {
  0%, 10% { max-width: 0; }
  44%, 100% { max-width: 18em; }
}

@keyframes typeJaSecond {
  0%, 82% { max-width: 0; }
  83%, 100% { max-width: 4em; }
}

@keyframes typeEn {
  0%, 54% { max-width: 0; }
  72%, 100% { max-width: 4em; }
}

@keyframes modeKana {
  0%, 55% { background: var(--gold); color: var(--gold-ink); }
  56%, 100% { background: var(--surface); color: var(--muted); }
}

@keyframes modeEisu {
  0%, 55% { background: var(--surface); color: var(--muted); }
  56%, 100% { background: var(--gold); color: var(--gold-ink); }
}

@keyframes blinkCaret {
  50% { opacity: 0; }
}

@keyframes guardHold {
  0%, 42% { background: var(--gold); color: var(--gold-ink); }
  43%, 100% { background: var(--surface); color: var(--muted); }
}

@keyframes guardPass {
  0%, 55% { background: var(--surface); color: var(--muted); }
  56%, 100% { background: var(--gold); color: var(--gold-ink); }
}

@keyframes wrapBefore {
  0%, 45% { opacity: 1; transform: translateY(0); }
  46%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes wrapAfter {
  0%, 45% { opacity: 0; transform: translateY(8px); }
  46%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes pairReveal {
  0%, 45% { opacity: 0; transform: translateX(-8px); }
  46%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes plainPulse {
  0%, 36% { background: var(--gold); }
  37%, 100% { background: var(--paper-strong); }
}

@keyframes plainReveal {
  0%, 36% { opacity: 0; }
  37%, 100% { opacity: 1; }
}

@keyframes characterShortcutPulse {
  0%, 37% { background: var(--gold); }
  38%, 100% { background: var(--paper-strong); }
}

@keyframes characterHUD {
  0%, 37% { opacity: 0; transform: translateY(8px); }
  38%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes snippetFocusOne {
  0%, 45% { background: var(--gold); }
  46%, 100% { background: transparent; }
}

@keyframes snippetFocusTwo {
  0%, 55% { background: transparent; }
  56%, 100% { background: var(--gold); }
}

@keyframes snippetInsert {
  0%, 55% { max-width: 0; }
  82%, 100% { max-width: 15em; }
}

@keyframes keypadActive {
  0%, 45% { background: var(--paper); color: var(--ink); }
  46%, 100% { background: var(--gold); color: var(--gold-ink); }
}

@keyframes keypadResult {
  0%, 45% { opacity: 0; }
  46%, 100% { opacity: 1; }
}

@keyframes presetOne {
  0%, 31% { background: var(--gold); color: var(--gold-ink); }
  32%, 100% { background: transparent; color: var(--muted); }
}

@keyframes presetTwo {
  0%, 35% { background: transparent; color: var(--muted); }
  36%, 64% { background: var(--gold); color: var(--gold-ink); }
  65%, 100% { background: transparent; color: var(--muted); }
}

@keyframes presetThree {
  0%, 68% { background: transparent; color: var(--muted); }
  69%, 100% { background: var(--gold); color: var(--gold-ink); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .stage-typing-ja,
  .stage-typing-en,
  .demo-ja,
  .demo-en,
  .demo-ja-second,
  .snippet-output {
    max-width: none !important;
  }

  .stage-wrap-before,
  .wrap-before {
    opacity: 0 !important;
  }

  .stage-wrap-after,
  .wrap-after,
  .pair-after,
  .plain-result span,
  .character-hud,
  .num-result {
    opacity: 1 !important;
    transform: none !important;
  }
}

.download {
  background: var(--surface);
}

.download-cta {
  text-align: center;
  color: var(--paper);
  background: var(--black);
}

.download-cta-icon {
  width: 72px;
  margin: 0 auto 18px;
  border-radius: 0;
}

.download p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.download-cta h2 {
  color: var(--paper);
}

.download-cta .section-kicker,
.download-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.download-cta .download-actions {
  justify-content: center;
  margin-top: 24px;
}

.download-cta .button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.install-section {
  background: var(--paper-strong);
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: start;
}

.install-layout p {
  color: var(--muted);
}

.install-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 118px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.install-steps li:last-child {
  border-bottom: 0;
}

.install-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold-ink);
  background: var(--gold);
  font-weight: 900;
}

.install-steps h3,
.install-steps p {
  margin-bottom: 0;
}

.install-steps p {
  color: var(--muted);
}

.settings-route-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-strong);
  font-size: 13px;
  font-weight: 800;
}

.settings-route-inline span {
  width: auto;
  height: auto;
  color: var(--gold-ink);
  background: var(--gold);
  padding: 3px 6px;
  font-size: 12px;
}

.settings-route-card {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.settings-route-card__path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.settings-route-card__path span::after {
  content: "→";
  margin-left: 8px;
  color: var(--muted);
}

.settings-route-card__path strong {
  color: var(--ink);
}

.settings-route-card__panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  min-height: 132px;
  color: var(--ink);
}

.settings-route-card__sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settings-route-card__main {
  padding: 18px;
}

.settings-route-card__main p {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 900;
}

.settings-route-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  font-weight: 900;
}


.page-hero {
  padding: 86px 0 56px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 8px solid var(--gold);
}

.page-hero .container.narrow {
  text-align: center;
}

.page-hero h1 {
  font-size: 58px;
}

.page-hero .button {
  margin-top: 8px;
}

.page-hero-icon {
  width: 72px;
  margin: 0 auto 18px;
  border-radius: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.note {
  padding: 18px;
  color: var(--muted);
  border-left: 4px solid var(--gold);
  background: var(--surface);
}

.prose h2 {
  margin-top: 38px;
  font-size: 27px;
}

.article-body > p {
  color: var(--muted);
}

.article-body pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.support-template {
  white-space: pre-wrap;
}

.support-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.support-form,
.support-guidance {
  border: 1px solid var(--line);
  background: var(--surface);
}

.support-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.support-form-head p,
.support-guidance p,
.support-status {
  color: var(--muted);
}

.support-form-head h2,
.support-form-head p,
.support-guidance h2,
.support-guidance p {
  margin-bottom: 0;
}

.support-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.support-form label span {
  font-size: 14px;
}

.field-help {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-help[data-tone="near-limit"] {
  color: var(--gold-ink);
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.support-form input {
  min-height: 46px;
  padding: 0 13px;
}

.support-form textarea {
  min-height: 190px;
  padding: 12px 13px;
  resize: vertical;
}

.support-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-turnstile {
  min-height: 65px;
}

.support-turnstile[hidden],
.support-turnstile-help[hidden] {
  display: none;
}

.support-actions .button {
  min-width: 150px;
}

.support-form button {
  cursor: pointer;
}

.support-form button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.support-status {
  min-height: 28px;
  margin: 0;
  padding: 12px;
  border-left: 4px solid var(--line);
  background: var(--paper);
}

.support-status[data-tone="success"] {
  color: var(--green);
  border-left-color: var(--green);
}

.support-status[data-tone="error"],
.support-status[data-tone="fallback"] {
  color: var(--gold-ink);
  border-left-color: var(--gold);
}

.support-copy-output {
  min-height: 180px;
}

.support-copy-output[hidden] {
  display: none;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-guidance {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.support-guidance .check-list {
  margin: 0;
}

.article-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body pre code {
  white-space: pre-wrap;
}

.site-footer {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  font-size: 14px;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-company {
  font-weight: 900;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 0;
  color: var(--white);
}

.footer-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: transparent;
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

.section-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.kk-demo {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.kk-demo figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.demo-window {
  position: relative;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.demo-toolbar span:first-child {
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.demo-toolbar b {
  margin-left: auto;
  color: var(--gold);
  font-size: 12px;
}

.preview-text {
  position: relative;
  z-index: 1;
  margin: 54px 0 0;
  color: var(--paper);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.6;
}

.preview-selection {
  position: absolute;
  left: 18px;
  top: 110px;
  width: 82%;
  height: 42px;
  background: rgba(255, 210, 31, 0.35);
}

.preview-pointer,
.count-pointer {
  position: absolute;
  left: 68%;
  top: 154px;
  width: 0;
  height: 0;
  border-left: 13px solid var(--paper);
  border-top: 18px solid transparent;
}

.preview-badge {
  position: absolute;
  left: 70%;
  top: 176px;
  min-width: 58px;
  padding: 7px 10px;
  color: var(--gold-ink);
  background: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.name-section,
.starter-section {
  background: var(--paper-strong);
}

.capability-section {
  background: var(--paper);
}

.app-split-section {
  background: var(--ink);
  color: var(--paper);
}

.app-split-section .section-kicker,
.app-split-section .origin-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.app-split-section .origin-copy {
  border-top-color: var(--gold);
}

.app-split-copy {
  display: grid;
  gap: 16px;
}

.settings-toggle-demo {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #080a0d;
}

.settings-toggle-demo__head,
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 12px 14px;
}

.settings-toggle-demo__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.settings-toggle-demo__head strong {
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0;
}

.settings-toggle-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-weight: 800;
}

.settings-toggle-row:last-child {
  border-bottom: 0;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 22px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #15181d;
}

.settings-switch span {
  display: block;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.settings-switch.is-on {
  justify-content: flex-end;
  border-color: var(--gold);
  background: var(--gold);
}

.settings-switch.is-on span {
  background: var(--ink);
}

.verb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.verb-item {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: inherit;
  background: var(--paper);
  transition: background-color 160ms ease, color 160ms ease;
}

.verb-item:hover {
  color: var(--gold-ink);
  background: var(--gold);
}

.verb-item:hover span {
  color: var(--gold-ink);
}

.feature-toc a:hover {
  color: var(--gold-ink);
  background: var(--gold);
}

.capability-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 26px;
  color: var(--paper);
  background: var(--ink);
}

.capability-cta .section-kicker {
  color: var(--gold);
}

.capability-cta h3 {
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 24px;
}

.capability-cta p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.capability-cta .button {
  flex: 0 0 auto;
  min-width: 260px;
}

.verb-item strong {
  font-size: 19px;
}

.verb-item span,
.starter-steps p {
  color: var(--muted);
}

.starter-section .split {
  align-items: center;
}

.starter-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.starter-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.starter-steps span {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-ink);
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.starter-steps strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.starter-steps p {
  margin: 0;
  font-weight: 800;
}

.kk-demo {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 280px;
  max-width: 720px;
  padding: 18px;
  overflow: hidden;
}

.kk-demo:hover * {
  animation-play-state: paused;
}

.demo-type-line {
  min-height: 112px;
  margin: 16px 0 0;
  color: var(--paper);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
}

.demo-type-line span {
  display: inline-block;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.type-hello {
  animation: kkTypeHello 5s steps(11, end) infinite;
}

.type-ja {
  color: var(--gold);
  animation: kkTypeJa 5s steps(5, end) infinite;
}

.demo-type-line i {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--paper);
  vertical-align: -0.16em;
  animation: kkCaret 0.8s steps(2, start) infinite;
}

.demo-key-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-key-row span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.left-command {
  animation: kkLeftCommand 5s linear infinite;
}

.right-command {
  animation: kkRightCommand 5s linear infinite;
}

.paste-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.paste-columns span {
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.paste-columns span:last-child {
  border-right: 0;
}

.styled-source {
  color: rgba(255, 255, 255, 0.68);
}

.styled-source b {
  color: var(--paper);
}

.styled-source em {
  color: var(--gold);
  font-style: normal;
  text-decoration: underline;
}

.paste-command {
  color: var(--gold-ink);
  background: var(--gold);
  animation: kkPasteCommand 5s linear infinite;
}

.plain-target {
  opacity: 0;
  animation: kkPlainTarget 5s linear infinite;
}

.char-count-demo {
  min-height: 300px;
}

.count-document {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--paper);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.45;
}

.count-document mark {
  color: var(--paper);
  background: rgba(255, 210, 31, 0.34);
  padding: 0 4px;
}

.char-count-demo .count-pointer {
  left: 49%;
  top: 132px;
  opacity: 0;
  animation: kkCountHUD 5s linear infinite;
}

.count-hud {
  position: absolute;
  left: calc(49% + 28px);
  top: 130px;
  z-index: 2;
  width: 292px;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  color: var(--paper);
  background: rgba(16, 17, 18, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  opacity: 0;
  animation: kkCountHUD 5s linear infinite;
}

.count-hud-title {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.count-hud dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.count-hud div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.count-hud dt {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.count-hud dd {
  margin: 0;
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
}

.numpad-symbol-demo {
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.numpad-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.numpad-comma {
  animation: kkNumpadComma 6s linear infinite;
}

.numpad-hold {
  animation: kkNumpadHold 6s linear infinite;
}

.numpad-yen-key {
  animation: kkNumpadYenKey 6s linear infinite;
}

.numpad-symbol-key {
  animation: kkNumpadSymbolKey 6s linear infinite;
}

.numpad-dash {
  animation: kkNumpadDash 6s linear infinite;
}

.numpad-editor {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 900;
}

.numpad-editor span {
  min-width: 0;
}

.numpad-editor b {
  display: inline-block;
  color: var(--gold);
  font-weight: 900;
}

.numpad-price {
  opacity: 0;
  animation: kkNumpadPrice 6s linear infinite;
}

.numpad-yen-out {
  opacity: 0;
  animation: kkNumpadYenOut 6s linear infinite;
}

.numpad-note {
  display: inline-block;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  animation: kkNumpadNote 6s linear infinite;
}

.numpad-dash-out {
  opacity: 0;
  animation: kkNumpadDashOut 6s linear infinite;
}

.numpad-symbol-demo figcaption {
  grid-column: 1 / -1;
}

.bracket-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.bracket-editor span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.bracket-editor span:last-child {
  border-right: 0;
}

.bracket-before {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.bracket-shortcut {
  color: var(--gold-ink);
  background: var(--gold);
  animation: kkBracketShortcut 5s linear infinite;
}

.bracket-after {
  color: var(--gold);
  opacity: 0;
  animation: kkBracketAfter 5s linear infinite;
}

.bracket-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bracket-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.bracket-options .is-active {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}

.ledger-demo {
  gap: 0;
}

.ledger-table {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 110px 130px 130px 110px 64px 64px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.ledger-head {
  color: var(--gold);
  font-size: 13px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row span,
.ledger-row strong {
  min-width: 0;
}

.ledger-row strong {
  color: var(--gold);
}

.ledger-row em,
.ledger-row i {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  font-style: normal;
  font-size: 12px;
}

.ledger-row em {
  color: var(--gold-ink);
  background: var(--gold);
}

.ledger-row i {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.snippet-editor-v3 {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 900;
}

.snippet-editor-v3 b {
  display: inline-block;
  max-width: 0;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  animation: kkSnippetInsert 5s steps(12, end) infinite;
}

.snippet-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.snippet-shortcuts span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.snippet-shortcuts span:first-child {
  animation: kkSnippetFocus 5s linear infinite;
}

@keyframes kkTypeHello {
  0%, 8% { max-width: 0; }
  28%, 100% { max-width: 9em; }
}

@keyframes kkTypeJa {
  0%, 38% { max-width: 0; }
  72%, 100% { max-width: 6em; }
}

@keyframes kkCaret {
  50% { opacity: 0; }
}

@keyframes kkLeftCommand {
  0%, 30% { background: var(--gold); color: var(--gold-ink); }
  31%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkRightCommand {
  0%, 38% { background: transparent; color: var(--paper); }
  39%, 78% { background: var(--gold); color: var(--gold-ink); }
  79%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkPasteCommand {
  0%, 42% { opacity: 1; }
  43%, 100% { opacity: 0.55; }
}

@keyframes kkPlainTarget {
  0%, 45% { opacity: 0; }
  46%, 100% { opacity: 1; }
}

@keyframes kkCountHUD {
  0%, 42% { opacity: 0; transform: translateY(8px); }
  43%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes kkNumpadComma {
  0%, 18% { background: transparent; color: var(--paper); }
  19%, 34% { background: var(--gold); color: var(--gold-ink); }
  35%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkNumpadHold {
  0%, 16% { background: transparent; color: var(--paper); }
  17%, 84% { background: var(--gold); color: var(--gold-ink); }
  85%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkNumpadYenKey {
  0%, 36% { background: transparent; color: var(--paper); }
  37%, 52% { background: var(--gold); color: var(--gold-ink); }
  53%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkNumpadSymbolKey {
  0%, 54% { background: transparent; color: var(--paper); }
  55%, 70% { background: var(--gold); color: var(--gold-ink); }
  71%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkNumpadYenOut {
  0%, 40% { opacity: 0; }
  41%, 100% { opacity: 1; }
}

@keyframes kkNumpadNote {
  0%, 56% { opacity: 0; max-width: 0; }
  57%, 100% { opacity: 1; max-width: 22em; }
}

@keyframes kkNumpadDash {
  0%, 72% { background: transparent; color: var(--paper); }
  73%, 88% { background: var(--gold); color: var(--gold-ink); }
  89%, 100% { background: transparent; color: var(--paper); }
}

@keyframes kkNumpadDashOut {
  0%, 76% { opacity: 0; }
  77%, 100% { opacity: 1; }
}

@keyframes kkNumpadPrice {
  0%, 20% { opacity: 0; }
  21%, 100% { opacity: 1; }
}

@keyframes kkBracketShortcut {
  0%, 34% { opacity: 0.55; }
  35%, 58% { opacity: 1; }
  59%, 100% { opacity: 0.55; }
}

@keyframes kkBracketAfter {
  0%, 48% { opacity: 0; transform: translateY(5px); }
  49%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes kkSnippetInsert {
  0%, 38% { max-width: 0; }
  74%, 100% { max-width: 14em; }
}

@keyframes kkSnippetFocus {
  0%, 32% { background: transparent; color: var(--paper); }
  33%, 72% { background: var(--gold); color: var(--gold-ink); }
  73%, 100% { background: transparent; color: var(--paper); }
}

@keyframes heroTypeHello {
  0%, 5% { max-width: 0; }
  24%, 92% { max-width: 11ch; }
  100% { max-width: 0; }
}

@keyframes heroTypeKana {
  0%, 38% { max-width: 0; }
  68%, 92% { max-width: 9em; }
  100% { max-width: 0; }
}

@keyframes heroCaret {
  50% { opacity: 0; }
}

@keyframes heroLeftCommand {
  0%, 31% { background: var(--gold); color: var(--gold-ink); }
  32%, 100% { background: transparent; color: var(--paper); }
}

@keyframes heroRightCommand {
  0%, 36% { background: transparent; color: var(--paper); }
  37%, 78% { background: var(--gold); color: var(--gold-ink); }
  79%, 100% { background: transparent; color: var(--paper); }
}

@keyframes heroModeEn {
  0%, 31% { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
  32%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.26); color: var(--gold); }
}

@keyframes heroModeJa {
  0%, 36% { background: transparent; border-color: rgba(255, 255, 255, 0.26); color: var(--gold); }
  37%, 78% { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
  79%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.26); color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  .type-hello,
  .type-ja,
  .motion-hello,
  .motion-kana,
  .snippet-editor-v3 b {
    max-width: none !important;
  }

  .plain-target,
  .count-hud,
  .count-pointer,
  .numpad-editor b,
  .bracket-shortcut,
  .bracket-after,
  .motion-key-left,
  .motion-key-right {
    opacity: 1 !important;
    transform: none !important;
  }

  .numpad-note {
    max-width: none !important;
  }
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner,
  .container,
  .container.narrow {
    width: min(100% - 32px, 1120px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 72px 0 74px;
  }

  br.mobile-break {
    display: initial;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 19px;
  }

  .key-grid,
  .promise-grid,
  .door-grid,
  .faq-grid,
  .feature-index-grid,
  .mini-feature-grid,
  .detail-layout,
  .feature-demo-grid,
  .input-stage,
  .feature-detail,
  .split,
  .install-layout,
  .support-contact-layout,
  .privacy-note-inner {
    grid-template-columns: 1fr;
  }

  .privacy-note-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-toc-band {
    top: 91px;
  }

  .typing-demo,
  .feature-detail-panel {
    min-width: 0;
  }

  .settings-route-card__panel {
    grid-template-columns: 1fr;
  }

  .settings-route-card__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stage-side div {
    min-height: 80px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stage-side div:last-child {
    border-right: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero h1 {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-facts {
    display: none;
  }

  .audience-list,
  .keyboard-strip {
    display: none;
  }

  .hero-visual {
    gap: 14px;
  }

  .hero-shot {
    display: none;
  }

  .mascot-card {
    justify-self: stretch;
  }

  .section,
  .section.compact {
    padding: 54px 0;
  }

  .hero-inner {
    padding: 58px 0 62px;
  }

  .hero-product {
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-product img {
    width: 68px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 0.95;
  }

  .hero-catch {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-motion {
    padding: 16px;
  }

  .hero-motion-line {
    min-height: 112px;
    padding: 28px 0 22px;
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 46px;
    line-height: 1.08;
  }

  .feature-toc-band {
    position: static;
  }

  .feature-demo-grid {
    gap: 20px;
  }

  .demo-line {
    min-height: 96px;
    overflow: hidden;
    font-size: 22px;
  }

  .demo-keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guard-demo {
    grid-template-columns: 1fr;
  }

  .plain-demo {
    grid-template-columns: 1fr;
  }

  .support-field-grid {
    grid-template-columns: 1fr;
  }

  .character-demo,
  .pair-demo,
  .keypad-demo,
  .preset-demo {
    grid-template-columns: 1fr;
  }

  .character-selection,
  .character-shortcut,
  .pair-demo span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .character-hud,
  .pair-demo span:last-child {
    border-bottom: 0;
  }

  .num-key,
  .num-result,
  .num-caption,
  .preset-pill {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .num-caption,
  .preset-pill:last-child {
    border-bottom: 0;
  }

  .plain-action {
    border-block: 1px solid var(--line);
    border-inline: 0;
  }

  .stage-line {
    min-height: 138px;
    font-size: 22px;
  }

  .stage-command {
    grid-template-columns: 58px 1fr;
  }

  .stage-side {
    grid-template-columns: 1fr;
  }

  .stage-side div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guard-demo > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guard-demo > *:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1040px) {
  .app-split-section .split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-split-section .split h2 {
    max-width: 760px;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 840px) {
  .split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .split h2 {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .numpad-symbol-demo,
  .bracket-editor {
    grid-template-columns: 1fr;
  }

  .verb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verb-item:last-child {
    grid-column: 1 / -1;
  }

  .capability-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-cta .button {
    width: 100%;
  }

  .numpad-symbol-demo figcaption,
  .bracket-editor span {
    grid-column: auto;
  }

  .bracket-editor span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .bracket-editor span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .verb-grid {
    grid-template-columns: 1fr;
  }

  .verb-item:last-child {
    grid-column: auto;
  }

  .kk-demo {
    min-height: 260px;
    padding: 14px;
  }

  .preview-text,
  .count-document,
  .demo-type-line {
    font-size: 20px;
  }

  .char-count-demo {
    min-height: 360px;
  }

  .count-document {
    min-height: 132px;
    padding: 18px;
  }

  .char-count-demo .count-pointer {
    left: 44%;
    top: 132px;
  }

  .count-hud {
    left: 18px;
    right: 18px;
    top: 152px;
    width: auto;
  }

  .paste-columns,
  .demo-key-row,
  .settings-preview-head,
  .settings-row,
  .ledger-head,
  .ledger-row,
  .snippet-shortcuts {
    grid-template-columns: 1fr;
  }

  .paste-columns span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .paste-columns span:last-child {
    border-bottom: 0;
  }
}
