/* ==========================================================================
   KAKEI — design system v3
   Warm paper · deep ink · muted petrol accent · Manrope + Zen Kaku Gothic New
   ========================================================================== */

:root {
  --bg: #FBFAF8;
  --bg-2: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #F6F5F1;
  --ink: #18202B;
  --ink-2: #434B57;
  --muted: #6E7480;
  --line: #E6E3DC;
  --line-2: #D8D4CB;

  --accent: #2E6468;
  --accent-2: #24504F;
  --accent-soft: #EAF1F0;
  --accent-line: #C9DCDA;

  --navy: #142030;
  --navy-2: #1B2A3D;
  --on-navy: #EEF0F3;
  --on-navy-2: #A9B1BD;
  --navy-line: rgba(255, 255, 255, 0.1);

  --pos: #3C7454;
  --neg: #A3503F;
  --warn: #93702F;
  --slate: #56608A;

  --shadow-sm: 0 1px 2px rgba(24, 32, 43, .05);
  --shadow: 0 1px 2px rgba(24, 32, 43, .04), 0 8px 24px -12px rgba(24, 32, 43, .12);
  --shadow-lg: 0 2px 4px rgba(24, 32, 43, .04), 0 30px 70px -30px rgba(24, 32, 43, .28);

  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font: "Manrope", var(--font-jp), system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ja"] body { letter-spacing: .02em; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { color: var(--accent); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: inherit; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0.01em; line-height: 1.42; }
.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
html[lang="ja"] .display { font-size: clamp(2rem, 4.8vw, 3.8rem); letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
html[lang="ja"] .h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: 0; font-weight: 700; }
.h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-2); max-width: 40em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.kicker::before, .eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.kicker .jp, .eyebrow .jp { font-family: var(--font-jp); letter-spacing: .12em; color: var(--muted); text-transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: .94rem; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
html[lang="ja"] .btn { letter-spacing: .04em; }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy-2); color: #fff; box-shadow: 0 1px 2px rgba(20,32,48,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(20,32,48,.5); }
.btn-primary:active { transform: none; box-shadow: 0 1px 2px rgba(20,32,48,.25); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; border-radius: 9px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.link:hover { color: var(--accent-2); }
.link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(251,250,248,.88);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(24,32,43,.25); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.logo-word { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; line-height: 1; }
.logo-tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 6px; margin-left: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 7px 14px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; grid-column: 3; }
.nav > nav { display: flex; justify-content: center; }
.nav > .logo { justify-self: start; }
.nav-right .btn-sm { min-width: 128px; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 118px; height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.lang-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 184px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: top right;
  transition: opacity .16s, transform .16s, visibility .16s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.lang-menu a:hover { background: var(--bg-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); }
.lang-menu .code { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.lang-menu a[aria-current="true"] .code { color: var(--accent); }

.menu-toggle { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; } .menu-toggle span::after { top: 5px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 92px var(--gutter) 40px; overflow-y: auto; }
.nav-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-nav li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.4rem; font-weight: 700; }
.mobile-nav li a span { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.mobile-nav .btn { width: 100%; margin-bottom: 10px; }

/* ---------- Backgrounds ---------- */
.glow-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow-bg::before {
  content: ""; position: absolute; left: 50%; top: -340px; width: 1200px; height: 800px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(46,100,104,.07), transparent 70%);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(24,32,43,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(24,32,43,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, #000 20%, transparent 72%);
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-sm { padding: clamp(44px, 6vw, 80px) 0; }
.section > .container { position: relative; z-index: 1; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 18px; }
.section-head.split-head { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.section-head.split-head .lead { margin-top: 0; }

.light { background: var(--bg-2); border-top: 1px solid var(--line); }
.light + .light { border-top: 0; }
.light .lead { color: var(--ink-2); }
.light .muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(112px, 12vw, 148px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font-size: .84rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s; }
.pill:hover { border-color: var(--line-2); }
.pill svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.hero .display { font-size: clamp(2.4rem, 4.6vw, 4rem); margin: 0 0 22px; }
html[lang="ja"] .hero .display { font-size: clamp(2rem, 3.7vw, 3.25rem); }
.hero .lead { max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }
.hero-trust { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: 34em; font-size: .86rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Hero dashboard preview ---------- */
.hero-visual { position: relative; padding: 34px 0 34px; }
.dash { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .78rem; box-shadow: 0 40px 90px -40px rgba(24,32,43,.35), 0 0 0 6px rgba(24,32,43,.03); }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dash-top .logo svg { width: 18px; height: 18px; }
.dash-top .logo-word { font-size: 1rem; }
.dash-top b { padding-left: 12px; border-left: 1px solid var(--line-2); font-size: .8rem; }
.dash-top .chip { font-family: var(--mono); font-size: .66rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.dash-body { display: grid; gap: 12px; padding: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dk { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.dk .l { font-size: .68rem; font-weight: 600; color: var(--muted); }
.dk .v { margin-top: 2px; font-family: var(--mono); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.dk .v small { font-size: .62em; color: var(--muted); }
.dk .d { font-family: var(--mono); font-size: .64rem; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.dcard { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dcard-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .75rem; font-weight: 700; }
.dcard-h > span { font-family: var(--mono); font-size: .64rem; font-weight: 500; color: var(--muted); }
.bars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(0, 6.2em) 1fr auto; gap: 8px; align-items: center; font-size: .7rem; }
.bars .n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.bars .bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.bars li:nth-child(2) i { opacity: .8; } .bars li:nth-child(3) i { opacity: .64; } .bars li:nth-child(4) i { opacity: .5; } .bars li:nth-child(5) i { opacity: .38; }
.bars li:nth-child(6) i { background: #B9B4AA; }
.bars .a { font-family: var(--mono); font-size: .66rem; }
.dcard.ai { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.ai-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.ai-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,100,104,.35); } 50% { box-shadow: 0 0 0 5px rgba(46,100,104,0); } }
.ai-doc { position: relative; overflow: hidden; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ai-doc b { display: block; font-size: .74rem; }
.ai-doc small { color: var(--muted); font-size: .66rem; }
.ai-scan { position: absolute; inset: 0; pointer-events: none; }
.ai-scan i { position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(46,100,104,.12)); border-right: 1px solid var(--accent); animation: sweep 2.8s var(--ease) infinite; }
@keyframes sweep { 0% { left: -40%; } 70%, 100% { left: 100%; } }
.ai-pick { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--accent-line); font-size: .74rem; }
.ai-pick svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.ai-pick .conf { margin-left: auto; white-space: nowrap; }
.ai-why { display: block; margin-top: 8px; font-size: .64rem; color: var(--muted); }
.tx { width: 100%; border-collapse: collapse; font-size: .72rem; }
.tx th { padding: 0 6px 7px; text-align: left; font-size: .64rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.tx td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tx tr:last-child td { border-bottom: 0; }
.tx th:first-child, .tx td:first-child { padding-left: 0; }
.tx th:last-child, .tx td:last-child { padding-right: 0; text-align: right; }
.tx .am { text-align: right; font-family: var(--mono); }
.tx .dt { font-family: var(--mono); color: var(--muted); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: .78rem; line-height: 1.4; animation: floaty 7s ease-in-out infinite; }
.float-card b { display: block; white-space: nowrap; }
.float-card small { color: var(--muted); font-size: .68rem; }
.float-card.fa { right: 28px; top: 0; }
.float-card.fb { left: -28px; bottom: 0; animation-delay: -3.5s; }
.fi { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; }
.fi svg { width: 16px; height: 16px; }
.fi.ok { background: var(--accent-soft); color: var(--accent); }
.fi.warn { background: #F6E9E5; color: var(--neg); }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.up { color: var(--pos); } .down { color: var(--neg); } .warn { color: var(--warn); }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .66rem; font-weight: 700; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); font-family: var(--font); letter-spacing: 0; }
.tag-jade { background: var(--accent-soft); color: var(--accent); }
.tag-coral { background: #F6E9E5; color: var(--neg); }
.tag-amber { background: #F5EEDF; color: var(--warn); }
.tag-violet { background: #ECEEF5; color: var(--slate); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .87rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.marquee span svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 32px; border-top: 1px dashed var(--line-2); }
.flow-step { position: relative; text-align: center; padding: 0 6px; }
.flow-node { position: relative; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 8px var(--bg); }
.flow-node svg { width: 24px; height: 24px; color: var(--accent); }
.flow-node em { position: absolute; top: -8px; right: -10px; font-style: normal; font-family: var(--mono); font-size: .62rem; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; }
.flow-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.flow-step p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; grid-column: span 2; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.section[id] { scroll-margin-top: 72px; }
.tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); font-size: .94rem; }
.tile .viz { margin-top: auto; padding-top: 24px; }
.tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); flex-shrink: 0; }
.tile-ic svg { width: 20px; height: 20px; }
.tile-ic.coral { background: #F6E9E5; color: var(--neg); border-color: #EBD4CD; }
.tile-ic.violet { background: #ECEEF5; color: var(--slate); border-color: #D9DDEA; }
.tile-ic.amber { background: #F5EEDF; color: var(--warn); border-color: #E8DCC2; }

.scan { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: stretch; }
.paper-doc { position: relative; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); padding: 12px 10px; overflow: hidden; min-height: 150px; }
.paper-doc i { display: block; height: 5px; border-radius: 3px; background: #E2DED6; margin-bottom: 8px; width: 65%; }
.paper-doc i:nth-child(1) { width: 50%; background: #B9B4AA; height: 7px; margin-bottom: 14px; }
.paper-doc i:nth-child(odd) { width: 85%; }
.paper-doc::after { content: ""; position: absolute; left: 0; right: 0; height: 30px; top: -30px; background: linear-gradient(180deg, transparent, rgba(46,100,104,.14)); border-bottom: 1px solid var(--accent); animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 0% { top: -30px; } 75%, 100% { top: 100%; } }
.lines { display: grid; gap: 6px; font-size: .76rem; align-content: start; }
.lines div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.lines .mono { font-size: .72rem; }
.conf { font-family: var(--mono); font-size: .64rem; color: var(--accent); }
.hist { display: grid; gap: 6px; font-size: .76rem; }
.hist div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; }
.hist div.pick { background: var(--accent-soft); border-color: var(--accent-line); }
.dup { display: grid; gap: 8px; }
.dup-card { padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .76rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dup-card.hit { border-color: #E3C6BD; background: #FBF4F2; }
.dup-card small { display: block; color: var(--muted); font-size: .66rem; }
.match { display: grid; gap: 8px; }
.match-row { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 6px; align-items: center; font-size: .72rem; }
.match-row > div { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.match-row small { display: block; color: var(--muted); font-size: .62rem; }
.match-row .lk { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--accent); }
.match-row .lk svg { width: 15px; height: 15px; }
.fc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-list { display: grid; gap: 8px; font-size: .84rem; }
.sec-list div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.sec-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- Statement ---------- */
.statement { font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.18; max-width: 22ch; margin: 0; }
html[lang="ja"] .statement { letter-spacing: 0; line-height: 1.55; max-width: 22em; font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 700; }
.statement .dim { color: #A29E96; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--line-2); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-2); }
.fact .v { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.fact .v small { font-size: .42em; font-weight: 700; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.fact .l { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs-nav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; flex-wrap: wrap; }
.tabs-nav button { border: 0; background: transparent; padding: 9px 20px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; }
.tabs-nav button:hover { color: var(--ink); }
.tabs-nav button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tp-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: 32px; }
.tab-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.tab-panel p { color: var(--ink-2); margin: 0; }
.tp-head .ticks { gap: 10px; font-size: .94rem; }

/* documents -> AI -> one table */
.xform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .9fr) auto minmax(0, 1.35fr); gap: 18px; align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.xf-step { min-width: 0; }
.xf-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .82rem; font-weight: 700; }
.xf-label em { font-style: normal; font-family: var(--mono); font-size: .62rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--ink); color: #fff; }
.xf-arrow { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.xf-arrow svg { width: 16px; height: 16px; }
.xf-docs { display: grid; gap: 10px; }
.mdoc { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .74rem; box-shadow: var(--shadow-sm); }
.mdoc:nth-child(1) { transform: rotate(-1deg); }
.mdoc:nth-child(2) { transform: translateX(8px) rotate(.8deg); }
.mdoc:nth-child(3) { transform: rotate(-.4deg); }
.mdoc-h { display: flex; align-items: center; gap: 8px; }
.mdoc-h b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mdoc-h .tag { font-size: .6rem; background: var(--surface); border: 1px solid var(--line); }
.mdoc small { display: block; margin: 2px 0 8px; font-size: .66rem; color: var(--muted); }
.mdoc-lines { display: grid; gap: 4px; }
.mdoc-lines i { display: block; height: 4px; border-radius: 2px; background: #E2DED6; }
.mdoc.table .mdoc-lines { grid-template-columns: 2fr 1fr 1fr; gap: 4px 6px; }
.mdoc.table .mdoc-lines i:nth-child(-n+3) { background: #C9C4BA; }
.mdoc.fax .mdoc-lines i { background: repeating-linear-gradient(90deg, #D3CEC4 0 3px, transparent 3px 5px); }
.mdoc.fax .mdoc-lines i:nth-child(even) { width: 72%; }
.mdoc.mail .mdoc-lines i:first-child { width: 45%; background: #B9B4AA; }
.mdoc.mail .mdoc-lines i:nth-child(3) { width: 82%; }
.mdoc.mail .mdoc-lines i:last-child { width: 58%; }
.mdoc.receipt .mdoc-lines { justify-items: center; }
.mdoc.receipt .mdoc-lines i { width: 55%; }
.mdoc.receipt .mdoc-lines i:last-child { width: 32%; background: #B9B4AA; }
.xf-ai { padding: 16px; border-radius: 12px; border: 1px solid var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 85%); }
.xf-ai-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .82rem; color: var(--accent); }
.xf-ai-h svg { width: 16px; height: 16px; }
.xf-ai ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .8rem; }
.xf-ai li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.xf-ai li svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
.xf-progress { display: block; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.xf-progress i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--accent); animation: load 2.4s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.xform .sheet { padding: 18px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.sheet { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px; color: var(--ink); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.sheet th { text-align: left; color: var(--muted); font-weight: 600; font-size: .72rem; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.sheet td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td:last-child, .sheet th:last-child { text-align: right; font-family: var(--mono); }

/* ---------- Founder ---------- */
.founder-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.founder-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: radial-gradient(100% 70% at 50% 100%, rgba(127,168,163,.35), transparent 65%), linear-gradient(180deg, var(--navy-2), var(--navy)); }
.founder-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.founder-visual .mark-bg { position: absolute; right: -38%; top: 2%; width: 74%; height: auto; opacity: .1; }
.founder-visual .mark-bg rect { display: none; }
.founder-visual img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 93%; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.founder-badge { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: rgba(20,32,48,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--navy-line); color: #fff; }
.founder-badge b { display: block; font-size: 1rem; color: #fff; }
.founder-badge span { font-size: .8rem; color: var(--on-navy-2); }
.founder-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.quote { font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; margin: 0 0 26px; }
html[lang="ja"] .quote { letter-spacing: 0; line-height: 1.75; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; height: 32px; color: var(--accent); font-family: Georgia, serif; }
.sig { display: flex; align-items: center; gap: 14px; }
.sig .n { font-weight: 800; font-size: 1.05rem; }
.sig .r { font-size: .85rem; color: var(--muted); }
.sig-line { width: 36px; height: 1px; background: var(--ink); }
.prose p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Plans ---------- */
.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; }
.billing button { border: 0; background: transparent; padding: 9px 22px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s; }
.billing button.active { background: var(--ink); color: #fff; }
.billing .save { margin-left: 8px; font-size: .7rem; color: var(--accent); font-family: var(--mono); }
.billing button.active .save { color: #BFD6D3; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan.hot { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: .64rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; letter-spacing: .06em; }
.plan-name { font-size: 1.2rem; font-weight: 800; display: flex; align-items: baseline; gap: 10px; }
.plan-name small { font-family: var(--mono); font-size: .66rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.plan-desc { color: var(--muted); font-size: .9rem; margin: 8px 0 24px; min-height: 3.1em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price .per { color: var(--muted); font-size: .86rem; }
.price-note { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin: 10px 0 24px; min-height: 1.3em; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.limits div { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.limits b { display: block; font-size: 1.05rem; font-weight: 800; }
.limits span { font-size: .72rem; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; font-size: .9rem; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .92rem; color: var(--ink); }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 800; font-size: 1rem; }
.compare tr.group td { background: var(--surface-2); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare .yes { color: var(--accent); font-weight: 800; }
.compare .no { color: #BDB8AE; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318202B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- CTA (the one dark band) ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px); border-radius: var(--r-xl); color: var(--on-navy); background: radial-gradient(70% 110% at 50% 0%, rgba(127,168,163,.2), transparent 60%), var(--navy); }
.cta .grid-bg { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta .h2 { max-width: 18ch; margin: 0 auto 18px; color: #fff; }
html[lang="ja"] .cta .h2 { max-width: 20em; }
.cta .lead { margin: 0 auto 34px; color: var(--on-navy-2); }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #ECEAE4; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,.55); }
.cta-mark { width: 52px; height: 52px; margin: 0 auto 24px; color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(130px, 15vw, 176px) 0 clamp(52px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .display { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 22px; max-width: 18ch; }
html[lang="ja"] .page-hero .display { font-size: clamp(1.9rem, 4.2vw, 3.2rem); max-width: 18em; }
.page-features .page-hero, .page-about .page-hero, .page-pricing .page-hero { background: var(--bg) url("../img/hero-docs-bg.webp") right center / cover no-repeat; }
.page-pricing .page-hero { background-image: radial-gradient(ellipse 42% 75% at 50% 55%, rgba(251,250,248,.9), rgba(251,250,248,0) 75%), url("../img/hero-docs-bg.webp"); }
.page-features .page-hero :is(.grid-bg, .glow-bg), .page-about .page-hero :is(.grid-bg, .glow-bg), .page-pricing .page-hero :is(.grid-bg, .glow-bg) { display: none; }
.breadcrumb { display: flex; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Feature detail ---------- */
.feat { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 88px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat.flip > :first-child { order: 2; }
.feat .idx { font-family: var(--mono); font-size: .74rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 16px; display: block; }
.feat h2 { margin-bottom: 18px; }
.feat .ticks { margin-top: 26px; color: var(--ink-2); }
.panel { position: relative; border-radius: var(--r-lg); padding: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; }
.row .l { display: flex; flex-direction: column; min-width: 0; }
.row .l small { color: var(--muted); font-size: .72rem; }
.row .mono { font-size: .82rem; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-family: var(--mono); font-size: .7rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.panel table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.panel th { text-align: left; font-weight: 600; color: var(--muted); font-size: .7rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.panel td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.panel tr:last-child td { border-bottom: 0; }
.panel td:last-child, .panel th:last-child { text-align: right; font-family: var(--mono); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value .k { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: 1.4rem; margin-bottom: 22px; }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); font-size: .94rem; }

.company-table { width: 100%; border-collapse: collapse; color: var(--ink); }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.company-table th { width: 32%; padding-right: 20px; color: var(--muted); font-weight: 600; }
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--line-2); }
.company-table a { color: var(--accent); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card .tile-ic { margin: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.contact-card a { color: var(--accent); font-weight: 600; font-family: var(--mono); font-size: .84rem; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form > p { color: var(--muted); margin: 0 0 26px; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 7px; }
.field .req { margin-left: 6px; font-family: var(--mono); font-size: .62rem; color: var(--accent); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(46,100,104,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 20px; }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; }
.form-status.show { display: block; }

/* ---------- Legal (reading mode) ---------- */
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 110px; font-size: .85rem; }
.toc h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); max-height: calc(100vh - 170px); overflow-y: auto; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.5; text-decoration: none !important; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.legal { max-width: 780px; font-size: .97rem; color: var(--ink-2); }
.legal .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 20px; margin-bottom: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.legal .meta b { color: var(--ink); }
.legal h2 { font-size: 1.3rem; color: var(--ink); margin: 56px 0 16px; scroll-margin-top: 110px; letter-spacing: -0.01em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.02rem; color: var(--ink); margin: 26px 0 10px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }
.is-doc main > .section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); }
.legal th, .legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); color: var(--ink); }
.legal .callout { padding: 16px 20px; margin: 0 0 20px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); font-weight: 600; font-size: .93rem; }
.legal .addr { padding: 18px 22px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.legal-table-wrap { overflow-x: auto; }
.tbd { background: #F5EEDF; color: #6E5420; padding: 1px 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 84px 0 32px; background: var(--navy); color: var(--on-navy-2); font-size: .9rem; }
.site-footer .logo { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-tag { margin: 18px 0 22px; color: var(--on-navy-2); max-width: 30em; }
.footer-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7D8796; margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid var(--navy-line); font-size: .8rem; color: #7D8796; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
.footer-word { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.06em; font-size: clamp(5rem, 22vw, 19rem); line-height: .8; margin: 50px 0 -0.14em; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--on-navy-2); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #7FA8A3; box-shadow: 0 0 0 4px rgba(127,168,163,.15); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .07s; } .js .reveal.d2 { transition-delay: .14s; } .js .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; margin: 0 auto; text-align: center; }
  .hero .lead, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-visual { max-width: 680px; width: 100%; margin: 0 auto; }
  .float-card.fa { right: 12px; }
  .float-card.fb { left: -8px; }
  .nav-links, .nav-right .btn { display: none; }
  .nav > nav { display: none; }
  .nav { display: flex; }
  .nav-right { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .flow::before { display: none; }
}
@media (max-width: 960px) {
  .page-features .page-hero::before, .page-about .page-hero::before, .page-pricing .page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(251,250,248,.72); }
  .xform { grid-template-columns: 1fr; }
  .xf-arrow { justify-self: center; margin: 0; transform: rotate(90deg); }
  .xf-docs { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.w3, .tile.w4 { grid-column: span 2; }
  .feat, .founder-wrap, .contact-grid, .tp-head, .section-head.split-head { grid-template-columns: 1fr; }
  .feat.flip > :first-child { order: 0; }
  .plans, .cards, .values { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact { padding-bottom: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
  .toc ol { max-height: none; }
  .founder-visual { max-width: 480px; width: 100%; }
}
@media (max-width: 680px) {
  .xf-docs { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpis .dk:first-child { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: 1fr; }
  .tx th:nth-child(2), .tx td:nth-child(2) { display: none; }
  .float-card.fa { display: none; }
  .float-card.fb { left: 8px; }
  .hero-visual { padding-top: 0; }
  .nav { height: 58px; }
  .lang-btn { min-width: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .tile { padding: 22px; }
  .scan { grid-template-columns: 84px 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .logo-tag { display: none; }
  .lang-btn .label-long { display: none; }
  .company-table th { width: 38%; }
  .fact .v { font-size: 1.8rem; }
}
