/* ──────────────────────────────────────────────────────────────
   SECTIONS: Problem · Pillars · Process · Languages · Trust ·
             Comparison · Closing CTA · Footer
   ────────────────────────────────────────────────────────────── */

/* ═══ WHY KANSEI · Japanese Zen story ═══════════════════════ */
.why {
  background: var(--alabaster);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(14, 110, 104, 0.025) 1px, transparent 1px);
  background-size: 100% 96px;
  pointer-events: none;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.why-head {
  max-width: 880px;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}
.why-head .kicker { margin-bottom: 28px; }
.why-head h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.why-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.why-narrative .lede {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.why-narrative .lede em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.why-narrative .lede strong {
  font-weight: 600;
  color: var(--charcoal);
}
.why-narrative p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 22px;
  max-width: 580px;
}
.why-narrative p strong {
  color: var(--charcoal);
  font-weight: 600;
}
.why-narrative p:last-child { margin-bottom: 0; }

/* Hybrid list — bullet points within the narrative */
.why-narrative .hybrid-intro {
  margin-bottom: 12px;
}
.why-narrative .hybrid-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-width: 580px;
}
.why-narrative .hybrid-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
}
.why-narrative .hybrid-list li:last-child { border-bottom: none; }
.why-narrative .hybrid-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 21px;
  width: 14px; height: 2px;
  background: var(--accent);
}
.why-narrative .hybrid-list li strong {
  color: var(--charcoal);
  font-weight: 600;
}
.why-narrative .hybrid-closer {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0 32px;
  max-width: 580px;
}

/* CTA row at the end of the narrative */
.why-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.why-cta-prompt {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}

/* Kanji accent — side-by-side with the narrative, vertically stacked */
.why-kanji {
  position: relative;
  padding-left: 56px;
  border-left: 1px solid var(--hairline);
}
.kanji-accent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.kanji-accent .k-char {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif !important;
  font-size: clamp(72px, 7vw, 104px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.06em;
  user-select: none;
  font-feature-settings: "palt";
}
.kanji-accent .k-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-mist);
  width: 100%;
}
.kanji-accent .k-romaji {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.kanji-accent .k-gloss {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Three small pillars at bottom */
.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
  position: relative;
  z-index: 2;
}
.why-pillar {
  padding: 0 32px 8px 0;
  border-right: 1px solid var(--hairline);
}
.why-pillar:last-child { border-right: none; padding-right: 0; }
.why-pillar:not(:first-child) { padding-left: 32px; }
.why-pillar .wp-key {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 24px;
}
.why-pillar h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-bottom: 16px;
}
.why-pillar p {
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 380px;
}
.why-pillar p em { color: var(--charcoal); font-style: italic; }

@media (max-width: 960px) {
  .why-body { grid-template-columns: 1fr; gap: 48px; }
  .why-kanji {
    padding-left: 0;
    padding-top: 36px;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }
  .why-pillars { grid-template-columns: 1fr; }
  .why-pillar {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 32px 0 !important;
  }
  .why-pillar:last-child { border-bottom: none; }
}

/* ═══ PILLARS V2 · tab interactive ═══════════════════════════ */
.pillars-v2 {
  background: var(--alabaster);
  padding: 100px 0 120px;
  border-top: 1px solid var(--hairline);
}
.pillars-v2 .section-header { margin-bottom: 56px; }

.pv2-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin-bottom: 64px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.pv2-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-standard);
  color: var(--ink-2);
}
.pv2-tab:hover { color: var(--accent); }
.pv2-tab.active {
  background: var(--mist);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.pv2-tab-ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pv2-tab-ico svg { width: 100%; height: 100%; }
.pv2-tab-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.pv2-panels { position: relative; }
.pv2-panel {
  display: none;
  animation: pv2FadeIn 0.5s var(--ease-out);
}
.pv2-panel.active { display: block; }
@keyframes pv2FadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Head: copy + stats */
.pv2-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 96px;
}
.pv2-head-copy { max-width: 540px; }
.pv2-tag {
  display: inline-block;
  background: var(--mist);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pv2-head-copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.pv2-head-copy > p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.pv2-cta { padding: 14px 22px; font-size: 12px; }

.pv2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pv2-stat {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px 24px;
  transition: all var(--dur-base) var(--ease-standard);
  text-align: center;
}
.pv2-stat:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--glow-soft);
  transform: translateY(-2px);
}
.pv2-stat .ps-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.pv2-stat .ps-num .ps-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 2px;
}
.pv2-stat .ps-lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* How it works */
.pv2-howto {
  margin-bottom: 80px;
}
.pv2-howto-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
  position: relative;
  padding: 0 24px;
}
.pv2-howto-head::before,
.pv2-howto-head::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.pv2-howto-head::before { right: calc(50% + 80px); }
.pv2-howto-head::after { left: calc(50% + 80px); }

