/* ==========================================================
   EnCite LP — Stripe-inspired design system
   tokens: indigo primary / navy ink / white canvas / mesh hero
   ========================================================== */

:root {
  /* brand */
  --primary: #533afd;
  --primary-deep: #4434d4;
  --primary-press: #2e2b8c;
  --primary-soft: #665efd;
  --primary-subdued: #e4e2fd;
  --brand-dark: #1c1e54;

  /* ink */
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --on-primary: #ffffff;

  /* surface */
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --canvas-cream: #f5e9d4;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;

  /* product accents (HashiCorp-style per-product identity) */
  --c-kenzu: #12806a;          /* 検図AI — emerald */
  --c-kenzu-soft: #e5f7f0;
  --c-format: #d6246d;         /* フォーマットAI — ruby */
  --c-format-soft: #fdeaf1;
  --c-sched: #0073e0;          /* スケジューラーAI — blue */
  --c-sched-soft: #e7f2fd;

  --accent: var(--primary);
  --accent-soft: var(--primary-subdued);
  --accent-rgb: 83, 58, 253;

  --shadow-1: 0 1px 3px rgba(0, 55, 112, 0.08);
  --shadow-2: 0 8px 24px rgba(0, 55, 112, 0.08), 0 2px 6px rgba(0, 55, 112, 0.04);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  --container: 1160px;
  --font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

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


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


/* ---------- product quick summary ---------- */

.product-quick {
  padding: 54px 0 64px;
  background:
    radial-gradient(54% 92% at 15% 0%, rgba(102, 94, 253, 0.28) 0%, transparent 62%),
    radial-gradient(46% 80% at 92% 100%, rgba(214, 36, 109, 0.16) 0%, transparent 64%),
    var(--brand-dark);
  color: #fff;
}

.product-quick-head {
  text-align: center;
  margin-bottom: 32px;
}

.product-quick-head .eyebrow {
  margin-bottom: 18px;
}

.product-quick-head h2 {
  color: #fff;
  text-align: center;
}

.product-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-quick-card {
  min-height: 198px;
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: none;
  transition:
    transform 0.28s cubic-bezier(0.16, 0.84, 0.44, 1),
    box-shadow 0.28s cubic-bezier(0.16, 0.84, 0.44, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

.product-quick-card:hover,
.product-quick-card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.product-quick-phase {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.product-quick-card h3 {
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.product-quick-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.product-quick-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- product flow (products mapped onto value chain) ---------- */

.product-flow {
  display: flex;
  align-items: stretch;
}

.product-flow .product-quick-card {
  flex: 1;
  min-width: 0;
}

.product-flow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.45);
}

.pf-dept {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}

.product-flow-cross {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.product-quick-note {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.solution-valuechain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.solution-valuechain .section-head {
  max-width: 940px;
  margin: 0 auto 34px;
}

.solution-valuechain .section-head h2 {
  color: #fff;
}

.solution-valuechain .section-head .lead {
  color: rgba(255, 255, 255, 0.72);
}

.product-quick .chain {
  margin-bottom: 0;
}

.product-quick .chain::before,
.product-quick .chain::after {
  display: none;
}

.product-quick .chain::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 16%, rgba(255, 255, 255, 0.18) 84%, transparent 100%);
}

.product-quick .chain::after {
  background: linear-gradient(90deg, transparent 0%, rgba(154, 144, 255, 0.9) 16%, rgba(76, 146, 255, 0.82) 54%, rgba(214, 36, 109, 0.72) 84%, transparent 100%);
}

.product-quick .chain-node {
  min-height: 210px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #fff;
}

.product-quick a.chain-node {
  color: #fff;
}

.product-quick .chain-node:not(:last-child)::after {
  border-color: rgba(255, 255, 255, 0.24);
}

.product-quick .chain-node.active {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.product-quick .chain-node.soon {
  background: rgba(255, 255, 255, 0.035);
}

.product-quick .chain-step {
  color: rgba(255, 255, 255, 0.56);
}

.product-quick .chain-phase {
  color: #fff;
}

.product-quick .chain-desc {
  color: rgba(255, 255, 255, 0.66);
}

.product-quick .chain-product {
  margin-top: 18px;
  background: rgba(83, 58, 253, 0.2);
  color: #fff;
}

.product-quick .chain-node.scope-kenzu .chain-product {
  background: rgba(83, 58, 253, 0.32);
}

.product-quick .chain-node.scope-format .chain-product {
  background: rgba(214, 36, 109, 0.34);
}

.product-quick .chain-node.scope-sched .chain-product {
  background: rgba(0, 115, 224, 0.34);
}

.product-quick .chain-node.scope-kenzu .chain-link {
  color: #9a90ff;
}

.product-quick .chain-node.scope-format .chain-link {
  color: #ff6fa3;
}

.product-quick .chain-node.scope-sched .chain-link {
  color: #69b7ff;
}

.product-quick .chain-product.soon-tag {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.64);
}

.product-quick .chain-link {
  color: rgba(255, 255, 255, 0.82);
}

.product-quick a.chain-node:hover .chain-link,
.product-quick a.chain-node:focus-visible .chain-link {
  color: #fff;
}

.product-quick a.chain-node:hover,
.product-quick a.chain-node:focus-visible,
.product-quick .chain-node.is-chain-lit {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.product-quick .chain-node.is-chain-lit::after {
  border-color: rgba(255, 255, 255, 0.56);
}

.product-quick .chain-node.is-chain-lit .chain-step,
.product-quick .chain-node.is-chain-lit .chain-phase {
  color: #fff;
}

.product-quick .chain-node.scope-kenzu.is-chain-lit {
  border-color: rgba(83, 58, 253, 0.42);
}

.product-quick .chain-node.scope-format.is-chain-lit {
  border-color: rgba(214, 36, 109, 0.42);
}

.product-quick .chain-node.scope-sched.is-chain-lit {
  border-color: rgba(0, 115, 224, 0.42);
}

/* ---------- audience strip ---------- */

.audience-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(246, 249, 252, 0.72);
}

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

.audience-inner > span {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.audience-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-inner li {
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* ---------- before after ---------- */

.compare-table {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--shadow-1);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  border-bottom: 1px solid var(--hairline);
}

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

.compare-row span {
  padding: 18px 20px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.75;
  border-right: 1px solid var(--hairline);
}

.compare-row span:last-child { border-right: 0; }

.compare-row span:first-child {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.68);
}

.compare-head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--primary-subdued);
}

.compare-row:not(.compare-head) span:last-child {
  color: var(--ink);
  background: #fbfbff;
}

.compare-note {
  margin-top: 14px;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-mute);
}

/* ---------- faq ---------- */

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

.faq-item {
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 44px 22px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-subdued);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.faq-item[open] summary::after { content: "-"; }

.faq-item p {
  max-width: 740px;
  margin: -4px 0 22px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.9;
}

/* ---------- typography ---------- */

.display-xxl {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

.display-xl {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.display-lg {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.phrase { display: inline-block; }

.heading-lg {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.heading-md {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.lead {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.9;
}

.mute { color: var(--ink-mute); }

.tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-subdued);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  margin-bottom: 24px;
}

/* hero signature mono-label — flat editorial, no pill */
.eyebrow-hero {
  background: transparent;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--primary-deep);
  position: relative;
  padding-left: 30px;
}
.eyebrow-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
}

/* eyebrow on dark band */
.eyebrow.on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- value band (full-width dark editorial band) ---------- */

.value-band {
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(102, 94, 253, 0.35) 0%, transparent 60%),
    radial-gradient(50% 80% at 90% 100%, rgba(234, 34, 97, 0.22) 0%, transparent 60%),
    var(--brand-dark);
  color: #fff;
}

