/* ============================================================
   Kades Finance - style.css
   A violet and coral premium design on a soft lilac paper.
   Plain, commented CSS so the owner can edit it by hand.
   Colours live in the :root block: change one value there and
   it changes across the whole site.
   ============================================================ */
:root {
  --ink: #251a38;
  --muted: #655a7d;
  --paper: #f6f3fb;
  --card: #ffffff;
  --line: #e4dcf2;
  --violet: #4b1d8f;
  --violet-deep: #2a0a52;
  --violet-mid: #6d28c9;
  --coral: #f0564f;
  --coral-soft: #ffe9e4;
  --mint: #0e9f6e;
  --shadow: 0 10px 30px rgba(42, 10, 82, .10);
  --shadow-lift: 0 18px 44px rgba(42, 10, 82, .18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
}
h1, h2, h3, h4 { font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif; line-height: 1.22; letter-spacing: -.01em; }
a { color: var(--violet-mid); }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--violet-deep) 0%, var(--violet) 58%, #7b2d8b 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 6px 24px rgba(42, 10, 82, .35);
}
.header-in { max-width: 1340px; margin: 0 auto; padding: 13px 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.brand .name em { font-style: normal; background: linear-gradient(90deg, #ffb03a, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #e9defc; text-decoration: none; padding: 8px 13px; border-radius: 999px; font-size: .95rem; font-weight: 600; }
.main-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.main-nav a.calc-link { background: linear-gradient(135deg, #f0564f, #f59e6c); color: #fff; }
.main-nav a.calc-link:hover { filter: brightness(1.08); }

/* ---------- Layout ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 22px; }
.hero {
  background:
    radial-gradient(700px 320px at 88% -40px, rgba(240, 86, 79, .35), rgba(240,86,79,0) 60%),
    linear-gradient(150deg, var(--violet-deep) 0%, var(--violet) 55%, #8338a8 100%);
  color: #fff; padding: 56px 0 62px; margin-bottom: 36px;
}
.hero h1 { font-size: 2.7rem; margin: 0 0 14px; max-width: 660px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(90deg, #ffb03a, #ff7e67); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 580px; color: #e3d5fb; font-size: 1.1rem; margin: 0 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2.1rem; } }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--coral), #f59e6c); color: #fff; border: 0;
  padding: 13px 24px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 22px rgba(240, 86, 79, .35);
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: rgba(255,255,255,.12); box-shadow: none; border: 1.5px solid rgba(255,255,255,.45); margin-left: 8px; }

/* ---------- Calculator cards ---------- */
.calc-card {
  background: var(--card); border-radius: 18px; padding: 26px; color: var(--ink);
  box-shadow: var(--shadow-lift); border-top: 6px solid var(--coral);
}
.calc-card h2, .calc-card h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 5px; color: #4c3d6b; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1.6px solid #d5c8ee; border-radius: 10px; font-size: 1rem; background: #fdfbff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid #ffb03a; border-color: var(--violet-mid); }
.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; } }
.result-box { background: #f3edfd; border: 1.5px dashed #b79ae8; 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: var(--violet-deep); letter-spacing: -.01em; }
.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 #e2d7f7; }
.result-lines li:last-child { border-bottom: 0; }
.result-lines .neg { color: #b3372f; }
.result-lines .pos { color: var(--mint); }
.fineprint { font-size: .83rem; color: var(--muted); margin-top: 12px; }
table.schedule { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; background: #fff; border-radius: 10px; overflow: hidden; }
table.schedule th { background: var(--violet); color: #fff; text-align: right; padding: 8px 12px; }
table.schedule th:first-child { text-align: left; }
table.schedule td { padding: 7px 12px; border-bottom: 1px solid #eee6fa; text-align: right; }
table.schedule td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; }

/* ---------- Sections and cards ---------- */
.section { padding: 14px 0 32px; }
.section h2 { font-size: 1.7rem; margin: 10px 0 6px; font-weight: 800; }
.section .lede { color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.cat-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 4px; }
.cat-title .dot { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, var(--coral), #f59e6c); flex: 0 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 17px; }
.grid-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 480px) { .grid-tools { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 21px;
  box-shadow: 0 4px 16px rgba(42, 10, 82, .05); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 7px; font-size: 1.13rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .94rem; }
.card img.guide-img { width: 100%; border-radius: 10px; margin-bottom: 12px; display: block; }
.openbtn {
  display: inline-block; background: linear-gradient(135deg, var(--violet), var(--violet-mid)); color: #fff; text-decoration: none;
  padding: 8px 17px; border-radius: 999px; font-size: .9rem; font-weight: 700;
}
.openbtn:hover { filter: brightness(1.13); }
.tool-card { padding: 24px; }
.tool-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tool-card .what { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.prose { max-width: 780px; }
.prose p { color: #403257; }
.prose h3 { margin-top: 26px; }
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 8px 0 4px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 18px; text-align: center; box-shadow: 0 4px 16px rgba(42,10,82,.05); }
.stat .n { font-size: 1.9rem; font-weight: 800; color: var(--violet); }
.stat .t { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--violet-deep); color: #cfc0ee; margin-top: 46px; padding: 36px 0 26px; }
.site-footer a { color: #ffb03a; text-decoration: none; }
.footer-grid { display: flex; gap: 42px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid #472a75; margin-top: 24px; padding-top: 16px; font-size: .88rem; color: #a58fd6; }
