:root {
  --bg: #f6f8f5;
  --surface: #fff;
  --ink: #0e2420;
  --muted: #51645f;
  --primary: #0e6b5c;
  --primary-hover: #0a5247;
  --accent: #c34c2f;
  --soft: #e9f3ec;
  --border: #dfe7e0;
  --border-strong: #c6d3ca;
  --radius: 22px;
  --page-width: 1180px;
  --shadow-sm: 0 1px 2px rgba(14, 36, 32, 0.05), 0 2px 8px rgba(14, 36, 32, 0.04);
  --shadow-md: 0 2px 6px rgba(14, 36, 32, 0.06), 0 16px 40px rgba(14, 36, 32, 0.09);
  --shadow-lg: 0 4px 10px rgba(14, 36, 32, 0.06), 0 28px 70px rgba(14, 36, 32, 0.15);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Sans", "Yu Gothic", "Meiryo", "Malgun Gothic", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; }

p { margin: 0; }

a { color: var(--primary); }

::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

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

[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 82, 71, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn[disabled] {
  background: var(--soft);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}

.text-link { text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-select, .mobile-nav { position: relative; }

.lang-select > summary, .mobile-nav > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.lang-select > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker { display: none; }

.lang-select > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.lang-select[open] > summary::after { transform: rotate(225deg) translateY(-1px); }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(21, 45, 42, 0.12);
  z-index: 60;
}
.lang-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.lang-list a:hover { background: var(--soft); }
.lang-list a[aria-current] { font-weight: 700; color: var(--primary); }

.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.mobile-nav { display: none; }
.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(21, 45, 42, 0.12);
  z-index: 60;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.mobile-menu a:hover { background: var(--soft); }

.hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  overflow: clip;
}

@media (min-width: 961px) {
  .hero {
    min-height: calc(100svh - 64px);
    display: flex;
    flex-direction: column;
  }
  .hero > .container:last-child { margin-top: auto; }
  .hero-grid { flex: 1; align-content: center; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.title-accent { color: var(--primary); }

.hero-body {
  margin-top: 22px;
  font-size: 1.13rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}
.trust-row li { display: flex; align-items: center; }
.trust-row li + li::before {
  content: "·";
  margin: 0 12px;
  color: var(--border);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  padding-bottom: 34px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(60% 55% at 62% 38%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 72%),
    radial-gradient(34% 30% at 30% 72%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 75%);
  pointer-events: none;
}

.browser-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-bar span:first-child { background: var(--accent); opacity: 0.75; }

.browser-body { padding: 26px 28px 30px; position: relative; }

.mock-line {
  height: 10px;
  border-radius: 5px;
  background: var(--soft);
  margin: 0 0 14px;
  width: 60%;
}
.mock-line-wide { width: 85%; }
.mock-line-short { width: 42%; margin-bottom: 0; }

.mock-article {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--ink);
}
.mock-article mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

.mock-card {
  position: relative;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mock-card-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-card-label-accent { color: var(--primary); }
.mock-card-text { font-size: 0.95rem; margin-top: 4px; }
.mock-card-translation { font-weight: 650; }
.mock-card-divider { height: 1px; background: var(--border); margin: 12px 0; }
.mock-kbd {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-chip {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.chip-a { top: -14px; right: 8%; }
.chip-b { bottom: 64px; left: -18px; }
.chip-c { top: 38%; right: -14px; color: var(--accent); }

.preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.stat-strip li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 22px 26px;
}
.stat-strip li + li { border-left: 1px solid var(--border); }
.stat-strip strong { font-size: 1.4rem; font-weight: 780; letter-spacing: -0.025em; }
.stat-strip span { font-size: 0.82rem; color: var(--muted); }

.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.section-title.center { margin: 0 auto; text-align: center; }

.section-sub {
  margin-top: 18px;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

#demo { padding-bottom: clamp(3rem, 6vw, 5rem); }

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 28px;
}

.demo-tab {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.demo-tab:hover { border-color: var(--ink); color: var(--ink); }
.demo-tab[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.demo-frame {
  max-width: 940px;
  margin: 0 auto;
}
.demo-panel {
  margin: 0;
}
.demo-panel picture, .demo-panel img {
  display: block;
  width: 100%;
}
.demo-panel img {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.demo-panel figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-card h3 { font-size: 1.14rem; margin-top: 20px; letter-spacing: -0.02em; }
.feature-card p { margin-top: 10px; font-size: 0.94rem; color: var(--muted); }

.feature-card-featured {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--soft), color-mix(in srgb, var(--soft) 55%, var(--surface)));
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card-featured h3 { font-size: 1.45rem; }
.feature-card-featured p { font-size: 1.02rem; }

.feature-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  color: var(--primary);
}
.feature-card-featured .feature-icon { background: var(--surface); }
.feature-icon svg { width: 24px; height: 24px; }

@media (min-width: 961px) {
  .feature-card:last-child { grid-column: 1 / -1; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 8%, transparent);
}
.step h3 { margin-top: 18px; font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 0.94rem; color: var(--muted); }

.section-dark {
  background: linear-gradient(170deg, #123c35, #0c2b25 70%);
  color: #eaf4ee;
}
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #b9cfc8; }

.engine-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.engine-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.engine-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.engine-head strong { font-size: 1.05rem; color: #fff; }
.engine-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd8c9;
}
.engine-row p { font-size: 0.94rem; color: #b9cfc8; }

.privacy-note {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.privacy-sub { margin-top: 14px; font-size: 0.85rem; color: #8aa9a1; }

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 36px auto 0;
  padding: 4px;
  width: max-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.billing-btn {
  min-height: 44px;
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
}
.billing-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.plan-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.plan-card h3 { font-size: 1.25rem; }
.plan-tagline { margin-top: 6px; font-size: 0.9rem; color: var(--muted); min-height: 2.6em; }

.plan-card-recommended {
  background: linear-gradient(168deg, #143c34, #0d2b25 75%);
  border-color: transparent;
  color: #d9e9e2;
  box-shadow: var(--shadow-lg);
}
.plan-card-recommended:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan-card-recommended h3 { color: #fff; }
.plan-card-recommended .plan-tagline { color: #9cc9bb; }
.plan-card-recommended .plan-price-per,
.plan-card-recommended .plan-price-sub { color: #9cc9bb; }
.plan-card-recommended .plan-features li { color: #c3d8d0; }
.plan-card-recommended .plan-features li::before { border-color: #7fe0bf; }
.plan-card-recommended .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.plan-card-recommended .btn-primary:hover { background: #dff0e8; color: #0e2420; }
.plan-card-recommended .btn[disabled] {
  background: rgba(255, 255, 255, 0.12);
  color: #a8c6bc;
  border-color: transparent;
}
.plan-card-recommended .cta-soon { color: #87ab9f; }
.plan-card-planned { border-style: dashed; border-width: 1.5px; border-color: var(--border-strong); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-card-recommended .plan-badge {
  background: #7fe0bf;
  color: #0e2420;
}
.plan-card-planned .plan-badge { background: var(--muted); }

.plan-price { display: block; margin-top: 20px; }
.plan-price strong { font-size: 2.5rem; font-weight: 780; letter-spacing: -0.035em; }
.plan-price-per { margin-left: 6px; color: var(--muted); font-size: 0.95rem; }
.plan-price-sub { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--muted); }

.plan-features {
  flex: 1;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.plan-cta-off .cta-soon {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-note {
  margin: 28px auto 0;
  max-width: 56ch;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-list { margin-top: 36px; border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 4px;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

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

.store-off {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.section-install .btn-lg { margin-top: 30px; }
.store-off .btn-lg { margin-top: 0; }
.store-status { font-size: 0.88rem; color: var(--muted); }

.manual-install {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.manual-install h3 { font-size: 1.05rem; }
.manual-install p { margin-top: 12px; font-size: 0.94rem; color: var(--muted); }
.manual-install ol { margin: 14px 0 0; padding-left: 22px; color: var(--muted); font-size: 0.94rem; }
.manual-install li { padding: 4px 0; }
.manual-install code, .manual-path code {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.manual-path { margin-top: 4px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.footer-tagline { flex: 1 1 100%; font-size: 0.9rem; color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  min-width: 0;
}
.footer-langs { margin-left: auto; min-width: 0; }
.footer-langs .lang-list {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.footer-langs .lang-list a { min-height: 44px; font-size: 0.88rem; color: var(--muted); }
.footer-langs .lang-list a[aria-current] { color: var(--primary); }

.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.notfound-code {
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.notfound h1 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.notfound-langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

[hidden] { display: none !important; }

.requires-js { display: none; }
html.js .requires-js { display: flex; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-featured { grid-row: auto; grid-column: span 2; }
  .feature-card:last-child { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .engine-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .btn { white-space: normal; text-align: center; }
  .store-off .btn-lg { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-featured { grid-column: auto; }
  .feature-card:last-child { grid-column: auto; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip li:nth-child(3) { border-left: none; }
  .stat-strip li:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .chip-b { left: -6px; }
  .chip-c { right: -6px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

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