.value-band .display-xl { color: #fff; }
.value-band .lead { color: rgba(255, 255, 255, 0.78); }

.value-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.value-card h3 { color: #fff; }
.value-card p { color: rgba(255, 255, 255, 0.72); }
.value-card .card-icon {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- use cases (editorial rows) ---------- */

.case-rows {
  border-top: 1px solid var(--hairline);
}

.case-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.15s ease;
}

.case-row:hover { background: var(--canvas-soft); }

.case-industry {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.case-text {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
}

.case-to {
  color: var(--primary);
  font-weight: 700;
  margin: 0 4px;
}

.case-prod {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  white-space: nowrap;
}

/* ---------- hero console card (dialogue + constraints) ---------- */

.console-card {
  background: var(--brand-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(13, 37, 61, 0.12),
    0 14px 30px rgba(13, 37, 61, 0.18),
    0 36px 70px rgba(13, 37, 61, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6ee7a8;
}
.console-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.2);
}

.console-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.console-chat {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cmsg {
  font-size: 12.5px;
  line-height: 1.6;
  padding: 9px 12px;
  border-radius: 10px;
  max-width: 92%;
}
.cmsg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.cmsg.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  border-bottom-left-radius: 3px;
}

.console-side {
  padding: 18px 16px;
}

.console-side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.console-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.console-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.console-rules li i {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.console-side-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- problem cards ---------- */

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

.problem-card {
  position: relative;
  min-height: 258px;
  padding: 46px 26px 30px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(13, 37, 61, 0.08);
}

.problem-card::before {
  content: attr(data-num);
  position: absolute;
  top: 24px;
  right: 20px;
  color: rgba(83, 58, 253, 0.08);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  font-feature-settings: "tnum";
  z-index: 0;
}

.problem-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding-right: 36px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.problem-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:active { background: var(--primary-press); }

.btn-secondary {
  background: var(--canvas);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-subdued); }

.btn-dark {
  background: var(--brand-dark);
  color: var(--on-primary);
}
.btn-dark:hover { background: var(--primary-press); }

.btn-ghost-dark {
  background: transparent;
  color: var(--on-primary);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn .arrow { font-size: 14px; transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  font-weight: 500;
  font-size: 15px;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- nav ---------- */

.nav {
  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 var(--hairline);
}

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

.nav-logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }

.nav .btn { padding: 10px 16px; font-size: 13px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  padding: 120px 0 104px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(44% 54% at 4% 5%, rgba(83, 58, 253, 0.20), transparent 66%),
    radial-gradient(36% 44% at 38% -8%, rgba(249, 107, 238, 0.17), transparent 70%),
    radial-gradient(34% 44% at 88% 4%, rgba(214, 36, 109, 0.10), transparent 68%),
    radial-gradient(50% 56% at 72% 100%, rgba(0, 115, 224, 0.10), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 76%);
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(300px, 4.6fr);
  gap: 34px;
  align-items: center;
}

.hero-copy-main {
  max-width: 860px;
}

.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }

.hero-title {
  font-size: clamp(56px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line > span {
  display: inline-block;
}

.hero-title .grad-text {
  display: inline-block;
  background: linear-gradient(90deg, #3c5cff 0%, var(--primary) 48%, #9b2ec6 100%);
  background-size: 240% 100%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.hero-panel-caption {
  margin: 12px 4px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-align: center;
}


/* ---------- hero product carousel ---------- */
.hero-product-stage {
  display: grid;
  position: relative;
}

.hero-product-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.hero-product-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-console-card {
  min-height: 392px;
  background:
    radial-gradient(84% 72% at 100% 0%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    linear-gradient(180deg, #27265e 0%, #1f2156 100%);
}

.hero-product-panel .console-status {
  color: #85f0bd;
}

.hero-product-panel .console-status i {
  background: #6ee7a8;
  box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.20);
}

.hero-console-body {
  min-height: 337px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero-console-body .console-chat {
  justify-content: center;
  min-width: 0;
}

.hero-console-body .cmsg.user {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.18);
}

.hero-console-body .console-side {
  min-width: 0;
}

.hero-product-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-product-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(83, 58, 253, 0.22);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hero-product-dots button:hover,
.hero-product-dots button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-product-dots button.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--primary), #3c5cff);
}

.scheduler-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.constraint-block,
.schedule-block {
  min-width: 0;
}

.constraint-block {
  padding-bottom: 8px;
}

.schedule-block {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-schedule {
  display: grid;
  gap: 9px;
  padding: 0;
}

.schedule-axis {
  display: grid;
  grid-template-columns: 46px repeat(4, 1fr);
  align-items: center;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.schedule-axis::before {
  content: "";
}

.timeline-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.timeline-row > span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-lane {
  position: relative;
  height: 24px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  background-size: 25% 100%, 100% 100%;
}

.timeline-lane i {
  position: absolute;
  top: 4px;
  left: var(--x);
  width: var(--w);
  min-width: 30px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c), white 4%), var(--c));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.22);
  transform-origin: left center;
}

.timeline-lane em {
  overflow: hidden;
  max-width: 100%;
  padding: 0 5px;
  color: rgba(255,255,255,0.92);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.schedule-caption {
  margin: 2px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-product-panel.is-active .timeline-lane i {
  animation: timelineGrow 0.82s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.hero-product-panel.is-active .timeline-row:nth-child(3) .timeline-lane i { animation-delay: 0.10s; }
.hero-product-panel.is-active .timeline-row:nth-child(4) .timeline-lane i { animation-delay: 0.20s; }

@keyframes timelineGrow {
  from { opacity: 0.28; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

.hero-illustration-body {
  min-height: 337px;
  padding: 20px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

.kenzu-illustration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.drawing-mini {
  position: relative;
  padding: 20px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.drawing-mini-label {
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drawing-mini svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing-mini .mark {
  stroke: var(--accent);
  fill: rgba(var(--accent-rgb), 0.11);
  stroke-dasharray: 4 3;
}

.hero-product-panel.is-active .drawing-mini .mark {
  animation: drawingMarkPulse 1.8s ease-in-out infinite alternate;
}

@keyframes drawingMarkPulse {
  from { opacity: 0.48; filter: drop-shadow(0 0 0 rgba(var(--accent-rgb), 0)); }
  to { opacity: 1; filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.34)); }
}

.ai-rule-core,
.extract-core {
  position: relative;
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  text-align: center;
}

.ai-rule-core::before,
.ai-rule-core::after,
.extract-core::before,
.extract-core::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.ai-rule-core::before,
.extract-core::before {
  right: 100%;
}

.ai-rule-core::after,
.extract-core::after {
  left: 100%;
}

.ai-rule-core span,
.extract-core span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.ai-rule-core strong,
.extract-core strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
}

.ai-rule-core p,
.extract-core p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 9.5px;
  line-height: 1.35;
}

.hero-product-panel.is-active .ai-rule-core,
.hero-product-panel.is-active .extract-core {
  animation: corePulse 1.8s ease-in-out infinite alternate;
}

@keyframes corePulse {
  from { box-shadow: 0 0 0 rgba(var(--accent-rgb), 0); }
  to { box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.22); }
}

.rule-output-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.rule-output-card p {
  flex-basis: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.rule-output-card span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
}

.rule-bank {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 68%),
    rgba(255, 255, 255, 0.07);
}

.rule-bank-head,
.reuse-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rule-bank-head strong {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
}

.rule-bank-head span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.rule-bank-grid span {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.17);
  color: rgba(255,255,255,0.88);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.reuse-flow {
  justify-content: center;
  margin-top: 1px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.reuse-flow span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: rgba(255,255,255,0.58);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.reuse-flow span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.reuse-flow i {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.12), var(--accent), rgba(var(--accent-rgb),0.12));
}

.format-illustration {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) 74px minmax(0, 1.78fr);
  gap: 10px;
  align-items: center;
}

.doc-stack {
  display: grid;
  gap: 9px;
}

.mini-doc,
.standard-table {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.mini-doc {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.mini-doc strong,
.standard-table p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.45;
}

.mini-doc span {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.42);
  transform-origin: left center;
}

.mini-doc span:nth-child(2) { width: 82%; }
.mini-doc span:nth-child(3) { width: 64%; }
.mini-doc span:nth-child(4) { width: 74%; }

.hero-product-panel.is-active .mini-doc span {
  animation: docLineFlow 1.15s ease both;
}

.hero-product-panel.is-active .mini-doc span:nth-child(3) { animation-delay: 0.12s; }
.hero-product-panel.is-active .mini-doc span:nth-child(4) { animation-delay: 0.22s; }

@keyframes docLineFlow {
  from { opacity: 0.34; transform: scaleX(0.25); }
  to { opacity: 1; transform: scaleX(1); }
}

.standard-table {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.standard-table div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.15);
  font-size: 10px;
  transform: translateX(0);
}

.hero-product-panel.is-active .standard-table div {
  animation: tableItemIn 0.62s ease both;
}

.hero-product-panel.is-active .standard-table div:nth-child(3) { animation-delay: 0.10s; }
.hero-product-panel.is-active .standard-table div:nth-child(4) { animation-delay: 0.18s; }
.hero-product-panel.is-active .standard-table div:nth-child(5) { animation-delay: 0.26s; }

@keyframes tableItemIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.standard-table span {
  color: rgba(255, 255, 255, 0.54);
}

.standard-table strong {
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.common-format-table {
  gap: 7px;
  padding: 12px;
}

.common-format-table div {
  display: grid;
  grid-template-columns: 0.62fr 1.18fr 0.5fr 0.82fr;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
}

.common-format-table .table-head {
  background: rgba(255,255,255,0.07);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.common-format-table .table-head span {
  color: rgba(255,255,255,0.54);
}

.common-format-table div span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,0.88);
  font-size: 9px;
  font-weight: 800;
  text-overflow: clip;
  white-space: nowrap;
}

.common-format-table small {
  color: rgba(255,255,255,0.56);
  font-size: 9px;
  font-weight: 700;
}


@media (max-width: 767px) {
  .hero-console-card {
    min-height: 0;
  }

  .hero-product-dots {
    margin-top: 12px;
  }

  .hero-console-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-console-body .console-chat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .scheduler-side {
    gap: 14px;
  }

  .kenzu-illustration,
  .format-illustration {
    grid-template-columns: 1fr;
  }

  .ai-rule-core::before,
  .ai-rule-core::after,
  .extract-core::before,
  .extract-core::after {
    display: none;
  }
}

/* ---------- generic sections ---------- */

.section { padding: 96px 0; }
.section-soft { background: var(--canvas-soft); }
.section-tight { padding: 72px 0; }

/* ---------- cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-secondary); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.card-icon svg { width: 23px; height: 23px; }

/* pain list card */
.pain-card { border-left: 3px solid var(--hairline-input); border-radius: var(--r-md); }

/* ---------- value chain ---------- */

.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.chain::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(83, 58, 253, 0.18) 16%, rgba(83, 58, 253, 0.18) 84%, transparent 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.chain::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(83, 58, 253, 0.82) 16%, rgba(0, 115, 224, 0.72) 54%, rgba(214, 36, 109, 0.72) 84%, transparent 100%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

.chain.is-chain-running::after {
  animation: chainLineGrow 1.55s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

@keyframes chainLineGrow {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

.chain-node {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.32s cubic-bezier(0.16, 0.84, 0.44, 1),
    box-shadow 0.32s cubic-bezier(0.16, 0.84, 0.44, 1),
    border-color 0.32s ease,
    background 0.32s ease;
  z-index: 1;
}

.chain-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(83, 58, 253, 0.2);
  border-right: 2px solid rgba(83, 58, 253, 0.2);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

a.chain-node { color: var(--ink); }
a.chain-node:hover,
a.chain-node:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(83, 58, 253, 0.28);
  box-shadow: 0 18px 42px rgba(13, 37, 61, 0.14);
}

.chain-node.active { border-top: 1px solid var(--hairline); }
.chain-node.soon { background: var(--canvas-soft); }

.chain-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.chain-phase { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

.chain-product {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  align-self: center;
}

.chain-product.soon-tag {
  color: var(--ink-mute);
  background: #edf1f5;
  font-weight: 500;
}

.chain-link {
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.chain-desc { font-size: 12px; color: var(--ink-mute); margin-top: 8px; line-height: 1.6; }

.chain-node.is-chain-lit {
  border-color: rgba(83, 58, 253, 0.32);
  box-shadow: 0 18px 42px rgba(13, 37, 61, 0.13);
  transform: translateY(-4px);
}

.chain-node.is-chain-lit::after {
  border-color: rgba(83, 58, 253, 0.56);
}

.chain-node.is-chain-lit .chain-step,
.chain-node.is-chain-lit .chain-phase {
  color: var(--accent);
}


/* ---------- product feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-visual { order: 1; }

.product-concept-img {
  margin: 0;
}

.product-concept-img img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 14px 38px rgba(13, 37, 61, 0.10));
  transition: transform 0.3s ease;
}

.product-concept-img:hover img {
  transform: scale(1.02);
}

.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 18px;
}

.feature-text h3 { margin-bottom: 6px; }
.feature-copy {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}
.feature-text > p { color: var(--ink-secondary); margin-bottom: 22px; }

.feature-points { margin-bottom: 26px; }
.feature-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.feature-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.feature-mini-points li {
  padding: 7px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.feature-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--canvas-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.feature-stat .num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.feature-stat .num small { font-size: 14px; font-weight: 500; }
.feature-stat .label { font-size: 12px; color: var(--ink-mute); }

.feature-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.feature-demo {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.feature-demo:hover,
.feature-demo:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  filter: brightness(0.93);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 37, 61, 0.16);
}

.feature-detail {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
}

.feature-detail:hover,
.feature-detail:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-2px);
}


.feature-visual .mock,
.feature-visual .rule-blueprint-visual,
.feature-visual .kenzu-capability-grid {
  transition: transform 0.42s cubic-bezier(0.16, 0.84, 0.44, 1),
              box-shadow 0.42s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.feature-visual:hover .mock,
.feature-visual:hover .rule-blueprint-visual,
.feature-visual:hover .kenzu-capability-grid {
  transform: translateY(-4px);
}

/* per-product accent scopes */
.scope-kenzu  { --accent: var(--c-kenzu);  --accent-soft: var(--c-kenzu-soft); --accent-rgb: 18, 128, 106; }
.scope-format { --accent: var(--c-format); --accent-soft: var(--c-format-soft); --accent-rgb: 214, 36, 109; }
.scope-sched  { --accent: var(--c-sched);  --accent-soft: var(--c-sched-soft); --accent-rgb: 0, 115, 224; }

/* ---------- UI mockups (CSS-built composites) ---------- */

.mock {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 1px rgba(13, 37, 61, 0.04),
    0 8px 18px rgba(13, 37, 61, 0.07),
    0 28px 56px rgba(13, 37, 61, 0.11);
  overflow: hidden;
  font-feature-settings: "tnum";
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas-soft);
}
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #d6dee8; }
.mock-bar .title {
  margin-left: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.mock-body { padding: 18px; }

/* gantt mockup */
.gantt-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin-bottom: 9px; }
.gantt-label { font-size: 11px; color: var(--ink-mute); font-weight: 500; white-space: nowrap; overflow: hidden; }
.gantt-track { position: relative; height: 16px; background: var(--canvas-soft); border-radius: 4px; }
.gantt-bar { position: absolute; top: 0; height: 100%; border-radius: 4px; opacity: 0.9; }

.chat-line {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-secondary);
  align-items: baseline;
}
.chat-line .who {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* drawing mockup */
.draw-stage {
  position: relative;
  height: 230px;
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 26px 26px;
  background-color: #fcfdfe;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.draw-box {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: rgba(83, 58, 253, 0.07);
}
.draw-box .tag {
  position: absolute;
  top: -10px;
  left: -2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}
.draw-beam { position: absolute; background: #c2cedd; border-radius: 2px; }

.draw-result { display: flex; gap: 10px; margin-top: 14px; }
.draw-chip {
  flex: 1;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 6px;
  background: var(--canvas);
}
.draw-chip .v { font-size: 18px; font-weight: 600; color: var(--accent); }
.draw-chip .k { font-size: 10.5px; color: var(--ink-mute); }

/* format-conversion mockup */
.conv {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 8px;
  align-items: center;
}
.conv-doc {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px;
  background: var(--canvas);
}
.conv-doc.messy { background: #fbfaf7; }
.conv-doc .doc-title { font-size: 10.5px; font-weight: 700; color: var(--ink-mute); margin-bottom: 8px; letter-spacing: 0.04em; }
.conv-line { height: 8px; border-radius: 3px; background: #dde5ee; margin-bottom: 6px; }
.conv-line.w60 { width: 60%; } .conv-line.w80 { width: 80%; } .conv-line.w45 { width: 45%; } .conv-line.w90 { width: 90%; }
.conv-doc.clean .conv-line { background: var(--accent-soft); }
.conv-doc.clean .conv-line.head { background: var(--accent); opacity: 0.75; }
.conv-arrow { text-align: center; color: var(--accent); font-size: 18px; font-weight: 700; }
.conv-caption { margin-top: 12px; font-size: 11px; color: var(--ink-mute); text-align: center; }

.mock-note { margin-top: 10px; font-size: 11px; color: var(--ink-mute); text-align: right; }


.rule-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.rule-stack div {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
}

.rule-stack span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.rule-stack strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink);
}

.constraint-panel {
  margin-top: 12px;
  padding: 13px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 115, 224, 0.24);
  border-radius: var(--r-md);
}

.constraint-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.constraint-panel ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.constraint-panel li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.constraint-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }

.step {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-1);
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-feature-settings: "tnum";
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-secondary); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand-dark);
  color: var(--on-primary);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 70% at 88% 10%, rgba(83, 58, 253, 0.45) 0%, transparent 100%),
    radial-gradient(35% 60% at 70% 100%, rgba(234, 34, 97, 0.25) 0%, transparent 100%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 620px; margin-bottom: 32px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #e9e7ff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.contact-list .ico { color: var(--primary); font-weight: 700; }

.form-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-secondary);
}
.form-field label .req { color: var(--c-format); font-size: 11px; margin-left: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--hairline-input);
  border-radius: var(--r-sm);
  background: var(--canvas);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.12);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 14px; font-size: 11.5px; color: var(--ink-mute); }

/* ---------- footer ---------- */

.footer {
  background: var(--brand-dark);
  padding: 56px 0 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.footer li { margin-bottom: 10px; }
.footer p { color: rgba(255,255,255,0.55); }
.footer a { color: rgba(255,255,255,0.55); }
.footer a:hover { color: #fff; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; color: #fff; }
.footer-brand .nav-logo span { color: var(--primary-soft); }
.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: nowrap;
}
.footer-logo {
  height: 76px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.footer-logo:hover { opacity: 1; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ==========================================================
   product detail pages
   ========================================================== */

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 116px 0 96px;
  background: #ffffff;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(42% 48% at 6% 4%, rgba(var(--accent-rgb), 0.20), transparent 70%),
    radial-gradient(34% 44% at 38% -10%, rgba(249, 107, 238, 0.13), transparent 72%),
    radial-gradient(44% 52% at 92% 2%, rgba(var(--accent-rgb), 0.08), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 76%);
  pointer-events: none;
}

.detail-hero .hero-mesh {
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  background:
    radial-gradient(44% 54% at 4% 5%, rgba(var(--accent-rgb), 0.16), transparent 66%),
    radial-gradient(36% 44% at 38% -8%, rgba(249, 107, 238, 0.13), transparent 70%),
    radial-gradient(34% 44% at 88% 4%, rgba(var(--accent-rgb), 0.08), transparent 68%),
    radial-gradient(50% 56% at 72% 100%, rgba(0, 115, 224, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.74) 0%, rgba(255, 255, 255, 0.92) 76%);
}

.detail-hero .hero-network {
  z-index: 1;
  opacity: 0.42;
}

.detail-hero > .container {
  position: relative;
  z-index: 2;
}

.detail-hero .feature-tag {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.10);
}

.detail-hero .display-xxl {
  max-width: 1040px;
  font-size: clamp(54px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.detail-hero .display-lg.mute {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.24;
}

.detail-hero .lead,
.detail-hero .tldr,
.detail-hero .hero-note {
  color: var(--ink-secondary);
}

.detail-hero .btn-primary {
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.18);
}

.breadcrumb { font-size: 13px; color: var(--ink-mute); margin-bottom: 28px; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- stats band (hero 直下の数字訴求) ---------- */

.stats-band {
  background: linear-gradient(90deg, rgba(83, 58, 253, 0.04) 0%, rgba(234, 34, 97, 0.03) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 40px 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 4px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: var(--ink-mute);
}

.stats-note {
  margin-top: 32px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-mute);
}

/* ---------- compare table enhanced ---------- */

.compare-row:nth-child(odd):not(.compare-head) {
  background: rgba(102, 94, 253, 0.04);
}

.compare-row:nth-child(even):not(.compare-head) {
  background: var(--canvas);
}

.compare-summary {
  background: linear-gradient(90deg, rgba(83, 58, 253, 0.08) 0%, rgba(102, 94, 253, 0.04) 100%) !important;
  border-top: 2px solid var(--primary);
  margin-top: 12px;
}

.compare-summary span {
  color: var(--ink);
  font-weight: 500;
}

.compare-summary span:last-child {
  color: var(--primary-deep);
  background: transparent;
}

/* ---------- contact tabs ---------- */

.contact-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--hairline);
}

.contact-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 24px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.contact-tab-btn:hover {
  color: var(--primary);
}

.contact-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.contact-tab-btn .tab-icon {
  font-size: 18px;
  display: inline-flex;
}
.contact-tab-btn .tab-icon svg { width: 18px; height: 18px; }

.contact-tab-pane {
  display: none;
}

.contact-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Checkboxes for demo form */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
  cursor: pointer;
  font-weight: 400;
}

