/* KONAI v32 — deep cross-site consistency authority.
   One spacing/type/component contract; dense content may grow rather than shrink/overlap. */
:root{
  --k-page-x:clamp(26px,2.65vw,42px);
  --k-header-gap:26px;
  --k-section-gap:30px;
  --k-section-y:clamp(38px,4.8vh,56px);
  --k-section-head-gap:clamp(24px,3vh,34px);
  --k-grid-gap:clamp(18px,1.75vw,26px);
  --k-card-gap:16px;
  --k-card-pad:clamp(20px,1.7vw,27px);
  --k-panel-pad:clamp(24px,2vw,32px);
  --k-fs-nav:clamp(.84rem,.09vw + .82rem,.91rem);
  --k-fs-body:clamp(.90rem,.10vw + .88rem,.98rem);
  --k-fs-small:clamp(.82rem,.09vw + .80rem,.89rem);
  --k-fs-micro:clamp(.72rem,.08vw + .70rem,.79rem);
  --k-text-main:#edf4fb;
  --k-text-body:#ced9e5;
  --k-text-muted:#aebfd0;
  --k-text-soft:#94a9bd;
}

/* ---------- universal spacing / sizing contract ---------- */
.lustro-inspired main{gap:var(--k-section-gap)!important;padding-top:var(--k-header-gap)!important}
.lustro-inspired main>section{
  height:auto!important;
  min-height:calc(100svh - var(--v27-header-h,72px) - var(--k-header-gap))!important;
  max-height:none!important;
  overflow:visible!important;
  padding-top:var(--k-section-y)!important;
  padding-bottom:var(--k-section-y)!important;
}
.lustro-inspired main>section>.v27-section-inner{height:auto!important;min-height:0!important;max-height:none!important;zoom:1!important;width:100%!important;padding-top:0!important}
.lustro-inspired main>section+section::before{top:calc(-1 * var(--k-section-gap) / 2)!important;opacity:.85!important}
.lustro-inspired main>section :where(.container,.narrow){max-width:var(--v27-safe-max, 100%)!important}

/* Prevent legacy fit modes from compressing typography/cards. */
.lustro-inspired main>section.v27-tight,
.lustro-inspired main>section.v26-tight{padding-top:var(--k-section-y)!important;padding-bottom:var(--k-section-y)!important}

/* ---------- section heading rail: same size everywhere ---------- */
.lustro-inspired .section-heading{
  grid-template-columns:minmax(126px,.20fr) minmax(0,1fr)!important;
  gap:clamp(24px,3.2vw,48px)!important;
  align-items:start!important;
  margin-bottom:var(--k-section-head-gap)!important;
}
.lustro-inspired .section-index{
  font-size:clamp(.75rem,.08vw + .73rem,.81rem)!important;
  line-height:1.35!important;
  letter-spacing:.12em!important;
  font-weight:800!important;
}
.lustro-inspired .section-note{
  margin-top:8px!important;
  font-family:var(--k-font-body)!important;
  font-size:clamp(.84rem,.08vw + .82rem,.90rem)!important;
  line-height:1.45!important;
  font-weight:600!important;
  letter-spacing:.01em!important;
  color:var(--k-text-muted)!important;
}
.lustro-inspired .section-heading h2{margin:0!important;max-width:980px!important}

/* ---------- header / subpage top rhythm ---------- */
.lustro-inspired .site-header,.lustro-inspired .header-inner{min-height:74px!important}
.lustro-inspired .desktop-nav>a,.lustro-inspired .desktop-nav summary{font-size:var(--k-fs-nav)!important;padding:12px 15px!important}
.lustro-inspired .header-actions .button{font-size:var(--k-fs-nav)!important}
.lustro-inspired .audience-hero{padding-top:clamp(54px,7vh,78px)!important}
.lustro-inspired .audience-hero-layout{align-items:center!important}

/* ---------- global readability: muted text on navy ---------- */
.lustro-inspired :where(.section-navy,.audience-hero,.bridge-home,.site-footer) :where(p,li,.caption,.section-note){color:var(--k-text-body)!important}
.lustro-inspired :where(.history-stops,.history-notes,.history-mode span,.hero-readout small,.visual-toolbar,.risk-hint,.result-line,.law-note,.capability-count){color:var(--k-text-muted)!important}

