/* ============================================
   KLWO · Personal Insight Reports
   Design system — clean, professional, modern SaaS
   ============================================ */

:root{
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --bg-brand:#eef2ff;
  --ink:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --line:#e2e8f0;
  --line-soft:#eef2f7;
  --brand:#4f46e5;
  --brand-dark:#4338ca;
  --brand-deep:#3730a3;
  --ring:rgba(79,70,229,.14);
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow-md:0 8px 24px -8px rgba(15,23,42,.12);
  --shadow-lg:0 24px 48px -16px rgba(15,23,42,.18);
  --radius:14px;
  --radius-sm:10px;
  --font-serif:'Cormorant Garamond',Georgia,serif;
  --font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --ease:cubic-bezier(0.16,1,0.3,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul,ol{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

.container{max-width:1120px;margin:0 auto;padding:0 24px;}
.section{padding:88px 0;}
.section--soft{background:var(--bg-soft);}
.section--brand{background:linear-gradient(180deg,#f5f7ff 0%,#eef2ff 100%);}

/* ---------- Typography ---------- */
h1,h2,h3,h4{line-height:1.2;letter-spacing:-.01em;font-weight:600;}
h1{font-size:clamp(2.2rem,5vw,3.4rem);}
h2{font-size:clamp(1.7rem,3.4vw,2.4rem);}
h3{font-size:1.15rem;}
.serif{font-family:var(--font-serif);font-weight:600;}
.lead{font-size:1.15rem;color:var(--muted);}
.eyebrow{
  display:inline-block;font-size:.78rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--brand);margin-bottom:16px;
}
.section-head{max-width:640px;margin:0 auto 56px;text-align:center;}
.section-head h2{margin-bottom:16px;}
.section-head p{color:var(--muted);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;justify-content:center;
  font-size:.95rem;font-weight:600;padding:12px 24px;border-radius:10px;
  transition:all .25s var(--ease);white-space:nowrap;
}
.btn-primary{background:var(--brand);color:#fff;box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--brand-dark);transform:translateY(-1px);box-shadow:var(--shadow-md);}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line);}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand);background:var(--bg-brand);}
.btn-light{background:#fff;color:var(--brand-dark);}
.btn-light:hover{transform:translateY(-1px);box-shadow:var(--shadow-md);}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px;}
.logo{display:flex;align-items:baseline;gap:6px;font-family:var(--font-serif);font-size:1.5rem;font-weight:600;letter-spacing:.02em;}
.logo .dot{color:var(--brand);}
.logo .tag{font-family:var(--font-sans);font-size:.68rem;font-weight:500;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;}
.nav-links{display:flex;align-items:center;gap:28px;}
.nav-links a{font-size:.92rem;font-weight:500;color:var(--muted);transition:color .2s;}
.nav-links a:hover{color:var(--ink);}
.nav-links a.active{color:var(--ink);font-weight:600;}
.nav-cta{display:flex;align-items:center;gap:12px;}
.nav-toggle{display:none;font-size:1.4rem;color:var(--ink);}

/* ---------- Hero ---------- */
.hero{padding:96px 0 80px;text-align:center;position:relative;overflow:hidden;}
.hero .container{position:relative;z-index:1;}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:500;
  color:var(--brand-dark);background:var(--bg-brand);border:1px solid var(--ring);
  padding:7px 16px;border-radius:999px;margin-bottom:28px;
}
.hero-badge .pulse{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px var(--ring);}
.hero h1{margin-bottom:20px;}
.hero h1 .grad{
  background:linear-gradient(120deg,var(--brand) 0%,#8b5cf6 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero .lead{max-width:600px;margin:0 auto 32px;}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.hero-stats{display:flex;gap:48px;justify-content:center;margin-top:64px;flex-wrap:wrap;}
.hero-stats .stat{text-align:center;}
.hero-stats .num{font-size:1.9rem;font-weight:700;color:var(--ink);font-family:var(--font-serif);}
.hero-stats .lbl{font-size:.82rem;color:var(--muted);margin-top:2px;}

/* ---------- Cards / Grid ---------- */
.grid{display:grid;gap:20px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.card{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;transition:all .3s var(--ease);
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:transparent;}

/* Feature */
.feature .icon{
  width:44px;height:44px;border-radius:11px;background:var(--bg-brand);
  display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin-bottom:18px;
}
.feature h3{margin-bottom:8px;font-size:1.05rem;}
.feature p{font-size:.92rem;color:var(--muted);}

/* ---------- Product card ---------- */
.product{display:flex;flex-direction:column;}
.product .prod-tag{
  align-self:flex-start;font-size:.72rem;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--brand);background:var(--bg-brand);
  padding:5px 12px;border-radius:999px;margin-bottom:18px;
}
.product h3{font-size:1.15rem;margin-bottom:10px;}
.product .prod-desc{font-size:.9rem;color:var(--muted);margin-bottom:20px;flex:1;}
.product .prod-meta{font-size:.8rem;color:var(--muted-2);margin-bottom:14px;}
.product .price-row{display:flex;align-items:baseline;justify-content:space-between;border-top:1px solid var(--line-soft);padding-top:18px;}
.product .price{font-size:1.6rem;font-weight:700;font-family:var(--font-serif);}
.product .price small{font-size:.8rem;color:var(--muted);font-weight:500;}
.product .btn{font-size:.85rem;padding:10px 18px;}

/* ---------- Trust / testimonials ---------- */
.testimonial{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:16px;}
.testimonial .stars{color:#f59e0b;letter-spacing:2px;font-size:.9rem;}
.testimonial .quote{font-size:.95rem;color:var(--ink);line-height:1.65;}
.testimonial .who{display:flex;align-items:center;gap:12px;margin-top:auto;}
.testimonial .avatar{
  width:40px;height:40px;border-radius:50%;background:var(--brand);
  color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem;
}
.testimonial .who .name{font-size:.88rem;font-weight:600;}
.testimonial .who .role{font-size:.78rem;color:var(--muted);}

/* ---------- Blog ---------- */
.blog-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:all .3s var(--ease);}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}
.blog-card .thumb{height:150px;background:linear-gradient(135deg,var(--bg-brand),#e0e7ff);display:flex;align-items:center;justify-content:center;font-size:2rem;}
.blog-card .body{padding:22px;}
.blog-card .meta{font-size:.78rem;color:var(--muted-2);margin-bottom:10px;}
.blog-card h3{font-size:1.05rem;margin-bottom:8px;line-height:1.4;}
.blog-card p{font-size:.88rem;color:var(--muted);}
.blog-card .read{margin-top:14px;font-size:.85rem;font-weight:600;color:var(--brand);}

/* ---------- Table ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);}
table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:640px;}
thead th{
  text-align:left;padding:16px 20px;background:var(--bg-soft);
  font-size:.78rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);
  border-bottom:1px solid var(--line);
}
tbody td{padding:16px 20px;border-bottom:1px solid var(--line-soft);}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:var(--bg-soft);}
.td-price{font-weight:700;color:var(--brand-dark);white-space:nowrap;}

/* ---------- Forms ---------- */
.form-card{max-width:620px;margin:0 auto;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:36px;box-shadow:var(--shadow-sm);}
.field{margin-bottom:20px;}
.field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:8px;}
.field input,.field textarea,.field select{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font-family:inherit;font-size:.95rem;color:var(--ink);background:var(--bg);
  transition:border-color .2s,box-shadow .2s;
}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--ring);
}
.field textarea{min-height:130px;resize:vertical;}
.form-note{font-size:.8rem;color:var(--muted);text-align:center;margin-top:14px;}

/* ---------- FAQ ---------- */
.faq-item{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px;overflow:hidden;background:var(--bg);}
.faq-item summary{
  list-style:none;cursor:pointer;padding:20px 24px;font-weight:600;font-size:.98rem;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .chev{transition:transform .25s var(--ease);color:var(--muted);}
.faq-item[open] summary .chev{transform:rotate(180deg);}
.faq-item .answer{padding:0 24px 20px;color:var(--muted);font-size:.92rem;}

/* ---------- Footer ---------- */
.site-footer{background:#0f172a;color:#cbd5e1;padding:72px 0 0;margin-top:0;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:56px;}
.footer-brand{font-family:var(--font-serif);font-size:1.6rem;color:#fff;margin-bottom:14px;}
.footer-about{font-size:.9rem;color:#94a3b8;max-width:320px;margin-bottom:20px;}
.footer-social{display:flex;gap:12px;}
.footer-social a{
  width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;font-size:.95rem;transition:background .2s;
}
.footer-social a:hover{background:var(--brand);}
.footer-col h4{color:#fff;font-size:.82rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px;}
.footer-col a{display:block;color:#94a3b8;font-size:.9rem;margin-bottom:12px;transition:color .2s;}
.footer-col a:hover{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:24px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;}
.footer-bottom p{font-size:.82rem;color:#64748b;}
.footer-bottom .links{display:flex;gap:20px;}
.footer-bottom .links a{font-size:.82rem;color:#64748b;transition:color .2s;}
.footer-bottom .links a:hover{color:#cbd5e1;}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{padding:72px 0 56px;text-align:center;background:var(--bg-soft);border-bottom:1px solid var(--line-soft);}
.page-hero h1{margin-bottom:14px;}
.page-hero .lead{max-width:560px;margin:0 auto;}

/* ---------- Prose (policy/blog article) ---------- */
.prose{max-width:720px;margin:0 auto;}
.prose h2{font-size:1.4rem;margin:40px 0 14px;}
.prose h3{font-size:1.1rem;margin:28px 0 10px;}
.prose p{color:var(--muted);margin-bottom:16px;font-size:.98rem;}
.prose ul{margin:0 0 16px;padding-left:22px;list-style:disc;}
.prose ul li{color:var(--muted);margin-bottom:8px;font-size:.98rem;}
.prose .updated{font-size:.82rem;color:var(--muted-2);margin-bottom:32px;}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease);}
.reveal.is-visible{opacity:1;transform:none;}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .hero-stats{gap:32px;}
}
@media(max-width:640px){
  .section{padding:60px 0;}
  .grid-2,.grid-3{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .nav-links,.nav-cta .btn-ghost{display:none;}
  .nav-toggle{display:block;}
  .nav.open .nav-links{
    display:flex;flex-direction:column;position:absolute;top:68px;left:0;right:0;
    background:#fff;border-bottom:1px solid var(--line);padding:20px 24px;gap:18px;
  }
  .hero{padding:72px 0 60px;}
  .hero-stats{gap:24px;}
  .form-card{padding:24px;}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;}
  .reveal{opacity:1;transform:none;}
}