.pv2-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  padding-top: 24px;
}
.pv2-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%; right: 16%;
  height: 1px;
  background: var(--hairline);
  z-index: 0;
}
.pv2-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.pv2-step .pvs-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--alabaster);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pv2-step h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pv2-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 280px;
  margin: 0 auto;
}

/* Features */
.pv2-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pv2-feature {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px 26px;
  transition: all var(--dur-base) var(--ease-standard);
}
.pv2-feature:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--glow-soft);
}
.pvf-ico {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.pvf-ico svg { width: 24px; height: 24px; }
.pv2-feature h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pv2-feature p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .pv2-head { grid-template-columns: 1fr; gap: 40px; }
  .pv2-stats { grid-template-columns: 1fr 1fr; }
  .pv2-steps { grid-template-columns: 1fr; gap: 40px; }
  .pv2-steps::before { display: none; }
  .pv2-features { grid-template-columns: 1fr; }
  .pv2-tabs { flex-wrap: wrap; }
  .pv2-tab { flex: 1; min-width: 0; justify-content: center; padding: 12px 14px; }
  .pv2-tab-name { font-size: 13px; }
  .pv2-howto-head::before,
  .pv2-howto-head::after { display: none; }
}

/* ═══ PROBLEM (legacy — kept in case anything references) ════ */
.problem { display: none; }
.process { display: none; }

/* ═══ PROBLEM ════════════════════════════════════════════════ */
.problem {
  background: var(--alabaster);
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--hairline);
}
.problem h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  max-width: 880px;
  margin-bottom: 56px;
}
.problem h2 .strike {
  position: relative;
  color: var(--ink-3);
  font-weight: 400;
  white-space: nowrap;
}
.problem h2 .strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  height: 2px;
  background: var(--error);
  opacity: 0.7;
}
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.problem-stat {
  padding: 36px 32px 0 0;
  border-right: 1px solid var(--hairline);
}
.problem-stat:last-child { border-right: none; padding-right: 0; }
.problem-stat .stat-key {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.problem-stat .stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 16px;
}
.problem-stat .stat-num .unit {
  font-size: 28px;
  color: var(--platinum);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 4px;
}
.problem-stat p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 280px;
}
@media (max-width: 920px) {
  .problem-stats { grid-template-columns: 1fr; }
  .problem-stat { border-right: none; border-bottom: 1px solid var(--hairline); padding: 36px 0; }
}

/* ═══ PILLARS ════════════════════════════════════════════════ */
.pillars {
  background: var(--alabaster);
  padding: 160px 0 140px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 40px 36px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--dur-slow) var(--ease-out);
  overflow: hidden;
}
.pillar-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 48px var(--glow-medium);
  transform: translateY(-4px);
}
.pillar-card.active {
  background: var(--gradient-card);
  border-color: var(--accent);
}
.pillar-card .pc-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--platinum);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar-card .pc-num::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--platinum);
  transition: all var(--dur-base);
}
.pillar-card:hover .pc-num,
.pillar-card.active .pc-num { color: var(--accent); }
.pillar-card:hover .pc-num::before,
.pillar-card.active .pc-num::before {
  background: var(--accent);
  border-color: var(--accent);
}

.pillar-card .pc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--dur-base);
}
.pillar-card .pc-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar-card.active .pc-icon {
  background: var(--accent);
}
.pillar-card.active .pc-icon svg { stroke: var(--mist); }

.pillar-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pillar-card .pc-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pillar-card p.pc-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
  flex: 1;
}
.pillar-card .pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out),
              margin-bottom var(--dur-slow);
}
.pillar-card.active .pc-features {
  max-height: 200px;
  opacity: 1;
}
.pillar-card .pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
}
.pillar-card .pc-features li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.pillar-card .pc-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: gap var(--dur-base);
}
.pillar-card .pc-cta::after {
  content: '→';
  transition: transform var(--dur-base);
}
.pillar-card:hover .pc-cta { gap: 12px; }
.pillar-card:hover .pc-cta::after { transform: translateX(4px); }

@media (max-width: 920px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: auto; }
}

/* ═══ PROCESS ════════════════════════════════════════════════ */
.process {
  background: var(--alabaster);
  padding: 120px 0 140px;
  border-top: 1px solid var(--hairline);
}
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 60px;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 79px;
  left: 24px; right: 24px;
  height: 1px;
  background: var(--hairline);
}
.process-rail::after {
  content: '';
  position: absolute;
  top: 79px;
  left: 24px;
  height: 1px;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 1.5s var(--ease-out);
  max-width: calc(100% - 48px);
}