.checkbox input[type="checkbox"] {
  width: auto;
  height: 16px;
  width: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ---------- existing solution vs EnCite ---------- */

.solution-table {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--shadow-1);
}

.solution-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--hairline);
}

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

.solution-row > span {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
  border-right: 1px solid var(--hairline);
}

.solution-row > span:last-child { border-right: 0; }

.solution-feature {
  color: var(--ink) !important;
  font-weight: 600;
  background: var(--canvas-soft);
}

.solution-head {
  background: var(--canvas-soft);
}

.solution-head > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.solution-head .solution-feature { background: var(--canvas-soft); }

.solution-encite {
  color: var(--primary-deep) !important;
  background: var(--primary-subdued);
}

/* EnCite column highlighted throughout */
.solution-row > span:last-child:not(.solution-encite) {
  background: linear-gradient(90deg, rgba(83, 58, 253, 0.11), rgba(83, 58, 253, 0.045));
  box-shadow: inset 3px 0 0 rgba(83, 58, 253, 0.28);
}

.sol-neg {
  position: relative;
  padding-left: 42px !important;
}
.sol-neg::before {
  content: "—";
  position: absolute;
  left: 20px;
  top: 20px;
  color: var(--ink-mute);
  font-weight: 700;
}

.sol-pos {
  position: relative;
  padding-left: 42px !important;
  color: var(--ink) !important;
}
.sol-pos::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--primary);
  font-weight: 700;
}
.sol-pos strong { color: var(--primary-deep); font-weight: 600; }

/* ---------- scheduler: 段階的スケーリング story ---------- */

.scale-story {
  margin: 28px 0 4px;
  padding: 22px 24px;
  background: var(--c-sched-soft);
  border: 1px solid var(--c-sched);
  border-radius: var(--r-lg);
}

.scale-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-sched);
  margin-bottom: 16px;
}

.scale-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scale-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

.scale-step.active {
  border-color: var(--c-sched);
  box-shadow: var(--shadow-1);
}

.scale-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-sched-soft);
  color: var(--c-sched);
  font-weight: 700;
  font-size: 14px;
}

.scale-step.active .scale-num {
  background: var(--c-sched);
  color: #fff;
}

.scale-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-secondary);
}
.scale-text strong { color: var(--ink); font-weight: 600; }

.scale-arrow {
  flex-shrink: 0;
  color: var(--c-sched);
  font-weight: 700;
}

/* gantt line group label */
.gantt-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}
.line-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ---------- flow: 活用範囲の拡大イメージ ---------- */

.expand-story {
  margin-top: 64px;
  padding: 40px 44px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.expand-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-deep);
  text-align: center;
  margin-bottom: 32px;
}

.expand-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 12px;
}

.expand-phase {
  text-align: center;
  padding: 0 8px;
}

.expand-scope {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.expand-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.expand-bar {
  align-self: center;
  width: 100%;
  min-width: 40px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.expand-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-soft) 100%);
  border-radius: var(--r-pill);
}

.expand-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}

.detail-hero h1 { margin: 4px 0 18px; }
.detail-hero .lead { max-width: 680px; margin-bottom: 32px; }

.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.stat-card .num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.stat-card .num small { font-size: 18px; font-weight: 500; }
.stat-card .label { font-size: 13px; color: var(--ink-mute); margin-top: 8px; }

.pain-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ps-col {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  padding: 36px 32px;
  background: var(--canvas);
}
.ps-col.pain { background: var(--canvas-soft); }
.ps-col h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.ps-col li { position: relative; padding-left: 24px; margin-bottom: 13px; font-size: 14.5px; color: var(--ink-secondary); }
.ps-col.pain li::before { content: "—"; position: absolute; left: 0; color: var(--ink-mute); }
.ps-col.gain li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.usecase-card .uc-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  margin-bottom: 14px;
}

.detail-cta-note { font-size: 12px; color: var(--ink-mute); margin-top: 20px; }

.other-products .card { display: flex; flex-direction: column; }
.other-products .card .link-arrow { margin-top: auto; padding-top: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12.5px; }
  .nav .btn { padding: 9px 14px; }
}

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .grid-4, .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row span { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .compare-row span:last-child { border-bottom: 0; }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain::before,
  .chain::after,
  .chain-node::after { display: none; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-text { order: 1; }
  .feature.reverse .feature-visual { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 767px) {
  .problem-card h3 { padding-right: 34px; }
  .problem-card::before { font-size: 36px; }
  .display-xxl { font-size: 34px; }
  .detail-hero {
    min-height: auto;
    padding: 84px 0 64px;
  }
  .detail-hero .display-xxl {
    font-size: clamp(42px, 13vw, 56px);
  }
  .detail-hero .display-lg.mute {
    font-size: clamp(24px, 7vw, 32px);
  }
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }
  .display-xl { font-size: 28px; }
  .display-lg { font-size: 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .grid-3, .grid-4, .grid-2, .problem-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .pain-solution { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
  .audience-inner ul { gap: 8px; }
  .compare-note { text-align: left; }
  .faq-item summary { font-size: 15px; }
  .feature-stats { flex-wrap: wrap; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   motion — scroll reveal / count-up / console play / drift
   (all gated by JS presence + prefers-reduced-motion)
   ========================================================== */

/* card hover lift (works regardless of motion pref) */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.value-card:hover {
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {

  /* scroll reveal: hidden initial state only when JS is present */
  .js .section-head,
  .js .product-quick-head,
  .js .stat-item,
  .js .stat-card,
  .js .product-flow,
  .js .product-quick-card,
  .js .problem-card,
  .js .solution-row,
  .js .ps-col,
  .js .chain-node,
  .js .value-card,
  .js .feature-text,
  .js .feature-visual,
  .js .feature-stat,
  .js .feature-usecase,
  .js .card,
  .js .trust-step,
  .js .step,
  .js .faq-item,
  .js .cta-band,
  .js .contact-tabs,
  .js .form-card,
  .js .why-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
    will-change: opacity, transform;
  }

  .js .section-head.is-visible,
  .js .product-quick-head.is-visible,
  .js .stat-item.is-visible,
  .js .stat-card.is-visible,
  .js .product-flow.is-visible,
  .js .product-quick-card.is-visible,
  .js .problem-card.is-visible,
  .js .solution-row.is-visible,
  .js .ps-col.is-visible,
  .js .chain-node.is-visible,
  .js .value-card.is-visible,
  .js .feature-text.is-visible,
  .js .feature-visual.is-visible,
  .js .feature-stat.is-visible,
  .js .feature-usecase.is-visible,
  .js .card.is-visible,
  .js .trust-step.is-visible,
  .js .step.is-visible,
  .js .faq-item.is-visible,
  .js .cta-band.is-visible,
  .js .contact-tabs.is-visible,
  .js .form-card.is-visible,
  .js .why-card.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .product-quick-card.is-visible:hover,
  .js .product-quick-card.is-visible:focus-visible {
    transform: translateY(-6px);
  }

  .js .card.is-visible:hover,
  .js .card.is-visible:focus-visible {
    transform: translateY(-4px);
  }

  .js .chain-node.is-visible.is-chain-lit {
    transform: translateY(-4px);
  }

  .js a.chain-node.is-visible:hover,
  .js a.chain-node.is-visible:focus-visible {
    transform: translateY(-5px);
  }


  .kenzu-capability-card:hover,
  .kenzu-capability-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(13, 37, 61, 0.12);
  }

  .kenzu-capability-card,
  .kenzu-flow-step,
  .sm-chat,
  .sm-constraints,
  .rule-stack div {
    transition: transform 0.28s cubic-bezier(0.16, 0.84, 0.44, 1),
                box-shadow 0.28s cubic-bezier(0.16, 0.84, 0.44, 1),
                background 0.28s ease;
  }

  .kenzu-flow-bar.is-flow-active .kenzu-flow-step {
    animation: flowStepPulse 2.4s ease-out both;
  }

  .kenzu-flow-bar.is-flow-active .kenzu-flow-step:nth-of-type(2) { animation-delay: 0.12s; }
  .kenzu-flow-bar.is-flow-active .kenzu-flow-step:nth-of-type(3) { animation-delay: 0.24s; }
  .kenzu-flow-bar.is-flow-active .kenzu-flow-step:nth-of-type(4) { animation-delay: 0.36s; }
  .kenzu-flow-bar.is-flow-active .kenzu-flow-step:nth-of-type(5) { animation-delay: 0.48s; }

  @keyframes flowStepPulse {
    0%, 100% { transform: none; }
    18% { transform: translateY(-3px); }
  }

  /* hero console: chat + constraints play in sequence */
  .js .console-chat .cmsg,
  .js .console-rules li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .js .console-chat .cmsg.is-shown,
  .js .console-rules li.is-shown {
    opacity: 1;
    transform: none;
  }

  .hero-title .grad-text {
    animation: heroTextFlow 7s linear infinite;
  }

  @keyframes heroTextFlow {
    to { background-position: 240% 0; }
  }

  /* hero mesh slow drift */
  .hero-mesh {
    animation: meshDrift 24s ease-in-out infinite alternate;
  }
  @keyframes meshDrift {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, 1.5%); }
  }
}


@media (prefers-reduced-motion: reduce) {
  .chain::after,
  .hero-mesh,
  .kenzu-flow-bar.is-flow-active .kenzu-flow-step {
    animation: none !important;
  }

  .product-quick-card,
  .chain-node,
  .feature-demo,
  .feature-detail,
  .feature-visual .mock,
  .feature-visual .rule-blueprint-visual,
  .feature-visual .kenzu-capability-grid {
    transition: none !important;
  }
}

/* ==========================================================
   blueprint texture — technical grid + dimension marks
   ========================================================== */

.blueprint-bg { position: relative; }

.blueprint-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(83, 58, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(83, 58, 253, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.10) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(110% 90% at 50% 0%, #000 0%, transparent 72%);
}

.blueprint-bg > * { position: relative; z-index: 1; }


/* ---------- GEO definition section ---------- */

.definition-grid {
  align-items: stretch;
}

.definition-card {
  min-height: 100%;
}

.definition-card .card-icon {
  color: var(--primary);
}

.definition-card p {
  line-height: 1.9;
}

/* ---------- consolidated top page sections ---------- */

.audience-summary {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.section-subhead {
  margin-top: 96px;
  padding-top: 72px;
  border-top: 1px solid var(--hairline);
}

.section-head-wide {
  max-width: 920px;
}

.problem-heading {
  font-size: 38px;
}

.why-heading {
  font-size: 38px;
}

.keep-line {
  display: inline-block;
  white-space: nowrap;
}

.product-subsection-head {
  margin-top: 72px;
  margin-bottom: 32px;
}

.approach-panel {
  margin-top: 44px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

.approach-panel .section-head {
  margin-bottom: 36px;
}

.approach-panel .grid-4 {
  position: relative;
  z-index: 1;
  gap: 18px;
  align-items: stretch;
}

.approach-panel .value-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 30px 26px;
}

.approach-panel .value-card h3 {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}

.approach-panel .value-card p {
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.85;
}

.approach-panel .value-card .card-icon {
  background: var(--primary-subdued);
  color: var(--primary);
  margin-bottom: 22px;
}

@media (max-width: 1023px) {
  .product-quick-grid { grid-template-columns: 1fr; }
  .product-flow { flex-direction: column; }
  .product-flow-arrow { transform: rotate(90deg); padding: 8px 0; justify-content: center; }
  .solution-row { grid-template-columns: 1fr; }
  .solution-row > span { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .solution-row > span:last-child { border-bottom: 0; }
  .case-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 767px) {
  .problem-heading,
  .why-heading { font-size: 27px; }
  .keep-line { font-size: 0.95em; }
  .why-heading .keep-line { display: inline; white-space: normal; font-size: 1em; }
  .solution-summary-cell strong { font-size: 16px; }
  .product-quick { padding: 46px 0 52px; }
  .product-quick-card { min-height: 176px; padding: 24px 22px; }
  .rule-stack { grid-template-columns: 1fr; }
  .approach-panel { margin-top: 36px; }
  .product-subsection-head { margin-top: 56px; }
}

/* ---------- top page stats summary ---------- */

.top-stats {
  display: block;
  background: linear-gradient(90deg, rgba(83, 58, 253, 0.04) 0%, rgba(234, 34, 97, 0.03) 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 46px 0 28px;
}

.top-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.top-stats .stats-note {
  max-width: 720px;
  margin-top: 20px;
  text-align: center;
}

.top-stats .audience-summary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.top-stats .audience-inner {
  min-height: 0;
  justify-content: center;
}

.top-stats .audience-inner ul {
  justify-content: center;
}

.top-stats .audience-inner li {
  background: var(--canvas);
}

@media (max-width: 1023px) {
  .top-stats .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .top-stats { padding: 42px 0 26px; }
  .top-stats .stats-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================
   scroll anchoring + responsive patches (quick-nav / new parts)
   ========================================================== */

/* keep scroll targets clear of the sticky header */
html { scroll-padding-top: 84px; }
.feature { scroll-margin-top: 84px; }
section[id] { scroll-margin-top: 76px; }

@media (max-width: 767px) {
  /* hero console: stack chat over constraints */
  .console-body { grid-template-columns: 1fr; }
  .console-chat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  /* scheduler staged-scaling: vertical with downward arrows */
  .scale-steps { flex-direction: column; align-items: stretch; }
  .scale-arrow { transform: rotate(90deg); align-self: center; }

  /* let big headings wrap naturally instead of forced breaks */
  .display-xxl br, .display-xl br { display: none; }

  /* comparison table on mobile: drop the stacked header, lean on —/✓ markers */
  .solution-head { display: none; }
  .solution-feature { background: var(--canvas-soft); font-weight: 700; }
  .sol-pos { background: rgba(83, 58, 253, 0.05); }
}

/* ==========================================================
   mobile hamburger menu
   ========================================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }

  /* dropdown panel (overrides the earlier display:none) */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-2);
    padding: 8px 0 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a:not(.btn) {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin: 14px 24px 4px;
  }
}

/* ---------- why section summary row ---------- */
.why-section {
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(102, 94, 253, 0.35) 0%, transparent 60%),
    radial-gradient(50% 80% at 90% 100%, rgba(234, 34, 97, 0.22) 0%, transparent 60%),
    var(--brand-dark);
  color: #fff;
}

.why-section .section-head .display-xl,
.why-section .section-head .display-lg {
  color: #fff;
}

.why-section .section-head .lead {
  color: rgba(255, 255, 255, 0.78);
}

.why-section .solution-table {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

/* why comparison cards */
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.why-card {
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.why-problem {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.4;
}

.why-limit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.why-limit::before {
  content: "—";
  position: absolute;
  left: 0;
}

.why-answer {
  font-size: 14px;
  font-weight: 500;
  color: #6ee7a8;
  margin: 0;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.why-answer::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

@media (max-width: 767px) {
  .why-cards {
    grid-template-columns: 1fr;
  }
}


.solution-summary-row {
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 3.15fr);
  background:
    linear-gradient(90deg, rgba(83, 58, 253, 0.075) 0%, rgba(83, 58, 253, 0.025) 100%);
  border-top: 1px solid rgba(83, 58, 253, 0.16);
}

.solution-summary-row > span {
  border-right: 1px solid var(--hairline);
}

.solution-summary-row > span:last-child {
  border-right: 0;
}

.solution-summary-cell {
  background: transparent !important;
  color: var(--ink-secondary) !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.solution-summary-cell strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .solution-summary-row {
    grid-template-columns: 1fr;
  }

  .solution-summary-row > span {
    border-right: 0;
  }
}


/* ---------- kenzu detail: rule workbench visual ---------- */

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.detail-hero-copy .tldr {
  max-width: 680px;
}

.rule-workbench-visual {
  position: relative;
}

.rule-workbench-visual::before {
  content: "";
  position: absolute;
  inset: 8% -7% -8% 12%;
  background: radial-gradient(circle at 55% 42%, rgba(83, 58, 253, 0.22), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.rule-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 90px rgba(13, 37, 61, 0.14), 0 8px 22px rgba(83, 58, 253, 0.08);
}

.rule-window-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: linear-gradient(90deg, #f8faff 0%, #f3f5fb 100%);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 13px;
}

.rule-window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d3dae6;
  flex: 0 0 auto;
}

.rule-window-bar strong {
  min-width: 0;
  margin-left: 10px;
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 700;
  text-overflow: clip;
  white-space: nowrap;
}

.rule-window-bar em {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.rule-workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 22px;
}

.rule-drawing-pair {
  display: grid;
  gap: 14px;
}

.mini-drawing {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(83, 58, 253, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.055) 1px, transparent 1px),
    #fbfdff;
  background-size: 22px 22px;
}

.mini-drawing-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.draw-line,
.draw-room,
.mini-highlight {
  position: absolute;
  display: block;
}

.draw-line {
  height: 5px;
  border-radius: var(--r-pill);
  background: #c4cedc;
}

.draw-line.l1 { left: 14%; right: 9%; top: 34%; }
.draw-line.l2 { left: 10%; right: 14%; top: 59%; }
.draw-line.l3 { left: 17%; right: 20%; top: 78%; }

.draw-room {
  border: 2px solid #bdc8d8;
  background: rgba(255, 255, 255, 0.34);
}

.draw-room.r1 { left: 17%; top: 24%; width: 28%; height: 25%; }
.draw-room.r2 { left: 47%; top: 41%; width: 32%; height: 25%; }
.draw-room.r3 { left: 58%; top: 66%; width: 26%; height: 21%; }

.after .draw-room {
  border-color: rgba(83, 58, 253, 0.78);
  background: rgba(83, 58, 253, 0.08);
}

.mini-highlight {
  z-index: 4;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(83, 58, 253, 0.22);
}

.mini-highlight.h1 { left: 21%; top: 26%; }
.mini-highlight.h2 { left: 51%; top: 43%; }

.rule-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}

.rule-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas-soft);
  font-size: 12px;
  color: var(--ink-mute);
}

.rule-panel-header strong {
  color: var(--accent);
  font-size: 13px;
}

.rule-field-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.rule-field {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
}

.rule-field span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rule-field p {
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}

.rule-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
  padding: 12px 14px 14px;
}

.rule-tabs span {
  padding: 8px 6px;
  border-radius: var(--r-pill);
  background: var(--canvas-soft);
  color: var(--ink-mute);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
}

.rule-tabs span.active {
  background: var(--accent);
  color: #fff;
}

.rule-test-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(83, 58, 253, 0.07), rgba(214, 36, 109, 0.04));
  color: var(--ink-secondary);
  font-size: 12.5px;
}

