/* =====================================================
   Kat — Shared stylesheet for secondary pages
   (about, blog, careers, contact, privacy, terms, cookies)
   index.html keeps its own embedded styles — this file is
   for every page that links to it.
   ===================================================== */

:root {
  --v:     #6528F7;
  --vd:    #4A1CC7;
  --vm:    #8B5CF6;
  --vl:    #F0EBFF;
  --vll:   #F8F5FF;
  --lime:  #C8FA5F;
  --limed: #3D6200;
  --ink:   #16102A;
  --inkm:  #6B6380;
  --white: #FFFFFF;
  --gray:  #F7F7FB;
  --bdr:   #E8E2F8;
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
  --mw: 1100px;
  --mw-narrow: 740px;
  --gap: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); font-size: 16px; line-height: 1.6; background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--mw-narrow); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === PILLS / LABELS === */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fd); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; padding: 6px 14px; border-radius: 100px; margin-bottom: 22px; }
.pill-v { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }
.pill-l { background: var(--vl); color: var(--v); border: 1px solid var(--bdr); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-dot-lime { background: var(--lime); }
.pill-dot-v { background: var(--v); }

/* === HEADINGS === */
.big { font-family: var(--fd); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; }
.big-white { color: #fff; }
.big-ink { color: var(--ink); }
.sub { font-size: 16px; line-height: 1.75; }
.sub-white { color: rgba(255,255,255,0.72); }
.sub-ink { color: var(--inkm); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 100px; font-family: var(--fd); font-size: 15px; font-weight: 600; transition: all 0.2s; white-space: nowrap; cursor: pointer; }
.btn-lime { background: var(--lime); color: var(--limed); }
.btn-lime:hover { background: #d9ff73; transform: translateY(-1px); }
.btn-v { background: var(--v); color: #fff; }
.btn-v:hover { background: var(--vd); transform: translateY(-1px); }
.btn-ghost-v { background: transparent; border: 1.5px solid var(--bdr); color: var(--ink); }
.btn-ghost-v:hover { border-color: var(--v); color: var(--v); }
.btn-ghost-w { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-w:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a1f44; transform: translateY(-1px); }

/* === FADE-IN ON SCROLL === */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }

@keyframes bg-drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse-g  { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* === NAV === */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; }
header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--bdr); }
nav { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: var(--mw); margin: 0 auto; padding: 0 28px; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 19px; font-weight: 700; color: var(--limed); flex-shrink: 0; transition: transform 0.2s; }
.logo-mark:hover { transform: rotate(-6deg); }
/* REPLACE logo-mark div with: <img src="kat-logo.png" alt="Kat" style="height:36px;width:auto"> */
.logo-word { font-family: var(--fd); font-size: 21px; font-weight: 700; transition: color 0.3s; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; transition: opacity 0.2s; color: rgba(255,255,255,0.82); }
.nav-links a:hover { opacity: 0.65; }
.nav-cta { flex-shrink: 0; font-family: var(--fd); font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 100px; transition: all 0.2s; background: rgba(255,255,255,0.18); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.nav-cta:hover { background: rgba(255,255,255,0.28); }

header.scrolled .logo-word   { color: var(--ink); }
header.scrolled .nav-links a { color: var(--inkm); }
header.scrolled .nav-links a:hover { color: var(--ink); opacity: 1; }
header.scrolled .nav-cta     { background: var(--v); color: #fff; border-color: var(--v); }
header.scrolled .nav-cta:hover { background: var(--vd); }

.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; transition: all 0.22s; background: #fff; }
header.scrolled .menu-btn span { background: var(--ink); }
.menu-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 66px; left: 0; right: 0; padding: 28px; gap: 22px; z-index: 99; }
  header.scrolled .nav-links.open { background: rgba(255,255,255,0.97); }
  header:not(.scrolled) .nav-links.open { background: rgba(101,40,247,0.97); }
  .menu-btn { display: flex; }
}

/* === PAGE HEADER (used by every secondary page) === */
.page-header {
  background: linear-gradient(135deg, #5220E8, #6528F7, #7B44F5, #5D30E6, #6528F7);
  background-size: 400% 400%;
  animation: bg-drift 14s ease infinite;
  padding: 148px 0 64px;
}
.page-header h1 { font-family: var(--fd); font-weight: 700; font-size: clamp(36px, 5.5vw, 56px); color: #fff; line-height: 1.12; margin-bottom: 14px; }
.page-header p { font-size: 16px; color: rgba(255,255,255,0.72); max-width: 540px; line-height: 1.7; }

/* === GENERIC SECTIONS === */
.content-section { padding: var(--gap) 0; }
.content-section.alt { background: var(--vll); }

/* === LEGAL PAGES === */
.legal-body { padding: 56px 0 var(--gap); }
.legal-note { background: var(--vll); border: 1px solid var(--bdr); border-radius: 14px; padding: 20px 24px; font-size: 13.5px; color: var(--inkm); line-height: 1.7; margin-bottom: 44px; }
.legal-note strong { color: var(--ink); }
.legal-block { margin-bottom: 34px; }
.legal-block h2 { font-family: var(--fd); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.legal-block p { font-size: 15px; color: var(--inkm); line-height: 1.8; margin-bottom: 12px; }
.legal-block ul { margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.legal-block li { font-size: 15px; color: var(--inkm); line-height: 1.7; padding-left: 18px; position: relative; }
.legal-block li::before { content: '\2013'; position: absolute; left: 0; color: var(--vm); }

/* === ABOUT PAGE === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.value-card { background: var(--white); border: 1px solid var(--bdr); border-radius: 18px; padding: 28px 24px; }
.value-card h3 { font-family: var(--fd); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--inkm); line-height: 1.65; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .value-grid { grid-template-columns: 1fr; }
}

/* === BLOG / TOPIC CARDS === */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.topic-card { background: var(--white); border: 1px solid var(--bdr); border-radius: 18px; padding: 28px 24px; }
.topic-card .topic-tag { font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--v); margin-bottom: 10px; display: block; }
.topic-card h3 { font-family: var(--fd); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.topic-card p { font-size: 13.5px; color: var(--inkm); line-height: 1.65; }

.notify-box { background: var(--ink); border-radius: 24px; padding: 44px; text-align: center; margin-top: 48px; }
.notify-box h3 { font-family: var(--fd); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.notify-box p { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 24px; }

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: 1fr; }
}

/* === CONTACT PAGE === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.contact-card { background: var(--white); border: 1px solid var(--bdr); border-radius: 20px; padding: 36px 30px; text-align: center; }
.contact-card .c-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--vl); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.contact-card .c-ico svg { width: 24px; height: 24px; stroke: var(--v); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-family: var(--fd); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.contact-card p { font-size: 13.5px; color: var(--inkm); line-height: 1.6; margin-bottom: 20px; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* === CAREERS ROLE LIST === */
.role-row { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.role-item { background: var(--white); border: 1px solid var(--bdr); border-radius: 14px; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.role-item h4 { font-family: var(--fd); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.role-item span { font-size: 13px; color: var(--inkm); }

/* === CTA BAND === */
#cta { background: var(--lime); padding: 80px 0; text-align: center; }
.cta-h { font-family: var(--fd); font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; color: var(--limed); margin-bottom: 14px; line-height: 1.1; }
.cta-sub { font-size: 16px; color: rgba(61,98,0,0.65); margin-bottom: 32px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* === FOOTER === */
footer { background: var(--ink); padding: 60px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.fb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fb-word { font-family: var(--fd); font-size: 20px; font-weight: 700; color: #fff; }
.fb-tag { font-size: 14px; color: rgba(255,255,255,0.4); font-style: italic; margin-bottom: 10px; }
.fb-desc { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.65; max-width: 230px; }
.fc h4 { font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.fc ul { display: flex; flex-direction: column; gap: 10px; }
.fc a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.fc a:hover { color: #fff; }
.footer-bot { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-wa { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.3); }
.wa-dot { width: 7px; height: 7px; background: #25D366; border-radius: 50%; animation: pulse-g 2s ease-in-out infinite; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
}