.process-step {
  position: relative;
  padding-top: 60px;
}
.process-step .step-dot {
  position: absolute;
  top: 18px; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--alabaster);
  border: 1.5px solid var(--platinum);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--dur-base);
}
.process-step .step-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--platinum);
  transition: background var(--dur-base);
}
.process-step.lit .step-dot { border-color: var(--accent); }
.process-step.lit .step-dot::after { background: var(--accent); }
.process-step .step-key {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 8px;
  transition: color var(--dur-base);
}
.process-step.lit .step-key { color: var(--accent); }
.process-step h4 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 920px) {
  .process-rail { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process-rail::before, .process-rail::after { display: none; }
}
@media (max-width: 560px) {
  .process-rail { grid-template-columns: 1fr; }
}

/* ═══ LANGUAGES ══════════════════════════════════════════════ */
.languages {
  background: var(--charcoal);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.languages .mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
}
.languages .mesh-1 {
  top: -25%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(31, 139, 131, 0.32);
}
.languages .mesh-2 {
  bottom: -30%; left: -5%;
  width: 720px; height: 720px;
  background: rgba(14, 110, 104, 0.32);
}
.languages-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.languages-body .kicker { color: var(--mist); margin-bottom: 28px; }
.languages-body .kicker::before { background: var(--mist); }
.languages-body h2 {
  color: var(--white);
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 28px;
}
.languages-body .lede {
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  margin-bottom: 36px;
}
.languages-body .lede strong {
  color: var(--white);
  font-weight: 600;
}

/* Link back to Kansei.IQ */
.lang-iq-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 20px;
  background: rgba(212, 232, 230, 0.08);
  border: 1px solid rgba(212, 232, 230, 0.24);
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-standard);
}
.lang-iq-link:hover {
  background: rgba(212, 232, 230, 0.14);
  border-color: var(--mist);
  color: var(--white);
  transform: translateY(-1px);
}
.lang-iq-link strong {
  color: var(--white);
  font-weight: 700;
}
.lang-iq-link .liq-mark {
  color: var(--mist);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--dur-base);
}
.lang-iq-link:hover .liq-mark { transform: translateX(4px); }
.lang-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.lang-stat .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.lang-stat .num .plus { color: var(--mist); }
.lang-stat .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.lang-cloud {
  position: relative;
  aspect-ratio: 1;
  padding: 8px;
}
.lang-cloud-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.lang-cloud-svg circle {
  fill: none;
  stroke: rgba(212, 232, 230, 0.16);
  stroke-width: 1;
}
.lang-cloud-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: center;
}
.lang-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 6px 0;
  transition: color var(--dur-base);
}
.lang-chip:nth-child(3n) { color: var(--mist); }
.lang-chip.featured {
  color: var(--white);
  font-weight: 700;
}
.lang-chip.invisible { opacity: 0; }
.lang-chip:hover { color: var(--white); }

@media (max-width: 920px) {
  .languages-body { grid-template-columns: 1fr; gap: 56px; }
  .lang-cloud { max-width: 420px; margin: 0 auto; }
}

/* ═══ TRUST nameplates ══════════════════════════════════════ */
.trust {
  background: var(--alabaster);
  padding: 120px 0 100px;
}
.trust .section-header { text-align: center; margin: 0 auto 64px; }
.trust .section-header .kicker { justify-content: center; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.trust-cell {
  position: relative;
  aspect-ratio: 5/3;
  background: var(--white);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-standard);
  cursor: default;
}
.trust-cell::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--platinum);
  border-left: 1px solid var(--platinum);
  opacity: 0.5;
  transition: all var(--dur-base);
}
.trust-cell::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 6px; height: 6px;
  border-bottom: 1px solid var(--platinum);
  border-right: 1px solid var(--platinum);
  opacity: 0.5;
  transition: all var(--dur-base);
}
.trust-cell:hover {
  background: var(--white);
  z-index: 2;
}
.trust-cell:hover::before,
.trust-cell:hover::after {
  border-color: var(--accent);
  opacity: 1;
  width: 14px; height: 14px;
}

.trust-cell .nameplate {
  position: relative;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  text-align: center;
  transition: color var(--dur-base);
}
.trust-cell:hover .nameplate { color: var(--accent); }
.trust-cell .nameplate .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 2px 4px 0;
  vertical-align: middle;
}
.trust-cell .nameplate-meta {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--platinum);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.trust-cell:hover .nameplate-meta { opacity: 1; color: var(--accent); }