/* ---------- home permission gap ---------- */
.lustro-inspired #why .problem-intro{align-items:stretch!important}
.lustro-inspired #why .problem-visual{display:flex!important;align-items:center!important;justify-content:center!important}
.lustro-inspired #why .problem-visual svg{display:block!important;width:100%!important;height:auto!important;max-height:390px!important}
.lustro-inspired #why .problem-copy>h3{font-size:clamp(1.30rem,.72vw + 1.13rem,1.66rem)!important}
.lustro-inspired #why .perspective-card h4{font-size:clamp(1rem,.23vw + .95rem,1.11rem)!important;color:#f7fbff!important}
.lustro-inspired #why .perspective-card p{font-size:clamp(.84rem,.08vw + .82rem,.90rem)!important;color:#cdd8e4!important}

/* ---------- Trust Layer: modest text lift only ---------- */
.lustro-inspired #protocol .trust-step-detail{font-size:clamp(.86rem,.08vw + .84rem,.92rem)!important;color:#d2dde8!important}
.lustro-inspired #protocol .trust-step small,.lustro-inspired #protocol .trust-status span,.lustro-inspired #protocol .trust-endpoint{font-size:clamp(.73rem,.06vw + .72rem,.79rem)!important}
.lustro-inspired #protocol .trust-status b[data-trust-state]{font-size:clamp(.85rem,.07vw + .83rem,.91rem)!important}

/* ---------- audience gateway dot copy ---------- */
.lustro-inspired #audiences .gateway-card footer span{font-size:clamp(.76rem,.07vw + .74rem,.82rem)!important;color:#d0dbe6!important}

/* ---------- Bridge: one full-width diagram + separated explanatory row ---------- */
.lustro-inspired #bridge{min-height:calc(100svh - var(--v27-header-h,72px))!important}
.lustro-inspired #bridge>.v27-section-inner{display:block!important;height:auto!important}
.lustro-inspired #bridge .bridge-shell{display:flex!important;flex-direction:column!important;gap:22px!important;height:auto!important}
.lustro-inspired #bridge .bridge-core{
  min-height:390px!important;
  height:auto!important;
  padding:clamp(28px,3vw,42px)!important;
  overflow:hidden!important;
}
.lustro-inspired #bridge .bridge-lattice{
  width:min(1120px,100%)!important;
  min-height:320px!important;
  height:320px!important;
  grid-template-columns:minmax(210px,1fr) minmax(240px,.82fr) minmax(210px,1fr)!important;
  gap:clamp(34px,5vw,82px)!important;
  align-items:center!important;
}
.lustro-inspired #bridge .bridge-lattice__side{gap:12px!important;align-self:center!important}
.lustro-inspired #bridge .bridge-lattice__side>small{font-size:.75rem!important;color:#aebfd0!important;margin-bottom:2px!important}
.lustro-inspired #bridge .bridge-lattice__side>span{min-height:44px!important;font-size:.86rem!important;padding:10px 14px!important}
.lustro-inspired #bridge .bridge-lattice__hub{min-height:230px!important;padding:22px!important}
.lustro-inspired #bridge .bridge-lattice__hub b{font-size:1rem!important}
.lustro-inspired #bridge .bridge-lattice__hub small{font-size:.75rem!important;color:#b9c8d6!important;text-align:center!important}
.lustro-inspired #bridge .bridge-lattice__tokens span{font-size:.79rem!important}
.lustro-inspired #bridge .bridge-parties{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
.lustro-inspired #bridge .bridge-pane{
  min-height:220px!important;
  padding:24px!important;
  grid-template-columns:minmax(0,1fr) minmax(230px,.78fr)!important;
  gap:18px 22px!important;
  align-items:center!important;
}
.lustro-inspired #bridge .bridge-pane h3{font-size:clamp(1.12rem,.3vw + 1.05rem,1.28rem)!important;line-height:1.22!important}
.lustro-inspired #bridge .bridge-pane>p:not(.micro-label){font-size:var(--k-fs-small)!important;line-height:1.52!important;color:#cbd7e3!important}
.lustro-inspired #bridge .persona-chip-static{min-height:46px!important;font-size:.78rem!important}