.rule-test-strip strong {
  color: var(--accent);
  font-size: 15px;
}

.rule-test-strip em {
  margin-left: auto;
  color: var(--ink-mute);
  font-style: normal;
}

.rule-value-band .stat-card {
  text-align: left;
}

.rule-value-band .stat-card .num {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 24px;
  line-height: 1.3;
}

.rule-value-band .stat-card .label {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.75;
}

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

@media (max-width: 1023px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .rule-workbench-body {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 767px) {
  .rule-window-bar strong {
    font-size: 12px;
  }

  .rule-window-bar em {
    display: none;
  }

  .rule-workbench-body {
    padding: 16px;
  }

  .rule-drawing-pair,
  .steps.steps-3 {
    grid-template-columns: 1fr;
  }

  .mini-drawing {
    min-height: 150px;
  }

  .rule-test-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .rule-test-strip em {
    margin-left: 0;
  }
}

/* ---------- index products: kenzu rule-workbench compacting ---------- */

.feature-rule-visual .rule-workbench-visual {
  max-width: 720px;
  margin-left: auto;
}

.feature-rule-visual .rule-workbench-visual::before {
  inset: 10% -6% -7% 10%;
}

.feature-rule-visual .rule-window {
  box-shadow: 0 24px 70px rgba(13, 37, 61, 0.13), 0 8px 18px rgba(83, 58, 253, 0.08);
}

.feature-rule-visual .rule-workbench-body {
  gap: 16px;
  padding: 20px;
}

.feature-rule-visual .mini-drawing {
  min-height: 154px;
}

.feature-rule-visual .rule-field-list {
  gap: 8px;
}

.feature-rule-visual .rule-field {
  padding: 9px 11px;
}

.feature-stats.rule-value-band {
  gap: 14px;
  align-items: stretch;
}

.feature-stats.rule-value-band .feature-stat {
  flex: 1;
  min-width: 0;
}

.feature-stats.rule-value-band .feature-stat .num {
  min-height: 34px;
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 1.3;
}

.feature-stats.rule-value-band .feature-stat .label {
  color: var(--ink-secondary);
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .feature-rule-visual .rule-workbench-visual {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .feature-stats.rule-value-band {
    flex-direction: column;
  }
}


/* ---------- kenzu blueprint flow diagram ---------- */

.rule-blueprint-visual {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  background:
    linear-gradient(rgba(83, 58, 253, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: 0 26px 80px rgba(13, 37, 61, 0.12), 0 8px 20px rgba(83, 58, 253, 0.08);
}

.blueprint-title {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.blueprint-flow {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) 24px minmax(160px, 1fr) 24px minmax(150px, 0.95fr);
  gap: 10px;
  align-items: center;
}

.bp-step {
  min-width: 0;
  min-height: 306px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}

.bp-step-label {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bp-step h4 {
  min-height: 44px;
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.bp-step p {
  margin-top: auto;
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.65;
}

.bp-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.bp-sheet-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.bp-sheet {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background:
    linear-gradient(rgba(83, 58, 253, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.055) 1px, transparent 1px),
    #fbfdff;
  background-size: 18px 18px;
  border: 1px solid #dbe3ef;
  border-radius: var(--r-sm);
}

.bp-before,
.bp-after {
  min-height: 86px;
}

.bp-sheet-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-secondary);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-1);
}

.bp-wall,
.bp-room,
.bp-dim,
.bp-highlight,
.bp-mark {
  position: absolute;
  display: block;
}

.bp-wall {
  height: 4px;
  border-radius: var(--r-pill);
  background: #c3cede;
}

.bp-wall.w1 { left: 14%; right: 10%; top: 35%; }
.bp-wall.w2 { left: 10%; right: 18%; top: 62%; }
.bp-wall.w3 { left: 26%; right: 12%; top: 78%; }

.bp-room {
  border: 1.5px solid #bdc8d8;
  background: rgba(255, 255, 255, 0.38);
}

.bp-room.r1 { left: 15%; top: 23%; width: 28%; height: 28%; }
.bp-room.r2 { left: 48%; top: 40%; width: 30%; height: 27%; }
.bp-room.r3 { left: 58%; top: 64%; width: 24%; height: 22%; }

.bp-dim {
  width: 42px;
  height: 1px;
  background: rgba(100, 116, 141, 0.5);
}

.bp-dim::before,
.bp-dim::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(100, 116, 141, 0.55);
}

.bp-dim::before { left: 0; }
.bp-dim::after { right: 0; }
.bp-dim.d1 { left: 48%; top: 24%; }
.bp-dim.d2 { left: 16%; top: 85%; width: 54px; }

.bp-after,
.bp-new {
  border-color: rgba(83, 58, 253, 0.28);
}

.bp-highlight {
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: rgba(83, 58, 253, 0.09);
}

.bp-highlight.h1 { left: 17%; top: 25%; width: 28%; height: 28%; }
.bp-highlight.h2 { left: 49%; top: 41%; width: 30%; height: 27%; }
.bp-highlight.h3 { left: 16%; top: 26%; width: 27%; height: 26%; }
.bp-highlight.h4 { left: 52%; top: 60%; width: 30%; height: 25%; }

.bp-mark {
  right: 12px;
  top: 44%;
  z-index: 5;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.bp-build {
  background: linear-gradient(180deg, rgba(83, 58, 253, 0.09) 0%, rgba(83, 58, 253, 0.04) 100%);
  border-color: rgba(83, 58, 253, 0.24);
}

.bp-ai-box {
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(83, 58, 253, 0.2);
  border-radius: var(--r-md);
}

.bp-ai-box > span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bp-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bp-rule-grid em {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(83, 58, 253, 0.14);
  border-radius: var(--r-sm);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.bp-review,
.bp-rule-card {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.bp-review {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(83, 58, 253, 0.24);
}

.bp-rule-card {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(83, 58, 253, 0.18);
}

.bp-new {
  min-height: 148px;
  margin-bottom: 12px;
}

.bp-output-chips {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.bp-output-chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.feature-blueprint-visual .rule-blueprint-visual,
.detail-blueprint-visual .rule-blueprint-visual {
  max-width: 740px;
  margin-left: auto;
}

.feature-blueprint-visual .bp-step {
  min-height: 292px;
  padding: 16px;
}

.feature-blueprint-visual .bp-step h4 {
  font-size: 16px;
}

@media (max-width: 1180px) {
  .blueprint-flow {
    grid-template-columns: 1fr;
  }

  .bp-arrow {
    min-height: 18px;
    transform: rotate(90deg);
  }

  .bp-step,
  .feature-blueprint-visual .bp-step {
    min-height: 0;
  }

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

@media (max-width: 1023px) {
  .feature-blueprint-visual .rule-blueprint-visual,
  .detail-blueprint-visual .rule-blueprint-visual {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .rule-blueprint-visual {
    padding: 18px;
  }

  .bp-sheet-pair {
    grid-template-columns: 1fr;
  }

  .bp-step {
    padding: 15px;
  }
}


/* ---------- kenzu blueprint diagram equal-card refinements ---------- */

.rule-blueprint-visual {
  width: 100%;
  max-width: 100%;
  padding: 28px;
}

.blueprint-title {
  margin-bottom: 20px;
}

.blueprint-flow {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.bp-step,
.feature-blueprint-visual .bp-step {
  min-height: 360px;
  height: 100%;
  padding: 18px;
}

.bp-step h4 {
  min-height: 46px;
  margin: 7px 0 12px;
  font-size: 16px;
}

.bp-arrow {
  align-self: center;
  width: 34px;
  height: 34px;
  margin: auto;
  border: 1px solid rgba(83, 58, 253, 0.18);
  border-radius: var(--r-pill);
  background: rgba(83, 58, 253, 0.08);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(83, 58, 253, 0.1);
}

.bp-sheet-pair {
  gap: 12px;
}

.bp-sheet {
  background:
    linear-gradient(rgba(83, 58, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.06) 1px, transparent 1px),
    #fbfdff;
  background-size: 16px 16px;
  border-color: #d7e0ec;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.bp-sheet::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 20px;
  border: 1px solid rgba(148, 163, 184, 0.58);
  background:
    linear-gradient(rgba(148, 163, 184, 0.3) 1px, transparent 1px),
    rgba(255, 255, 255, 0.52);
  background-size: 100% 6px;
}

.bp-before,
.bp-after {
  min-height: 96px;
}

.bp-new {
  min-height: 164px;
}

.bp-wall {
  height: 3px;
  background: #b9c5d6;
}

.bp-room {
  border-color: #aebbd0;
  background: rgba(255, 255, 255, 0.24);
}

.bp-room::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 20px;
  border-right: 1.5px solid rgba(148, 163, 184, 0.7);
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.7);
  border-radius: 0 0 16px 0;
}

.bp-dim {
  background: rgba(100, 116, 141, 0.58);
}

.bp-highlight {
  background: rgba(83, 58, 253, 0.1);
  box-shadow: 0 0 0 4px rgba(83, 58, 253, 0.04);
}

.bp-mark {
  top: auto;
  right: 12px;
  bottom: 16px;
}

.bp-build {
  background:
    linear-gradient(rgba(83, 58, 253, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(83, 58, 253, 0.08) 0%, rgba(83, 58, 253, 0.035) 100%);
  background-size: 16px 16px, 16px 16px, auto;
}

.bp-ai-box {
  padding: 12px;
}

.bp-ai-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bp-mini-illust {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(83, 58, 253, 0.18);
}

.bp-ai-illust::before {
  content: "AI";
  position: absolute;
  inset: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.bp-ai-illust::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: translateX(-50%) rotate(-45deg);
}

.bp-human-illust::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.bp-human-illust::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 10px;
  border-radius: 12px 12px 5px 5px;
  background: rgba(83, 58, 253, 0.22);
  border: 1px solid rgba(83, 58, 253, 0.22);
  transform: translateX(-50%);
}

.bp-review,
.bp-rule-card {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.bp-rule-card {
  margin-top: 10px;
}

.bp-output-chips span {
  min-height: 38px;
}

.feature-blueprint-visual .rule-blueprint-visual,
.detail-blueprint-visual .rule-blueprint-visual {
  width: 100%;
  max-width: 760px;
}

@media (max-width: 1180px) {
  .blueprint-flow {
    grid-template-columns: 1fr;
  }

  .bp-arrow {
    min-height: 34px;
    transform: rotate(90deg);
  }

  .bp-step,
  .feature-blueprint-visual .bp-step {
    min-height: 0;
    height: auto;
  }

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

@media (max-width: 767px) {
  .rule-blueprint-visual {
    padding: 18px;
  }

  .bp-sheet-pair {
    grid-template-columns: 1fr;
  }

  .bp-step,
  .feature-blueprint-visual .bp-step {
    padding: 15px;
  }
}


/* success message (mock chat) */
.msg-ok { color: #1f9d6b; font-weight: 600; }


/* ---------- kenzu capability cards visual ---------- */

.kenzu-capability-visual {
  width: 100%;
}

.kenzu-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kenzu-capability-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid rgba(83, 58, 253, 0.14);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.kenzu-capability-card.tone-fill { --tone: #12806a; --tone-soft: #e5f7f0; --tone-mid: rgba(18, 128, 106, 0.22); }
.kenzu-capability-card.tone-count { --tone: var(--primary); --tone-soft: var(--primary-subdued); --tone-mid: rgba(83, 58, 253, 0.16); }
.kenzu-capability-card.tone-check { --tone: #d6246d; --tone-soft: #fdeaf1; --tone-mid: rgba(214, 36, 109, 0.12); }

.kenzu-card-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--hairline);
}

.kenzu-card-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tone);
  background: var(--tone-soft);
  border-radius: var(--r-md);
}

.kenzu-card-icon svg,
.kenzu-flow-step svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kenzu-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.kenzu-card-head em {
  display: block;
  margin-top: 1px;
  color: var(--ink-mute);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.kenzu-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.kenzu-drawing {
  height: 126px;
  overflow: hidden;
  background:
    linear-gradient(rgba(83, 58, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.035) 1px, transparent 1px),
    #fbfaf6;
  background-size: 18px 18px;
  border: 1px solid rgba(100, 116, 141, 0.18);
  border-radius: var(--r-md);
}

.kenzu-drawing svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kenzu-drawing text {
  fill: #7a8494;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
}

.kenzu-drawing .plan-frame,
.kenzu-drawing .plan-line-box {
  fill: none;
  stroke: #9aa6b6;
  stroke-width: 1.5;
}

.kenzu-drawing .plan-line,
.kenzu-drawing .panel-line {
  stroke: #b8c2d2;
  stroke-width: 1.5;
}

.kenzu-drawing .plan-fill,
.kenzu-drawing .count-badge {
  fill: var(--tone-mid);
}

.kenzu-drawing .plan-hatch line,
.kenzu-drawing .warn-stroke {
  stroke: var(--tone);
  stroke-width: 1;
  opacity: 0.62;
}

.kenzu-drawing .tone-text,
.kenzu-drawing .count-mark text,
.kenzu-drawing .warn-text {
  fill: var(--tone);
  font-weight: 800;
}

.kenzu-drawing .count-mark rect,
.kenzu-drawing .count-mark circle {
  fill: rgba(255, 255, 255, 0.34);
  stroke: var(--tone);
  stroke-width: 1.4;
}

.kenzu-drawing .check-panel {
  fill: rgba(255, 255, 255, 0.52);
  stroke: rgba(100, 116, 141, 0.22);
}

.kenzu-drawing .ok-text {
  fill: #12806a;
  font-weight: 800;
}

.kenzu-drawing .note-text {
  fill: #5c8d2e;
  font-size: 8.5px;
}

.kenzu-drawing .small { font-size: 8px; }

.kenzu-ai-bar {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.45;
}


.kenzu-ai-bar strong {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: var(--r-pill);
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.kenzu-flow-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #fffefa 0%, #f8f8f3 100%);
  border: 1px solid rgba(100, 116, 141, 0.2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.kenzu-flow-step {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--ink-secondary);
  text-align: center;
}

.kenzu-flow-step svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.kenzu-flow-step:nth-of-type(1) svg { color: var(--ink-secondary); }
.kenzu-flow-step:nth-of-type(2) svg { color: var(--c-sched); }
.kenzu-flow-step:nth-of-type(4) svg { color: #12806a; }
.kenzu-flow-step:nth-of-type(5) svg { color: var(--c-format); }

.kenzu-flow-step span {
  display: block;
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.kenzu-flow-arrow {
  color: #8a93a3;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .kenzu-card-head {
    padding: 12px;
  }

  .kenzu-card-head strong {
    font-size: 13px;
  }

  .kenzu-drawing {
    height: 116px;
  }

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

  .kenzu-ai-bar strong {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 1023px) {
  .kenzu-drawing {
    height: 132px;
  }

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

  .kenzu-ai-bar strong {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (max-width: 767px) {
  .kenzu-capability-grid {
    grid-template-columns: 1fr;
  }

  .kenzu-flow-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kenzu-flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}


/* detail hero — single-column pages: unify content width so edges align */
.detail-hero-narrow { max-width: 760px; }
.detail-hero-narrow .lead,
.detail-hero-narrow .tldr { max-width: none; }

/* inline icons in mock chat line */
.chat-line .ci {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
  flex-shrink: 0;
}
.chat-line .msg-ok .ci { vertical-align: -2px; }


/* ---------- kenzu capability wrapping refinements ---------- */

.feature-text h3 .keep-line,
.feature-copy .keep-line {
  white-space: nowrap;
}

.kenzu-card-head > span:last-child {
  min-width: 0;
}

.kenzu-card-head strong {
  white-space: nowrap;
  font-size: 13px;
}

.kenzu-capability-visual .kenzu-ai-bar {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.kenzu-capability-visual .kenzu-ai-bar strong {
  grid-column: 2;
  justify-self: start;
}

.kenzu-flow-step > span {
  line-height: 1.3;
}

.kenzu-flow-step .flow-line {
  display: block;
  white-space: nowrap;
}


/* mock chat: stacked message rows with aligned icon + text */
.chat-msgs { flex-direction: column; align-items: stretch; gap: 8px; }
.chat-msgs .chat-row { display: flex; align-items: flex-start; gap: 7px; }
.chat-msgs .chat-row .ci { flex-shrink: 0; margin: 2px 0 0; }
.chat-msgs .chat-row span { line-height: 1.6; }


/* ---------- kenzu capability polish fixes ---------- */

.kenzu-drawing .balcony-label {
  font-size: 8.5px;
}

.kenzu-drawing .bolt-mark polygon,
.kenzu-drawing .bolt-mark circle {
  fill: rgba(255, 255, 255, 0.42);
  stroke: var(--tone);
  stroke-width: 1.45;
}

.kenzu-drawing .bolt-mark text {
  fill: var(--tone);
  font-size: 8.5px;
  font-weight: 800;
}

.kenzu-capability-visual .kenzu-ai-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.kenzu-capability-visual .kenzu-ai-bar strong {
  grid-column: auto;
  justify-self: end;
  white-space: nowrap;
}

.kenzu-capability-card.tone-check .kenzu-ai-bar {
  grid-template-columns: 1fr;
}

.kenzu-capability-card.tone-check .kenzu-ai-bar strong {
  grid-column: 1;
  justify-self: start;
}

.kenzu-capability-card.tone-check .kenzu-ai-bar > span {
  font-size: 11.5px;
  line-height: 1.55;
}

.kenzu-flow-step .flow-line {
  white-space: normal;
}

.kenzu-flow-step:last-child {
  min-width: 118px;
}

.kenzu-flow-step:last-child .flow-line:first-child {
  font-size: 10.5px;
}


/* ---------- kenzu capability overflow fixes ---------- */

.kenzu-capability-card {
  min-height: 376px;
}

.kenzu-card-body {
  padding-bottom: 16px;
}

.kenzu-capability-visual .kenzu-ai-bar,
.kenzu-capability-card.tone-check .kenzu-ai-bar {
  display: block;
  min-height: auto;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.kenzu-capability-card.tone-check .kenzu-ai-bar > span {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.kenzu-flow-bar {
  grid-template-columns: minmax(84px, 1fr) auto minmax(74px, 0.88fr) auto minmax(84px, 0.98fr) auto minmax(90px, 1fr) auto minmax(126px, 1.34fr);
  gap: 8px;
  padding-left: 14px;
  padding-right: 14px;
}

.kenzu-flow-step span {
  font-size: 11px;
}

.kenzu-flow-step:last-child {
  min-width: 126px;
}

.kenzu-flow-step:last-child .flow-line:first-child {
  font-size: 10px;
  white-space: nowrap;
}

.kenzu-flow-step:last-child .flow-line:last-child {
  white-space: nowrap;
}


/* ---------- scheduler mock: line-based plan (LP palette) ---------- */
.sched-plan { display: flex; flex-direction: column; gap: 12px; }
.sm-line {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.sm-line-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px;
}
.sm-chat {
  background: var(--c-sched-soft);
  border: 1px solid #b6d4f0;
  border-radius: var(--r-md);
  padding: 10px 13px;
}
.sm-chat-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: #0353e9; margin-bottom: 4px;
}
.sm-chat-text { font-size: 12px; color: var(--ink-secondary); line-height: 1.6; }
.sm-chat-reply {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #0353e9; margin-top: 6px;
}
.sm-constraints {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.sm-constraints-title { font-size: 11px; font-weight: 600; color: var(--ink-mute); margin-bottom: 8px; }
.sm-c-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--ink); margin-bottom: 5px;
}
.sm-c-item:last-child { margin-bottom: 0; }
.sm-c-item .c-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }


/* ---------- kenzu flow hard fit fix ---------- */

.kenzu-flow-bar {
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  gap: 5px;
  padding: 14px 16px;
  overflow: hidden;
}

.kenzu-flow-arrow {
  width: 16px;
  justify-self: center;
  font-size: 19px;
}

.kenzu-flow-step {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.kenzu-flow-step svg {
  width: 20px;
  height: 20px;
}

.kenzu-flow-step span {
  max-width: 100%;
  font-size: 10.5px;
  line-height: 1.25;
}

.kenzu-flow-step .flow-line {
  white-space: nowrap;
}

.kenzu-flow-step:last-child {
  min-width: 0;
}

.kenzu-flow-step:last-child .flow-line,
.kenzu-flow-step:last-child .flow-line:first-child,
.kenzu-flow-step:last-child .flow-line:last-child {
  font-size: 10.5px;
  white-space: nowrap;
}


/* ---------- scheduler CTA alignment ---------- */

@media (min-width: 768px) {
  .scope-sched .feature-ctas {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .scope-sched .feature-ctas .btn {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 14px;
    white-space: nowrap;
  }
}


/* ---------- per-product use-case (in product feature blocks) ---------- */
.feature-usecase {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 28px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
}
.feature-usecase .uc-pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--canvas);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.feature-usecase p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-secondary); }
.feature-usecase.compact { margin-bottom: 24px; }
.feature-usecase.compact p { max-width: 50ch; }
.feature-usecase strong { color: var(--ink); }
.feature-usecase .case-to { color: var(--accent); font-weight: 700; margin: 0 3px; }

/* section divider for adjacent same-background sections */
.section-rule { border-top: 1px solid var(--hairline); }


/* ---------- homepage section rhythm: distinct editorial bands ---------- */
.products-section,
.flow-section,
.faq-section,
.cta-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(83, 58, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 74%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 74%);
}

.flow-section > .container,
.faq-section > .container,
.cta-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 1;
}

.products-section {
  background:
    linear-gradient(180deg, #f6f9fc 0%, #eef4fb 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.products-intro {
  max-width: 780px;
  margin: 18px auto 0;
}

.flow-section {
  background: #ffffff;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.faq-section {
  background: linear-gradient(180deg, #f7fbff 0%, #fdfefe 100%);
  border-top: 1px solid var(--hairline);
}

.faq-section .faq-list {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 0 28px;
  box-shadow: var(--shadow-1);
}

.cta-section {
  background: #ffffff;
  border-top: 1px solid var(--hairline);
}

.contact-section {
  background:
    linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 767px) {
  .faq-section .faq-list {
    padding: 0 18px;
  }
}



/* ---------- strategic additions: trust, answer hub ---------- */
.trust-section {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background:
    radial-gradient(54% 76% at 100% 0%, rgba(83, 58, 253, 0.26) 0%, transparent 70%),
    radial-gradient(44% 72% at 2% 100%, rgba(214, 36, 109, 0.18) 0%, transparent 68%),
    #101235;
  color: #fff;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}

.trust-copy h2 {
  color: #fff;
  margin-bottom: 20px;
}

.trust-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.9;
}

.trust-steps {
  display: grid;
  gap: 16px;
}

.trust-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
}

.trust-step span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  font-feature-settings: "tnum";
}

.trust-step strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
}

.trust-note {
  margin: 4px 0 0;
  padding-left: 18px;
  border-left: 3px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.75;
}

.trust-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.75;
}


@media (max-width: 1023px) {
  .trust-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .trust-step {
    grid-template-columns: 1fr;
  }

  .trust-step span {
    margin-bottom: 14px;
  }
}


/* detail hero: breathing room between copy and CTAs */
.detail-hero .hero-ctas { margin-top: 28px; }


/* ---------- motion polish: field data becomes reusable logic ---------- */
.product-quick .chain-node.scope-kenzu .chain-product {
  background: rgba(18, 128, 106, 0.34);
}
.product-quick .chain-node.scope-kenzu .chain-link {
  color: #6ee7c7;
}
.product-quick .chain-node.scope-kenzu.is-chain-lit {
  border-color: rgba(18, 128, 106, 0.48);
}

.console-card {
  position: relative;
  isolation: isolate;
}

.console-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 168, 0.62), transparent);
  opacity: 0.62;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.console-side-foot {
  position: relative;
}

.console-side-foot::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 231, 168, 0.2), rgba(110, 231, 168, 0.9));
  transform: scaleX(0);
  transform-origin: left center;
}

.console-rules li i {
  position: relative;
}

.console-rules li.is-shown i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(110, 231, 168, 0.28);
  border-radius: 999px;
  opacity: 0;
}

.product-quick .chain-node:not(:last-child)::after {
  transition: border-color 0.35s ease, filter 0.35s ease;
}

.product-quick .chain.is-chain-running .chain-node:not(:last-child)::after {
  animation: chainArrowPulse 2.8s ease-in-out infinite;
}
.product-quick .chain.is-chain-running .chain-node:nth-child(2)::after { animation-delay: 0.14s; }
.product-quick .chain.is-chain-running .chain-node:nth-child(3)::after { animation-delay: 0.28s; }
.product-quick .chain.is-chain-running .chain-node:nth-child(4)::after { animation-delay: 0.42s; }
.product-quick .chain.is-chain-running .chain-node:nth-child(5)::after { animation-delay: 0.56s; }

.solution-row.is-visible .sol-pos {
  animation: enciteColumnGlow 0.86s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}
.solution-row.is-visible .sol-pos::before {
  animation: checkDrop 0.48s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.kenzu-capability-card.tone-fill .plan-fill,
.kenzu-capability-card.tone-fill .plan-hatch line,
.kenzu-capability-card.tone-count .bolt-mark,
.kenzu-capability-card.tone-check .warn-stroke,
.kenzu-capability-card.tone-check .warn-text,
.kenzu-capability-card.tone-check .ok-text,
.conv-arrow,
.conv-doc.clean .conv-line,
.rule-stack div,
.sched-plan .gantt-bar,
.sm-chat-reply,
.sm-c-item {
  transform-box: fill-box;
}

.trust-steps {
  position: relative;
}


.trust-step:nth-child(2) {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(110, 231, 168, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}
.trust-step:nth-child(2) span {
  background: rgba(110, 231, 168, 0.18);
  color: #9ff3d5;
}

.steps .step {
  position: relative;
}
.steps .step::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--c-sched));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.steps .step.is-visible::after {
  transform: scaleX(1);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.btn:hover .arrow,
.btn:focus-visible .arrow {
  transform: translateX(4px);
}

.cta-band .btn-primary {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 18px 44px rgba(83, 58, 253, 0.26);
}

@media (prefers-reduced-motion: no-preference) {
  .console-status i {
    animation: consolePulse 1.7s ease-in-out infinite;
  }
  .console-card::after {
    animation: consoleSweep 6.4s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
  }
  .console-side-foot::after {
    animation: consoleProgress 6.4s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
  }
  .console-rules li.is-shown i::after {
    animation: ruleConfirmRing 1.6s ease-out both;
  }
  .problem-card.is-visible::before {
    animation: problemNumBreathe 1.2s ease-out both;
  }
  .kenzu-capability-card.tone-fill .plan-fill {
    animation: hatchSurface 4.8s ease-in-out infinite;
  }
  .kenzu-capability-card.tone-fill .plan-hatch line {
    stroke-dasharray: 42;
    stroke-dashoffset: 42;
    animation: hatchDraw 4.8s ease-in-out infinite;
  }
  .kenzu-capability-card.tone-count .bolt-mark {
    animation: boltMarkPop 4.8s ease-in-out infinite;
  }
  .kenzu-capability-card.tone-count .bolt-mark:nth-of-type(2) { animation-delay: 0.12s; }
  .kenzu-capability-card.tone-count .bolt-mark:nth-of-type(3) { animation-delay: 0.24s; }
  .kenzu-capability-card.tone-count .bolt-mark:nth-of-type(4) { animation-delay: 0.36s; }
  .kenzu-capability-card.tone-count .bolt-mark:nth-of-type(5) { animation-delay: 0.48s; }
  .kenzu-capability-card.tone-count .bolt-mark:nth-of-type(6) { animation-delay: 0.6s; }
  .kenzu-capability-card.tone-check .warn-stroke,
  .kenzu-capability-card.tone-check .warn-text,
  .kenzu-capability-card.tone-check .ok-text {
    animation: checkMarksIn 4.8s ease-in-out infinite;
  }
  .conv-arrow {
    animation: docArrowPulse 3.8s ease-in-out infinite;
  }
  .conv-doc.clean .conv-line {
    animation: cleanFieldIn 4.6s ease-in-out infinite;
    transform-origin: left center;
  }
  .rule-stack div {
    animation: ruleStackIn 4.6s ease-in-out infinite;
  }
  .rule-stack div:nth-child(2) { animation-delay: 0.18s; }
  .rule-stack div:nth-child(3) { animation-delay: 0.36s; }
  .sched-plan .gantt-bar {
    animation: ganttReplan 5.2s ease-in-out infinite;
  }
  .sched-plan .gantt-row:nth-child(2) .gantt-bar { animation-delay: 0.18s; }
  .sm-chat-reply,
  .sm-c-item {
    animation: scheduleConfirm 5.2s ease-in-out infinite;
  }
  .sm-c-item:nth-child(3) { animation-delay: 0.18s; }
  .sm-c-item:nth-child(4) { animation-delay: 0.36s; }
}

@keyframes consolePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(110, 231, 168, 0.04); }
}
@keyframes consoleSweep {
  0%, 18% { transform: scaleX(0); opacity: 0; }
  34%, 78% { transform: scaleX(1); opacity: 0.64; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes consoleProgress {
  0%, 18% { transform: scaleX(0); }
  60%, 86% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes ruleConfirmRing {
  0% { transform: scale(0.72); opacity: 0; }
  28% { opacity: 0.82; }
  100% { transform: scale(1.72); opacity: 0; }
}
@keyframes chainArrowPulse {
  0%, 100% { border-color: rgba(255,255,255,0.24); filter: none; }
  45% { border-color: rgba(255,255,255,0.82); filter: drop-shadow(0 0 8px rgba(255,255,255,0.26)); }
}
@keyframes enciteColumnGlow {
  0% { background-color: rgba(83, 58, 253, 0.02); }
  55% { background-color: rgba(83, 58, 253, 0.12); }
  100% { background-color: rgba(83, 58, 253, 0.045); }
}
@keyframes checkDrop {
  0% { transform: translateY(-6px) scale(0.7); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes problemNumBreathe {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}
@keyframes hatchSurface {
  0%, 28% { opacity: 0.22; }
  46%, 100% { opacity: 1; }
}
@keyframes hatchDraw {
  0%, 30% { stroke-dashoffset: 42; }
  58%, 100% { stroke-dashoffset: 0; }
}
@keyframes boltMarkPop {
  0%, 22% { transform: scale(0.92); opacity: 0.44; }
  38%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes checkMarksIn {
  0%, 32% { opacity: 0.25; }
  52%, 100% { opacity: 1; }
}
@keyframes docArrowPulse {
  0%, 100% { transform: translateX(0); color: var(--ink-mute); }
  50% { transform: translateX(5px); color: var(--c-format); }
}
@keyframes cleanFieldIn {
  0%, 28% { transform: scaleX(0.52); opacity: 0.48; }
  46%, 100% { transform: scaleX(1); opacity: 1; }
}
@keyframes ruleStackIn {
  0%, 36% { transform: translateY(5px); opacity: 0.58; }
  54%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes ganttReplan {
  0%, 26%, 100% { transform: translateX(0); }
  48%, 70% { transform: translateX(6px); }
}
@keyframes scheduleConfirm {
  0%, 34% { opacity: 0.72; transform: translateY(3px); }
  52%, 100% { opacity: 1; transform: translateY(0); }
}


@media (prefers-reduced-motion: reduce) {
  .console-status i,
  .console-card::after,
  .console-side-foot::after,
  .console-rules li.is-shown i::after,
  .product-quick .chain.is-chain-running .chain-node:not(:last-child)::after,
  .solution-row.is-visible .sol-pos,
  .solution-row.is-visible .sol-pos::before,
  .problem-card.is-visible::before,
  .kenzu-capability-card.tone-fill .plan-fill,
  .kenzu-capability-card.tone-fill .plan-hatch line,
  .kenzu-capability-card.tone-count .bolt-mark,
  .kenzu-capability-card.tone-check .warn-stroke,
  .kenzu-capability-card.tone-check .warn-text,
  .kenzu-capability-card.tone-check .ok-text,
  .conv-arrow,
  .conv-doc.clean .conv-line,
  .rule-stack div,
  .sched-plan .gantt-bar,
  .sm-chat-reply,
  .sm-c-item {
    animation: none !important;
  }

  .steps .step::after,
  .btn .arrow {
    transition: none !important;
  }
}


/* ---------- kenzu detail page: emerald accent alignment ---------- */
.scope-kenzu .rule-workbench-visual::before {
  background: radial-gradient(circle at 55% 42%, rgba(18, 128, 106, 0.20), transparent 62%);
}

.scope-kenzu .rule-window,
.scope-kenzu .feature-rule-visual .rule-window {
  box-shadow: 0 28px 90px rgba(13, 37, 61, 0.14), 0 8px 22px rgba(18, 128, 106, 0.10);
}

.scope-kenzu .mini-drawing {
  background:
    linear-gradient(rgba(18, 128, 106, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 128, 106, 0.055) 1px, transparent 1px),
    #fbfdff;
  background-size: 22px 22px;
}

.scope-kenzu .after .draw-room {
  border-color: rgba(18, 128, 106, 0.78);
  background: rgba(18, 128, 106, 0.08);
}

.scope-kenzu .mini-highlight {
  box-shadow: 0 8px 18px rgba(18, 128, 106, 0.22);
}

.scope-kenzu .rule-test-strip {
  background: linear-gradient(90deg, rgba(18, 128, 106, 0.08), rgba(18, 128, 106, 0.035));
}

.scope-kenzu .card-icon,
.scope-kenzu .uc-tag {
  color: var(--accent);
  background: var(--accent-soft);
}

.scope-kenzu .step::after {
  background: linear-gradient(90deg, var(--accent), rgba(18, 128, 106, 0.36));
}


/* ==========================================================
   unified product detail pages
   ========================================================== */
.product-detail-hero {
  min-height: 760px;
  display: flex;
  align-items: center;
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.detail-hero-copy {
  max-width: 820px;
}

.pd-product-name {
  margin: 24px 0 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-detail-hero .display-xxl {
  max-width: 860px;
  font-size: clamp(34px, 4vw, 50px);
}

.pd-title-accent,
.pd-heading-accent {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.pd-title-accent {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--primary) 54%, color-mix(in srgb, var(--accent), #ffffff 32%) 100%);
  background-size: 220% 100%;
  text-shadow: 0 16px 42px rgba(var(--accent-rgb), 0.22);
  animation: pdTitleGradient 7s ease-in-out infinite;
}

.pd-heading-accent {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  background-size: 140% 100%;
  text-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.12);
}

@keyframes pdTitleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-title-accent { animation: none; }
}

.product-detail-hero .lead {
  max-width: 760px;
}

.pd-visual {
  position: relative;
  min-width: 0;
}

/* product detail hero image assets */
.pd-hero-image-card {
  margin: 0;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pd-hero-image-card::after {
  content: none;
}

.pd-hero-image-card img {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  margin: -6% -8% -6% 0;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  .pd-hero-image-card img {
    animation: pdHeroImageFloat 7.2s ease-in-out infinite;
    transform-origin: center;
  }
}

@keyframes pdHeroImageFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.004); }
}

.pd-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(13, 37, 61, 0.14), 0 10px 28px rgba(var(--accent-rgb), 0.12);
}

.pd-window::before {
  content: "";
  position: absolute;
  inset: 52px 0 0;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.pd-window-head {
  position: relative;
  z-index: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(248, 250, 255, 0.9);
}

.pd-window-head > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d4dce8;
}

.pd-window-head strong {
  margin-left: 8px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.pd-window-head em {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pd-kenzu-board,
.pd-format-board,
.pd-scheduler-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.pd-drawing {
  position: relative;
  min-height: 132px;
  border: 1px solid #dbe4ee;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.pd-drawing b,
.pd-doc b,
.pd-gantt b {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin: 12px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.92);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 800;
}

.pd-drawing .wall {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: #c4cedc;
}
.pd-drawing .w1 { left: 18%; right: 10%; top: 42%; }
.pd-drawing .w2 { left: 12%; right: 18%; top: 64%; }
.pd-drawing .w3 { left: 26%; right: 24%; top: 78%; }
.pd-drawing .room {
  position: absolute;
  border: 2px solid #b8c5d4;
  background: rgba(255,255,255,0.42);
}
.pd-drawing .r1 { left: 20%; top: 30%; width: 28%; height: 26%; }
.pd-drawing .r2 { right: 18%; top: 54%; width: 30%; height: 28%; }
.pd-drawing.after .hatch {
  border-color: rgba(var(--accent-rgb), 0.82);
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0 2px, transparent 2px 10px),
    rgba(var(--accent-rgb), 0.08);
}
.pd-drawing .flag {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.pd-drawing .ok { right: 18px; top: 18px; background: var(--accent); }
.pd-drawing .warn { right: 18px; bottom: 16px; background: var(--c-format); }

.pd-rule-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--r-md);
  background: rgba(var(--accent-rgb), 0.07);
}
.pd-rule-save span {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 700;
}
.pd-rule-save strong {
  color: var(--accent);
  font-size: 13px;
}

.pd-format-board {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.pd-format-board .pd-rule-save {
  grid-column: 1 / -1;
}
.pd-doc {
  position: relative;
  min-height: 190px;
  border: 1px solid #dbe4ee;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.74);
  overflow: hidden;
}
.pd-doc i {
  display: block;
  height: 8px;
  margin: 12px 18px;
  border-radius: 999px;
  background: #d8e0eb;
}
.pd-doc .l1 { width: 78%; }
.pd-doc .l2 { width: 52%; }
.pd-doc .l3 { width: 88%; }
.pd-doc.output i { background: rgba(var(--accent-rgb), 0.2); }
.pd-doc.output .head { height: 12px; background: var(--accent); opacity: 0.78; }
.pd-doc.output em {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.pd-extract {
  display: grid;
  gap: 8px;
}
.pd-extract span {
  width: 74px;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.pd-chat {
  width: fit-content;
  max-width: 88%;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pd-gantt {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.74);
}
.pd-gantt b {
  margin: 0;
  width: fit-content;
}
.pd-gantt .bar {
  display: block;
  height: 16px;
  border-radius: 5px;
  background: var(--accent);
}
.pd-gantt .a1 { width: 70%; opacity: 0.72; }
.pd-gantt .a2 { width: 54%; margin-left: 20%; opacity: 0.42; }
.pd-gantt .b1 { width: 62%; background: var(--primary-soft); }
.pd-gantt .b2 { width: 38%; margin-left: 46%; background: var(--c-format); opacity: 0.72; }

.pd-metrics-section .section-head,
.pd-how-section .section-head,
.pd-use-section .section-head,
.pd-start-section .section-head {
  margin-bottom: 34px;
}

.pd-metric-card .num {
  color: var(--accent);
  font-size: 26px;
  line-height: 1.35;
}

.pd-flow-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pd-flow-step {
  min-height: 238px;
}
.pd-step-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.pd-step-icon svg,
.pd-feature-card .card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-feature-card,
.pd-usecase-card,
.pd-other-card {
  min-height: 220px;
}

.pd-start-grid {
  max-width: 980px;
  margin: 0 auto;
}
.pd-start-step {
  min-height: 210px;
}
.pd-cta-band {
  background:
    radial-gradient(56% 80% at 100% 10%, rgba(var(--accent-rgb), 0.36) 0%, transparent 68%),
    radial-gradient(56% 70% at 8% 100%, rgba(214, 36, 109, 0.18) 0%, transparent 72%),
    linear-gradient(135deg, #171858 0%, #24216a 54%, #171342 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .pd-drawing.after .hatch {
    animation: hatchSurface 4.8s ease-in-out infinite;
  }
  .pd-drawing .flag,
  .pd-rule-save,
  .pd-extract span,
  .pd-doc.output i,
  .pd-gantt .bar {
    animation: pdSoftPulse 4.8s ease-in-out infinite;
  }
  .pd-gantt .moved {
    animation: ganttReplan 5.2s ease-in-out infinite;
  }
}

@keyframes pdSoftPulse {
  0%, 28% { opacity: 0.62; transform: translateY(2px); }
  54%, 100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .detail-hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .pd-hero-image-card img {
    width: 110%;
    margin: -3% -4% -3% -2%;
  }
  .pd-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-detail-hero {
    min-height: auto;
  }
  .pd-format-board {
    grid-template-columns: 1fr;
  }
  .pd-extract {
    grid-template-columns: repeat(3, 1fr);
  }
  .pd-extract span {
    width: auto;
  }
  .pd-flow-grid {
    grid-template-columns: 1fr;
  }
  .pd-hero-image-card img {
    width: 108%;
    margin: -2% 0 -2% -4%;
  }
  .pd-window {
    border-radius: var(--r-lg);
  }
  .pd-kenzu-board,
  .pd-format-board,
  .pd-scheduler-board {
    padding: 18px;
  }
}

/* ==========================================================
   product detail rhythm refinements
   ========================================================== */
.pd-metrics-section {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.pd-metrics-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 62px 26px 30px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: var(--r-xl);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), rgba(255,255,255,0.94) 34%, rgba(var(--accent-rgb), 0.05)),
    var(--canvas);
  box-shadow: 0 24px 70px rgba(13, 37, 61, 0.08);
}

.pd-metrics-grid::before {
  content: "PoCで確認する指標";
  position: absolute;
  top: 22px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pd-metrics-grid::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 176px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.24), transparent);
}

.pd-metric-card {
  position: relative;
  min-height: 108px;
  padding: 12px 26px 10px 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.pd-metric-card:not(:last-child) {
  border-right: 1px solid rgba(119, 137, 166, 0.18);
}

.pd-metric-card .num {
  position: static;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.pd-metric-card .num::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.14);
}

.pd-metric-card .num::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 25px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.pd-metric-card .label {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.75;
}

.pd-compare {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 84px;
  align-items: stretch;
}

.pd-compare::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(13, 37, 61, 0.10);
  transform: translate(-50%, -50%);
}

.pd-compare .ps-col {
  position: relative;
  min-height: 360px;
  padding: 38px 34px;
  border-radius: var(--r-xl);
  box-shadow: 0 18px 54px rgba(13, 37, 61, 0.08);
}

.pd-compare .ps-col.pain {
  border-color: rgba(119, 137, 166, 0.18);
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.96) 0%, rgba(255,255,255,0.86) 100%);
}

.pd-compare .ps-col.gain {
  border-color: rgba(var(--accent-rgb), 0.20);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(var(--accent-rgb), 0.14) 0%, transparent 72%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(255,255,255,0.94) 100%);
}

.pd-compare .ps-col h3 {
  margin-bottom: 22px;
}

.pd-compare .ps-col li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.pd-how-section {
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.pd-flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 34px 28px 32px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 24px 70px rgba(13, 37, 61, 0.08);
}

.pd-flow-grid::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 64px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.46), rgba(var(--accent-rgb), 0.16));
}

