:root {
  --bg: #f7f6f2;
  --bg2: #ffffff;
  --panel: #ffffff;
  --text: #18263f;
  --muted: #54657f;
  --line: rgba(24,38,63,0.12);
  --line-strong: rgba(24,38,63,0.2);
  --accent: #c22a3c;
  --accent-soft: rgba(194,42,60,0.08);
  --navy: #1c2e52;
  --navy-soft: rgba(28,46,82,0.07);
  --green: #0c8a55;
  --green-soft: rgba(12,138,85,0.09);
  --yellow: #a36f0e;
  --red: #c0392b;
  --footer-bg: #16233f;
  --shadow-sm: 0 2px 8px rgba(24,38,63,.06);
  --shadow: 0 8px 28px rgba(24,38,63,.08);
  --shadow-lg: 0 18px 48px rgba(24,38,63,.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(247,246,242,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 30px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { min-height: 38px; padding: 0 20px; font-size: 13px; }
.nav-links .btn:hover { color: #fff; }
.nav-pill {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  letter-spacing: .02em;
}

/* HERO */
.hero {
  padding: 88px 0 56px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  letter-spacing: .01em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 900;
  margin-bottom: 22px;
  color: var(--navy);
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  max-width: 860px;
  font-size: clamp(14.5px, 2vw, 17px);
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 36px;
}
.lead strong { color: var(--navy); }
.hero .btns { margin-bottom: 8px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}

/* CARDS */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card.linked { transition: border-color .2s ease, transform .2s ease; display: block; }
.card.linked:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .more { color: var(--accent); font-weight: 700; font-size: 13.5px; display: inline-block; margin-top: 14px; }

/* BADGES */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid var(--line);
}
.badge.good {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(12,138,85,.25);
}
.badge.warn {
  background: rgba(163,111,14,.09);
  color: var(--yellow);
  border-color: rgba(163,111,14,.25);
}
.badge.bad {
  background: rgba(192,57,43,.08);
  color: var(--red);
  border-color: rgba(192,57,43,.22);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.kpi .num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -.03em;
  color: var(--navy);
  font-family: "DM Mono", monospace;
}
.kpi .cap {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* SECTIONS */
.section {
  padding: 64px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--bg2); }
h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--navy);
}
h3 { font-size: 19px; font-weight: 900; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.02em; color: var(--navy); }
h4 { font-size: 15px; font-weight: 900; line-height: 1.35; margin-bottom: 8px; color: var(--navy); }
p.intro {
  color: var(--muted);
  max-width: 880px;
  margin-bottom: 28px;
  font-size: 14.5px;
  line-height: 1.85;
}

/* GRIDS */
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }

/* LISTS */
ul.feature-list, ul.hero-list {
  list-style: none;
  padding: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
ul.feature-list li, ul.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
ul.feature-list li::before, ul.hero-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}
ul.feature-list li strong, ul.hero-list li strong { color: var(--navy); }