.trust-cell.is-slot {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(14,110,104,0.04) 8px, rgba(14,110,104,0.04) 10px),
    var(--white);
}
.trust-cell.is-slot .nameplate {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.trust-cell.is-slot .slot-plus {
  display: inline-block;
  width: 24px; height: 24px;
  border: 1.5px dashed var(--platinum);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--platinum);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

@media (max-width: 920px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ COMPARISON ═════════════════════════════════════════════ */
.comparison {
  background: var(--alabaster);
  padding: 100px 0 120px;
  border-top: 1px solid var(--hairline);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.cmp-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  min-height: 64px;
}
.cmp-cell:nth-child(4n) { border-right: none; }
.cmp-row-last .cmp-cell { border-bottom: none; }

.cmp-head {
  background: var(--alabaster);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cmp-head.cmp-kansei {
  background: var(--mist);
  color: var(--accent);
  position: relative;
}
.cmp-head.cmp-kansei::after {
  content: '★ PRIMARY';
  position: absolute;
  top: 6px; right: 12px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}
.cmp-label {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 16px;
}
.cmp-mark {
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.cmp-mark.yes { color: var(--accent); }
.cmp-mark.partial { color: var(--warning); }
.cmp-mark.no { color: var(--ink-3); }
.cmp-mark .mark-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 920px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    border: none;
  }
  .cmp-cell { border-right: none !important; padding: 16px 20px; }
}

/* ═══ CLOSING CTA ════════════════════════════════════════════ */
.closing {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.closing .arcs {
  position: absolute;
  left: -260px;
  bottom: -260px;
  width: 720px; height: 720px;
  opacity: 0.12;
  pointer-events: none;
}
.closing .arcs g { fill: none; stroke: var(--mist); stroke-width: 1; }
.closing-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.closing .kicker { color: var(--mist); margin-bottom: 28px; }
.closing .kicker::before { background: var(--mist); }
.closing h2 {
  color: var(--white);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 28px;
}
.closing .lede {
  color: rgba(212, 232, 230, 0.8);
  max-width: 480px;
  margin-bottom: 40px;
}
.closing-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.closing-panel {
  border-left: 1px solid rgba(212, 232, 230, 0.18);
  padding-left: 56px;
}
.closing-panel .panel-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(212, 232, 230, 0.12);
}
.closing-panel .panel-row:first-child { padding-top: 0; }
.closing-panel .panel-row:last-child { border-bottom: none; }
.closing-panel .panel-key {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.closing-panel .panel-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 920px) {
  .closing-body { grid-template-columns: 1fr; gap: 48px; }
  .closing-panel { border-left: none; border-top: 1px solid rgba(212, 232, 230, 0.18); padding-left: 0; padding-top: 32px; }
}

/* ═══ FOOTER ═════════════════════════════════════════════════ */
footer.footer {
  background: var(--void);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 32px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .footer-logo svg { height: 32px; width: auto; }
.footer-brand .footer-logo .logo-letters { fill: var(--white); }
.footer-brand .footer-logo .logo-k { fill: var(--mist); }
.footer-brand .footer-tagline {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(212, 232, 230, 0.68);
  max-width: 320px;
}

.footer-col h5 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--mist); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--mist); }

/* LinkedIn icon link in footer */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-linkedin svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-standard);
}
.footer-linkedin:hover svg { transform: translateY(-2px); }

/* Panel link in closing CTA */
.panel-link {
  color: var(--mist);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}
.panel-link:hover { border-color: var(--mist); }

/* ═══ LEGAL MODAL ════════════════════════════════════════════ */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.legal-overlay.open { display: flex; }
.legal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.35);
  animation: legalIn 0.4s var(--ease-out);
}
@keyframes legalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.legal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.legal-close svg { width: 18px; height: 18px; }
.legal-close:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
  transform: rotate(90deg);
}
.legal-scroll {
  overflow-y: auto;
  max-height: 86vh;
  padding: 48px 48px 40px;
}
.legal-content { display: none; }
.legal-content.active { display: block; }
.legal-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.legal-content h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.legal-content .legal-updated {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.legal-content p strong { color: var(--charcoal); font-weight: 600; }
.legal-content a { color: var(--accent); border-bottom: 1px solid var(--hairline-mist); }
.legal-content a:hover { border-color: var(--accent); }
.legal-content .legal-disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--alabaster);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}
@media (max-width: 560px) {
  .legal-scroll { padding: 40px 24px 28px; }
  .legal-content h2 { font-size: 24px; }
}

@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