.pd-flow-step {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 0 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pd-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -10px;
  width: 16px;
  height: 16px;
  border-top: 2px solid rgba(var(--accent-rgb), 0.48);
  border-right: 2px solid rgba(var(--accent-rgb), 0.48);
  transform: rotate(45deg);
}

.pd-flow-step .pd-step-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.10);
}

.pd-flow-step .step-num {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.10em;
}

.pd-flow-step h3 {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.55;
}

.pd-flow-step p {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.75;
}

.pd-feature-card {
  position: relative;
  overflow: hidden;
  padding-top: 36px;
  border-color: rgba(var(--accent-rgb), 0.12);
}

.pd-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.16));
}

.pd-feature-card .card-icon {
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.pd-feature-card p {
  line-height: 1.75;
}

.pd-use-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(64% 92% at 16% 0%, rgba(var(--accent-rgb), 0.12) 0%, transparent 72%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.055) 0%, #f8fbff 100%);
}

.pd-use-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.pd-use-section > .container {
  position: relative;
  z-index: 1;
}

.pd-usecase-card {
  border-color: rgba(var(--accent-rgb), 0.14);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 54px rgba(13, 37, 61, 0.08);
}

.pd-usecase-card .uc-tag {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.pd-start-section {
  padding-bottom: 54px;
  background: #fff;
}

.pd-start-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1040px;
  margin: 0 auto;
}

