:root {
  /* Light sections */
  --paper: #f4f6f9;
  --paper-2: #e9edf3;
  --ink: #142033;
  --muted: #56627a;
  --rule: #d9dfe8;
  --indigo: #2a4c9a;
  --white: #ffffff;

  /* Blueprint (dark) sections */
  --night: #0b1a33;
  --night-2: #0f2347;
  --night-line: rgba(150, 182, 255, 0.16);
  --night-text: #e9effb;
  --night-muted: #a7b4cd;
  --signal: #8fb0ff;

  /* Detection classes */
  --c-outlet: #4fd1e8;
  --c-light: #ffc65c;
  --c-switch: #b6a2ff;
  --c-data: #5fe0a6;
  --c-emergency: #ff7366;

  /* LINE chat demo (developer site) */
  --line-green: #06c755;
  --line-bubble: #8de07a;

  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: 16px;
  --header: 64px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:lang(en) { line-height: 1.7; }

h1, h2, h3, p, li, dd { text-wrap: pretty; }
:lang(ja) :is(h1, h2, h3, p, li, dd, a, button) { word-break: auto-phrase; }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 3px;
}
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 26, 51, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-text);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}
.wordmark {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--signal); }

.primary-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--night-muted);
  position: relative;
}
.primary-nav a:hover { color: var(--white); }
.primary-nav a.is-active { color: var(--white); }

.lang {
  display: flex;
  font-size: 0.8125rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 2px;
}
.lang a, .lang span {
  padding: 1px 10px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.7;
}
.lang [aria-current] { background: var(--night-text); color: var(--night); }
.lang a { color: var(--night-muted); }
.lang a:hover { color: var(--white); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--night-line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  cursor: pointer;
  line-height: 1.4;
}
.menu-btn i {
  width: 14px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: transform 0.2s ease;
}
.site-header.open .menu-btn i { transform: scaleY(0.25); }

@media (max-width: 959px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.open .primary-nav { display: flex; }
  .primary-nav a {
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--night-line);
  }
  .primary-nav a:last-child { border-bottom: 0; }
}
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .primary-nav { display: flex; gap: 28px; }
  .primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -21px;
    height: 2px;
    background: var(--signal);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: #213e80; }
.btn-quiet { color: var(--ink); border: 1px solid var(--rule); background: var(--white); }
.btn-quiet:hover { border-color: var(--muted); }

