/* FlowTab — product site
   A quiet, typographic page. One accent, hairlines, and the product itself. */

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --paper-2: #efeee9;
  --surface: #fcfbf8;
  --surface-2: #f2f1ec;
  --ink: #141413;
  --ink-2: #56564f;
  --ink-3: #74736c;
  --line: #e2e1da;
  --line-strong: #cfcec6;
  --accent: #0a6cff;
  --accent-ink: #0a5ad4;
  --accent-soft: rgba(10, 108, 255, 0.09);
  --green: #2f9e5f;
  --green-soft: rgba(47, 158, 95, 0.11);
  --red: #c04034;
  --red-soft: rgba(192, 64, 52, 0.1);
  --btn-bg: #141413;
  --btn-bg-hover: #000000;
  --btn-fg: #f8f7f3;
  --shadow-stage: 0 40px 80px -52px rgba(20, 20, 19, 0.42);
  --shadow-panel: 0 30px 60px -34px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --wrap: 1200px;
  --pad: clamp(20px, 4.6vw, 56px);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Hiragino Sans", "Noto Sans CJK SC",
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", ui-serif, "Songti SC", "Hiragino Mincho ProN",
    "Yu Mincho", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0e0e0f;
    --paper-2: #151517;
    --surface: #151517;
    --surface-2: #1a1a1d;
    --ink: #f1f0eb;
    --ink-2: #a7a69f;
    --ink-3: #8b8a83;
    --line: #262629;
    --line-strong: #3a3a3e;
    --accent: #4c9dff;
    --accent-ink: #7ab6ff;
    --accent-soft: rgba(76, 157, 255, 0.12);
    --green: #5fc97f;
    --green-soft: rgba(95, 201, 127, 0.12);
    --red: #ff7a6e;
    --red-soft: rgba(255, 122, 110, 0.12);
    --btn-bg: #f1f0eb;
    --btn-bg-hover: #ffffff;
    --btn-fg: #0e0e0f;
    --shadow-stage: 0 40px 90px -52px rgba(0, 0, 0, 0.9);
    --shadow-panel: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(10, 108, 255, 0.2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-word::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.55em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}

.site-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-link {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink-2);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-link svg {
  width: 17px;
  height: 17px;
}