/* ---------- fingerprint/history contrast ---------- */
.lustro-inspired #story .history-stops{font-size:.76rem!important;color:#9fb4c8!important}
.lustro-inspired #story .history-notes>span{font-size:.84rem!important;color:#aebfd0!important;letter-spacing:.05em!important}
.lustro-inspired #story .history-notes>b{font-size:.76rem!important;color:#e9f1f8!important}
.lustro-inspired #story .history-mode span{color:#f0d45b!important}
.lustro-inspired #story .history-mode b{color:#f2f7fb!important}

/* ---------- footer: no wrapping CTA, moved left into grid ---------- */
.lustro-inspired .footer-main{grid-template-columns:minmax(180px,.65fr) minmax(250px,.85fr) minmax(390px,1.25fr)!important;gap:clamp(28px,4vw,58px)!important;align-items:start!important}
.lustro-inspired .footer-links{grid-template-columns:minmax(170px,1fr) minmax(170px,1fr)!important;column-gap:28px!important;row-gap:16px!important;justify-self:stretch!important}
.lustro-inspired .footer-links :where(a,.text-button){font-size:clamp(.86rem,.08vw + .84rem,.92rem)!important;line-height:1.35!important}
.lustro-inspired .footer-links .text-button{white-space:nowrap!important;justify-self:start!important;text-align:left!important;font-weight:800!important;width:auto!important;max-width:100%!important}

