/* AI chat widget */
.kchat-btn { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--or) url("../img/kelvin-face-spiky.webp") center / cover no-repeat; cursor: pointer; padding: 0; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, opacity 0.6s; opacity: 0; transform: scale(0.6); pointer-events: none; }
.kchat-btn.ready { opacity: 1; transform: none; pointer-events: auto; }
.kchat-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.kchat-btn::after { content: ""; position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #2fb344; border: 2px solid #fff; }
.kchat-tip { position: fixed; right: max(92px, calc(env(safe-area-inset-right) + 92px)); bottom: calc(32px + env(safe-area-inset-bottom)); z-index: 60; background: #fff; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--or); padding: 8px 14px; font-size: 15px; border-radius: 12px; opacity: 0; transform: translate3d(10px, 0, 0); pointer-events: none; transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); white-space: nowrap; }
.kchat-tip.on { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.kchat { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; width: min(392px, calc(100vw - 24px)); height: min(590px, calc(100svh - 120px)); background: #fff; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--or); display: flex; flex-direction: column; opacity: 0; transform: translate3d(0, 20px, 0) scale(0.97); transform-origin: 100% 100%; pointer-events: none; visibility: hidden; transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.5s; }
.kchat.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.kchat header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ink); color: #fff; }
.kchat .av { width: 42px; height: 42px; border-radius: 50%; background: var(--or) url("../img/kelvin-face-spiky.webp") center / cover no-repeat; border: 1.5px solid #fff; flex: 0 0 42px; }
.kchat header b { display: block; font-size: 17px; line-height: 1.15; }
.kchat header small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.85; }
.kchat header small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb344; }
.kchat header button { margin-left: auto; background: none; border: 0; color: #fff; font: 400 28px/1 var(--serif); cursor: pointer; width: 38px; height: 38px; }
.kchat header button:hover { color: var(--or); }
.kmsgs { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.kmsg { max-width: 86%; padding: 10px 14px; font-size: 16px; line-height: 1.4; border: 1.5px solid var(--ink); border-radius: 14px; animation: msgIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-wrap: anywhere; }
@keyframes msgIn { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.kmsg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 3px; box-shadow: 3px 3px 0 var(--or); }
.kmsg.me { align-self: flex-end; background: var(--or); border-bottom-right-radius: 3px; }
.kmsg a { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 2px; }
.kmsg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.kmsg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: dot 1s ease-in-out infinite; }
.kmsg.typing i:nth-child(2) { animation-delay: 0.15s; }
.kmsg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.35; } 30% { transform: translateY(-5px); opacity: 1; } }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 10px; }
.kchips button { font: 400 14px/1.2 var(--serif); background: #fff; border: 1.5px solid var(--ink); padding: 7px 11px; cursor: pointer; border-radius: 999px; transition: background 0.25s, transform 0.25s; }
.kchips button:hover { background: var(--or); transform: translateY(-1px); }
.kform { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.kform textarea { flex: 1; resize: none; font: 400 16px/1.35 var(--serif); border: 1.5px solid var(--ink); padding: 9px 11px; max-height: 110px; min-height: 42px; border-radius: 0; }
.kform textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--or); }
.kform button { flex: 0 0 42px; height: 42px; background: var(--or); border: 1.5px solid var(--ink); cursor: pointer; font: 700 18px/1 var(--serif); transition: transform 0.25s, box-shadow 0.25s; }
.kform button:hover:not([disabled]) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.kform button[disabled] { opacity: 0.5; cursor: progress; }
.kfine { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--soft); text-align: center; }
@media (max-width: 650px) {
  .kchat { inset: 0; width: auto; height: auto; max-height: none; box-shadow: none; border: 0; bottom: 0; right: 0; transform-origin: 50% 100%; }
  .kchat header { padding-top: calc(12px + env(safe-area-inset-top)); }
  .kform { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .kchat-tip { display: none; }
  .kchat-btn { width: 58px; height: 58px; }
  body.kchat-open .kchat-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-page, .kmsg { animation: none; }
  .cs-card::after { animation: none; }
}

/* ===== Multi-page site ===== */
h1.page-title { font-weight: 400; }
.page-title b { font-weight: 700; }
.content h2.h3x { font-size: clamp(30px, 3.6vw, 52px); max-width: none; margin: 56px 0 18px; }
.content h2.h3x:first-child { margin-top: 0; }
.content h2.h3, .content .faq h2 { font-size: clamp(26px, 2.6vw, 38px); max-width: none; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 20px; }
.content .acc-head h2.h3x { font-size: clamp(28px, 3.4vw, 50px); margin: 0; font-weight: 400; letter-spacing: -0.03em; }
.content .way h2.h3x { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.content .mte h2.h4 { font-size: 21px; max-width: none; margin: 0 0 8px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.content .cs-card h2.h3x { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 14px; }
.way h3 a, .way h2 a { text-decoration: none; }
.way h3 a:hover, .way h2 a:hover { box-shadow: inset 0 -6px 0 var(--or); }
.sec.pagehead { padding-top: clamp(110px, 17vh, 180px); border-top: 0; }
.crumbs { margin: 0 0 26px; font-size: 13px; letter-spacing: 0.04em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.4; }
.crumbs a { text-decoration: none; color: var(--soft); }
.crumbs a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--or); }
.crumbs [aria-current] { font-weight: 700; }
.pagehead .lede { margin-bottom: 20px; }
.sec .wrap.one { grid-template-columns: minmax(0, 1fr); }
.sec.glance { padding: clamp(50px, 8vh, 90px) 0; }
.answer { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; letter-spacing: -0.015em; max-width: 52ch; margin: 0 auto; text-align: center; }
.answer strong { text-decoration: none; background-image: linear-gradient(var(--or),var(--or)); background-repeat: no-repeat; background-position: 0px 96%; background-size: 100% max(3px, 0.075em); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 0.06em; }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--or); padding-bottom: 2px; transition: gap 0.3s; }
.more:hover { gap: 14px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.card { display: block; text-decoration: none; padding: 28px 26px 30px 0; border-bottom: 1px solid var(--line); transition: background 0.4s, padding 0.4s; }
.card:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
.card:hover { background: rgba(242,163,58,.07); }
.card small { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.card small::before { content: ""; width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); }
.card h3 { margin: 0 0 8px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.card p { margin: 0 0 14px; font-size: 16px; color: var(--soft); }
.faq { margin-top: 10px; }
.qa { border-top: 1px solid var(--line); padding: 20px 0 6px; }
.qa:last-child { border-bottom: 1px solid var(--line); margin-bottom: 40px; padding-bottom: 20px; }
.qa h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; display: flex; gap: 12px; align-items: baseline; }
.qa h3::before { content: ""; flex: 0 0 9px; height: 9px; border: 1.5px solid var(--or); transform: rotate(45deg); position: relative; top: -2px; }
.qa p { margin: 0 0 0 21px; color: var(--soft); max-width: 62ch; }
.band { border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--or); padding: clamp(24px, 3vw, 40px); margin: 30px 0 10px; }
.band p { max-width: 54ch; color: var(--soft); margin: 0 0 20px; }
.band h2 { margin-bottom: 10px; }
.related { margin: 0 0 30px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.related a { font-size: 17px; text-decoration: none; border-bottom: 2px solid var(--or); }
.detail { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--ink); }
.detail li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail h3 { margin: 0 0 4px; font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.detail h3::before { content: ""; flex: 0 0 9px; height: 9px; border: 1.5px solid var(--or); transform: rotate(45deg); position: relative; top: -2px; }
.detail p { margin: 0 0 0 21px; color: var(--soft); font-size: 16px; }
.content p a:not(.more):not(.cta) { text-decoration: none; border-bottom: 2px solid var(--or); }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.twocol .ct { margin-top: 0; }
.inline-form { border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--or); background: #fff; }
.inline-form .mwrap > form, .inline-form .thanks { padding: 28px 28px 24px; position: relative; }
.inline-form h2 { margin: 0 0 16px; }
.prose h2.h3x { margin-top: 34px; }
.prose p { max-width: 62ch; color: var(--soft); }
.gate { margin: 8px 0 10px; }
.cs-sec .cs-grid { grid-template-columns: 1fr 1fr; margin-top: 0; }
.cs-sec .cs-card:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 28px; }
.cs-sec .cs-card:nth-child(2n+1) { border-left: 0; padding-left: 0; }
.mwrap { display: block; }
.person.dark { background: none; }

@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } .card, .card:nth-child(even) { padding-left: 0; border-left: 0; } .twocol { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .cs-sec .cs-grid { grid-template-columns: 1fr; } .cs-sec .cs-card:nth-child(n) { border-left: 0; padding-left: 0; } }

/* Navbar, logo and footer styles live in shell.css. */

/* Homepage: AI bot replaces WhatsApp floating CTA */
.wa-fab{display:none!important;}
