/* ===== My Kingdom Pal — shared theme (navy + gold) ===== */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: "Inter", sans-serif; background: #17293e; color: #aab9c8; }
.font-display { font-family: "Playfair Display", serif; }
.font-serif { font-family: "Cormorant Garamond", serif; }
::selection { background: #d9be7b; color: #17293e; }

.eyebrow { font-family: "Cormorant Garamond", serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; font-size: 15px; color: #d9be7b; }

/* atmosphere */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); }
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(217,190,123,0.45), transparent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; font-size: 15px; border-radius: 999px; padding: 14px 26px; transition: all .35s cubic-bezier(.22,.61,.36,1); white-space: nowrap; cursor: pointer; }
.btn-gold { background: linear-gradient(135deg, #ecd488, #cda557); color: #102030; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(217,190,123,.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(217,190,123,.75); }
.btn-ghost { border: 1px solid rgba(170,185,200,0.28); color: #e7edf3; }
.btn-ghost:hover { border-color: rgba(217,190,123,.7); color: #fff; background: rgba(217,190,123,.06); }
.link-underline { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s ease; }
.link-underline:hover { background-size: 100% 1px; }

/* nav */
#nav { transition: background .5s ease, border-color .5s ease, box-shadow .5s ease; }
#nav.solid { background: rgba(12,24,38,.8); backdrop-filter: blur(16px); border-color: rgba(39,65,92,.6); }
#nav nav { flex-shrink: 0; }
#nav nav a { white-space: nowrap; }
#nav nav + div { flex-shrink: 0; margin-left: 28px; }
@media (max-width: 1220px) {
  #nav nav { display: none !important; }
  #nav nav + div { display: none !important; }
  #menuBtn { display: flex !important; }
}
.lang-btn { color: #9fb1c1; padding: 5px 11px; font-size: 12px; letter-spacing: .04em; transition: all .3s ease; cursor: pointer; }
.lang-btn.active { background: #d9be7b; color: #102030; font-weight: 600; }
.mobile-menu { transition: opacity .4s ease, visibility .4s ease; }

.card { background: linear-gradient(165deg, #213650, #182c42); border: 1px solid rgba(217,190,123,.16); }

/* forms */
.flabel { display: block; font-size: 13px; font-weight: 500; color: #aab9c8; margin-bottom: 8px; }
.input { width: 100%; background: rgba(255,255,255,.03); border: 1px solid #2b4761; border-radius: 14px; padding: 13px 16px; color: #e9edf1; font-size: 15px; transition: all .3s ease; font-family: inherit; }
.input::placeholder { color: #6f8298; }
.input:focus { outline: none; border-color: #d9be7b; background: rgba(217,190,123,.05); box-shadow: 0 0 0 3px rgba(217,190,123,.12); }
select.input option { color: #0e2034; }

/* compare table */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th { text-align: left; font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: #d9be7b; padding: 16px; border-bottom: 1px solid #2b4761; }
.cmp td { padding: 16px; font-size: 13.5px; line-height: 1.5; color: #aab9c8; border-bottom: 1px solid rgba(43,71,97,.5); vertical-align: top; }
.cmp tbody tr td:first-child { color: #f4f1ea; font-family: "Playfair Display", serif; font-size: 16px; white-space: nowrap; }
.cmp tbody tr:hover { background: rgba(217,190,123,.04); }
.cmp td.diff { color: #e7edf3; }

/* timeline (how-it-works) */
.week-track { position: relative; }
.week-fill-h { width: 0; transition: width 2.6s cubic-bezier(.33,1,.68,1); }
.week-track.in .week-fill-h { width: 86%; }
.week-fill-v { height: 0; transition: height 2.4s cubic-bezier(.33,1,.68,1); }
.week-track.in .week-fill-v { height: calc(100% - 18px); }
.week-dot { transition: background .6s ease, box-shadow .6s ease, border-color .6s ease; }
.week-track.in .week-dot { background: #d9be7b; border-color: #d9be7b; box-shadow: 0 0 0 4px rgba(217,190,123,.18); }
.week-day:nth-child(1) .week-dot{transition-delay:.2s}.week-day:nth-child(2) .week-dot{transition-delay:.5s}.week-day:nth-child(3) .week-dot{transition-delay:.8s}.week-day:nth-child(4) .week-dot{transition-delay:1.1s}.week-day:nth-child(5) .week-dot{transition-delay:1.4s}.week-day:nth-child(6) .week-dot{transition-delay:1.7s}.week-day:nth-child(7) .week-dot{transition-delay:2s}

.lift { transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease, border-color .5s ease; }
.lift:hover { transform: translateY(-6px); border-color: rgba(217,190,123,.4); box-shadow: 0 34px 60px -34px rgba(0,0,0,.7); }

/* ===== Legal / prose pages ===== */
.toc { position: sticky; top: 110px; }
.toc a { display: block; font-size: 13.5px; line-height: 1.4; color: #8093a6; padding: 7px 0 7px 16px; border-left: 1px solid rgba(50,80,111,.5); transition: color .25s ease, border-color .25s ease; }
.toc a:hover { color: #e7edf3; border-color: rgba(217,190,123,.6); }
.toc a.active { color: #d9be7b; border-color: #d9be7b; }

.legal { color: #b3c1d0; font-size: 16px; line-height: 1.72; }
.legal > section { scroll-margin-top: 110px; padding-top: 14px; }
.legal > section + section { margin-top: 46px; padding-top: 46px; border-top: 1px solid rgba(50,80,111,.4); }
.legal h2 { font-family: "Playfair Display", serif; color: #f4f1ea; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.18; margin-bottom: 18px; }
.legal h2 .num { font-family: "Cormorant Garamond", serif; color: #d9be7b; font-size: .62em; font-weight: 600; letter-spacing: .04em; margin-right: 14px; vertical-align: 2px; }
.legal h3 { font-family: "Playfair Display", serif; color: #e7edf3; font-size: 1.18rem; margin: 30px 0 10px; }
.legal p { margin-bottom: 16px; }
.legal p:last-child, .legal ul:last-child { margin-bottom: 0; }
.legal a { color: #d9be7b; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217,190,123,.4); transition: text-decoration-color .25s ease; }
.legal a:hover { text-decoration-color: #d9be7b; }
.legal strong { color: #e7edf3; font-weight: 600; }
.legal ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.legal ul li { position: relative; padding-left: 24px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: #d9be7b; opacity: .65; }
.legal ul li strong { display: inline; }
.legal .lead { font-family: "Cormorant Garamond", serif; font-size: clamp(1.25rem, 2.3vw, 1.55rem); line-height: 1.5; color: #cdd8e4; margin-bottom: 30px; }

/* highlight panel inside prose (key takeaways / required notices) */
.legal .panel { background: rgba(217,190,123,.05); border: 1px solid rgba(217,190,123,.22); border-radius: 18px; padding: 22px 26px; margin: 6px 0 20px; }
.legal .panel p { margin-bottom: 10px; } .legal .panel p:last-child { margin-bottom: 0; }
.legal .panel .panel-label { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; color: #d9be7b; margin-bottom: 10px; }

/* placeholder spans the client must fill before launch */
.fillme { color: #ecd488; border-bottom: 1px dashed rgba(236,212,136,.55); padding: 0 1px; font-style: normal; }

/* definition rows (account-deletion data table) */
.deldata { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(50,80,111,.4); border: 1px solid rgba(50,80,111,.4); border-radius: 16px; overflow: hidden; }
.deldata .row { display: grid; grid-template-columns: 1fr; gap: 4px; background: #182c42; padding: 16px 20px; }
@media (min-width: 640px) { .deldata .row { grid-template-columns: 200px 1fr; gap: 18px; align-items: start; } }
.deldata .k { color: #f4f1ea; font-family: "Playfair Display", serif; font-size: 15.5px; }
.deldata .v { font-size: 14.5px; line-height: 1.6; color: #aab9c8; }

/* numbered steps */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 18px; margin: 4px 0 8px; }
.steps li { position: relative; padding-left: 56px; min-height: 38px; display: flex; flex-direction: column; justify-content: center; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; color: #d9be7b; background: rgba(217,190,123,.08); border: 1px solid rgba(217,190,123,.3); }
.steps li strong { color: #e7edf3; }

/* ===== Bilingual blocks (toggled by the existing EN/ES switch via <html lang>) ===== */
.t-es { display: none; }
html[lang="es"] .t-en { display: none; }
html[lang="es"] .t-es { display: revert; }

/* ===== FAQ accordion ===== */
.faq-item { border-bottom: 1px solid rgba(50,80,111,.45); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; color: #f4f1ea; font-family: "Playfair Display", serif; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.3; transition: color .3s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #d9be7b; }
.faq-item .faq-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(217,190,123,.35); display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.22,.61,.36,1), background .3s ease; }
.faq-item .faq-icon::before { content: ""; width: 11px; height: 11px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9be7b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq-item[open] .faq-icon { transform: rotate(135deg); background: rgba(217,190,123,.1); }
.faq-item .faq-body { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-item[open] .faq-body { max-height: 400px; }
.faq-item .faq-body p { color: #aab9c8; font-size: 16px; line-height: 1.7; padding: 0 4px 28px; margin: 0; max-width: 60ch; }
