/* One Koda visual system: warm editorial canvas with piano-black feature surfaces. */

html[data-theme="light"]{
  --bg:#eae6dd;--panel:#f7f4ee;--ink:#141617;--muted:#5f6365;--line:rgba(19,21,22,.14)
}
html[data-theme="light"] body{
  background:radial-gradient(circle at 9% 4%,rgba(255,122,61,.13),transparent 28rem),radial-gradient(circle at 91% 22%,rgba(43,54,61,.08),transparent 33rem),linear-gradient(180deg,#f3f0e9,#e7e3da 72%,#efebe4);
  color:var(--ink)
}
html[data-theme="light"] body:before{opacity:.42;background-image:linear-gradient(rgba(18,20,21,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(18,20,21,.035) 1px,transparent 1px)}
html[data-theme="light"] .nav{
  border-color:rgba(20,22,23,.15);background:linear-gradient(135deg,rgba(253,251,247,.89),rgba(236,232,223,.76));
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 18px 55px rgba(37,31,26,.13);color:#17191a
}
html[data-theme="light"] .navlinks a{color:rgba(20,22,23,.68)}
html[data-theme="light"] .navlinks a:hover,html[data-theme="light"] .navlinks a.active{color:#111314;background:rgba(18,20,21,.065)}
html[data-theme="light"] .nav .brand-mark{background-image:url("koda-bridge-dark.svg")}
html[data-theme="light"] .menu{border-color:rgba(18,20,21,.14);background:rgba(18,20,21,.05);color:#17191a}
html[data-theme="light"] .koda-route{mix-blend-mode:multiply;opacity:.46}

/* Keep the opening cinematic and unmistakably Koda. */
html[data-theme="light"] .home-hero{border-color:rgba(255,255,255,.13);background:#020304;color:#f7f5f0;box-shadow:inset 0 1px rgba(255,255,255,.1),0 38px 92px rgba(30,25,21,.25)}
html[data-theme="light"] .home-hero .lead{color:#aeb3b5}
html[data-theme="light"] .home-hero h1 span{color:rgba(255,255,255,.35)}

html[data-theme="light"] .home-model{background:#f8f5ee;color:#111315;border-top:1px solid rgba(19,21,22,.1);border-bottom:1px solid rgba(19,21,22,.1)}
html[data-theme="light"] .home-model h2{color:#111315}
html[data-theme="light"] .home-model h2 span{color:rgba(17,19,21,.38)}
html[data-theme="light"] .model-intro>p,html[data-theme="light"] .model-step p{color:#5d6163}

html[data-theme="light"] .situation-section,html[data-theme="light"] .deliverables-section{border-color:rgba(19,21,22,.11)}
html[data-theme="light"] .situation-heading>p{color:#626668}
html[data-theme="light"] .section h2 span{color:rgba(17,19,21,.36)}
html[data-theme="light"] .situation-tab{border-color:rgba(19,21,22,.13);background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(237,233,225,.54));color:#151718;box-shadow:0 10px 30px rgba(42,35,29,.045)}
html[data-theme="light"] .situation-tab span,html[data-theme="light"] .situation-tab small{color:#808385}
html[data-theme="light"] .situation-tab:hover,html[data-theme="light"] .situation-tab.active{border-color:rgba(229,89,29,.45);background:linear-gradient(145deg,rgba(255,122,61,.14),rgba(255,255,255,.72));box-shadow:0 14px 34px rgba(84,53,36,.08)}
html[data-theme="light"] .situation-stage,html[data-theme="light"] .deliverable-stage{color:#f6f4ef;border-color:rgba(255,255,255,.12);box-shadow:inset 0 1px rgba(255,255,255,.1),0 34px 72px rgba(37,30,25,.23)}
html[data-theme="light"] .situation-stage h3,html[data-theme="light"] .deliverable-stage strong{color:#f6f4ef}
html[data-theme="light"] .situation-stage p,html[data-theme="light"] .deliverable-stage p{color:#aeb3b5}

html[data-theme="light"] .deliverables-section{background:linear-gradient(180deg,rgba(248,245,238,.72),rgba(233,229,220,.56))}
html[data-theme="light"] .resource-section{border-color:rgba(19,21,22,.11)}
html[data-theme="light"] .resource-feature{background:#fbf8f1;color:#111315;border:1px solid rgba(19,21,22,.11);box-shadow:0 28px 70px rgba(41,34,28,.12)}
html[data-theme="light"] .readiness-orbit:before{background:#fbf8f1}

html[data-theme="light"] .trust-section{border-color:rgba(19,21,22,.13);background:radial-gradient(circle at 50% 50%,rgba(255,122,61,.11),transparent 32rem),#e1ddd4;color:#17191a}
html[data-theme="light"] .home-final{border:0;background:radial-gradient(circle at 84% 50%,rgba(255,122,61,.14),transparent 28rem),#070809;color:#f7f5f0}
html[data-theme="light"] .home-final h2 span{color:rgba(255,255,255,.35)}
html[data-theme="light"] .home-final p{color:#aeb3b5}
html[data-theme="light"] .footer{margin-top:0;border-color:rgba(255,255,255,.1);background:#070809;color:#f7f5f0}
html[data-theme="light"] .footer a,html[data-theme="light"] .footer p{color:#9da3a6}
html[data-theme="light"] .footer .brand{color:#f7f5f0}

/* Inner pages repeat the homepage rhythm: cinematic black opening, ivory content. */
html[data-theme="light"] body:not(.home-page) .hero{
  position:relative;isolation:isolate;display:flex;min-height:clamp(520px,66vh,680px);flex-direction:column;justify-content:center;
  margin-top:clamp(34px,5vw,68px);padding:clamp(72px,9vw,116px) clamp(26px,6vw,76px);overflow:hidden;
  border:1px solid rgba(255,255,255,.13);border-radius:clamp(24px,3vw,36px);color:#f7f5f0;
  background:
    linear-gradient(90deg,rgba(2,3,4,.99) 0%,rgba(2,3,4,.94) 46%,rgba(2,3,4,.62) 68%,rgba(2,3,4,.18) 100%),
    radial-gradient(circle at 72% 58%,rgba(255,122,61,.18),transparent 23rem),
    url("koda-hero-architecture.webp") right center/cover no-repeat;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 38px 92px rgba(30,25,21,.24)
}
html[data-theme="light"] body:not(.home-page) .hero:after{
  content:"";position:absolute;z-index:-1;right:-9%;bottom:14%;width:64%;height:42%;pointer-events:none;
  border-top:1px solid rgba(255,122,61,.62);border-radius:50%;transform:rotate(-5deg);filter:drop-shadow(0 0 11px rgba(255,122,61,.35))
}
html[data-theme="light"] body:not(.home-page) .hero>*{position:relative;z-index:1}
html[data-theme="light"] body:not(.home-page) .hero h1{max-width:880px;color:#f7f5f0;text-wrap:balance}
html[data-theme="light"] body:not(.home-page) .hero h1 span{color:rgba(255,255,255,.38)}
html[data-theme="light"] body:not(.home-page) .hero .lead{max-width:650px;color:#aeb3b5}
html[data-theme="light"] body:not(.home-page) .hero .breadcrumb,html[data-theme="light"] body:not(.home-page) .hero .breadcrumb a,html[data-theme="light"] body:not(.home-page) .hero .insight-meta span{color:#aeb3b5}
html[data-theme="light"] body:not(.home-page) .lead,html[data-theme="light"] body:not(.home-page) .section-head p,html[data-theme="light"] body:not(.home-page) .article p,html[data-theme="light"] body:not(.home-page) .article li{color:#626668}
html[data-theme="light"] body:not(.home-page) .glass,html[data-theme="light"] body:not(.home-page) .card{border-color:rgba(19,21,22,.13);background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(237,233,225,.62));box-shadow:inset 0 1px rgba(255,255,255,.9),0 20px 54px rgba(42,35,29,.08)}
html[data-theme="light"] body:not(.home-page) .product{border-color:rgba(255,255,255,.12);background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.014)),#080a0b;color:#f7f5f0}
html[data-theme="light"] body:not(.home-page) .product p{color:#aeb3b5}
html[data-theme="light"] .field input,html[data-theme="light"] .field textarea,html[data-theme="light"] .field select,html[data-theme="light"] .scanner textarea{border-color:rgba(19,21,22,.15);background:rgba(255,255,255,.62);color:#17191a}
html[data-theme="light"] .field select{color-scheme:light!important}

html[data-theme="light"] body:not(.home-page) .section{border-color:rgba(19,21,22,.1)}
html[data-theme="light"] body:not(.home-page) .eyebrow{color:#df5a21}
html[data-theme="light"] body:not(.home-page) .btn:not(.primary){border-color:rgba(19,21,22,.16);background:rgba(255,255,255,.62);color:#17191a;box-shadow:inset 0 1px rgba(255,255,255,.86)}
html[data-theme="light"] body:not(.home-page) .card:hover,html[data-theme="light"] body:not(.home-page) .resource-card:hover,html[data-theme="light"] body:not(.home-page) .guide-link:hover,html[data-theme="light"] body:not(.home-page) .assessment-question:hover,html[data-theme="light"] body:not(.home-page) .tool-card:hover{box-shadow:inset 0 1px rgba(255,255,255,.9),0 28px 64px rgba(65,43,30,.14)}

/* Solutions: a light editorial frame around piano-black product cards. */
html[data-theme="light"] .clarity-strip p,html[data-theme="light"] .pathway-summary p,html[data-theme="light"] .seo-guides-header p{color:#626668}
html[data-theme="light"] .clarity-strip strong{color:#151718}
html[data-theme="light"] .tab{border-color:rgba(19,21,22,.14);background:rgba(255,255,255,.58);color:#666a6c}
html[data-theme="light"] .tab.active{border-color:#ef6f36;background:linear-gradient(#ff9c6a,#ef6f36);color:#111315}
html[data-theme="light"] .product.glass{border-color:rgba(255,255,255,.13);background:radial-gradient(circle at 80% 10%,rgba(255,122,61,.09),transparent 18rem),linear-gradient(145deg,#121517,#050607);box-shadow:inset 0 1px rgba(255,255,255,.11),0 24px 58px rgba(39,31,25,.2)}
html[data-theme="light"] .product h3,html[data-theme="light"] .product .product-action{color:#f7f5f0}
html[data-theme="light"] .product:hover{box-shadow:inset 0 1px rgba(255,255,255,.18),0 34px 78px rgba(34,27,22,.28)}
html[data-theme="light"] .service-detail.glass{border-color:rgba(255,255,255,.12);background:linear-gradient(150deg,#141718,#060708);color:#f7f5f0;box-shadow:0 32px 80px rgba(40,31,25,.24)}
html[data-theme="light"] .service-detail .eyebrow{color:#ff7a3d}
html[data-theme="light"] .guide-link h3{color:#17191a}
html[data-theme="light"] .guide-main p,html[data-theme="light"] .guide-main li,html[data-theme="light"] .guide-aside p,html[data-theme="light"] .guide-aside li{color:#5e6365}
html[data-theme="light"] .guide-example strong{color:#17191a}
html[data-theme="light"] .related-guides a{border-color:rgba(19,21,22,.14);color:#5f6466;background:rgba(255,255,255,.45)}
html[data-theme="light"] .related-guides a:hover,html[data-theme="light"] .related-guides a:focus-visible{border-color:var(--orange);color:#17191a}

/* Insights: readable paper-like tools with dark feature moments. */
html[data-theme="light"] .resource-intro strong,html[data-theme="light"] .resource-card h2,html[data-theme="light"] .resource-card .card-outcome{color:#17191a}
html[data-theme="light"] .resource-intro p,html[data-theme="light"] .resource-card p{color:#626668}
html[data-theme="light"] .resource-card .card-outcome{border-color:rgba(19,21,22,.13)}
html[data-theme="light"] .featured-tool.glass{border-color:rgba(255,255,255,.12);background:radial-gradient(circle at 78% 30%,rgba(255,122,61,.14),transparent 24rem),#080a0b;color:#f7f5f0;box-shadow:0 32px 78px rgba(42,33,27,.22)}
html[data-theme="light"] .featured-tool p{color:#aeb3b5}
html[data-theme="light"] .resource-nav a{border-color:rgba(19,21,22,.09);color:#656a6c}
html[data-theme="light"] .resource-nav a:hover,html[data-theme="light"] .resource-nav a:focus-visible{color:#17191a}
html[data-theme="light"] .breadcrumb{color:#74797b}
html[data-theme="light"] .breadcrumb a{color:#3f4446}
html[data-theme="light"] .insight-meta span{color:#606567}
html[data-theme="light"] .resource-article.glass{background:#fbf8f2}
html[data-theme="light"] .resource-section{border-color:rgba(19,21,22,.12)}
html[data-theme="light"] .resource-section>p,html[data-theme="light"] .resource-section li{color:#555a5c}
html[data-theme="light"] .quick-answer{border-color:rgba(255,255,255,.12);background:radial-gradient(circle at 0 0,rgba(255,122,61,.18),transparent 45%),#090b0c;color:#f7f5f0}
html[data-theme="light"] .quick-answer p{color:#f1f0eb}
html[data-theme="light"] .tool-card,html[data-theme="light"] .check-row,html[data-theme="light"] .number-step,html[data-theme="light"] .assessment-question{position:relative;isolation:isolate;overflow:hidden;border-color:rgba(19,21,22,.12);background:rgba(255,255,255,.68);color:#17191a}
html[data-theme="light"] .tool-card p,html[data-theme="light"] .number-step p,html[data-theme="light"] .assessment-question p,html[data-theme="light"] .priority-list li{color:#5e6365}
html[data-theme="light"] .check-row,html[data-theme="light"] .assessment-options label{color:#4f5456}
html[data-theme="light"] .assessment-options label:has(input:checked){color:#17191a}
html[data-theme="light"] .decision-table th{color:#17191a;background:rgba(19,21,22,.055)}
html[data-theme="light"] .decision-table td{color:#565b5d}
html[data-theme="light"] .decision-table th,html[data-theme="light"] .decision-table td{border-color:rgba(19,21,22,.1)}
html[data-theme="light"] .example-box strong,html[data-theme="light"] .warning-box strong,html[data-theme="light"] .source-box strong{color:#17191a}
html[data-theme="light"] .example-box p,html[data-theme="light"] .warning-box p,html[data-theme="light"] .source-box p,html[data-theme="light"] .source-box li{color:#565b5d}
html[data-theme="light"] .source-box a{color:#b84316}
html[data-theme="light"] .category-result strong{color:#17191a}

/* Contact and standard content pages. */
html[data-theme="light"] .form.glass{background:#fbf8f2}
html[data-theme="light"] .field label{color:#292c2e}
html[data-theme="light"] .field input:focus,html[data-theme="light"] .field textarea:focus,html[data-theme="light"] .field select:focus{outline:none;border-color:rgba(239,111,54,.62);box-shadow:0 0 0 4px rgba(239,111,54,.1)}
html[data-theme="light"] .field select option{background:#fbf8f2;color:#17191a}
html[data-theme="light"] body:not(.home-page) .article{padding:clamp(28px,5vw,56px);border:1px solid rgba(19,21,22,.11);border-radius:24px;background:#fbf8f2;box-shadow:0 20px 54px rgba(42,35,29,.08)}
html[data-theme="light"] body:not(.home-page) .article h2{color:#17191a}
html[data-theme="light"] body:not(.home-page) .callout{color:#4f5456;background:rgba(255,122,61,.09)}

/* The scanner remains a confident piano-black product on the light canvas. */
html[data-theme="light"] .scanner.glass{border-color:rgba(255,255,255,.12);background:linear-gradient(145deg,#151819,#050607);color:#f7f5f0;box-shadow:0 38px 100px rgba(42,33,27,.25),inset 0 1px rgba(255,255,255,.1)}
html[data-theme="light"] .scanner .field label{color:#f1f0eb}
html[data-theme="light"] .scanner .field input,html[data-theme="light"] .scanner .field select,html[data-theme="light"] .scanner textarea{border-color:rgba(255,255,255,.12);background:#090a0b;color:#f7f5f0}
html[data-theme="light"] .scanner .field select option{background:#111315;color:#f7f5f0}
html[data-theme="light"] .scanner textarea::placeholder{color:rgba(255,255,255,.34)}
html[data-theme="light"] .scanner .processing-note,html[data-theme="light"] .scanner .drop p{color:#9ea3a5}
html[data-theme="light"] .scanner .processing-note a{color:#e6e7e5}
html[data-theme="light"] .scanner .drop{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.025)}
html[data-theme="light"] .scanner .btn:not(.primary){border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#f7f5f0}

@media(max-width:820px){
  html[data-theme="light"] .navlinks{background:rgba(248,245,239,.98);border-color:rgba(18,20,21,.14);box-shadow:0 18px 48px rgba(37,31,26,.16)}
  html[data-theme="light"] body:not(.home-page) .hero{
    min-height:560px;margin-top:28px;padding:72px 26px 66px;
    background:
      linear-gradient(180deg,rgba(2,3,4,.84),rgba(2,3,4,.97) 78%),
      radial-gradient(circle at 75% 28%,rgba(255,122,61,.18),transparent 18rem),
      url("koda-hero-architecture.webp") 66% center/cover no-repeat
  }
  html[data-theme="light"] body:not(.home-page) .hero:after{right:-26%;bottom:12%;width:110%}
}

/* Dark continuity for every inner page.
   This extends the live homepage's piano-black visual language without
   changing page content or turning the site into a flat black sheet. */
html[data-theme="dark"] body:not(.home-page){
  background:
    radial-gradient(circle at 52% 8%,rgba(255,122,61,.09),transparent 31rem),
    linear-gradient(180deg,#050607,#020304 68%,#070809);
  color:#f7f5f0
}
html[data-theme="dark"] body:not(.home-page):before{opacity:.1}

html[data-theme="dark"] body:not(.home-page) .hero{
  position:relative;
  isolation:isolate;
  display:flex;
  min-height:clamp(520px,66vh,680px);
  flex-direction:column;
  justify-content:center;
  margin-top:clamp(34px,5vw,68px);
  padding:clamp(72px,9vw,116px) clamp(26px,6vw,76px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:clamp(24px,3vw,36px);
  color:#f7f5f0;
  background:
    linear-gradient(90deg,rgba(2,3,4,.99) 0%,rgba(2,3,4,.94) 46%,rgba(2,3,4,.62) 68%,rgba(2,3,4,.2) 100%),
    radial-gradient(circle at 72% 58%,rgba(255,122,61,.18),transparent 23rem),
    url("koda-hero-architecture.webp") right center/cover no-repeat;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 38px 92px rgba(0,0,0,.46)
}
html[data-theme="dark"] body:not(.home-page) .hero:after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-9%;
  bottom:14%;
  width:64%;
  height:42%;
  pointer-events:none;
  border-top:1px solid rgba(255,122,61,.62);
  border-radius:50%;
  transform:rotate(-5deg);
  filter:drop-shadow(0 0 11px rgba(255,122,61,.35))
}
html[data-theme="dark"] body:not(.home-page) .hero>*{position:relative;z-index:1}
html[data-theme="dark"] body:not(.home-page) .hero h1{max-width:880px;text-wrap:balance}
html[data-theme="dark"] body:not(.home-page) .hero .lead{max-width:660px;color:#aeb3b5}

html[data-theme="dark"] body:not(.home-page) .section{
  border-color:rgba(255,255,255,.075)
}
html[data-theme="dark"] body:not(.home-page) .glass{
  border-color:rgba(255,255,255,.11);
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.014)),rgba(7,9,11,.78);
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 24px 65px rgba(0,0,0,.34)
}

/* One controlled ivory moment, matching the homepage contrast rhythm. */
html[data-theme="dark"] body .solutions-section .clarity-strip,
html[data-theme="dark"] .insights-hero .resource-intro>div:first-child{
  border-color:rgba(16,18,20,.12);
  background:#eee9df;
  color:#101214;
  box-shadow:0 24px 65px rgba(0,0,0,.28)
}
html[data-theme="dark"] body .solutions-section .clarity-strip p,
html[data-theme="dark"] body .solutions-section .clarity-strip strong,
html[data-theme="dark"] .insights-hero .resource-intro>div:first-child strong{
  color:#101214
}
html[data-theme="dark"] .insights-hero .resource-intro>div:first-child p{color:#5c6062}

/* About: the founder story becomes the single editorial paper surface. */
html[data-theme="dark"] body .founder-copy.glass{
  border-color:rgba(16,18,20,.12);
  background:#eee9df;
  color:#101214;
  box-shadow:0 28px 72px rgba(0,0,0,.34)
}
html[data-theme="dark"] body .founder-copy h2{color:#101214}
html[data-theme="dark"] body .founder-copy p{color:#555b5e}
html[data-theme="dark"] body .founder-copy .eyebrow{color:#d95119}
html[data-theme="dark"] body .founder-copy .btn:not(.primary){
  border-color:#151719;
  background:#151719;
  color:#f7f5f0;
  box-shadow:none
}

/* Scanner: keep the working interface black, with one clear ivory starting card. */
html[data-theme="dark"] body .scanner .scanner-intro{
  margin-bottom:28px;
  padding:clamp(22px,3vw,30px);
  border:1px solid rgba(16,18,20,.12);
  border-radius:20px;
  background:#eee9df;
  color:#101214;
  box-shadow:0 22px 58px rgba(0,0,0,.28)
}
html[data-theme="dark"] body .scanner .scanner-intro h2{color:#101214}
html[data-theme="dark"] body .scanner .scanner-intro .scanner-kicker{color:#d95119}
html[data-theme="dark"] body .scanner .scanner-intro .scanner-step{color:rgba(16,18,20,.16)}
html[data-theme="dark"] body .scanner .scanner-intro + .drop{margin-top:0}

/* Contact: a light, readable form floating on the piano-black page. */
html[data-theme="dark"] body .form.glass{
  border-color:rgba(16,18,20,.12);
  background:#eee9df;
  color:#101214;
  box-shadow:0 30px 78px rgba(0,0,0,.36)
}
html[data-theme="dark"] body .form .field label{color:#24282a}
html[data-theme="dark"] body .form .field input,
html[data-theme="dark"] body .form .field textarea,
html[data-theme="dark"] body .form .field select{
  border-color:rgba(16,18,20,.15);
  background:#faf8f3;
  color:#17191a;
  color-scheme:light!important
}
html[data-theme="dark"] body .form .field select option{background:#faf8f3;color:#17191a}
html[data-theme="dark"] body .form .field input:focus,
html[data-theme="dark"] body .form .field textarea:focus,
html[data-theme="dark"] body .form .field select:focus{
  outline:none;
  border-color:rgba(223,81,25,.62);
  box-shadow:0 0 0 4px rgba(223,81,25,.1)
}

@media(max-width:820px){
  html[data-theme="dark"] body:not(.home-page) .hero{
    min-height:560px;
    margin-top:28px;
    padding:72px 26px 66px;
    background:
      linear-gradient(180deg,rgba(2,3,4,.84),rgba(2,3,4,.97) 78%),
      radial-gradient(circle at 75% 28%,rgba(255,122,61,.18),transparent 18rem),
      url("koda-hero-architecture.webp") 66% center/cover no-repeat
  }
  html[data-theme="dark"] body:not(.home-page) .hero:after{right:-26%;bottom:12%;width:110%}
}