.dark .btn-primary { background: var(--white); color: var(--night); }
.dark .btn-primary:hover { background: #dfe7f8; }
.dark .btn-quiet { background: transparent; color: var(--night-text); border-color: rgba(233, 239, 251, 0.3); }
.dark .btn-quiet:hover { border-color: var(--night-text); }

/* ---------- Dark (blueprint) surfaces ---------- */
.dark {
  background-color: var(--night);
  color: var(--night-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 64px;
  background-image:
    radial-gradient(60% 70% at 78% 40%, rgba(66, 110, 214, 0.28), transparent 70%),
    linear-gradient(rgba(150, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 182, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-position: center, -1px -1px, -1px -1px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1040px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  color: var(--white);
}
.hero h1:lang(en) { letter-spacing: -0.015em; line-height: 1.12; }
.hero-lede {
  font-size: 1.0625rem;
  color: var(--night-muted);
  max-width: 32em;
  margin: 0 0 32px;
}
.hero-lede strong { color: var(--night-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Detection demo ---------- */
.demo {
  background: rgba(13, 31, 64, 0.82);
  border: 1px solid rgba(143, 176, 255, 0.24);
  border-radius: 12px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-size: 0.8125rem;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--night-line);
}
.demo-file {
  margin-right: auto;
  color: var(--night-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(143, 176, 255, 0.12);
  color: var(--signal);
  white-space: nowrap;
}
.demo-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.demo-status[data-state="run"] i { animation: pulse 1s ease-in-out infinite; }
.demo-status[data-state="done"] { background: rgba(95, 224, 166, 0.14); color: var(--c-data); }
@keyframes pulse { 50% { opacity: 0.25; } }

.demo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 0;
}
.demo-tabs [role="tab"] {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 10px 8px;
  color: var(--night-muted);
  cursor: pointer;
  font-size: 0.8125rem;
}
.demo-tabs [role="tab"]:hover { color: var(--night-text); }
.demo-tabs [aria-selected="true"] { color: var(--white); border-bottom-color: var(--signal); }
.demo-time {
  margin-left: auto;
  padding-right: 4px;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}

.demo-stage {
  margin: 0 10px;
  border: 1px solid var(--night-line);
  border-radius: 6px;
  background-color: #0a1730;
  background-image:
    linear-gradient(rgba(150, 182, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 182, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  aspect-ratio: 640 / 400;
}
.demo-stage svg { display: block; width: 100%; height: 100%; }

.wall { fill: none; stroke: #d6e2ff; stroke-width: 2.4; stroke-linecap: square; opacity: 0.9; }
.door { fill: none; stroke: rgba(214, 226, 255, 0.4); stroke-width: 1; stroke-dasharray: 3 3; }
.room-label { font-family: var(--sans); font-size: 10px; fill: rgba(214, 226, 255, 0.45); letter-spacing: 0.04em; }
.sym { fill: none; stroke: #d6e2ff; stroke-width: 1.2; }
.sym-fill { fill: #d6e2ff; stroke: none; }

.det { opacity: 0; transition: opacity 0.2s ease; }
.det.on { opacity: 1; }
.det.on.dim { opacity: 0.1; }
.det .box { fill: var(--c); fill-opacity: 0.1; stroke: none; }
.det .brk { fill: none; stroke: var(--c); stroke-width: 1.6; }
.det .tag { font-family: var(--mono); font-size: 8.5px; fill: var(--c); opacity: 0; transition: opacity 0.2s ease; }
.det.on.focus .tag { opacity: 1; }
.c-outlet { --c: var(--c-outlet); }
.c-light { --c: var(--c-light); }
.c-switch { --c: var(--c-switch); }
.c-data { --c: var(--c-data); }
.c-emergency { --c: var(--c-emergency); }

.scan { pointer-events: none; }
.scan-line { stroke: var(--signal); stroke-width: 1.5; }

.legend {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (min-width: 560px) {
  .legend { grid-template-columns: repeat(5, 1fr); }
}
.legend button {
  width: 100%;
  text-align: left;
  background: rgba(143, 176, 255, 0.05);
  border: 1px solid var(--night-line);
  border-radius: 6px;
  padding: 7px 9px 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 6px;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.legend button:hover { border-color: rgba(143, 176, 255, 0.45); }
.legend button[aria-pressed="true"] { border-color: var(--c); background: rgba(143, 176, 255, 0.1); }
.legend .name { color: var(--night-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .count { color: var(--white); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.legend .bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(143, 176, 255, 0.12);
  overflow: hidden;
}
.legend .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c);
  transition: width 0.15s linear;
}

.demo-json {
  margin: 0 10px;
  height: auto;
  aspect-ratio: 640 / 400;
  overflow: auto;
  border: 1px solid var(--night-line);
  border-radius: 6px;
  background: #081328;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--night-text);
  white-space: pre;
}
.demo-json .k { color: var(--signal); }
.demo-json .s { color: var(--c-data); }
.demo-json .n { color: var(--c-light); }
.demo-json .p { color: var(--night-muted); }
.demo [hidden] { display: none; }

.demo-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 14px 12px;
}
.demo-caption { margin: 0; color: var(--night-muted); font-size: 0.75rem; line-height: 1.6; margin-right: auto; }
.demo-replay {
  flex: none;
  background: none;
  border: 1px solid rgba(233, 239, 251, 0.3);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--night-text);
}
.demo-replay:hover { border-color: var(--night-text); }
.demo-replay:disabled { opacity: 0.4; cursor: default; }

/* ---------- Sections ---------- */
.block {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.block > .container {
  display: grid;
  gap: 24px 64px;
}
@media (min-width: 960px) {
  .block { padding: 112px 0; }
  .block > .container { grid-template-columns: 260px 1fr; }
}
.block-head h2 {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--indigo);
  padding-top: 0.6em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.block-head h2::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}
.block-head h2:lang(en) { letter-spacing: 0.02em; }
.block-body { max-width: 46em; }

.statement {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}
.statement:lang(en) { letter-spacing: -0.01em; line-height: 1.25; }

.block-body p { margin: 0 0 1.2em; color: var(--muted); }
.block-body p.statement { color: var(--ink); margin-bottom: 28px; }
.block-body p:last-child { margin-bottom: 0; }

/* Promises */
.promises {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .promises { grid-template-columns: repeat(3, 1fr); }
}
.promises li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) {
  .promises li { border-bottom: 0; padding: 20px 24px 0 0; }
  .promises li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
}
.promises b { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.promises span { color: var(--muted); font-size: 0.9375rem; }

/* Focus areas */
.featured {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--indigo), var(--c-outlet));
}
.featured h3 { font-size: 1.375rem; line-height: 1.5; margin: 0 0 12px; }
.featured p { margin: 0 0 20px; color: var(--muted); }
.tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tasks li { font-size: 0.875rem; padding: 4px 12px; background: var(--paper); border-radius: 999px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; gap: 4px 32px; padding: 22px 0; border-top: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) {
  .rows li { grid-template-columns: 15em 1fr; }
}
.rows h3 { font-size: 1.0625rem; font-weight: 700; margin: 0; line-height: 1.7; }
.rows p { margin: 0; color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 56px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--indigo);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--indigo);
  background: var(--paper);
  line-height: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 4px;
  border-left: 1px dashed var(--rule);
}
@media (min-width: 720px) {
  .steps li { padding: 56px 0 0; }
  .steps li:not(:last-child)::after {
    left: 44px;
    right: -20px;
    top: 18px;
    bottom: auto;
    border-left: 0;
    border-top: 1px dashed #b9c3d3;
  }
}
.steps h3 { font-size: 1.0625rem; margin: 4px 0 6px; line-height: 1.6; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Profile */
.profile { display: grid; gap: 32px; align-items: start; }
@media (min-width: 720px) {
  .profile { grid-template-columns: 200px 1fr; gap: 40px; }
}
.portrait {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--night);
  background-image:
    linear-gradient(rgba(150, 182, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 182, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 700;
}
@media (min-width: 720px) {
  .portrait { width: 200px; }
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.name { font-size: 1.75rem; font-weight: 700; margin: 0; line-height: 1.4; letter-spacing: 0.04em; }
.name-alt { display: block; font-size: 0.875rem; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; }
.role { margin: 4px 0 24px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.facts li { padding: 12px 0 12px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(12px + 0.8em);
  width: 6px;
  height: 6px;
  background: var(--indigo);
  border-radius: 50%;
}

/* Contact */
.contact { border-bottom: 0; }
.contact .block-head h2 { color: var(--signal); }
.contact .block-body p.statement { color: var(--white); }
.contact .block-body p { color: var(--night-muted); }
.mail {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
  font-size: clamp(1.375rem, 4vw, 2.25rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
  word-break: break-all;
}
.mail:hover { border-bottom-color: var(--white); }

/* Footer */
.site-footer {
  background: var(--night);
  color: #8593ad;
  font-size: 0.8125rem;
  border-top: 1px solid var(--night-line);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #c3cde0; text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* 404 */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.notfound h1 { font-size: 1.75rem; margin: 0 0 8px; color: var(--white); }
.notfound p { color: var(--night-muted); margin: 0 0 4px; }
.notfound .actions { justify-content: center; margin-top: 28px; }

/* ---------- About page ---------- */
.page-hero {
  padding: 48px 0 56px;
  background-image:
    radial-gradient(55% 80% at 80% 50%, rgba(66, 110, 214, 0.26), transparent 70%),
    linear-gradient(rgba(150, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 182, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-position: center, -1px -1px, -1px -1px;
}
.about-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1040px) {
  .page-hero { padding: 88px 0 96px; }
  .about-hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.about-id { display: grid; gap: 24px; }
.about-photo {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(143, 176, 255, 0.3);
}
.page-hero h1 {
  font-weight: 700;
  font-size: clamp(1.625rem, 3.1vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  color: var(--white);
}
.page-hero h1:lang(en) { letter-spacing: -0.015em; line-height: 1.15; }
.page-hero .hero-lede { margin: 0; }
.ph { display: inline-block; }

.route {
  margin: 0;
  border: 1px solid rgba(143, 176, 255, 0.22);
  border-radius: 12px;
  background: rgba(13, 31, 64, 0.7);
  padding: 16px 12px 8px;
}
.route svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-arc { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.8; }
.route-ring { fill: none; stroke: var(--signal); stroke-opacity: 0.35; }
.route-pin { fill: var(--white); }
.route-dot {
  fill: var(--c-outlet);
  offset-path: path("M70 160 Q280 10 490 160");
  offset-distance: 100%;
  animation: route-travel 4.5s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes route-travel {
  0% { offset-distance: 100%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 0%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .route-dot { animation: none; offset-distance: 50%; }
}
.route-city { font-family: var(--sans); font-size: 19px; font-weight: 700; fill: var(--white); }
.route-coord { font-family: var(--sans); font-size: 13px; fill: var(--night-muted); font-variant-numeric: tabular-nums; }
.route-mid { font-family: var(--sans); font-size: 14px; fill: var(--night-muted); letter-spacing: 0.04em; }

.rows strong { color: var(--ink); }
.about-actions { margin-top: 32px; }

.profile-more { margin-top: 24px; }

/* ---------- Plain-language visuals ---------- */
.icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--indigo);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-ai { background: var(--night); border-color: var(--night); color: var(--c-outlet); }

/* Three-step flow: drawing in -> AI reads -> table out */
.flow {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: center;
}
.flow .icon { grid-row: span 2; }
.flow b { font-size: 1.0625rem; line-height: 1.5; }
.flow span:not(.icon) { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  height: 18px;
  border-left: 2px solid var(--rule);
}
@media (min-width: 720px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flow li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 4px; }
  .flow .icon { grid-row: auto; margin-bottom: 10px; width: 56px; height: 56px; }
  .flow li:not(:last-child)::after {
    left: calc(50% + 40px);
    right: calc(-50% + 28px);
    top: 27px;
    height: 0;
    border-left: 0;
    border-top: 2px solid var(--rule);
  }
}

/* Before / after time comparison */
.compare {
  margin: 40px 0 0;
  padding: 22px 22px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.compare figcaption { font-weight: 700; font-size: 0.9375rem; margin-bottom: 14px; line-height: 1.6; }
.bar-row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 6px 0;
}
.bar-row:lang(en) { grid-template-columns: 6.5em 1fr; }
.bar-label { font-size: 0.875rem; color: var(--muted); }
.bar-track { height: 14px; border-radius: 7px; background: var(--paper); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 7px; }
.bar-slow { width: 100%; background: #b9c3d3; }
.bar-fast { width: 22%; background: var(--indigo); }
.bar-note { grid-column: 2; font-size: 0.875rem; }
.bar-note:empty { display: none; }
.bar-win { color: var(--indigo); font-weight: 700; }

/* Glossary */
.terms {
  margin: 40px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .terms { grid-template-columns: repeat(3, 1fr); }
}
.terms div {
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--paper-2);
}
.terms dt { font-weight: 700; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.75; }

/* Promises with icons */
.promises-icons .icon { margin-bottom: 12px; }

/* Before / after (focus card) */
.before-after {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) {
  .before-after { grid-template-columns: 1fr 1fr; }
}
.before-after li {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
}
.before-after li.ba-new { background: #e6ecfa; }
.ba-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}
.ba-new .ba-tag { color: var(--indigo); }
.featured .before-after p { margin: 0; color: var(--ink); font-size: 0.9375rem; line-height: 1.7; }

/* Service cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.cards li {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px;
}
.cards .icon { background: var(--paper); border-color: transparent; margin-bottom: 14px; }
.cards h3 { font-size: 1.0625rem; line-height: 1.55; margin: 0 0 8px; }
.cards p { margin: 0; font-size: 0.9375rem; }

.demo-caption b { color: var(--night-text); font-weight: 700; }

/* Explainer under the about-page map */
.route-note {
  margin: 10px 4px 6px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--night-muted);
}
.route-country { font-family: var(--sans); font-size: 13px; fill: var(--night-muted); }

/* ---------- LINE chat demo (developer site) ---------- */
.chat-demo .demo-file { display: inline-flex; align-items: center; gap: 8px; color: var(--night-text); }
.chat-avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line-green);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.chat-stage {
  height: 400px;
  overflow-y: auto;
  padding: 16px 14px;
  background: rgba(150, 182, 255, 0.05);
  scrollbar-width: none;
}
.chat-stage::-webkit-scrollbar { display: none; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-row.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .chat-row { transition: none; transform: none; }
}
.bubble {
  margin: 0;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-line;
}
.chat-user { justify-content: flex-end; }
.chat-user .bubble { background: var(--line-bubble); color: var(--night); border-bottom-right-radius: 4px; }
.chat-bot .bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 78%; }
.chat-bot .bubble-wrap .bubble { max-width: 100%; }
.chat-bot .bubble { background: var(--night-text); color: var(--night); border-bottom-left-radius: 4px; }
.chat-ai {
  font-size: 0.6875rem;
  line-height: 1.4;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(79, 209, 232, 0.16);
  color: var(--c-outlet);
}
.chat-typing .bubble { display: flex; align-items: center; height: 36px; padding: 0 14px; }
.chat-typing .bubble i,
.chat-typing .bubble i::before,
.chat-typing .bubble i::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1s ease-in-out infinite;
}
.chat-typing .bubble i { position: relative; display: block; margin: 0 10px; animation-delay: 0.15s; }
.chat-typing .bubble i::before,
.chat-typing .bubble i::after { content: ""; position: absolute; top: 0; }
.chat-typing .bubble i::before { left: -10px; animation-delay: 0s; }
.chat-typing .bubble i::after { left: 10px; animation-delay: 0.3s; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 32px; }
.chip {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-green);
  color: var(--line-bubble);
  font-size: 0.8125rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.chip.picked { background: var(--line-green); color: var(--white); }
.chat-notify { justify-content: center; }
.notify-card {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 198, 92, 0.5);
  border-radius: 10px;
  background: rgba(255, 198, 92, 0.08);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--night-muted);
}
.notify-card b { color: var(--c-light); font-size: 0.8125rem; }
.chat-divider { justify-content: center; }
.chat-divider span {
  font-size: 0.6875rem;
  color: var(--night-muted);
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(150, 182, 255, 0.1);
}
