/* ============================================================
   Kades Stats - style.css
   A deep violet and aqua design on soft lavender paper.
   Plain, commented CSS so the owner can edit it by hand.
   ============================================================ */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f6f4fb;
  color: #251b3d;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Cambria, "Hoefler Text", "Times New Roman", serif; line-height: 1.22; }
a { color: #6d28a8; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, #1d0b38 0%, #3d1470 55%, #5b21a0 100%);
  color: #fff;
  border-bottom: 4px solid #0fb5a3;
  position: sticky; top: 0; z-index: 20;
}
.header-in { max-width: 1340px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .name { font-family: Cambria, "Hoefler Text", serif; font-size: 1.5rem; font-weight: 700; letter-spacing: .2px; }
.brand .name em { color: #2dd4bf; font-style: normal; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #e6defc; text-decoration: none; padding: 7px 13px; border-radius: 999px; font-size: .95rem; }
.main-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.main-nav a.calc-link { background: linear-gradient(135deg, #0fb5a3, #0d9488); color: #fff; font-weight: 700; }
.main-nav a.calc-link:hover { filter: brightness(1.1); }

/* ---------- Layout ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.hero {
  background:
    radial-gradient(700px 320px at 88% -80px, rgba(45,212,191,.28), rgba(45,212,191,0) 60%),
    linear-gradient(155deg, #241047 0%, #3d1470 58%, #5b21a0 100%);
  color: #fff; padding: 54px 0 60px; margin-bottom: 34px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 12px; max-width: 660px; }
.hero h1 .accent { color: #2dd4bf; }
.hero p { max-width: 580px; color: #ddd2f7; font-size: 1.08rem; margin: 0 0 22px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2.05rem; } }

/* ---------- Calculator cards ---------- */
.calc-card {
  background: #fff; border-radius: 16px; padding: 24px; color: #251b3d;
  box-shadow: 0 18px 42px rgba(24, 8, 56, .35); border-top: 5px solid #0fb5a3;
}
.calc-card h2, .calc-card h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: #4c3a75; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1.6px solid #cfc4ea; border-radius: 9px; font-size: 1rem; background: #fdfcff; font-family: inherit;
}
.field textarea { min-height: 74px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #2dd4bf; border-color: #0fb5a3; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .field-row, .field-row3 { grid-template-columns: 1fr; } }
.btn {
  display: inline-block; background: linear-gradient(135deg, #6d28a8, #8b3fd9); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn.teal { background: linear-gradient(135deg, #0fb5a3, #0d9488); }
.result-box { background: #f1ecfd; border: 1.5px dashed #b39de0; border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.result-box:empty { display: none; }
.result-box .big { font-size: 1.65rem; font-weight: 800; color: #2c1158; font-family: Cambria, "Hoefler Text", serif; }
.result-lines { margin: 10px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.result-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px solid #e0d6f7; }
.result-lines li:last-child { border-bottom: 0; }
.result-lines strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fineprint { font-size: .83rem; color: #6f6390; margin-top: 12px; }

/* ---------- Sections and cards ---------- */
.section { padding: 12px 0 30px; }
.section h2 { font-size: 1.7rem; margin: 8px 0 6px; }
.section .lede { color: #574a7d; max-width: 760px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #e3dcf5; border-radius: 14px; padding: 20px;
  box-shadow: 0 4px 14px rgba(46, 16, 101, .06); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(46, 16, 101, .12); }
.card h3 { margin: 0 0 7px; font-size: 1.12rem; }
.card p { margin: 0 0 12px; color: #574a7d; font-size: .94rem; }
.card .openbtn {
  display: inline-block; background: linear-gradient(135deg, #3d1470, #5b21a0); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.card .openbtn:hover { filter: brightness(1.18); }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 4px; }
.cat-head h2 { margin: 0; }
.cat-head .tag { background: #e9fbf7; color: #0b7c6f; border: 1px solid #a7ece2; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tool-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tool-stack { grid-template-columns: 1fr; } }
.tool-card {
  background: #fff; border: 1px solid #e3dcf5; border-radius: 16px; padding: 22px;
  box-shadow: 0 6px 18px rgba(46, 16, 101, .07); border-top: 5px solid #6d28a8;
}
.tool-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tool-card .what { color: #574a7d; font-size: .92rem; margin: 0 0 14px; }
.prose { max-width: 780px; }
.prose p { color: #3d3163; }
.prose h3 { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #1d0b38; color: #c6baf0; margin-top: 44px; padding: 34px 0 26px; }
.site-footer a { color: #2dd4bf; text-decoration: none; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-family: Cambria, "Hoefler Text", serif; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid #3a2066; margin-top: 24px; padding-top: 16px; font-size: .88rem; color: #9a8bc7; }