.pd-start-grid::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 33px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.56), rgba(var(--accent-rgb), 0.16));
}

.pd-start-step {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 72px 24px 28px;
  border: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,255,0.92));
  box-shadow: 0 16px 46px rgba(13, 37, 61, 0.08);
}

.pd-start-step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 8px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 10px 26px rgba(var(--accent-rgb), 0.18);
  transform: translateX(-50%);
}

.pd-start-step .step-num {
  color: var(--accent);
  text-align: center;
}

.pd-start-step h3,
.pd-start-step p {
  text-align: center;
}

.pd-start-step p {
  color: var(--ink-secondary);
  line-height: 1.75;
}

.pd-cta-section {
  padding-top: 36px;
}

@media (max-width: 1023px) {
  .pd-metrics-grid,
  .pd-flow-grid,
  .pd-start-grid {
    grid-template-columns: 1fr;
  }
  .pd-metric-card {
    padding: 18px 20px 18px 70px;
  }
  .pd-metric-card:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(119, 137, 166, 0.18);
  }
  .pd-compare {
    gap: 28px;
  }
  .pd-compare::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .pd-flow-grid {
    gap: 20px;
  }
  .pd-flow-grid::before,
  .pd-flow-step::after,
  .pd-start-grid::before {
    display: none;
  }
  .pd-flow-step {
    padding: 22px;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.92);
  }
  .pd-start-grid {
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .pd-metrics-grid {
    padding: 58px 18px 20px;
  }
  .pd-metrics-grid::after {
    left: 160px;
    right: 18px;
  }
  .pd-compare::before {
    display: none;
  }
  .pd-compare {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pd-compare .ps-col {
    min-height: 0;
    padding: 30px 24px;
  }
  .pd-flow-grid {
    padding: 22px;
  }
  .pd-start-step {
    padding: 64px 22px 26px;
  }
}

/* product detail copy / flow cleanup */
.pd-metrics-section .section-head,
.pd-problem-section .section-head,
.pd-how-section .section-head,
.pd-features-section .section-head,
.pd-use-section .section-head,
.pd-start-section .section-head {
  max-width: 1040px;
}

.pd-problem-section .display-xl,
.pd-how-section .display-xl,
.pd-features-section .display-xl,
.pd-use-section .display-xl,
.pd-start-section .display-xl {
  font-size: clamp(30px, 3.35vw, 38px);
  line-height: 1.36;
  word-break: keep-all;
  overflow-wrap: normal;
}

.pd-flow-step::after,
.pd-flow-step.is-visible::after,
.pd-flow-step:not(:last-child)::after {
  content: none !important;
  display: none !important;
}

.pd-flow-step h3,
.pd-feature-card h3,
.pd-usecase-card h3,
.pd-start-step h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.pd-flow-step h3 {
  font-size: 16px;
  line-height: 1.6;
}

.pd-flow-step p {
  word-break: auto-phrase;
}

@media (max-width: 767px) {
  .pd-problem-section .display-xl,
  .pd-how-section .display-xl,
  .pd-features-section .display-xl,
  .pd-use-section .display-xl,
  .pd-start-section .display-xl {
    font-size: clamp(26px, 8vw, 32px);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .pd-flow-step h3,
  .pd-feature-card h3,
  .pd-usecase-card h3,
  .pd-start-step h3 {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* ---------- hero usecase marquee ---------- */
.usecase-band {
  position: relative;
  overflow: hidden;
  padding: 34px 0 38px;
  background:
    radial-gradient(circle at 12% 0%, rgba(83, 58, 253, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(246, 249, 253, 0.92) 100%);
  border-top: 1px solid rgba(227, 232, 238, 0.7);
}


.hero-usecases.usecase-band {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 0 0 8px;
  background: transparent;
  border-top: 0;
}

.usecase-rail {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.usecase-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 4px 14px;
  animation: usecase-marquee 46s linear infinite;
}


.usecase-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 12px 16px;
  border: 1px solid rgba(30, 39, 92, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(17, 23, 74, 0.07);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.usecase-chip-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(83, 58, 253, 0.09);
  color: var(--primary);
}

.usecase-chip-icon img {
  width: 24px;
  height: 24px;
}

.usecase-chip-text {
  display: grid;
  gap: 1px;
  line-height: 1.18;
}

.usecase-chip-text small {
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@keyframes usecase-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .usecase-band {
    padding: 28px 0 32px;
  }

  .hero-usecases.usecase-band {
    margin-top: 26px;
    padding-bottom: 4px;
  }

  .usecase-rail {
    overflow-x: auto;
    padding: 0 14px 4px;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .usecase-rail::-webkit-scrollbar {
    display: none;
  }

  .usecase-track {
    animation: none;
    padding: 4px 0;
  }

  .usecase-chip[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .usecase-track {
    animation: none;
  }
}


/* ---------- managed image accents ---------- */
.problem-icon img,
.step-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.usecase-chip-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.problem-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(83, 58, 253, 0.08);
  box-shadow: inset 0 0 0 1px rgba(83, 58, 253, 0.09);
}

.problem-icon img {
  opacity: 0.88;
}

.trust-step {
  position: relative;
}


.step-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(83, 58, 253, 0.08);
  box-shadow: inset 0 0 0 1px rgba(83, 58, 253, 0.1);
}

@media (max-width: 768px) {
  .problem-icon,
  .step-icon {
    width: 34px;
    height: 34px;
  }

}

/* ==========================================================
   Product Detail — Layout Rhythm Variants
   (break grid-3 monotony with distinct per-section layouts)
   ========================================================== */

/* --- 1. Metrics → Inline stat bar --- */
.pd-stat-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.04), rgba(var(--accent-rgb), 0.01));
  overflow: hidden;
}

.pd-stat-bar-item {
  flex: 1;
  padding: 26px 28px;
  border-right: 1px solid var(--hairline);
  text-align: center;
}

.pd-stat-bar-item:last-child { border-right: 0; }

.pd-stat-bar-dot { display: none; }

.pd-stat-bar-text .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
  font-feature-settings: "tnum";
}

.pd-stat-bar-text .num small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 2px;
}

