:root {
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --surface: #ffffff;
  --line: #ebeae8;
  --line-strong: #dcdbd8;
  --ink: #1c1c1a;
  --muted: #64635e;
  --faint: #9c9b94;
  --mint: #a8f573;
  --mint-deep: #8fe757;
  --mint-dim: rgba(168, 245, 115, 0.18);
  --mint-ink: #16300a;
  --green: #3e7d15;
  --sky: #6bc4ff;
  --dot-grid: radial-gradient(rgba(28, 28, 26, 0.11) 1px, transparent 1px);
  --sans: "Inter", "Hiragino Kaku Gothic ProN", "Hiragino Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(168, 245, 115, 0.45); }

/* legacy element on subpages; the light theme has no grain layer */
.grain { display: none; }

/* ---------- pills (buttons) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.pill--primary,
.pill--mint {
  background: var(--mint);
  color: var(--mint-ink);
  border-color: rgba(22, 48, 10, 0.16);
  box-shadow: 0 1px 2px rgba(28, 28, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.pill--primary:hover,
.pill--mint:hover {
  background: var(--mint-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(110, 200, 60, 0.55);
}
.pill--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg);
}
.pill--ghost:hover { background: var(--bg-alt); border-color: #c9c8c4; }
.pill--lg { padding: 12px 24px; font-size: 15px; }
.pill--full { width: 100%; }
.pill--disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 60px;
  padding: 0 24px;
  max-width: 1120px;
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark { flex: 0 0 auto; }
.site-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a {
  padding: 5px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 11px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-toggle span { opacity: 0.4; margin-inline: 3px; }
.lang-toggle b { font-weight: 600; }
.lang-toggle .is-active { color: var(--ink); }
.lang-toggle:hover { background: var(--bg-alt); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 92px 24px 84px;
  background-image: var(--dot-grid);
  background-size: 22px 22px;
}
.hero::after {
  /* fade the dot canvas out toward the section edges so it reads as a vignette */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg), transparent 22%, transparent 72%, var(--bg)),
    radial-gradient(60% 50% at 50% 38%, transparent, var(--bg) 92%);
}
.hero > * { position: relative; z-index: 1; }

.hero-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
html[lang="ja"] .hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em {
  font-style: normal;
  background-image: linear-gradient(to top, rgba(168, 245, 115, 0.55) 26%, transparent 26%);
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.hero-lead {
  margin: 24px auto 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-demo {
  max-width: 960px;
  margin: 64px auto 0;
}
.hero-demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  box-shadow: 0 30px 70px -34px rgba(28, 28, 26, 0.3);
}

/* ---------- shared section bits ---------- */
section { position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.section-head .kicker { margin-bottom: 12px; }
.section-head--left { text-align: left; padding: 0; margin: 0 0 36px; }
h1, h2, .flow-feature h3 { text-wrap: balance; }
.hero-lead, .section-head p, .pricing-lead { text-wrap: pretty; }
h2 {
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
html[lang="ja"] h2 { line-height: 1.35; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--green);
}

/* ---------- made for (pains) ---------- */
.madefor { padding: 96px 24px; border-top: 1px solid var(--line); }
.pains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}
.pain {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: 0 2px 12px -8px rgba(28, 28, 26, 0.12);
}
.pain-q {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.pain-demo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.pd-file {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 10px;
}
.pd-file b {
  font-weight: 600;
  font-size: 10.5px;
  color: var(--faint);
  margin-left: 2px;
}
.pd-file--out {
  color: var(--green);
  font-weight: 600;
  background: var(--mint-dim);
  border-color: rgba(110, 200, 60, 0.35);
}
.pd-file--out b { color: var(--green); opacity: 0.75; }
.pd-arrow {
  flex: 0 0 20px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--mint-deep) 55%, transparent 55%);
  background-size: 6px 2px;
  background-repeat: repeat-x;
}

/* ---------- flow (step-by-step captures) ---------- */
.flow { padding: 96px 0 100px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 28px 32px;
  box-shadow: 0 2px 12px -8px rgba(28, 28, 26, 0.12);
}
.flow-step:not(:last-child)::after {
  /* dashed connector wire between step cards */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  height: 28px;
  width: 2px;
  background-image: linear-gradient(180deg, var(--mint-deep) 55%, transparent 55%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--mint-dim);
  border: 1px solid rgba(110, 200, 60, 0.35);
}
.flow-copy h3 {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.flow-copy p { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 340px; }
.flow-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.flow-media video { display: block; width: 100%; height: auto; }
.flow-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  padding: 0;
}
.flow-play span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.flow-play svg {
  display: block;
  /* nudge right so the triangle reads optically centered */
  transform: translateX(1px);
}
.flow-play:active span { transform: scale(0.92); }

