/* kingdom66 - royal purple / antique gold / navy */
:root { --kd-gold: 184, 134, 43; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: #f6f2fb; }
::selection { background: #e6c878; color: #150a33; }

.kd-gradtext { background: linear-gradient(180deg, #f2e0ae, #d4a94a 60%, #b8862b); -webkit-background-clip: text; background-clip: text; color: transparent; }

.kd-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: #8a5f12; }
.kd-eyebrow::before, .kd-eyebrow::after { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.kd-on-dark .kd-eyebrow, .kd-eyebrow.is-light { color: #e6c878; }

.kd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .6rem; padding: .8rem 1.6rem; font-weight: 700; color: #150a33;
  background: linear-gradient(180deg, #f2e0ae 0%, #d4a94a 50%, #b8862b 100%); border: 1px solid #8a5f12; box-shadow: 0 8px 20px -10px rgba(var(--kd-gold), .9), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .18s ease, filter .18s ease; }
.kd-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.kd-btn:focus-visible, .kd-ghost:focus-visible { outline: 3px solid #e6c878; outline-offset: 2px; }
.kd-ghost { display: inline-flex; align-items: center; justify-content: center; border-radius: .6rem; padding: .8rem 1.5rem; font-weight: 600; color: #f2e0ae; border: 1px solid rgba(230,200,120,.55); transition: background .18s ease; }
.kd-ghost:hover { background: rgba(230,200,120,.14); }
.kd-ghost.is-ink { color: #2d1466; border-color: rgba(45,20,102,.4); }
.kd-ghost.is-ink:hover { background: rgba(45,20,102,.07); }
.kd-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; transition: opacity .25s ease, transform .25s ease; }
.kd-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

#kd-bar { transition: box-shadow .2s ease; }
#kd-bar.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11,23,54,.7); }
.kd-nav a { position: relative; display: block; padding: .5rem .8rem; color: #e9defa; font-weight: 500; }
.kd-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: #d4a94a; transform: scaleX(0); transition: transform .2s ease; }
.kd-nav a:hover::after, .kd-nav a[aria-current="page"]::after { transform: scaleX(1); }
.kd-nav a[aria-current="page"] { color: #f2e0ae; }

.kd-hero { background:
  radial-gradient(60% 55% at 50% 0%, rgba(212,169,74,.28), transparent 70%),
  radial-gradient(40% 40% at 90% 90%, rgba(91,52,168,.55), transparent 70%),
  linear-gradient(180deg, #1d0e48 0%, #150a33 55%, #0b1736 100%); }
.kd-hero::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #e6c878 0 1px, transparent 1px 26px), repeating-linear-gradient(-45deg, #e6c878 0 1px, transparent 1px 26px); }
.kd-arch { border-radius: 999px 999px 1rem 1rem; padding: 6px; background: linear-gradient(180deg, #f2e0ae, #b8862b 60%, #8a5f12); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.kd-arch img { border-radius: 999px 999px .7rem .7rem; display: block; width: 100%; height: auto; }
.kd-crown { filter: drop-shadow(0 6px 18px rgba(212,169,74,.45)); }

.kd-seal { position: relative; background: #fff; border: 1px solid rgba(var(--kd-gold), .55); border-radius: 1.1rem; padding: 2.6rem 1.4rem 1.5rem;
  box-shadow: 0 0 0 5px #f6f2fb, 0 0 0 6px rgba(var(--kd-gold), .35), 0 18px 30px -22px rgba(45,20,102,.6); transition: transform .2s ease; }
a.kd-seal:hover { transform: translateY(-4px); }
.kd-seal__badge { position: absolute; left: 50%; top: -1.7rem; transform: translateX(-50%); width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  font-family: "Noto Serif Thai", serif; font-weight: 700; color: #150a33; background: radial-gradient(circle at 35% 30%, #f2e0ae, #d4a94a 55%, #8a5f12);
  outline: 2px dashed rgba(138,95,18,.8); outline-offset: 3px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.kd-seal.is-dark { background: #1d0e48; color: #e9defa; box-shadow: 0 0 0 5px #150a33, 0 0 0 6px rgba(230,200,120,.4); }

.kd-num { font-family: "Noto Serif Thai", serif; font-weight: 700; line-height: 1; font-size: 4.5rem; background: linear-gradient(180deg, #d4a94a, rgba(184,134,43,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.kd-ribbon { display: inline-block; padding: .4rem 1.8rem; color: #150a33; font-weight: 700; background: linear-gradient(180deg, #f2e0ae, #d4a94a); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); }

.kd-rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.kd-rail ul { display: flex; width: max-content; gap: 14px; padding: 6px 7px; animation: kd-slide 48s linear infinite; animation-play-state: paused; }
.kd-rail.is-active ul { animation-play-state: running; }
.kd-rail:hover ul { animation-play-state: paused; }
.kd-rail li { flex: none; }
.kd-rail img { width: 188px; height: 120px; object-fit: cover; border-radius: .8rem; border: 1px solid rgba(var(--kd-gold), .5); background: #1d0e48; display: block; }
@keyframes kd-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kd-rail { overflow-x: auto; } .kd-rail ul { animation: none; } }
@media (max-width: 640px) { .kd-rail img { width: 150px; height: 96px; } }

.kd-prose p { margin-top: 1.1rem; line-height: 1.95; }
.kd-prose h2 { margin-top: 2.6rem; font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: 1.55rem; line-height: 1.5; color: #2d1466; }
.kd-prose h3 { margin-top: 1.8rem; font-family: "Noto Serif Thai", serif; font-weight: 600; font-size: 1.2rem; color: #432088; }
.kd-prose ul, .kd-prose ol { margin-top: 1rem; line-height: 1.9; }
.kd-prose ul { list-style: none; padding-left: 0; }
.kd-prose ul li { position: relative; padding-left: 1.4rem; margin-top: .35rem; }
.kd-prose ul li::before { content: ""; position: absolute; left: .1rem; top: .8em; width: 7px; height: 7px; background: #b8862b; transform: rotate(45deg); }
.kd-prose ol { list-style: decimal; padding-left: 1.5rem; }
.kd-prose ol li { margin-top: .35rem; padding-left: .3rem; }
.kd-prose blockquote { margin-top: 1.8rem; border: 1px solid rgba(var(--kd-gold), .5); border-left-width: 6px; background: #fff; padding: 1.1rem 1.3rem; border-radius: .6rem; font-family: "Noto Serif Thai", serif; color: #2d1466; line-height: 1.85; }
.kd-prose a { color: #5b34a8; text-decoration: underline; text-underline-offset: 3px; }
.kd-prose a:hover { color: #8a5f12; }
.kd-prose strong { color: #2d1466; }

.kd-faq details { background: #fff; border: 1px solid rgba(var(--kd-gold), .45); border-radius: .8rem; padding: 0 1.2rem; margin-top: .8rem; }
.kd-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; color: #2d1466; display: flex; justify-content: space-between; gap: 1rem; }
.kd-faq summary::-webkit-details-marker { display: none; }
.kd-faq summary::after { content: "+"; color: #b8862b; font-size: 1.4rem; line-height: 1; }
.kd-faq details[open] summary::after { content: "\2212"; }
.kd-faq details p { padding-bottom: 1.1rem; line-height: 1.85; color: #3b3350; }

.kd-field { width: 100%; border-radius: .6rem; border: 1px solid #c9bde3; background: #fff; padding: .7rem .9rem; color: #150a33; }
.kd-field:focus { outline: 2px solid #b8862b; outline-offset: 1px; border-color: #b8862b; }

.kd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.kd-reveal.is-in { opacity: 1; transform: none; }
.no-js .kd-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .kd-reveal { opacity: 1; transform: none; transition: none; } }
#kd-progress { position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 100%; background: linear-gradient(90deg, #d4a94a, #8a5f12); transform: scaleX(0); transform-origin: 0 50%; }

/* pbn: provider slider always auto-scrolls */
.kd-rail { overflow: hidden !important; }
.kd-rail ul { animation-name: kd-slide !important; animation-duration: 48s !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; animation-play-state: running !important; }
@media (hover: hover) { .kd-rail:hover .kd-rail ul { animation-play-state: paused !important; } }

/* conversion pass: CTA band, steps, mindful strip */
.kd-btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.kd-band { position: relative; overflow: hidden; color: #ece6f7; border-top: 4px solid #d4a94a; background:
  radial-gradient(50% 80% at 50% 0%, rgba(212,169,74,.3), transparent 70%), linear-gradient(180deg, #2d1466, #150a33); }
.kd-band::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(230,200,120,.35); border-radius: 1rem; pointer-events: none; }
@media (min-width: 768px) { .kd-steps > li:not(:last-child)::after { content: "\25C6"; position: absolute; right: -1.15rem; top: 50%; color: #d4a94a; font-size: .9rem; } }
.kd-mind { border: 1px dashed rgba(var(--kd-gold), .7); background: #fff; border-radius: .8rem; padding: .9rem 1.2rem; text-align: center; font-size: .95rem; color: #3b3350; }
.kd-mind strong { color: #2d1466; margin-right: .4rem; }

/* pbn: search-topic section */
.pbn-kw { max-width: 48rem; margin: 2.5rem auto 0; padding: 1.5rem 1.25rem; border: 1px solid rgba(128,128,128,.35); border-radius: 14px; line-height: 1.9; }
.pbn-kw h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 0 0 .75rem; }
.pbn-kw h3 { font-size: 1.05rem; font-weight: 700; margin: 1.1rem 0 .25rem; }
.pbn-kw p { margin: .35rem 0; }
.pbn-kw a { text-decoration: underline; font-weight: 600; }

/* pbn: liquid-metal buttons */
body .kd-btn {
  position: relative !important; isolation: isolate; overflow: hidden !important;
  border: 2px solid transparent !important; border-radius: 999px !important; clip-path: none !important;
  color: #f3e5bd !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .65) !important;
  background: linear-gradient(180deg, #2d1466 0%, #0e0624 100%) padding-box, linear-gradient(124deg, #5d3f0a 0%, #f6e4b0 6%, #b8862b 12%, #d4bcff 18%, #b8862b 24%, #8a5fd6 30%, #5d3f0a 38%, #8a5fd6 44%, #5d3f0a 50%, #f6e4b0 56%, #b8862b 62%, #d4bcff 68%, #b8862b 74%, #8a5fd6 80%, #5d3f0a 88%, #8a5fd6 94%, #5d3f0a 100%) border-box !important;
  background-size: 100% 100%, 200% 100% !important; background-position: 0 0, 0% 50% !important;
  animation: kd-liq 11s linear infinite !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 20px 12px -12px rgba(0, 0, 0, .25), 0 9px 9px -6px rgba(0, 0, 0, .2), 0 2px 5px rgba(0, 0, 0, .2) !important;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease !important;
}
body .kd-btn::before, body .kd-btn::after { display: none !important; }
body .kd-btn:hover { transform: translateY(-1px) !important; animation-duration: 5s !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 12px 6px -6px rgba(0, 0, 0, .08), 0 8px 5px -4px rgba(0, 0, 0, .14), 0 4px 4px rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .22) !important; }
body .kd-btn:active { transform: translateY(1px) scale(.98) !important; animation-duration: 1.6s !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3), inset 0 2px 4px rgba(0, 0, 0, .4) !important; }
@keyframes kd-liq { to { background-position: 0 0, 100% 50%; } }
.kd-rip { position: absolute; width: 20px; height: 20px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 70%); animation: kd-rip .6s ease-out forwards; }
@keyframes kd-rip { from { transform: translate(-50%, -50%) scale(0); opacity: .6; } to { transform: translate(-50%, -50%) scale(4); opacity: 0; } }

/* pbn:mobile-nav */
.kd-mnav{display:none}
@media (max-width:767px){
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  .kd-mnav{display:grid;grid-template-columns:repeat(4,1fr) 1.25fr;align-items:center;gap:2px;position:fixed;left:0;right:0;bottom:0;z-index:60;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(12,12,16,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border-top:1px solid rgba(255,255,255,.14)}
  .kd-mnav a.kd-mi{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:4px 2px;border-radius:10px;
    color:rgba(255,255,255,.72);font-size:11px;line-height:1.2;text-decoration:none;-webkit-tap-highlight-color:transparent}
  .kd-mnav a.kd-mi[aria-current="page"]{color:#fff;background:rgba(255,255,255,.12)}
  .kd-mnav a.kd-btn{display:flex;align-items:center;justify-content:center;min-height:44px;margin-left:4px;padding:0 6px!important;font-size:14px!important;white-space:nowrap}
}