.icon-link:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.lang-switch a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.lang-switch a.is-current {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-small {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

.header-actions .btn-small {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.header-actions .btn-small:hover {
  border-color: var(--ink);
  background: var(--accent-soft);
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

.link-arrow:hover svg {
  transform: translate(1px, -1px);
}

.github-small {
  width: 15px;
  height: 15px;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 108px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(10, 108, 255, 0.06), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 4.9vw, 66px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

html[lang="en"] .hero h1 {
  font-size: clamp(42px, 4.7vw, 64px);
  letter-spacing: -0.04em;
}

html[lang="ja"] .hero h1 {
  font-size: clamp(40px, 3.9vw, 54px);
  letter-spacing: -0.025em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 35em;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-lede .line {
  display: block;
}

@media (max-width: 520px) {
  .hero-lede .line + .line {
    margin-top: 2px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.meta-dot {
  color: var(--ink-3);
  opacity: 0.55;
}

.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.05s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.1s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.14s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.18s;
}

.hero-figure {
  position: relative;
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-figure figcaption {
  max-width: 46em;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

/* The stage: a browser, a menu bar tool, and a search window */

.stage {
  position: relative;
  aspect-ratio: 1.04;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(100% 75% at 82% 0%, rgba(10, 108, 255, 0.1), transparent 62%),
    linear-gradient(158deg, #f3f2ee 0%, #eae9e4 52%, #e3e2dc 100%);
  box-shadow: var(--shadow-stage), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 20, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 19, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}

.browser {
  position: absolute;
  top: 9%;
  left: 6.5%;
  right: -13%;
  bottom: 11%;
  display: flex;
  flex-direction: column;
  background: #fbfbf9;
  border: 1px solid rgba(20, 20, 19, 0.13);
  border-radius: 12px;
  box-shadow: 0 24px 50px -32px rgba(20, 20, 19, 0.45);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 11px;
  background: #e9e8e3;
  border-bottom: 1px solid rgba(20, 20, 19, 0.07);
  flex-shrink: 0;
}

.traffic {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.traffic i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8d7d1;
}

.traffic i:nth-child(1) {
  background: #e6a29a;
}

.traffic i:nth-child(2) {
  background: #e7c878;
}

.traffic i:nth-child(3) {
  background: #a3cba9;
}

.browser-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.btab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  max-width: 96px;
  padding: 0 9px;
  color: #77766f;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.btab.is-active {
  background: #fbfbf9;
  border: 1px solid rgba(20, 20, 19, 0.09);
  border-bottom-color: transparent;
  color: #3f3f3b;
}

.btab-fav {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border-radius: 3px;
  background: rgba(20, 20, 19, 0.07);
  font-size: 7px;
  font-weight: 600;
  color: #6d6c66;
  flex-shrink: 0;
}

.btab-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.btab-more {
  color: #9a9992;
  padding: 0 7px;
}

.browser-address {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  margin: 6px 11px 7px;
  padding: 0 9px;
  border: 1px solid rgba(20, 20, 19, 0.07);
  border-radius: 6px;
  background: #f2f1ed;
  color: #8e8d86;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.address-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9b8b1;
  flex-shrink: 0;
}

.browser-canvas {
  display: flex;
  align-items: flex-start;
  flex: 1;
  padding: 28px 30px;
  background: #fbfbf9;
  overflow: hidden;
}

.canvas-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 84%;
}

.canvas-eyebrow {
  width: 54px;
  height: 5px;
  border-radius: 3px;
  background: #deddd7;
}

.canvas-heading {
  width: 58%;
  height: 11px;
  border-radius: 4px;
  background: #d7d6d0;
}

.canvas-line {
  width: 92%;
  height: 5px;
  border-radius: 3px;
  background: #e9e8e3;
}

.canvas-line.is-short {
  width: 64%;
}

.canvas-blocks {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.canvas-blocks i {
  flex: 1;
  height: 62px;
  border-radius: 5px;
  background: #efeee9;
  border: 1px solid #e7e6e1;
}

.search-window {
  position: absolute;
  left: 4.5%;
  bottom: 5.5%;
  z-index: 3;
  width: 79%;
  max-width: 560px;
  container-type: inline-size;
  background: rgba(23, 23, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.sw-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@container (min-width: 1px) {
  .sw-bar {
    font-size: clamp(11px, 2.7cqw, 15px);
  }
}

.sw-search {
  width: 1.15em;
  height: 1.15em;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.sw-query {
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}

.sw-caret {
  width: 1px;
  height: 1.1em;
  margin-left: -5px;
  background: #4c9dff;
  animation: blink 1.15s steps(2, start) infinite;
}

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

.sw-tag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 108, 255, 0.18);
  color: #8bbcfc;
  font-family: var(--font-mono);
  font-size: 0.66em;
  white-space: nowrap;
}

.sw-key {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 0.62em;
  white-space: nowrap;
}

.sw-list {
  display: block;
}

.sw-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.sw-row:first-child {
  border-top: 0;
}

.sw-row.is-selected {
  background: rgba(10, 108, 255, 0.2);
}

.sw-row.is-selected::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: #4c9dff;
}

.sw-fav {
  display: grid;
  width: 2.4em;
  height: 2.4em;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72em;
  font-weight: 500;
  flex-shrink: 0;
}

.sw-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sw-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82em;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-url {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-mono);
  font-size: 0.6em;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.55em;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sw-badge.is-open {
  background: rgba(52, 199, 89, 0.16);
  color: #6fdb91;
}

.sw-badge.is-new {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.42);
}

.sw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 0.58em;
}

.sw-hints {
  display: flex;
  gap: 12px;
}

.sw-hints span {
  white-space: nowrap;
}

.sw-brand {
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Section scaffolding */

.section {
  padding: clamp(68px, 8.4vw, 116px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lede {
  max-width: 42em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.small-note {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.65;
}

/* Problem */

.problem {
  padding-top: clamp(64px, 8vw, 104px);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.statement {
  grid-column: 1 / 11;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.statement .line {
  display: block;
}

.problem-copy {
  grid-column: 7 / 13;
  margin-top: clamp(32px, 5vw, 56px);
}

.problem-copy > p:first-child {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.problem-copy .small-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Features */

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

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

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}

.feature-copy {
  max-width: 35em;
}

.feature-index {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.feature h3 {
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.feature-copy > p:not(.feature-tags) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.feature-tags span {
  white-space: nowrap;
}

.feature-tags span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--line-strong);
}

.feature-visual {
  min-width: 0;
}

.visual-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 264px;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 100% at 50% 0%, var(--accent-soft), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.visual-caption {
  margin-top: 28px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.01em;
  text-align: center;
}

.keycaps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.keycap {
  display: grid;
  width: clamp(58px, 6.4vw, 78px);
  height: clamp(58px, 6.4vw, 78px);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #f1f0eb 100%);
  box-shadow: 0 2px 0 var(--line-strong), inset 0 1px 0 #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
}

.visual-routing {
  justify-content: center;
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.route:last-of-type {
  border-bottom: 1px solid var(--line);
}

.route-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.status-dot.is-on {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.route-line {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.route-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--ink-3);
  border-right: 1px solid var(--ink-3);
  transform: rotate(45deg);
}

.route-action {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.visual-pinyin {
  justify-content: center;
}

.pinyin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mini-keys {
  display: flex;
  gap: 5px;
}

.mini-keys kbd {
  display: grid;
  width: 34px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(180deg, #fffefb, #f1f0eb);
  box-shadow: 0 2px 0 var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
}

.pinyin-arrow {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 14px;
}

.pinyin-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.pinyin-fav {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  flex-shrink: 0;
}

.pinyin-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pinyin-text strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pinyin-text small {
  overflow: hidden;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.visual-import {
  justify-content: center;
}

.import-rows {
  border-top: 1px solid var(--line);
}

.import-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.import-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.import-state svg {
  width: 12px;
  height: 12px;
}

/* Demo */

.demo {
  position: relative;
  padding: clamp(76px, 9vw, 124px) 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(10, 108, 255, 0.09), transparent 62%),
    #0c0c0d;
  color: #f2f1ec;
  border-top: 1px solid #1d1d1f;
  border-bottom: 1px solid #1d1d1f;
  overflow: hidden;
  scroll-margin-top: 88px;
}

.demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
}

.demo .wrap {
  position: relative;
  z-index: 1;
}

.section-head-dark {
  max-width: 780px;
}

.section-head-dark .section-label {
  color: rgba(255, 255, 255, 0.4);
}

.section-head-dark .section-label::before {
  background: #4c9dff;
}

.section-head-dark .section-title {
  color: #f4f3ee;
}

.section-head-dark .section-lede {
  color: rgba(255, 255, 255, 0.55);
}

.demo-shell {
  max-width: 900px;
  margin-top: clamp(36px, 5vw, 52px);
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  box-shadow: 0 50px 100px -60px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-shell:focus-within {
  border-color: rgba(76, 157, 255, 0.5);
  box-shadow: 0 50px 100px -60px #000, 0 0 0 3px rgba(10, 108, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-search-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.38);
  flex-shrink: 0;
}

.demo-bar input {
  min-width: 0;
  flex: 1;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
}

.demo-bar input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.demo-count {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-esc {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-list {
  display: block;
}

.demo-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.demo-row:first-child {
  border-top: 0;
}

.demo-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.demo-row.is-selected {
  background: rgba(255, 255, 255, 0.06);
}

.demo-row.is-selected::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  background: #4c9dff;
}

.demo-fav {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.demo-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.demo-row-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14.5px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-row-url {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-row-name mark {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(76, 157, 255, 0.2);
  color: #ffffff;
}

.demo-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-badge.is-open {
  background: rgba(52, 199, 89, 0.15);
  color: #6fdb91;
}

.demo-badge.is-new {
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.45);
}

.demo-empty {
  padding: 40px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13.5px;
  text-align: center;
}

.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 13px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-hint {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.demo-action {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8bbcfc;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.demo-action:empty {
  display: none;
}

.demo-action::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4c9dff;
  flex-shrink: 0;
}

.demo-action:empty::before {
  display: none;
}

.demo-note {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}

/* Download */

.download {
  padding: clamp(44px, 5.5vw, 64px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.download-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.download-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 34px -16px rgba(10, 108, 255, 0.7);
}

.download-mark span {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.download-copy h2 {
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.download-copy p {
  max-width: 33em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* Install */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding-top: 28px;
}

.step::before {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.step-num {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 13px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.install-notes {
  margin-top: clamp(36px, 5vw, 56px);
}

.callout {
  max-width: 760px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.install-notes .small-note {
  margin-top: 16px;
  padding-left: 18px;
}

/* Details */

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 108px);
}

.details-copy .section-title {
  margin-bottom: 20px;
}

.details-copy > p:not(.section-label) {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.details-copy .link-arrow {
  margin-top: 28px;
}

.specs {
  border-top: 1px solid var(--line);
}

.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
}

.spec dd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: right;
}

/* Feedback */

.feedback {
  scroll-margin-top: 88px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.feedback-copy .section-title {
  margin-bottom: 20px;
}

.feedback-copy > p:not(.section-label) {
  max-width: 30em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.feedback-copy .link-arrow {
  margin-top: 28px;
}

.feedback-panel {
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 70px -60px rgba(20, 20, 19, 0.4);
}

.kind-field {
  min-width: 0;
}

.kind-field legend {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

.kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kind {
  position: relative;
  display: inline-flex;
}

.kind input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kind span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kind:hover span {
  border-color: var(--line-strong);
  color: var(--ink);
}

.kind input:checked + span {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.kind input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

.field textarea,
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 138px;
  max-height: 320px;
  resize: vertical;
}

.field textarea::placeholder,
.field input::placeholder {
  color: var(--ink-3);
}

.field textarea:focus,
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea:focus-visible,
.field input:focus-visible {
  outline: none;
}

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

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.form-note {
  max-width: 300px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.form-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-success::before {
  background: var(--green);
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-error::before {
  background: var(--red);
}

.form-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-github[hidden] {
  display: none;
}

.form-github:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.form-github svg {
  width: 13px;
  height: 13px;
}

/* Footer */

.site-footer {
  padding: clamp(52px, 6vw, 72px) 0 30px;
  background: #101011;
  color: rgba(255, 255, 255, 0.6);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-light {
  color: #f2f1ec;
}

.footer-brand p {
  max-width: 270px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 88px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 92px;
}

.footer-col p {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col a.is-current {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

/* 404 */

.notfound-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.notfound {
  width: min(100%, 560px);
}

.notfound .brand {
  margin-bottom: clamp(48px, 8vw, 84px);
}

.notfound .section-label {
  margin-bottom: 20px;
}

.notfound h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.notfound-en,
.notfound-ja {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}

.notfound-ja {
  margin-top: 4px;
  color: var(--ink-3);
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.notfound-links > a:not(.btn) {
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.notfound-links > a:hover {
  color: var(--ink);
}

/* Dark mode specifics for the mock and controls */

@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(100% 75% at 82% 0%, rgba(76, 157, 255, 0.12), transparent 62%),
      linear-gradient(158deg, #19191c 0%, #141416 52%, #101012 100%);
    box-shadow: var(--shadow-stage), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .stage::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  }

  .browser {
    background: #1b1b1e;
    border-color: rgba(255, 255, 255, 0.11);
  }

  .browser-bar {
    background: #232327;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .btab {
    color: #86857f;
  }

  .btab.is-active {
    background: #1b1b1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #dedcd6;
  }

  .btab-fav {
    background: rgba(255, 255, 255, 0.08);
    color: #a5a49d;
  }

  .browser-address {
    background: #1f1f23;
    border-color: rgba(255, 255, 255, 0.06);
    color: #77766f;
  }

  .browser-canvas {
    background: #1b1b1e;
  }

  .canvas-eyebrow,
  .canvas-blocks i {
    background: #26262a;
  }

  .canvas-heading {
    background: #2f2f34;
  }

  .canvas-line {
    background: #242428;
  }

  .canvas-blocks i {
    border-color: #26262a;
  }

  .keycap,
  .mini-keys kbd {
    background: linear-gradient(180deg, #242428 0%, #1b1b1e 100%);
    box-shadow: 0 2px 0 #0a0a0b, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .pinyin-hit {
    background: var(--paper);
  }

  .footer-col a.is-current {
    color: #ffffff;
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .site-nav {
    gap: 22px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.2vw, 62px);
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(38px, 4.5vw, 56px);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(36px, 4.1vw, 48px);
  }

  .feature {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero h1 {
    font-size: clamp(44px, 6.2vw, 56px);
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(42px, 5.6vw, 54px);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(40px, 4.8vw, 48px);
  }

  .hero-figure {
    max-width: 680px;
  }

  .statement {
    grid-column: 1 / 13;
  }

  .problem-copy {
    grid-column: 1 / 13;
    max-width: 560px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0;
  }

  .feature-copy {
    max-width: 620px;
  }

  .feature-visual {
    max-width: 620px;
  }

  .visual-panel {
    min-height: 230px;
  }

  .download-grid {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 0;
  }

  .step {
    padding: 26px 0;
    border-top: 1px solid var(--line);
  }

  .step::before {
    top: -3.5px;
  }

  .details-grid,
  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs {
    margin-top: 8px;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-cols {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 62px;
  }

  .header-actions {
    gap: 12px;
  }

  .icon-link {
    display: none;
  }

  .lang-switch {
    gap: 9px;
    font-size: 10px;
  }

  .btn-small {
    height: 32px;
    padding: 0 12px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(27px, 9.2vw, 54px);
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(27px, 8.2vw, 50px);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(27px, 8.2vw, 48px);
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 15.5px;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 30px;
  }

  .hero-meta {
    margin-top: 30px;
    gap: 7px;
    font-size: 9.5px;
  }

  .stage {
    aspect-ratio: 0.98;
    border-radius: 16px;
  }

  .browser {
    top: 7%;
    left: 4.5%;
    right: -9%;
    bottom: 12%;
  }

  .browser-bar {
    gap: 8px;
    height: 32px;
    padding: 0 8px;
  }

  .browser-tabs .btab:nth-child(n + 4) {
    display: none;
  }

  .btab {
    max-width: 76px;
    padding: 0 7px;
    font-size: 8.5px;
  }

  .browser-address {
    height: 22px;
    margin: 5px 8px 6px;
    font-size: 7.5px;
  }

  .browser-canvas {
    padding: 20px;
  }

  .canvas-blocks i {
    height: 44px;
  }

  .search-window {
    left: 4%;
    bottom: 4.5%;
    width: 86%;
    border-radius: 11px;
  }

  .sw-bar {
    padding: 10px 11px;
  }

  .sw-row {
    padding: 7px 11px;
  }

  .sw-foot {
    padding: 7px 11px;
  }

  .sw-hints {
    gap: 8px;
  }

  .hero-figure figcaption {
    font-size: 11.5px;
  }

  .section {
    padding: 64px 0;
  }

  .section-label {
    margin-bottom: 22px;
  }

  .statement {
    font-size: clamp(23px, 7.1vw, 34px);
  }

  .problem-copy {
    margin-top: 30px;
  }

  .feature {
    padding: 34px 0;
  }

  .visual-panel {
    min-height: 210px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .route {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    gap: 8px;
  }

  .route-state,
  .route-action {
    font-size: 11.5px;
  }

  .pinyin-row {
    gap: 9px;
  }

  .pinyin-hit {
    order: 3;
    width: 100%;
  }

  .pinyin-arrow {
    transform: rotate(90deg);
  }

  .demo-bar {
    gap: 10px;
    padding: 15px 16px;
  }

  .demo-bar input {
    font-size: 16px;
  }

  .demo-count {
    display: none;
  }

  .demo-row {
    padding: 11px 16px;
    gap: 11px;
  }

  .demo-row-name {
    font-size: 13.5px;
  }

  .demo-row-url {
    font-size: 9.5px;
  }

  .demo-badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  .demo-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 16px;
  }

  .demo-action {
    text-align: left;
  }

  .demo-note {
    text-align: left;
  }

  .download-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .download-mark {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .download-mark span {
    font-size: 19px;
  }

  .download-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .details .section-title,
  .feedback .section-title {
    font-size: 30px;
  }

  .feedback-panel {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .field textarea,
  .field input {
    font-size: 16px;
  }

  .form-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-col {
    min-width: 84px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .brand-word {
    font-size: 15px;
  }

  .btn-small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* FAQ, article pages, and the macOS landing page */

.feature-more {
  margin-top: 18px;
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-q {
  color: var(--accent-ink);
}

.faq-q {
  max-width: 48em;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::before {
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
}

.faq-icon::after {
  left: 6.5px;
  top: 0;
  width: 1px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-a {
  max-width: 780px;
  padding: 0 0 24px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-a p {
  margin: 0;
}

.page-hero {
  padding: clamp(56px, 7vw, 92px) 0 clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.breadcrumbs a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.page-hero .section-label {
  margin-bottom: 24px;
}

.page-hero h1 {
  max-width: 1040px;
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

html[lang="zh-CN"] .page-hero h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing: -0.03em;
}

html[lang="en"] .page-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.04em;
}

html[lang="ja"] .page-hero h1 {
  font-size: clamp(38px, 4.7vw, 56px);
  letter-spacing: -0.025em;
}

.page-lede {
  max-width: 48em;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.page-body {
  padding: clamp(56px, 7vw, 92px) 0;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
}

.prose {
  max-width: 700px;
}

.prose-section + .prose-section {
  margin-top: 40px;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.prose p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.82;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  margin: 16px 0 0;
}

.prose li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
}

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

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.page-note {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-aside {
  position: sticky;
  top: 100px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.aside-title {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  color: var(--ink-3);
  font-size: 12.5px;
}

.fact dd {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.aside-links {
  margin-top: 28px;
}

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aside-links a:hover {
  color: var(--ink);
}

.aside-links a span:last-child {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.page-cta {
  padding: clamp(44px, 5.5vw, 64px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-cta-copy h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-cta-copy p {
  max-width: 36em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.page-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .page-aside {
    position: static;
    max-width: 560px;
  }

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

  .page-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .page-hero h1,
  html[lang="zh-CN"] .page-hero h1,
  html[lang="en"] .page-hero h1,
  html[lang="ja"] .page-hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .page-lede {
    margin-top: 20px;
    font-size: 15.5px;
  }

  .page-body {
    padding: 48px 0;
  }

  .prose h2 {
    font-size: 23px;
  }

  .prose p,
  .prose li {
    font-size: 15px;
  }

  .faq-item summary {
    gap: 16px;
    padding: 18px 0;
    font-size: 15.5px;
  }

  .faq-a {
    padding-bottom: 20px;
    font-size: 14px;
  }

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

/* Prefer phrase-aware line breaks for Chinese and Japanese body copy where supported. */
html[lang="zh-CN"] .hero-lede,
html[lang="zh-CN"] .statement,
html[lang="zh-CN"] .page-lede,
html[lang="zh-CN"] .prose p,
html[lang="zh-CN"] .faq-a,
html[lang="ja"] .page-lede,
html[lang="ja"] .prose p,
html[lang="ja"] .faq-a {
  word-break: auto-phrase;
}

.h1-break-mobile {
  display: none;
}

@media (max-width: 900px) {
  .h1-break-mobile {
    display: inline;
  }
}