.pd-stat-bar-text .label {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

/* --- 2. Problem/Solution → Editorial pairs --- */
.pd-editorial-pairs {
  display: grid;
  gap: 12px;
  overflow: visible;
}

.pd-pair-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  background: transparent;
  border-bottom: 0;
}

.pd-pair-head span {
  padding: 0 22px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.pd-pair-head .pd-pair-gain-label {
  color: var(--accent);
}

.pd-pair-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: stretch;
  min-height: 82px;
  border: 1px solid rgba(214, 222, 232, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(248, 251, 253, 0.86), #fff 45%, rgba(var(--accent-rgb), 0.05) 100%);
  box-shadow:
    0 1px 1px rgba(13, 37, 61, 0.03),
    0 16px 42px rgba(13, 37, 61, 0.06);
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.pd-pair-row:not(.pd-pair-head)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.22), transparent);
  pointer-events: none;
}

.pd-pair-row:not(.pd-pair-head):hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow:
    0 2px 2px rgba(13, 37, 61, 0.03),
    0 22px 52px rgba(13, 37, 61, 0.09);
}

.pd-pair-row.pd-pair-head {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.pd-pair-row:last-child { border-bottom-color: rgba(214, 222, 232, 0.92); }

.pd-pair-pain,
.pd-pair-gain {
  position: relative;
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.75;
  display: flex;
  align-items: center;
}

.pd-pair-pain {
  color: var(--ink-secondary);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(148, 163, 184, 0.12), transparent 58%),
    rgba(247, 250, 252, 0.72);
}

.pd-pair-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 0;
}

.pd-pair-arrow::before {
  content: "→";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 17px;
}

.pd-pair-gain {
  color: var(--ink);
  font-weight: 600;
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(var(--accent-rgb), 0.13), transparent 68%),
    rgba(var(--accent-rgb), 0.045);
}

/* --- 3. How It Works → Vertical timeline --- */
.pd-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 4px;
}

.pd-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.12));
  border-radius: 2px;
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  .js .pd-timeline::before {
    transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(0.16, 0.84, 0.44, 1);
  }
  .js .pd-timeline.is-tl-active::before {
    transform: scaleY(1);
  }
}

.pd-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding-bottom: 44px;
}

.pd-timeline-item:last-child { padding-bottom: 0; }

.pd-timeline-marker {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.14);
}

.pd-timeline-content {
  padding-top: 6px;
}

.pd-timeline-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.pd-timeline-content p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin: 0;
}

/* --- 4. Features → numbered editorial list --- */
.pd-feature-list {
  max-width: 760px;
  margin: 0 auto;
}

.pd-feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
}

.pd-feature-item:first-child { padding-top: 0; }
.pd-feature-item:last-child { border-bottom: 0; padding-bottom: 0; }

.pd-feature-num {
  font-size: 32px;
  font-weight: 200;
  color: var(--accent);
  line-height: 1.2;
  font-feature-settings: "tnum";
  opacity: 0.55;
}

.pd-feature-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.pd-feature-body p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.85;
  margin: 0;
}

/* --- 5. Use Cases → Compact editorial rows --- */
.pd-usecase-strip {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* section dividers for detail pages */
.pd-metrics-section,
.pd-problem-section,
.pd-how-section,
.pd-features-section,
.pd-use-section,
.pd-start-section { position: relative; }

.pd-problem-section::before,
.pd-features-section::before,
.pd-start-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 20%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

.pd-usecase-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.15s ease;
}

.pd-usecase-row:last-child { border-bottom: 0; }
.pd-usecase-row:hover { background: rgba(var(--accent-rgb), 0.02); }

.pd-usecase-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(var(--accent-rgb), 0.06);
  border-right: 1px solid var(--hairline);
  padding: 24px 16px;
}

.pd-usecase-tag svg {
  width: 22px;
  height: 22px;
}

.pd-usecase-tag span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.pd-usecase-body {
  padding: 20px 24px;
}

.pd-usecase-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
}

.pd-usecase-body p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --- 6. How To Start → Stepper with connecting line --- */
.pd-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pd-stepper::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(16.67%);
  right: calc(16.67%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.2));
  border-radius: 3px;
  z-index: 0;
}