/* FLOW */
.flow-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flow-wrap.five { grid-template-columns: repeat(5, 1fr); }
.flow-node {
  position: relative;
  padding: 22px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.flow-node:last-child { border-right: none; }
.flow-node:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -11px;
  top: 22px;
  font-size: 20px;
  color: var(--accent);
  z-index: 2;
  font-weight: 900;
  line-height: 1;
}
.flow-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-family: "DM Mono", monospace;
}
.flow-node h4 { font-size: 13.5px; margin-bottom: 8px; }
.flow-node p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}
.step .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
  font-family: "DM Mono", monospace;
}
.step-content { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.step-content strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* TABLE */
.table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--navy-soft); }
th {
  padding: 15px 20px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 900;
  font-family: "DM Mono", monospace;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(24,38,63,.07);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.7;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
td strong { color: var(--navy); }
.price-tag {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  font-family: "DM Mono", monospace;
  display: block;
  margin-bottom: 4px;
}
.price-tag.good { color: var(--green); }
.price-tag.bad { color: var(--red); }

/* CALLOUT / NOTE */
.callout {
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #14532d;
  font-size: 14px;
  line-height: 1.75;
}
.callout strong { color: var(--green); }
.note {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.note strong { color: var(--navy); }

/* SMALL ITEM CARDS */
.security-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.security-item h4 { font-size: 13.5px; margin-bottom: 7px; }
.security-item p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ASSET CHIPS */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-family: "DM Mono", monospace;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}
.chip.green::before { background: var(--green); }
.chip.yellow::before { background: var(--yellow); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: "DM Mono", monospace;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 800px;
}
.faq details p strong { color: var(--navy); }

/* CTA */
.cta-section {
  padding: 72px 0;
  z-index: 1;
  position: relative;
  border-top: 1px solid var(--line);
}
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--footer-bg);
  border: 1px solid var(--footer-bg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(194,42,60,.14), transparent 60%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
  letter-spacing: -.03em;
  color: #fff;
}
.cta-box p {
  color: #b9c4d8;
  font-size: 14.5px;
  max-width: 640px;
  line-height: 1.8;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover { background: var(--accent); }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn.secondary:hover { border-color: var(--navy); }
.cta-box .btn.primary { background: #fff; color: var(--navy); }
.cta-box .btn.primary:hover { background: #f1d7da; }
.cta-box .btn.secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn.secondary:hover { border-color: #fff; }

/* FOOTER */
footer {
  background: var(--footer-bg);
  padding: 48px 0 36px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8fa3c8;
  font-family: "DM Mono", monospace;
  margin-bottom: 12px;
}
.footer-grid p, .footer-grid a {
  font-size: 13px;
  color: #b9c4d8;
  line-height: 1.8;
  display: block;
}
.footer-grid a:hover { color: #fff; }
.footer-tagline {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.footer-note {
  color: #7787a3;
  font-size: 12px;
  margin-top: 20px;
  line-height: 1.85;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
}

.muted-small { font-size: 13px; color: var(--muted); line-height: 1.7; }
.section-cta { margin-top: 28px; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .flow-wrap, .flow-wrap.five { grid-template-columns: 1fr 1fr; border-radius: var(--radius-sm); }
  .flow-node { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .flow-node:nth-child(even) { border-right: none; }
  .flow-node:nth-last-child(-n+2) { border-bottom: none; }
  .flow-node:not(:last-child)::after { display: none; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 28px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-links .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .flow-wrap, .flow-wrap.five { grid-template-columns: 1fr }
  .flow-node { border-right: none; border-bottom: 1px solid var(--line); }
  .flow-node:last-child { border-bottom: none; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 48px 0; }
}

/* DEMO VIDEOS */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.phone-frame {
  width: 270px;
  border-radius: 36px;
  border: 10px solid var(--navy);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  flex-shrink: 0;
}
.phone-frame video { display: block; width: 100%; height: auto; }
.demo-pair {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.demo-pair figure { margin: 0; text-align: center; }
.demo-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (max-width: 1080px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* INSTITUTIONS GRAPHICS */
.hero-visual { display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.card-icon { width: 40px; height: 40px; display: block; margin-bottom: 14px; }
.icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.icon-row img { width: 34px; height: 34px; flex-shrink: 0; }
.icon-row h4 { margin-bottom: 0; }

/* ARCHITECTURE DIAGRAM */
.diagram { margin: 36px auto 0; max-width: 920px; }
.diagram svg { display: block; width: 100%; height: auto; }

/* BANK PHONE MOCK */
.phone-frame.mock { background: #fff; }
.mock-screen { padding: 16px 18px 20px; font-size: 12px; background: #fff; }
.mock-status { display: flex; justify-content: space-between; color: #9aa6ba; font-size: 10.5px; font-family: "DM Mono", monospace; margin-bottom: 16px; }
.mock-bank { font-size: 17px; font-weight: 900; letter-spacing: .12em; color: var(--navy); }
.mock-sub { font-size: 10.5px; color: var(--muted); margin-bottom: 14px; }
.mock-pay { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.mock-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: "DM Mono", monospace; }
.mock-merchant { font-size: 14px; font-weight: 700; color: var(--navy); margin: 2px 0 10px; }
.mock-amount { font-size: 30px; font-weight: 900; color: var(--navy); font-family: "DM Mono", monospace; letter-spacing: -.02em; line-height: 1.1; }
.mock-cur { font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.mock-checks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.mock-checks li { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #3d4f6b; }
.mock-checks li::before { content: '✓'; color: var(--green); font-weight: 900; font-size: 12px; }
.mock-btn { background: var(--navy); color: #fff; text-align: center; border-radius: 999px; padding: 12px; font-weight: 900; font-size: 13px; margin-bottom: 12px; }
.mock-foot { text-align: center; font-size: 10px; color: #9aa6ba; line-height: 1.5; }

/* 3D PHONE TREATMENT (institutions hero) */
.hero-visual { position: relative; perspective: 1400px; padding: 30px 10px 44px; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10% -16%;
  background:
    radial-gradient(circle at 68% 30%, rgba(194,42,60,.10), transparent 55%),
    radial-gradient(circle at 28% 75%, rgba(28,46,82,.10), transparent 55%);
  z-index: 0;
  border-radius: 50%;
}
.hero-visual .phone-frame.mock {
  position: relative;
  z-index: 1;
  transform: rotateY(-13deg) rotateX(5deg);
  transform-style: preserve-3d;
  box-shadow:
    -18px 30px 50px rgba(24,38,63,.22),
    -2px 4px 10px rgba(24,38,63,.18);
  animation: phoneFloat 7s ease-in-out infinite;
}
.hero-visual .phone-frame.mock::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 16px;
  border-radius: 999px;
  background: var(--navy);
  z-index: 3;
}
.hero-visual .phone-frame.mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 24%, transparent 38%);
  pointer-events: none;
  z-index: 2;
}
.hero-visual .mock-screen { padding-top: 32px; }
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-13deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-13deg) rotateX(5deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .phone-frame.mock { animation: none; }
}

/* ================================================================
   V2 (Sep 2026): targeted upgrades. Brand tokens unchanged.
   Type: Geist (display + body), Geist Mono for figures.
   Shape rule: buttons pill, panels 18px, inner tiles 12px.
   ================================================================ */
body {
  font-family: "Geist", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 20px; }
h1 em { font-style: italic; color: var(--accent); padding-bottom: .06em; }
h2 { font-weight: 700; letter-spacing: -.025em; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }
p { text-wrap: pretty; }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; max-width: 34ch; margin-bottom: 28px; color: var(--muted); }
p.intro { max-width: 64ch; font-size: 15.5px; line-height: 1.7; }
.muted-small { max-width: 60ch; }
.kpi .num, .price-tag, .flow-num { font-family: "Geist Mono", "DM Mono", monospace; font-variant-numeric: tabular-nums; }
.kpi .num { font-weight: 600; }

/* skip link */
.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* nav: one line, active state, no pill in the way */
nav { padding: 12px 0; }
.nav-links { font-weight: 600; font-size: 14px; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a:not(.btn) { position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* hero: asymmetric split with the real checkout clip */
.hero { padding: 72px 0 40px; }
.hero-v2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-v2 .phone-frame { width: 250px; margin-left: auto; margin-right: 8%; transform: rotate(2deg); }
.eyebrow { animation: none; }
.eyebrow::before { animation: none; background: var(--accent); }
.hero .btns { margin-bottom: 0; }

/* KPI strip under the hero: plain figures, one hairline, no boxes */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 22px; }
.kpi-strip .kpi { background: transparent; border: none; box-shadow: none; text-align: left; padding: 0 20px 0 0; border-right: 1px solid var(--line); }
.kpi-strip .kpi:last-child { border-right: none; }
.kpi-strip .kpi + .kpi { padding-left: 20px; }
.kpi-strip .num { font-size: clamp(26px, 3vw, 36px); }
.kpi-strip .cap { font-size: 12.5px; }

/* who it is for: asymmetric 2fr/1fr, lead panel tinted */
.who { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.who .panel { border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--line); transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1); }
.who .panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.who .panel.lead-panel { grid-row: 1 / span 2; background: var(--navy); color: #fff; border-color: var(--navy); display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; position: relative; overflow: hidden; }
.who .panel.lead-panel::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(194,42,60,.55), rgba(194,42,60,0)); pointer-events: none; }
.who .panel.lead-panel h3, .who .panel.lead-panel .label { color: #fff; }
.who .panel.lead-panel p { color: rgba(255,255,255,.78); }
.who .label { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.who .panel h3 { font-size: 22px; margin-bottom: 10px; }
.who .panel p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* comparison table: sparse dividers */
table { font-size: 14.5px; }
tbody tr:nth-child(odd) td { background: rgba(28,46,82,.025); }
table td, table th { border-bottom: none !important; }
tbody tr + tr td { border-top: 1px solid var(--line) !important; }

/* FAQ: two-column list, no accordion */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 28px; }
.faq-grid .q { border-top: 1px solid var(--line); padding-top: 18px; }
.faq-grid h4 { font-size: 15.5px; margin-bottom: 8px; }
.faq-grid p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* buttons: motion + states */
.btn { font-weight: 600; transition: transform .35s cubic-bezier(.16,1,.3,1), background-color .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card.linked { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1), border-color .3s; }
.card.linked:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section { padding: 80px 0; }
.cta-box { border-radius: var(--radius-lg); }

/* scroll reveal, gated by reduced motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card.linked, .who .panel { transition: none; }
  .hero-v2 .phone-frame { transform: none; }
}
@media (max-width: 1080px) {
  .hero-v2 { grid-template-columns: 1fr; gap: 28px; }
  .hero-v2 .phone-frame { margin: 0 auto; transform: none; }
  .who { grid-template-columns: 1fr; }
  .who .panel.lead-panel { grid-row: auto; min-height: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .kpi-strip .kpi:nth-child(2) { border-right: none; }
  .kpi-strip .kpi:nth-child(3) { padding-left: 0; }
  .lead { max-width: 60ch; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   V3 (Sep 2026): institution-first single page. Photos in focus.
   ================================================================ */
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-width: 440px; margin-left: auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-v2 { grid-template-columns: 1.15fr .85fr; }
.value { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.value .panel { border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--line); }
.value .panel h3 { font-size: 21px; margin-bottom: 10px; }
.value .panel p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.value .photo-panel { grid-row: 1 / span 2; padding: 0; position: relative; overflow: hidden; min-height: 440px; border: none; }
.value .photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.value .photo-panel .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 30px; background: linear-gradient(to top, rgba(28,46,82,.96), rgba(28,46,82,.75) 60%, rgba(28,46,82,0)); color: #fff; }
.value .photo-panel .over h3 { color: #fff; }
.value .photo-panel .over p { color: rgba(255,255,255,.82); }
.value .photo-panel .over .label { color: rgba(255,255,255,.85); }
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.sandbox { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.criteria { list-style: none; counter-reset: c; margin-top: 8px; }
.criteria li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.criteria li::before { content: counter(c, decimal-leading-zero); font-family: "Geist Mono", monospace; font-weight: 600; color: var(--accent); font-size: 13px; padding-top: 3px; }
.criteria li strong { color: var(--navy); display: block; font-weight: 600; margin-bottom: 2px; }
.record { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; }
.record h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.record > p { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 18px; }
.record dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.record dt { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: #fff; }
.record dd { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.55; }
.record .field { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; }
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.plan .plan-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan .plan-step .when { font-family: "Geist Mono", monospace; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.plan .plan-step h4 { font-size: 16px; margin-bottom: 6px; }
.plan .plan-step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 32px; }
.team .person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 14px; box-shadow: var(--shadow); }
.team .person h4 { font-size: 15px; margin-bottom: 2px; }
.team .person p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.proof { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.proof .phone-frame { width: 240px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
@media (max-width: 1080px) {
  .hero-photo { max-width: 380px; margin: 0 auto; aspect-ratio: 4 / 4.6; }
  .value { grid-template-columns: 1fr; }
  .value .photo-panel { grid-row: auto; min-height: 320px; }
  .sandbox, .two-col, .proof { grid-template-columns: 1fr; }
  .proof .phone-frame { margin: 0 auto; }
  .plan { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .record dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   V4 (Sep 2026): depth and scroll feedback. Reference: Stripe /
   Modern Treasury restraint. Planes move at different speeds,
   content enters staggered, surfaces alternate, film grain on top.
   ================================================================ */
/* grain: fixed, pointer-events none, very low opacity */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* surface rhythm */
.section.alt { background: #fff; }
.section.tint { background: linear-gradient(180deg, var(--bg) 0%, #f1f0ea 100%); }
/* hero planes */
.hero { overflow: hidden; }
.hero-stage { position: relative; }
.plane-back { position: absolute; right: -6%; top: -18%; width: 62%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(28,46,82,.10), rgba(28,46,82,0)); }
.plane-back::after { content: ''; position: absolute; left: 12%; top: 58%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(194,42,60,.10), rgba(194,42,60,0)); }
.hero-v2 { position: relative; z-index: 1; }
.hero-photo { position: relative; z-index: 1; }
.hero-photo img { transform: scale(1.04); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.hero-stage:hover .hero-photo img { transform: scale(1); }
.plane-front { position: absolute; left: -8%; bottom: 8%; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); max-width: 250px; }
.plane-front .t { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.plane-front ul { list-style: none; display: grid; gap: 4px; }
.plane-front li { font-size: 12.5px; color: var(--navy); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.plane-front li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hero-photo-wrap { position: relative; }
/* staggered entry: children of .stagger get incremental delays */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s } .stagger.in > *:nth-child(2) { transition-delay: .15s } .stagger.in > *:nth-child(3) { transition-delay: .25s }
.stagger.in > *:nth-child(4) { transition-delay: .35s } .stagger.in > *:nth-child(5) { transition-delay: .45s }
/* hero entrance on load */
.hero-v2 > div:first-child > * { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
.hero-v2 > div:first-child > *:nth-child(1) { animation-delay: .05s } .hero-v2 > div:first-child > *:nth-child(2) { animation-delay: .15s }
.hero-v2 > div:first-child > *:nth-child(3) { animation-delay: .25s } .hero-v2 > div:first-child > *:nth-child(4) { animation-delay: .35s }
.hero-photo-wrap { animation: rise 1.1s cubic-bezier(.16,1,.3,1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* scroll-driven parallax where supported (Chrome, Edge, Safari 26) */
@supports (animation-timeline: view()) {
  .plane-back { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .hero-photo-wrap { animation: rise 1.1s cubic-bezier(.16,1,.3,1) .2s both, lift linear both; animation-timeline: auto, view(); animation-range: normal, entry 0% exit 100%; }
  .value .photo-panel img { animation: pan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .team .person img { animation: rise-soft linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes drift { from { transform: translateY(40px); } to { transform: translateY(-120px); } }
@keyframes lift { from { transform: translateY(24px); } to { transform: translateY(-36px); } }
@keyframes pan { from { transform: scale(1.12) translateY(3%); } to { transform: scale(1.12) translateY(-3%); } }
@keyframes rise-soft { from { opacity: .2; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* nav condenses after scroll */
nav { transition: padding .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
nav.scrolled { padding: 8px 0; box-shadow: 0 6px 24px rgba(28,46,82,.06); }
/* buttons: trailing arrow nudge on primary */
.btn.primary::after { content: '\2192'; margin-left: 10px; display: inline-block; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.btn.primary:hover::after { transform: translateX(3px); }
/* criteria: count-in reveal */
.criteria li { transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
/* flow numbers pulse once when revealed */
.flow-wrap.in .flow-num { animation: pop .6s cubic-bezier(.16,1,.3,1) both; }
.flow-wrap.in .flow-node:nth-child(2) .flow-num { animation-delay: .12s } .flow-wrap.in .flow-node:nth-child(3) .flow-num { animation-delay: .24s }
.flow-wrap.in .flow-node:nth-child(4) .flow-num { animation-delay: .36s } .flow-wrap.in .flow-node:nth-child(5) .flow-num { animation-delay: .48s }
@keyframes pop { from { transform: scale(.6); opacity: 0 } to { transform: none; opacity: 1 } }
/* photo panel: hover ken burns on top of scroll pan */
.value .photo-panel { transition: box-shadow .4s; }
.value .photo-panel:hover { box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .stagger > *, .hero-v2 > div:first-child > *, .hero-photo-wrap, .plane-back, .value .photo-panel img, .team .person img, .flow-wrap.in .flow-num { animation: none !important; transition: none !important; opacity: 1; transform: none; }
  .value .photo-panel img { transform: none; }
}
@media (max-width: 1080px) {
  .plane-front { position: static; max-width: none; margin-top: 14px; }
  .plane-back { right: -30%; width: 90%; }
}
@media (max-width: 1080px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 420px; margin: 0 auto; }
  .hero-photo { max-width: none; aspect-ratio: 4 / 4.4; }
}

.team .person { text-align: center; }
.team .person img { margin-left: auto; margin-right: auto; }
/* language switch */
.nav-links .lang { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nav-links .lang:hover { color: var(--navy); border-color: var(--line-strong); }
.nav-links .lang::after { display: none; }
.nav-links .lang svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(28,46,82,.15); }
html[lang="ru"] body { font-family: "Geist", "Noto Sans", -apple-system, sans-serif; }
@media (max-width: 640px) { .nav-links .lang span { display: none; } .nav-links .lang { padding: 6px 8px; } }
.nav-links a.lang { padding: 6px 10px; }
html[lang="ru"] h1 { font-size: clamp(34px, 4.4vw, 54px); }
html[lang="ru"] .diagram svg text { font-size: 11px; letter-spacing: -.01em; }
.team .person a { display: block; }
.team .person a img { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.team .person a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