.flow-feature {
  width: min(1040px, calc(100% - 48px));
  margin: 80px auto 0;
  text-align: center;
}
.flow-feature h3 {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.flow-feature p {
  margin: 10px auto 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 520px;
}
.flow-media--feature {
  margin-top: 30px;
  box-shadow: 0 24px 60px -28px rgba(28, 28, 26, 0.3);
}

/* ---------- before / after ---------- */
.beforeafter { padding: 96px 24px; border-top: 1px solid var(--line); }
.ba-head[hidden] { display: none; }
.ba-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 32px;
}
.ba-tab {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ba-tab:hover { color: var(--ink); background: var(--bg-alt); }
.ba-tab.is-active {
  color: var(--mint-ink);
  background: var(--mint);
  border-color: rgba(22, 48, 10, 0.16);
}
.ba[hidden] { display: none; }
.ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}
.ba-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 16px 10px;
  box-shadow: 0 2px 12px -8px rgba(28, 28, 26, 0.12);
}
.ba-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.ba-panel-head svg { color: var(--faint); flex: 0 0 auto; }
.ba-panel-head em {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.ba-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 2px;
  font-size: 12.5px;
  font-weight: 500;
}
.ba-row > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ba-row > em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.ba-row > i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--mint-dim);
  border-radius: 999px;
  padding: 1px 7px;
}
.ba-ico {
  flex: 0 0 auto;
  width: 21px;
  height: 15px;
  border-radius: 4px;
}
.ba-ico--img { background: linear-gradient(135deg, #d9e9f8, #a5c6e6); }
.ba-ico--mov { background: linear-gradient(135deg, #ecdcf6, #c9ace9); }
.ba-ico--doc { background: linear-gradient(135deg, #f8ead6, #eccb9e); }
.ba-ico--dmg { background: linear-gradient(135deg, #ececea, #cfcecb); }
.ba-ico--out {
  background: linear-gradient(135deg, #e2f8cd, #b8ec8b);
  border: 1px solid rgba(110, 200, 60, 0.35);
}
.ba-ico--folder {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--green);
}

.ba-chain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-wire {
  position: absolute;
  top: 50%;
  left: -23px;
  right: -23px;
  height: 2px;
  margin-top: -1px;
  background-image: linear-gradient(90deg, var(--mint-deep) 55%, transparent 55%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  animation: baFlow 0.8s linear infinite;
}
@keyframes baFlow {
  to { background-position: 8px 0; }
}
@keyframes baFlowDown {
  to { background-position: 0 8px; }
}
.ba-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 10px -6px rgba(28, 28, 26, 0.2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ba-node b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--mint-dim);
  border: 1px solid rgba(110, 200, 60, 0.35);
}

.ba-row--out {
  opacity: 0;
  transform: translateX(-6px);
  animation-duration: 8s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}
.ba-panel--out .ba-row--out:nth-child(2) { animation-name: baRow1; }
.ba-panel--out .ba-row--out:nth-child(3) { animation-name: baRow2; }
.ba-panel--out .ba-row--out:nth-child(4) { animation-name: baRow3; }
.ba-panel--out .ba-row--out:nth-child(5) { animation-name: baRow4; }
@keyframes baRow1 {
  0%, 10% { opacity: 0; transform: translateX(-6px); }
  15%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes baRow2 {
  0%, 20% { opacity: 0; transform: translateX(-6px); }
  25%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes baRow3 {
  0%, 30% { opacity: 0; transform: translateX(-6px); }
  35%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes baRow4 {
  0%, 40% { opacity: 0; transform: translateX(-6px); }
  45%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateX(-6px); }
}

/* ---------- trust ---------- */
.trust { padding: 96px 24px; border-top: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px 24px;
  box-shadow: 0 2px 12px -8px rgba(28, 28, 26, 0.12);
}
.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--green);
  background: var(--mint-dim);
  border: 1px solid rgba(110, 200, 60, 0.35);
  margin-bottom: 16px;
}
.trust-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.trust-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing {
  padding: 96px 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(168, 245, 115, 0.12), transparent 70%),
    var(--bg-alt);
}
.pricing-inner { text-align: center; max-width: 820px; margin-inline: auto; }
.pricing-inner .kicker { display: block; margin-bottom: 12px; }
.pricing-lead { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 560px; margin-inline: auto; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}
.plan {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan--pro {
  border-color: rgba(110, 200, 60, 0.7);
  box-shadow: 0 0 0 1px rgba(110, 200, 60, 0.4), 0 16px 40px -20px rgba(110, 200, 60, 0.45);
}
.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mint-ink);
  background: var(--mint);
  padding: 4px 11px;
  border-radius: 999px;
}
.plan-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.plan-head h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.plan-price {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-meta { font-size: 12.5px; color: var(--faint); }
.plan-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}
.plan-list li,
.sub-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li::before,
.sub-list li::before {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: calc((1lh - 16px) / 2);
  background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .pill { margin-top: auto; }

.hero > .pricing-foot { text-align: center; }
.pricing-foot {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- faq ---------- */
.faq { padding: 96px 24px; border-top: 1px solid var(--line); }
.faq-inner { max-width: 640px; margin-inline: auto; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.faq-list summary:hover { color: var(--green); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; width: 15px; height: 15px; flex: 0 0 15px; color: var(--faint); }
.faq-list summary i::before,
.faq-list summary i::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq-list summary i::before { width: 13px; height: 1.5px; }
.faq-list summary i::after { width: 1.5px; height: 13px; }
.faq-list details[open] summary i::after { transform: rotate(90deg); }
.faq-list details p { padding: 0 4px 20px; font-size: 14px; color: var(--muted); max-width: 560px; }

/* ---------- closing ---------- */
.closing {
  padding: 110px 24px 120px;
  border-top: 1px solid var(--line);
  background-image:
    radial-gradient(560px 300px at 50% 100%, rgba(168, 245, 115, 0.18), transparent 72%),
    var(--dot-grid);
  background-size: auto, 22px 22px;
}
.closing-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.closing-mark { color: var(--ink); margin-bottom: -6px; }
.closing h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 24px; background: var(--bg); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin-inline: auto;
}
.footer-brand { font-size: 12.5px; color: var(--faint); }
.footer-nav { display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.footer-nav a:hover { color: var(--ink); }
.footer-nav span { color: var(--faint); cursor: default; }
.footer-lang {
  display: flex;
  align-items: center;
}
.footer-lang:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ba-wire { animation: none; }
  .ba-row--out {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .flow-step { grid-template-columns: 1fr; gap: 20px; }
  .flow-copy p { max-width: none; }
  .site-nav { display: none; }
  .plans { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; max-width: 560px; }
  .pains { grid-template-columns: 1fr; max-width: 560px; }
  .ba { grid-template-columns: 1fr; max-width: 560px; gap: 14px; }
  .ba-chain {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
  .ba-wire {
    top: -14px;
    bottom: -14px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    margin-top: 0;
    margin-left: -1px;
    background-image: linear-gradient(180deg, var(--mint-deep) 55%, transparent 55%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    animation-name: baFlowDown;
  }
}
@media (max-width: 640px) {
  .header-inner {
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
  }
  .header-actions { margin-left: auto; }
  .header-actions .pill { padding: 7px 13px; font-size: 12.5px; }
  .hero { padding: 60px 20px 60px; }
  .hero-demo { margin-top: 44px; }
  .hero-demo-frame { padding: 4px; border-radius: 15px; }
  .hero-demo video { border-radius: 11px; }
  .flow { padding: 72px 0 80px; }
  .flow-step { padding: 20px 18px; }
  .flow-feature { margin-top: 60px; }
  .madefor { padding: 72px 20px; }
  .beforeafter { padding: 72px 20px; }
  .trust { padding: 72px 20px; }
  .pricing { padding: 80px 20px; }
  .faq { padding: 80px 20px; }
  .closing { padding: 80px 20px 90px; }
  .plan { padding: 24px 20px; }
  .footer-nav {
    order: 1;
    width: 100%;
  }
  .footer-brand { order: 2; }
  .footer-lang {
    order: 3;
    margin-left: auto;
  }
}

/* ---------- subpages (/download /pro /releases /privacy) ---------- */
.subpage {
  max-width: 720px;
  margin-inline: auto;
  padding: 90px 24px 100px;
}
.subpage .kicker {
  margin-bottom: 14px;
}
.subpage h1 {
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
html[lang="ja"] .subpage h1 { line-height: 1.3; letter-spacing: -0.01em; }
.subpage h1 em {
  font-style: normal;
  background-image: linear-gradient(to top, rgba(168, 245, 115, 0.55) 26%, transparent 26%);
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.subpage .lead {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 56ch;
  margin-bottom: 40px;
}
.subpage h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
}
.subpage p { color: var(--muted); font-size: 14.5px; }
.subpage p + p { margin-top: 12px; }
.subpage strong { color: var(--ink); }
.subpage a:not(.pill) { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.subpage a:not(.pill):hover { border-color: var(--ink); }

.sub-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  padding: 28px 26px;
  margin: 26px 0;
}
.sub-card--cta {
  text-align: center;
  padding: 36px 26px;
  background-image: var(--dot-grid);
  background-size: 22px 22px;
}
.sub-card--cta > h2:first-child { margin-top: 0; }
.sub-card--cta .pill { margin-top: 18px; }
.sub-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--faint);
}
.sub-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.sub-steps {
  list-style: none;
  counter-reset: substep;
  display: grid;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.sub-steps li {
  counter-increment: substep;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.sub-steps li::before {
  content: "0" counter(substep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  flex: 0 0 auto;
}
.sub-note {
  border-left: 2px solid var(--green);
  background: var(--mint-dim);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.release-entry { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 40px; }
.release-entry:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.release-version {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}
.release-version h2 { margin: 0; }
.release-version time { font-size: 12.5px; color: var(--faint); }
.subpage .plan-list { margin: 18px 0; }
@media (max-width: 640px) {
  .subpage { padding: 60px 20px 80px; }
  .sub-card { padding: 24px 20px; }
}
.sub-card--cta .pill {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/* Download placeholder keeps the action visible until the release URL is set. */
.pill:disabled { cursor: default; opacity: .65; box-shadow: none; }

/* Shared navigation: the same destinations and controls at every route. */
.header-inner { gap: 20px; min-height: 60px; height: auto; padding-block: 8px; flex-wrap: wrap; }
.site-header .logo { flex-shrink: 0; }
.site-nav { font-size: 14px; }
.site-nav a, .header-actions > a { white-space: nowrap; }
.site-nav a { display: flex; align-items: center; min-height: 44px; }
.site-nav [aria-current], .footer-nav [aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.lang-toggle { min-height: 28px; padding: 4px 7px; font-size: 11px; line-height: 1.4; border-radius: 6px; white-space: nowrap; }
.site-mobile-menu { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-header summary:focus-visible,
.site-footer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 5px; }
.site-footer { padding: 52px 24px 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.2fr); align-items: start; gap: 36px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; font-size: 14px; order: initial; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-group h2 { color: var(--ink); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.footer-group a { padding-block: 6px; line-height: 1.6; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.footer-brand { order: initial; }
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .site-mobile-menu { display: block; }
  .site-mobile-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 10px; font-size: 14px; }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .site-mobile-menu[open] .menu-chevron { transform: rotate(225deg); }
  .site-mobile-menu nav { position: absolute; top: 100%; right: 16px; left: 16px; max-width: 440px; margin-left: auto; max-height: calc(100dvh - 84px); overflow-y: auto; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 12px 32px #00000014; }
  .site-mobile-menu nav a { min-height: 44px; padding: 12px 16px; font-size: 14px; border-radius: 7px; }
  .site-mobile-menu nav a:not(.pill):hover, .site-mobile-menu nav [aria-current]:not(.pill) { background: var(--bg-alt); }
  .site-mobile-menu .pill { margin-top: 8px; }
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; padding-inline: 14px; }
  .header-actions { gap: 2px; }
  .header-actions > .header-download { display: none; }
  .lang-toggle { padding-inline: 7px; }
  .site-mobile-menu summary { gap: 8px; padding-inline: 8px; }
  .site-footer { padding-inline: 20px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; width: auto; }
  .footer-group a { min-height: 44px; display: flex; align-items: center; }
}

/* Pricing: the license terms are part of the purchase decision. */
.pro-page { max-width: 960px; }
.pro-offer { display: flex; justify-content: space-between; gap: 32px; align-items: center; margin: 36px 0 56px; padding: 32px; border: 1px solid #caddbd; background: #f5faef; border-radius: 16px; }
.pro-offer-name { font-size: 14px; font-weight: 600; }
.pro-offer-price { display: flex; align-items: baseline; gap: 12px; font-size: 52px; letter-spacing: -.04em; font-weight: 650; margin-top: 10px; }
.pro-offer-price span { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.pro-offer p { margin: 10px 0 16px; font-size: 14px; line-height: 1.8; }
.pro-offer small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }
.pro-comparison { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; }
.pro-comparison table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
.pro-comparison th, .pro-comparison td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.pro-comparison thead { background: var(--bg-alt); }
.pro-comparison tbody th { font-weight: 400; width: 55%; }
.pro-comparison tr:last-child > * { border-bottom: 0; }
.pro-note { font-size: 13px; color: var(--muted); margin: 14px 0 48px; }
.pro-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 24px; }
.pro-terms section { padding-top: 20px; border-top: 1px solid var(--line); }
.pro-terms h3 { margin: 0 0 10px; font-size: 16px; }
.pro-terms p { font-size: 14px; line-height: 1.9; margin: 0; color: var(--muted); }
.pro-terms + p { margin-top: 36px; }
#license { scroll-margin-top: 96px; }
@media (max-width: 640px) {
  .pro-offer { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; }
  .pro-offer .pill { width: 100%; }
  .pro-comparison table { min-width: 0; table-layout: fixed; font-size: 13px; }
  .pro-comparison th, .pro-comparison td { padding: 14px 10px; overflow-wrap: anywhere; }
  .pro-comparison th:first-child { width: 44%; }
  .pro-terms { grid-template-columns: 1fr; gap: 24px; }
}