/* ---------- audience hero early-access banner tag ---------- */
.lustro-inspired .audience-hero-note{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:16px 20px!important;
}
.lustro-inspired .audience-hero-note>span:first-child{font-size:var(--k-fs-small)!important;line-height:1.45!important;color:#cdd8e4!important}
.lustro-inspired .audience-hero-note .early-access-tag{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:32px!important;padding:7px 12px!important;border-radius:999px!important;
  border:1px solid rgba(255,210,31,.48)!important;background:#ffd447!important;color:#07111d!important;
  font-family:var(--k-font-mono)!important;font-size:.72rem!important;font-weight:900!important;letter-spacing:.07em!important;white-space:nowrap!important;
}

/* ---------- infrastructure cards: readable details ---------- */
.lustro-inspired .solution-head>p{font-size:var(--k-fs-body)!important;color:#c5d2de!important}
.lustro-inspired .solution-column header>span{font-size:.73rem!important}
.lustro-inspired .solution-column .capability-count{font-size:.75rem!important;color:#9fb4c8!important}
.lustro-inspired .solution-column li{font-size:clamp(.84rem,.08vw + .82rem,.90rem)!important;line-height:1.5!important;color:#cbd7e3!important;padding:9px 0 9px 18px!important}

/* ---------- HOW KONAI WORKS: no decorative stage graphic ---------- */
.lustro-inspired .workflow-shell{display:block!important}
.lustro-inspired .workflow-stage{display:none!important}
.lustro-inspired .workflow-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.lustro-inspired .workflow-step{height:auto!important}
.lustro-inspired .workflow-step>.progressive-card{height:100%!important;min-height:250px!important;padding:24px!important}
.lustro-inspired .workflow-step h3{font-size:clamp(1.02rem,.18vw + .98rem,1.12rem)!important;line-height:1.25!important}
.lustro-inspired .workflow-step .result-line{font-size:.82rem!important;line-height:1.4!important;color:#9fdff2!important}
.lustro-inspired .workflow-step p{font-size:.85rem!important;line-height:1.5!important;color:#c9d5e1!important}

/* ---------- legal/reference cards ---------- */
.lustro-inspired .law-grid{gap:12px!important;margin-top:18px!important}
.lustro-inspired .law-grid>div{
  min-height:74px!important;padding:14px 16px!important;border:1px solid rgba(111,185,229,.28)!important;
  background:linear-gradient(180deg,rgba(15,35,57,.88),rgba(8,21,37,.92))!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;
}
.lustro-inspired .law-grid>div small{font-size:.68rem!important;color:#78d9f5!important;letter-spacing:.11em!important}
.lustro-inspired .law-grid>div b{font-size:.88rem!important;line-height:1.3!important;color:#f1f6fb!important;text-align:left!important}
.lustro-inspired .law-note{font-size:.80rem!important;color:#9fb2c5!important;margin-top:12px!important}

/* ---------- founding benefits: non-overlapping, homepage-consistent cards ---------- */
.lustro-inspired .founding-grid {
  --founding-columns: 3;
  --founding-gap: 16px;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch !important;
  gap: var(--founding-gap) !important;
}
.lustro-inspired .founding-grid > .founding-card {
  flex: 0 0 calc((100% - (var(--founding-columns) - 1) * var(--founding-gap)) / var(--founding-columns));
}
.lustro-inspired .founding-card{
  min-height:250px!important;height:auto!important;padding:24px!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;
  overflow:hidden!important;
}
.lustro-inspired .founding-card>span{flex:0 0 auto!important;margin-bottom:14px!important}
.lustro-inspired .founding-card h3{font-size:clamp(1.03rem,.18vw + .99rem,1.14rem)!important;line-height:1.25!important;margin:0 0 8px!important}
.lustro-inspired .founding-card em{font-size:.83rem!important;line-height:1.4!important;color:#e3c74d!important;margin:0 0 12px!important;display:block!important}
.lustro-inspired .founding-card .progressive-content{height:auto!important;max-height:none!important;opacity:1!important;overflow:visible!important;margin-top:auto!important}
.lustro-inspired .founding-card p{font-size:.84rem!important;line-height:1.5!important;color:#cbd6e1!important;margin:0!important}
.lustro-inspired .founding-cta{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:22px!important;align-items:center!important;padding:20px 22px!important;margin-top:18px!important}
.lustro-inspired .founding-cta h3{font-size:1.05rem!important}
.lustro-inspired .founding-cta p{font-size:.84rem!important;line-height:1.45!important}

/* ---------- early-access form: fully theme-consistent controls/states ---------- */
.lustro-inspired .access-dialog{
  width:min(760px,calc(100% - 32px))!important;max-height:calc(100svh - 28px)!important;
  background:linear-gradient(180deg,#081728,#06111f)!important;border:1px solid rgba(106,197,238,.28)!important;border-radius:24px!important;
  color:#edf5fc!important;box-shadow:0 38px 120px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.02) inset!important;
}
.lustro-inspired .dialog-shell{padding:30px 34px 34px!important}
.lustro-inspired .dialog-brand{font-family:var(--k-font-display)!important;font-size:.92rem!important;color:#f2f7fc!important}
.lustro-inspired .dialog-close{background:#f5f8fb!important;border:0!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important}
.lustro-inspired .dialog-close span{background:#0a1a2c!important}
.lustro-inspired .dialog-progress{height:4px!important;background:#243548!important;margin:22px 0 30px!important}
.lustro-inspired .dialog-progress i{background:linear-gradient(90deg,#55d8ff,#8b78ff,#ffd447)!important}
.lustro-inspired .form-step .eyebrow{font-size:.72rem!important;color:#ffd447!important;letter-spacing:.11em!important}
.lustro-inspired .form-step h2{font-size:clamp(2rem,3.4vw,2.8rem)!important;line-height:1.07!important;letter-spacing:-.035em!important;margin:14px 0 12px!important}
.lustro-inspired .form-step>p:not(.eyebrow):not(.form-status){font-size:.91rem!important;line-height:1.5!important;color:#bfd0df!important;margin-bottom:24px!important}
.lustro-inspired .form-step legend,.lustro-inspired .field>span{font-size:.78rem!important;color:#dbe6f0!important;letter-spacing:.05em!important}
.lustro-inspired .audience-options{gap:12px!important}
.lustro-inspired .audience-options label>span{
  min-height:110px!important;padding:18px!important;background:#0d1d31!important;border:1px solid #30475e!important;border-radius:14px!important;color:#eef5fb!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.lustro-inspired .audience-options label:hover>span{border-color:#69dafa!important;background:#102740!important;transform:translateY(-1px)!important}
.lustro-inspired .audience-options label input:checked+span{border-color:#63dcff!important;background:linear-gradient(180deg,rgba(48,126,160,.30),rgba(16,42,66,.96))!important;box-shadow:0 0 0 2px rgba(99,220,255,.14) inset!important}
.lustro-inspired .audience-options b{font-size:.98rem!important}
.lustro-inspired .audience-options small{font-size:.76rem!important;color:#b5c7d8!important;line-height:1.45!important}
.lustro-inspired .field input,.lustro-inspired .field select,.lustro-inspired .field textarea{
  background:#0b1c30!important;border:1px solid #36516b!important;color:#f2f7fb!important;border-radius:11px!important;font-size:.90rem!important;
}
.lustro-inspired .field input:hover,.lustro-inspired .field select:hover,.lustro-inspired .field textarea:hover{border-color:#4f7595!important}
.lustro-inspired .field input:focus,.lustro-inspired .field select:focus,.lustro-inspired .field textarea:focus{border-color:#63dcff!important;box-shadow:0 0 0 3px rgba(99,220,255,.12)!important;outline:0!important}
.lustro-inspired .field select option,.lustro-inspired .field select optgroup{background:#0b1c30!important;color:#eef5fb!important}
.lustro-inspired .field>span small{color:#90a6ba!important}
.lustro-inspired .consent-field{font-size:.80rem!important;color:#c6d4e0!important;align-items:center!important}
.lustro-inspired .consent-field input{width:18px!important;height:18px!important;accent-color:#63dcff!important}
.lustro-inspired .field-error{font-size:.72rem!important;color:#ffafa4!important}
.lustro-inspired .form-actions .button,.lustro-inspired .button--full{min-height:48px!important}
.lustro-inspired .access-dialog .button--ghost{border-color:#47627b!important;background:#0d2036!important;color:#eaf2f8!important}
.lustro-inspired .access-dialog .button--ghost:hover{border-color:#63dcff!important;background:#12304c!important}
.lustro-inspired .access-dialog .button--gold{background:#ffd447!important;color:#07111d!important;border-color:#ffd447!important;font-weight:800!important}
.lustro-inspired .access-dialog .button--gold:hover{background:#ffe178!important;border-color:#ffe178!important}

@media (max-width:1100px){
  .lustro-inspired .workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lustro-inspired .founding-grid{--founding-columns:2}
  .lustro-inspired .footer-main{grid-template-columns:180px 1fr!important}.lustro-inspired .footer-links{grid-column:2!important}
}
@media (max-width:860px){
  :root{--k-page-x:18px;--k-header-gap:16px;--k-section-gap:20px;--k-section-y:30px}
  .lustro-inspired main>section{min-height:0!important}
  .lustro-inspired .audience-hero{padding-top:34px!important}
  .lustro-inspired .section-heading{grid-template-columns:1fr!important;gap:10px!important}
  .lustro-inspired #bridge .bridge-lattice{height:auto!important;min-height:0!important;grid-template-columns:1fr!important;gap:16px!important}
  .lustro-inspired #bridge .bridge-core{min-height:0!important}
  .lustro-inspired #bridge .bridge-parties{grid-template-columns:1fr!important}
  .lustro-inspired #bridge .bridge-pane{grid-template-columns:1fr!important}
  .lustro-inspired #bridge .bridge-pane .persona-chips{grid-column:1!important;grid-row:auto!important}
  .lustro-inspired .workflow-steps{grid-template-columns:1fr!important}
  .lustro-inspired .founding-grid{--founding-columns:1}
  .lustro-inspired .audience-hero-note,.lustro-inspired .founding-cta{grid-template-columns:1fr!important}
  .lustro-inspired .audience-hero-note .early-access-tag{justify-self:start!important}
  .lustro-inspired .footer-main{grid-template-columns:1fr!important}.lustro-inspired .footer-links{grid-column:auto!important;grid-template-columns:1fr!important}
  .lustro-inspired .dialog-shell{padding:24px 20px 26px!important}
}

/* Highlighted state contrast across all chips/tags/switches. */
.lustro-inspired .risk-scene__tags span.is-active,
.lustro-inspired .signal-switch button.is-active,
.lustro-inspired .media-console__tabs button.is-active{
  color:#06111d!important;
  font-weight:900!important;
  text-shadow:none!important;
}
.lustro-inspired .risk-scene__tags span{font-size:.72rem!important;padding:7px 10px!important;color:#b8c9d8!important}