.pd-stepper-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.pd-stepper-num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.24);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.pd-stepper-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.pd-stepper-item p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
  max-width: 260px;
  margin: 0;
}

/* --- Scroll reveal for new detail layouts --- */
@media (prefers-reduced-motion: no-preference) {
  .js .pd-stat-bar-item,
  .js .pd-pair-row:not(.pd-pair-head),
  .js .pd-timeline-item,
  .js .pd-feature-item,
  .js .pd-usecase-row,
  .js .pd-stepper-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
    will-change: opacity, transform;
  }

  .js .pd-stat-bar-item.is-visible,
  .js .pd-pair-row.is-visible,
  .js .pd-timeline-item.is-visible,
  .js .pd-feature-item.is-visible,
  .js .pd-usecase-row.is-visible,
  .js .pd-stepper-item.is-visible {
    opacity: 1;
    transform: none;
  }

}

/* --- Responsive for new detail layouts --- */
@media (max-width: 767px) {
  .pd-stat-bar {
    flex-direction: column;
  }

  .pd-stat-bar-item {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .pd-stat-bar-item:last-child { border-bottom: 0; }

  .pd-pair-row {
    grid-template-columns: 1fr;
  }

  .pd-pair-row:not(.pd-pair-head)::before {
    display: none;
  }

  .pd-pair-pain,
  .pd-pair-gain {
    padding: 17px 20px;
  }

  .pd-pair-arrow {
    min-height: 40px;
    padding: 0 20px;
    justify-content: flex-start;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent);
  }

  .pd-pair-arrow::before {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .pd-pair-head {
    display: none;
  }

  .pd-timeline::before { left: 19px; }

  .pd-timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding-bottom: 36px;
  }

  .pd-timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .pd-feature-item {
    grid-template-columns: 36px 1fr;
    gap: 16px;
  }

  .pd-feature-num { font-size: 26px; }

  .pd-usecase-row {
    grid-template-columns: 1fr;
  }

  .pd-usecase-tag {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px;
    justify-content: flex-start;
  }

  .pd-stepper {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 4px;
  }

  .pd-stepper::before {
    top: 28px;
    bottom: 28px;
    left: 23px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .pd-stepper-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 0 0 36px;
  }

  .pd-stepper-item:last-child { padding-bottom: 0; }

  .pd-stepper-num { margin-bottom: 0; }

  .pd-stepper-item p { max-width: none; }
}

/* ==========================================================
   Product Detail — Inline Illustrations & Mocks
   ========================================================== */

/* --- Timeline visuals --- */
.pd-timeline-visual {
  margin-top: 16px;
}

.pd-timeline-visual img {
  width: 100%;
  height: auto;
}

.pd-timeline-visual .tlv-chat,
.pd-timeline-visual .tlv-list,
.pd-timeline-visual .tlv-approve {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
}

.tlv-docs { display: flex; gap: 8px; align-items: flex-end; }

.tlv-doc {
  width: 54px;
  padding: 8px 7px 6px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(13, 37, 61, 0.06);
}
.tlv-doc:nth-child(2) { transform: rotate(2deg); }
.tlv-doc:nth-child(3) { transform: rotate(-1.5deg); }

.tlv-doc-type {
  display: block;
  font-size: 7px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tlv-doc-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(var(--accent-rgb), 0.15);
  margin-bottom: 3px;
}
.tlv-doc-line:nth-child(2) { width: 80%; }
.tlv-doc-line:nth-child(3) { width: 60%; }
.tlv-doc-line:nth-child(4) { width: 72%; }

.tlv-chat { display: flex; flex-direction: column; gap: 6px; }

.tlv-bubble {
  max-width: 88%;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}
.tlv-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.tlv-bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink-secondary);
  border-bottom-left-radius: 3px;
}

.tlv-convert {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 6px;
  align-items: center;
}

.tlv-sheet {
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: #fff;
}

.tlv-sheet-label {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.tlv-sheet-label.before { color: var(--ink-mute); }
.tlv-sheet-label.after { color: var(--accent); }

.tlv-sline { height: 3px; border-radius: 2px; margin-bottom: 3px; }
.tlv-sheet.before .tlv-sline { background: #dde5ee; }
.tlv-sheet.before .tlv-sline:nth-child(2) { width: 70%; }
.tlv-sheet.before .tlv-sline:nth-child(3) { width: 85%; }
.tlv-sheet.before .tlv-sline:nth-child(4) { width: 55%; }
.tlv-sheet.after .tlv-sline { background: rgba(var(--accent-rgb), 0.18); }
.tlv-sheet.after .tlv-sline.head { background: var(--accent); opacity: 0.55; }

.tlv-arrow { text-align: center; color: var(--accent); font-weight: 800; font-size: 16px; }

.tlv-list { display: flex; flex-direction: column; gap: 5px; }
.tlv-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--ink-secondary);
}

.tlv-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; flex-shrink: 0;
}

/* kenzu: drawing pair */
.tlv-drawing-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tlv-drawing {
  position: relative;
  min-height: 64px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    #fcfdfe;
  background-size: 14px 14px;
}
.tlv-drawing-label {
  position: absolute; top: 4px; left: 5px;
  font-size: 7px; font-weight: 800; color: var(--ink-mute);
  letter-spacing: 0.04em; z-index: 2;
}
.tlv-drawing.after { border-color: rgba(var(--accent-rgb), 0.3); }
.tlv-drawing.after .tlv-drawing-label { color: var(--accent); }

.tlv-dbox { position: absolute; border: 1.5px solid #c3cede; background: rgba(255, 255, 255, 0.3); }
.tlv-drawing.after .tlv-dbox { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.tlv-dwall { position: absolute; height: 3px; border-radius: 2px; background: #c3cede; }

/* kenzu: highlight markers */
.tlv-highlights {
  position: relative; min-height: 72px;
  border: 1px solid var(--hairline); border-radius: 5px; overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    #fcfdfe;
  background-size: 14px 14px;
}

.tlv-hl-tag {
  position: absolute;
  padding: 2px 6px; border-radius: 3px;
  background: var(--accent); color: #fff;
  font-size: 8.5px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}
.tlv-hl-ring {
  position: absolute;
  border: 2px dashed var(--accent); border-radius: 50%; opacity: 0.4;
}

/* scheduler: gantt */
.tlv-gantt { display: grid; gap: 6px; }
.tlv-gantt-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 6px; }
.tlv-gantt-label { font-size: 9px; color: var(--ink-mute); font-weight: 600; white-space: nowrap; }
.tlv-gantt-track { position: relative; height: 14px; background: rgba(var(--accent-rgb), 0.06); border-radius: 4px; }
.tlv-gantt-bar { position: absolute; top: 2px; height: 10px; border-radius: 3px; background: var(--accent); opacity: 0.75; }

/* scheduler: constraint tags */
.tlv-constraints { display: flex; flex-wrap: wrap; gap: 5px; }
.tlv-constraint {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  font-size: 10px; font-weight: 600; color: var(--accent);
}
.tlv-constraint::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* approve action */
.tlv-approve { display: flex; align-items: center; gap: 10px; }
.tlv-approve-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
}
.tlv-approve-text { font-size: 11px; color: var(--ink-mute); }

/* --- Feature hero card with mock --- */
.pd-feature-with-mock {
  grid-template-columns: 1fr minmax(220px, 290px);
  gap: 36px;
  align-items: center;
}

.pd-feature-with-mock > div:first-child {
  display: flex; flex-direction: column; justify-content: center;
}
.pd-feature-with-mock .card-icon { width: 48px; height: 48px; margin-bottom: 16px; }

.pd-feature-mock {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}

.fmk-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fmk-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.fmk-bar strong { margin-left: 8px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); }

.fmk-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.fmk-msg {
  max-width: 90%; padding: 8px 11px;
  border-radius: 10px; font-size: 11px; line-height: 1.5;
}
.fmk-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.fmk-msg.ai { align-self: flex-start; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.82); border-bottom-left-radius: 3px; }

.fmk-rules { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fmk-rule {
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), 0.18);
  color: #fff; font-size: 9.5px; font-weight: 700;
}
.fmk-status { display: block; margin-top: 6px; font-size: 9.5px; font-weight: 700; color: #6ee7a8; }

/* kenzu feature mock: drawing with rules */
.fmk-drawing {
  position: relative; min-height: 120px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    rgba(255,255,255,0.03);
  background-size: 16px 16px;
  padding: 12px;
}
.fmk-rule-overlay {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: rgba(var(--accent-rgb), 0.12);
}
.fmk-rule-label {
  position: absolute; top: -8px; left: 4px;
  padding: 1px 6px; border-radius: 3px;
  background: var(--accent); color: #fff;
  font-size: 8.5px; font-weight: 800; white-space: nowrap;
}
.fmk-bottom-strip {
  padding: 9px 14px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 6px;
}
.fmk-bottom-strip span { font-size: 9.5px; font-weight: 700; color: #6ee7a8; }
.fmk-bottom-strip em { font-style: normal; font-size: 9px; color: rgba(255,255,255,0.45); margin-left: auto; }

/* scheduler feature mock: gantt */
.fmk-gantt { padding: 14px; }
.fmk-gantt-row { display: grid; grid-template-columns: 32px 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.fmk-gantt-row span { font-size: 9px; color: rgba(255,255,255,0.5); font-weight: 600; }
.fmk-gantt-track { position: relative; height: 12px; background: rgba(255,255,255,0.06); border-radius: 3px; }
.fmk-gantt-bar { position: absolute; top: 2px; height: 8px; border-radius: 2px; opacity: 0.85; }
.fmk-constraint-strip {
  padding: 9px 14px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.fmk-ctag {
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), 0.18);
  font-size: 8.5px; font-weight: 700; color: rgba(255,255,255,0.82);
}

/* use case icons */
.pd-usecase-tag svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: block; margin-bottom: 4px;
}

/* --- Concept illustration section --- */
.pd-concept-section {
  padding: 72px 0 0;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.pd-concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.pd-concept-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 18px 48px rgba(13, 37, 61, 0.10));
  transition: transform 0.4s ease;
}

.pd-concept-figure:hover img {
  transform: scale(1.02);
}

.pd-concept-copy .eyebrow {
  color: var(--accent);
  background: var(--accent-soft);
}

.pd-concept-copy h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.pd-concept-copy p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.pd-overview-table {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.pd-overview-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 8px;
}

.pd-overview-before,
.pd-overview-after {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.13);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

.pd-overview-before {
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.72);
}

.pd-overview-before::before {
  content: "Before";
  display: block;
  margin-bottom: 4px;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-overview-after {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.055));
  border-color: rgba(var(--accent-rgb), 0.26);
  font-weight: 600;
}

.pd-overview-after::before {
  content: "After";
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.em-accent {
  color: var(--accent);
  font-weight: 600;
}

.lead .em-accent,
.pd-concept-copy p .em-accent {
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .pd-overview-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pd-overview-before,
  .pd-overview-after {
    padding: 11px 12px;
  }
}

@media (max-width: 1023px) {
  .pd-concept-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .pd-feature-with-mock { grid-template-columns: 1fr; }
  .tlv-convert { grid-template-columns: 1fr; gap: 4px; }
  .tlv-convert .tlv-arrow { transform: rotate(90deg); }
  .tlv-drawing-pair { grid-template-columns: 1fr; }

  .pd-concept-section { padding: 48px 0 0; }
  .pd-concept-copy h2 { font-size: 24px; }
}


/* ==========================================================
   Product Detail — subtle emphasis and motion polish
   ========================================================== */
.pd-overview-row {
  position: relative;
}

.pd-overview-row::after {
  content: "→";
  position: absolute;
  left: calc(41% - 6px);
  top: 50%;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-50%);
}

.pd-overview-after .em-accent,
.pd-timeline-content .em-accent,
.pd-stepper-item .em-accent {
  color: var(--accent);
  font-weight: 750;
  background: linear-gradient(180deg, transparent 58%, rgba(var(--accent-rgb), 0.14) 58%);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.pd-overview-after {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.04);
}

.pd-overview-row:hover .pd-overview-after {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.07));
  border-color: rgba(var(--accent-rgb), 0.34);
}

.pd-pair-gain {
  box-shadow: inset 4px 0 0 rgba(var(--accent-rgb), 0.34);
}

.pd-stat-bar-text .num::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.18));
  transform-origin: left center;
}

.pd-stepper-item {
  transition: transform 0.28s ease;
}

.pd-stepper-item:hover {
  transform: translateY(-3px);
}

.pd-stepper-item h3 {
  color: var(--primary);
}

@media (prefers-reduced-motion: no-preference) {
  .product-detail-hero .pd-hero-image-card img {
    animation: pdHeroFloat 8s ease-in-out infinite;
  }

  .js .pd-concept-figure,
  .js .pd-concept-copy,
  .js .pd-overview-row,
  .js .pd-stepper {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.62s cubic-bezier(0.16, 0.84, 0.44, 1),
                transform 0.62s cubic-bezier(0.16, 0.84, 0.44, 1);
    will-change: opacity, transform;
  }

  .js .pd-concept-figure.is-visible,
  .js .pd-concept-copy.is-visible,
  .js .pd-overview-row.is-visible,
  .js .pd-stepper.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .pd-overview-row::after {
    opacity: 0;
    transform: translate(-8px, -50%) scale(0.92);
    transition: opacity 0.38s ease, transform 0.38s ease;
    transition-delay: 0.16s;
  }

  .js .pd-overview-row.is-visible::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  .js .pd-stat-bar-text .num::after {
    transform: scaleX(0);
    transition: transform 0.72s cubic-bezier(0.16, 0.84, 0.44, 1);
    transition-delay: 0.18s;
  }

  .js .pd-stat-bar-item.is-visible .num::after {
    transform: scaleX(1);
  }

  .js .pd-stepper::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.95s cubic-bezier(0.16, 0.84, 0.44, 1);
  }

  .js .pd-stepper.is-visible::before {
    transform: scaleX(1);
  }

  .js .pd-stepper-item.is-visible .pd-stepper-num {
    animation: pdStepPulse 0.7s ease both;
  }
}

@keyframes pdHeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.006); }
}

@keyframes pdStepPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.22), 0 8px 22px rgba(var(--accent-rgb), 0.20); }
  65% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0), 0 8px 22px rgba(var(--accent-rgb), 0.22); }
  100% { box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.24); }
}

@media (max-width: 767px) {
  .pd-overview-row::after {
    display: none;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .pd-stepper::before {
    transform: scaleY(0);
    transform-origin: top center;
  }

  .js .pd-stepper.is-visible::before {
    transform: scaleY(1);
  }
}
