/* ============================================================
   LOVIAX — COMPLETE MASTER STYLESHEET
   Covers all pages: tools, blog, legal, categories
   ============================================================ */

/* ── from index.html ── */
/* ============================================
   LOVIAX DESIGN SYSTEM — style.css
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- GLOBAL LIST RESET ---- */
ul, ol { list-style: none; padding: 0; margin: 0; }
li { list-style: none; }

/* Restore styled lists only inside .legal-body where numbered/bulleted lists are intentional */
.legal-body ul  { list-style: disc;    padding-left: 22px; margin-bottom: 14px; }
.legal-body ol  { list-style: decimal; padding-left: 22px; margin-bottom: 14px; }
.legal-body li  { list-style: inherit; margin-bottom: 6px; }

/* TOC ordered list inside .toc-card */
.toc-card ol { list-style: decimal; padding-left: 18px; }
.toc-card li { list-style: inherit; }

:root {
  /* Core palette */
  --ink:         #0d1117;
  --ink-2:       #2d3748;
  --ink-3:       #4a5568;
  --ink-4:       #718096;
  --ink-5:       #a0aec0;

  --bg:          #fafbfc;
  --bg-white:    #ffffff;
  --bg-off:      #f4f6f9;
  --bg-subtle:   #eef1f6;

  --blue:        #2361d4;
  --blue-hover:  #1a4fb5;
  --blue-light:  #eaf1ff;
  --blue-mid:    #93b4f5;
  --blue-xlight: #f0f5ff;

  --teal:        #0891b2;
  --teal-light:  #e0f7fa;
  --rose:        #e11d48;
  --rose-light:  #fff1f4;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --green:       #059669;
  --green-light: #ecfdf5;

  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --shadow:      0 2px 8px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05);
  --shadow-blue: 0 4px 20px rgba(35,97,212,.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITY ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: 80px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
.section-sm { padding: 48px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid currentColor;
}
.tag-blue  { color: var(--blue);  background: var(--blue-xlight);  border-color: #c7d9f9; }
.tag-teal  { color: var(--teal);  background: var(--teal-light);   border-color: #b2ebf2; }
.tag-rose  { color: var(--rose);  background: var(--rose-light);   border-color: #fecdd3; }
.tag-amber { color: var(--amber); background: var(--amber-light);  border-color: #fde68a; }
.tag-green { color: var(--green); background: var(--green-light);  border-color: #a7f3d0; }

.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.2;  letter-spacing: -0.015em; color: var(--ink); }
.h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.lead { font-size: 1.08rem; color: var(--ink-3); font-weight: 300; line-height: 1.75; }
.body-sm { font-size: 0.875rem; color: var(--ink-4); line-height: 1.65; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(35,97,212,.35); }
.btn-secondary { background: var(--bg-white); color: var(--ink); border: 1.5px solid var(--border-2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); padding: 8px 16px; }
.btn-ghost:hover { background: var(--blue-xlight); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); text-decoration: none; font-weight: 700; letter-spacing: -0.03em; }
.nav-logo span { color: var(--ink-3); }
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a {
  display: block; padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-3); text-decoration: none;
  transition: all .15s;
}
.nav-menu a:hover { background: var(--bg-off); color: var(--ink); }
.nav-menu .has-dd { position: relative; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 4.5px; cursor: pointer; padding: 6px; border: none; background: none; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; }

/* ---- AD PLACEHOLDERS ---- */
.ad-slot {
  background: var(--bg-off);
  border: 1px dashed var(--blue-mid);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-5);
  padding: 12px;
}
.ad-banner { height: 90px; }
.ad-rect   { height: 250px; max-width: 336px; }
.ad-wrap   { padding: 12px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 14px var(--pad-x); max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.8rem; color: var(--ink-4);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-5); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-link { text-decoration: none; color: inherit; display: block; }

/* ---- TOOL CARD ---- */
.tool-card { display: flex; flex-direction: column; gap: 10px; }
.tool-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.tool-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.tool-card p  { font-size: 0.85rem; color: var(--ink-4); flex: 1; }
.tool-card .arrow { font-size: 0.83rem; font-weight: 600; color: var(--blue); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ---- FORM ELEMENTS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-label .hint { font-weight: 400; color: var(--ink-5); font-size: 0.78rem; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 0.9rem; pointer-events: none; }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; font-family: var(--font-body); color: var(--ink);
  background: var(--bg-white); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,97,212,.1); }
.form-input.has-prefix { padding-left: 30px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ---- RESULT BOX ---- */
.result-box { border-radius: var(--radius); padding: 24px; animation: fadeUp .35s ease; }
.result-safe   { background: var(--green-light); border: 1.5px solid #6ee7b7; }
.result-risky  { background: var(--amber-light); border: 1.5px solid #fcd34d; }
.result-danger { background: var(--rose-light);  border: 1.5px solid #fca5a5; }
.result-neutral{ background: var(--blue-xlight); border: 1.5px solid #c7d9f9; }
.result-verdict { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.result-safe   .result-verdict { color: var(--green); }
.result-risky  .result-verdict { color: var(--amber); }
.result-danger .result-verdict { color: var(--rose);  }
.result-neutral.result-verdict { color: var(--blue);  }
.result-text { font-size: 0.88rem; color: var(--ink-3); line-height: 1.65; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.result-stat { background: rgba(255,255,255,.65); border-radius: 8px; padding: 12px 14px; }
.result-stat-label { font-size: 0.72rem; color: var(--ink-4); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.result-stat-val { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 3px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; text-align: left; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); background: none; border: none;
  cursor: pointer; font-family: var(--font-body);
}
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--border-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--blue); transition: transform .3s, background .2s; }
.faq-btn.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding-bottom: 18px; font-size: 0.9rem; color: var(--ink-3); line-height: 1.75; }

/* ---- FOOTER ---- */
.footer { background: #0d1117; color: #8b9cb6; padding: 64px var(--pad-x) 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #1e2d3d; }
.footer-brand-logo { font-family: var(--font-display); font-size: 1.6rem; color: #fff; display: block; margin-bottom: 12px; letter-spacing: -0.03em; }
.footer-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 260px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; display: block; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li { list-style: none; }
.footer-col a { font-size: 0.85rem; color: #8b9cb6; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: #8b9cb6; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---- NAMED LIST RESETS (all custom list classes — no bullets ever) ---- */
.nav-menu,
.nav-menu li,
.side-list,
.side-list li,
.side-tips,
.side-tips li,
.tfc-features,
.tfc-features li,
.tfc-chk-green,
.tfc-chk-green li,
.tfc-chk-blue,
.tfc-chk-blue li,
.tfc-chk-purple,
.tfc-chk-purple li,
.tfc-chk-rose,
.tfc-chk-rose li,
.tfc-chk-violet,
.tfc-chk-violet li,
.tfc-chk-amber,
.tfc-chk-amber li,
.faq-topics,
.faq-topics li,
.contact-methods,
.contact-methods li,
.tip-list,
.tip-list li,
.strength-bars,
.strength-bars li,
.mp-items,
.mp-items li,
.bk-rows,
.bk-rows li,
.rec-steps,
.rec-steps li,
.rf-list,
.rf-list li,
.related-tools,
.related-tools li,
.related-links,
.related-links li,
.cat-tools-list li,
.sleep-days li,
.check-row li,
.tone-pills li,
.target-pills li,
.cat-grades li,
.ef-grid li,
.footer-col ul li,
.tool-cat ul,
.tool-cat ul li,
.value-cards li,
.promise-grid li,
.tools-cats li
{ list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.anim-up    { animation: fadeUp  .6s ease both; }
.anim-in    { animation: fadeIn  .5s ease both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; }
.d3 { animation-delay: .2s;  } .d4 { animation-delay: .28s; }
.d5 { animation-delay: .36s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav-menu, .nav-cta .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px var(--pad-x) 16px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .mobile-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
  .mobile-menu a:hover { background: var(--bg-off); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .result-grid { grid-template-columns: 1fr; }
}




/* ╔══════════════════════════════════════════════════════╗
   ║  DROPDOWN NAVIGATION — complete replacement          ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Base nav ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--blue); text-decoration: none;
  font-weight: 700; letter-spacing: -.03em; flex-shrink: 0;
}
.nav-logo span { color: var(--ink-3); }

/* ── Menu list ── */
.nav-menu {
  display: flex; align-items: center;
  gap: 2px; list-style: none; margin: 0; padding: 0;
  height: 64px;
}
.nav-menu > li {
  position: relative; height: 64px;
  display: flex; align-items: center;
}

/* ── Top-level links ── */
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap; height: 36px;
}
.nav-menu > li > a:hover { background: var(--bg-off); color: var(--ink); }

/* chevron icon on dropdown parents */
.nav-menu > li.has-dd > a .nav-chevron {
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-menu > li.has-dd:hover > a .nav-chevron,
.nav-menu > li.has-dd:focus-within > a .nav-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 400;
}

/* Show on hover OR focus-within (keyboard) */
.nav-menu > li.has-dd:hover .nav-dropdown,
.nav-menu > li.has-dd:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category header inside dropdown */
.dd-header {
  padding: 6px 10px 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-5);
}

/* Individual dropdown link */
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .855rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: var(--bg-off); color: var(--blue); }
.nav-dropdown a:hover .dd-icon { filter: none; }

.dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: var(--bg-off);
  transition: background .12s;
}
.dd-icon.fi { background: #eaf1ff; }
.dd-icon.we { background: #e0f7fa; }
.dd-icon.re { background: #fff1f4; }

.nav-dropdown a:hover .dd-icon.fi { background: #c7d9f9; }
.nav-dropdown a:hover .dd-icon.we { background: #b2ebf2; }
.nav-dropdown a:hover .dd-icon.re { background: #fecdd3; }

.dd-divider {
  height: 1px; background: var(--border);
  margin: 6px 0;
}
.dd-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px;
}
.dd-footer a {
  font-size: .78rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  padding: 0 !important; background: none !important;
}
.dd-footer a:hover { text-decoration: underline; color: var(--blue-hover) !important; background: none !important; }

/* ── Nav CTA area ── */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   MOBILE MENU — accordion style
   ════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 299;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-bottom: 16px;
}
.mobile-menu.open { display: block; }

/* Mobile top-level items */
.mob-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; font-family: var(--font-body);
  transition: background .12s;
}
.mob-item:hover { background: var(--bg-off); }
.mob-item:last-of-type { border-bottom: none; }
.mob-item .mob-icon { font-size: 1rem; margin-right: 4px; }

/* Accordion chevron */
.mob-chevron {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  flex-shrink: 0; transition: transform .22s ease;
}
.mob-chevron.open { transform: rotate(180deg); }

/* Mobile sub-items (accordion panel) */
.mob-sub {
  display: none;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 28px;
  font-size: .855rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { background: var(--bg-subtle); color: var(--blue); }
.mob-sub .msub-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0; background: #fff;
}

/* Plain mobile links (no accordion) */
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mob-link:hover { background: var(--bg-off); }

/* Blog dropdown icon */
.dd-icon.bl { background: #f0f5ff; }
.nav-dropdown a:hover .dd-icon.bl { background: #c7d9f9; }


@media (max-width: 900px) {
  .nav-menu, .nav-cta > .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}



/* ── Logo image in nav & footer ── */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* SVG has transparent bg, black text — works perfectly on white nav */
}
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo-wrap:hover { opacity: .75; }

/* Footer: dark bg → invert black logo to white */
.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
  margin-bottom: 10px;
}


/* ── from index.html ── */
/* ============================================================
   HERO — complete redesign
   ============================================================ */

/* Outer wrapper: multi-layer gradient for depth */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(35,97,212,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(8,145,178,.05) 0%, transparent 65%),
    linear-gradient(160deg, #f8faff 0%, #eef4ff 45%, #f0f8ff 100%);
  border-bottom: 1px solid rgba(35,97,212,.1);
}

/* Subtle dot-grid pattern overlay */
.hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(35,97,212,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Glowing orbs for visual depth */
.hero-wrap::after {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(35,97,212,.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(8,145,178,.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Left column: text ── */
.hero-text {}

/* Pill badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(35,97,212,.08);
  border: 1px solid rgba(35,97,212,.18);
  color: var(--blue);
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.6); }
}

/* Headline */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, #4f8ef7 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-headline */
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 28px;
  font-weight: 300;
}

/* Feature checklist */
.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 36px;
}
.hero-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--ink-3);
  font-weight: 500;
}
.hero-check .hc-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg,#4ade80,#16a34a);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .65rem; color: #fff;
  box-shadow: 0 2px 6px rgba(22,163,74,.3);
}

/* CTA buttons */
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2361d4, #1e56c0);
  color: #fff; font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; padding: 15px 28px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(35,97,212,.35), 0 1px 3px rgba(35,97,212,.2);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, #1a4fb5, #1745a8);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(35,97,212,.4);
}
.btn-hero-primary .btn-arrow { transition: transform .2s; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  color: var(--ink); font-family: var(--font-body); font-weight: 600;
  font-size: .92rem; padding: 14px 22px; border-radius: 10px;
  text-decoration: none; border: 1.5px solid rgba(35,97,212,.2);
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-hero-secondary:hover {
  border-color: var(--blue); color: var(--blue);
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
}

/* Social proof below buttons */
.hero-social-proof {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
}
.hsp-avatars { display: flex; }
.hsp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px; first-child { margin-left: 0; }
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#93c5fd,#3b82f6);
  color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.hsp-avatar:first-child { margin-left: 0; }
.hsp-avatar.av2 { background: linear-gradient(135deg,#86efac,#16a34a); }
.hsp-avatar.av3 { background: linear-gradient(135deg,#fda4b8,#e11d48); }
.hsp-avatar.av4 { background: linear-gradient(135deg,#fde68a,#d97706); }
.hsp-text { font-size: .78rem; color: var(--ink-4); line-height: 1.45; }
.hsp-text strong { color: var(--ink-2); font-weight: 700; display: block; font-size: .82rem; }

/* ── Right column: visual card cluster ── */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: transform .25s, box-shadow .25s;
  cursor: default;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

/* accent top strip per card */
.hero-card::before {
  content: '';
  display: block;
  height: 3px; border-radius: 3px;
  margin-bottom: 14px;
}
.hero-card.hc-blue::before   { background: linear-gradient(90deg,#2361d4,#60a5fa); }
.hero-card.hc-teal::before   { background: linear-gradient(90deg,#0891b2,#34d399); }
.hero-card.hc-rose::before   { background: linear-gradient(90deg,#e11d48,#f97316); }
.hero-card.hc-violet::before { background: linear-gradient(90deg,#7c3aed,#c084fc); }

.hero-card .hc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.hero-card .hc-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 3px;
}
.hero-card .hc-value {
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--ink); line-height: 1.15;
}
.hero-card .hc-sub {
  font-size: .75rem; color: var(--ink-5); margin-top: 3px;
}

/* Wide card — spans both columns */
.hero-card.span2 {
  grid-column: span 2;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
}
.hero-card.span2::before { display: none; }
.hero-card.span2 .hc-icon { font-size: 1.8rem; flex-shrink: 0; margin-bottom: 0; }
.hero-card.span2 .hc-value { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.hc-badge {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: .68rem; font-weight: 700; background: #e0fdf4; color: #059669;
  margin-left: 6px; vertical-align: middle;
}

/* floating card accent */
.hero-card.hc-float {
  background: linear-gradient(135deg, rgba(35,97,212,.06), rgba(79,142,247,.06));
  border-color: rgba(35,97,212,.14);
}

/* ── Trust bar ── */
.trust-bar {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(35,97,212,.08);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--pad-x);
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--ink-3);
}
.trust-item .ti-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-xlight); border: 1px solid rgba(35,97,212,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; flex-shrink: 0;
}

/* ============================================================
   FEATURED TOOLS
   ============================================================ */
.featured-wrap { background: var(--bg-white); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; }
.tool-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.tool-card p  { font-size: .85rem; color: var(--ink-4); flex:1; }
.tool-card .arrow { font-size: .83rem; font-weight: 700; color: var(--blue); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ============================================================
   SEO SECTION
   ============================================================ */
.seo-wrap { background: var(--bg-off); }
.seo-grid { display: grid; grid-template-columns: 5fr 3fr; gap: 56px; align-items: start; }
.seo-body h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); margin-bottom: 16px; }
.seo-body p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 14px; }

/* Seo feature list — icon checkmarks */
.seo-list {
  display: flex; flex-direction: column; gap: 10px; margin: 20px 0;
}
.seo-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--ink-3); line-height: 1.6;
}
.seo-list .sl-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: linear-gradient(135deg,#4ade80,#16a34a);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; color: #fff;
  box-shadow: 0 2px 6px rgba(22,163,74,.25);
}
.aside-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.aside-card h4 { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.aside-card p  { font-size: .83rem; color: var(--ink-4); margin: 0; line-height: 1.65; }
.seo-aside { display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   BENEFITS — icon list improved
   ============================================================ */
.benefits-wrap { background: var(--bg-white); }
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.benefit {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-2); }
.benefit-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-xlight); border: 1px solid rgba(35,97,212,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.benefit h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 5px; color: var(--ink); }
.benefit p  { font-size: .83rem; color: var(--ink-4); margin: 0; }

/* Benefits check list */
.benefit-checks { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.benefit-check  { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-4); }
.benefit-check::before {
  content: '✓'; width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; flex-shrink: 0;
}

/* ============================================================
   BLOG PREVIEW
   ============================================================ */
.blog-wrap { background: var(--bg-off); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { text-decoration: none; color: inherit; }
.blog-card-body { padding: 22px; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); transition: color .2s; }
.blog-card:hover h3 { color: var(--blue); }
.blog-card p { font-size: .83rem; color: var(--ink-4); line-height: 1.65; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blog-date { font-size: .75rem; color: var(--ink-5); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1a4fb5 0%, #2361d4 50%, #1e56c0 100%);
  color: #fff; text-align: center;
  padding: 72px var(--pad-x);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 14px; position: relative; }
.cta-banner p  { font-size: 1rem; opacity: .88; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; position: relative; }
.cta-banner .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .2s; position: relative;
}
.cta-banner .btn-cta:hover { background: var(--bg-off); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* CTA bullet list */
.cta-checks {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
  margin-bottom: 32px; position: relative;
}
.cta-check {
  display: flex; align-items: center; gap: 7px;
  font-size: .85rem; color: rgba(255,255,255,.85); font-weight: 500;
}
.cta-check::before {
  content: '✓';
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .hero        { grid-template-columns: 1fr; gap: 48px; padding: 72px var(--pad-x) 64px; }
  .hero-visual { max-width: 480px; }
  .hero-sub    { max-width: 100%; }
  .cat-grid    { grid-template-columns: 1fr; gap: 18px; }
  .seo-grid    { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px) {
  .hero         { padding: 56px var(--pad-x) 52px; }
  .hero-visual  { grid-template-columns: 1fr 1fr; }
  .hero-btns    { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .blog-grid    { grid-template-columns: 1fr; }
  .cta-checks   { flex-direction: column; align-items: center; gap: 10px; }
}

/* Animations */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);} }
.anim-up { animation: fadeUp .65s ease both; }
.d1{animation-delay:.06s;}.d2{animation-delay:.14s;}.d3{animation-delay:.22s;}.d4{animation-delay:.3s;}.d5{animation-delay:.38s;}


/* ============================================================
   WHAT WE OFFER — redesigned
   ============================================================ */
.offer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.offer-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Category cards — NO longer <a>, fixed nested link bug */
.cat-card {
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.09); }
.cat-card.finance    { background: linear-gradient(135deg,#eaf1ff,#dceeff); }
.cat-card.wellness   { background: linear-gradient(135deg,#e0f7fa,#ccf2f4); }
.cat-card.relations  { background: linear-gradient(135deg,#fff1f4,#ffe4ea); }
.cat-card:hover.finance   { border-color: rgba(35,97,212,.2); }
.cat-card:hover.wellness  { border-color: rgba(8,145,178,.2); }
.cat-card:hover.relations { border-color: rgba(225,29,72,.2); }

.cat-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cat-emoji  { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.cat-title  { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
              color: var(--ink); margin: 0 0 4px; }
.cat-desc   { font-size: .8rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

/* Tool list rows inside each card */
.cat-tools-list {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.cat-tools-list a {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 5px 9px; border-radius: 7px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9);
  transition: all .15s;
}
.cat-tools-list a:hover { background: rgba(255,255,255,.9); }
.finance  .cat-tools-list a:hover { color: var(--blue); }
.wellness .cat-tools-list a:hover { color: var(--teal); }
.relations .cat-tools-list a:hover { color: var(--rose); }

.ctl-check {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700;
}
.ctl-check.fi { background: rgba(35,97,212,.12);  color: var(--blue); }
.ctl-check.we { background: rgba(8,145,178,.12);  color: var(--teal); }
.ctl-check.re { background: rgba(225,29,72,.12);  color: var(--rose); }

.cat-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: gap .15s;
}
.finance  .cat-cta { color: var(--blue); }
.wellness .cat-cta { color: var(--teal); }
.relations .cat-cta { color: var(--rose); }
.cat-cta:hover { gap: 9px; }

/* All-tools button */
.all-tools-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-radius: 12px;
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 700; font-size: .88rem;
  transition: background .18s, transform .18s;
  border: none;
}
.all-tools-btn:hover { background: var(--ink-2); transform: translateY(-2px); }
.all-tools-btn .atb-arrow { font-size: 1rem; transition: transform .18s; }
.all-tools-btn:hover .atb-arrow { transform: translateX(4px); }

/* ── Live tool card ── */
.offer-live-tool { position: sticky; top: 80px; }
.live-tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
}
.ltc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-xlight); color: var(--blue);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(35,97,212,.15);
  margin-bottom: 12px;
}
.ltc-title {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--ink);
  margin: 0 0 8px; line-height: 1.15;
}
.ltc-sub { font-size: .86rem; color: var(--ink-3); line-height: 1.65; margin: 0 0 22px; }
.ltc-header { margin-bottom: 6px; }

.ltc-form { display: flex; flex-direction: column; gap: 12px; }
.ltc-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ltc-field { display: flex; flex-direction: column; gap: 5px; }
.ltc-label { font-size: .75rem; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.ltc-input-wrap { position: relative; }
.ltc-prefix {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: .88rem; font-weight: 600; color: var(--ink-4); pointer-events: none;
}
.ltc-input {
  width: 100%; padding: 10px 10px 10px 26px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
  background: var(--bg-off); outline: none; transition: border-color .15s, background .15s;
  -moz-appearance: textfield;
}
.ltc-input::-webkit-outer-spin-button,
.ltc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ltc-input:focus { border-color: var(--blue); background: #fff; }

.ltc-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #2361d4, #1e56c0);
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(35,97,212,.3);
  transition: all .2s; margin-top: 4px;
}
.ltc-btn:hover { background: linear-gradient(135deg,#1a4fb5,#1745a8); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(35,97,212,.38); }
.ltc-btn:active { transform: translateY(0); }

/* Result box */
.ltc-result { margin-top: 16px; border-radius: 12px; padding: 16px; border: 1.5px solid; }
.ltc-result.safe   { background: var(--green-light); border-color: #6ee7b7; }
.ltc-result.risky  { background: var(--amber-light); border-color: #fcd34d; }
.ltc-result.danger { background: var(--rose-light);  border-color: #fda4b8; }
.ltc-verdict { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.ltc-verdict-text { font-size: .84rem; color: var(--ink-3); line-height: 1.65; margin: 0; }
.ltc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.ltc-stat { background: rgba(255,255,255,.7); border-radius: 8px; padding: 9px; text-align: center; }
.ltc-stat-n { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.ltc-stat-l { font-size: .68rem; color: var(--ink-4); margin-top: 3px; }

.ltc-full-link {
  display: block; text-align: center; margin-top: 14px;
  font-size: .78rem; color: var(--blue); text-decoration: none; font-weight: 600;
}
.ltc-full-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .offer-layout { grid-template-columns: 1fr; }
  .offer-live-tool { position: static; }
}
@media (max-width: 640px) {
  .ltc-row { grid-template-columns: 1fr; }
  .ltc-stats { grid-template-columns: 1fr 1fr; }
}


/* ── from finance.html ── */
/* CATEGORY HERO */
    .cat-hero-wrap {
      background: linear-gradient(150deg, #eaf1ff 0%, #f0f5ff 50%, #ffffff 100%);
      border-bottom: 1px solid var(--border);
    }
    .cat-hero {
      max-width: var(--max-w); margin: 0 auto;
      padding: 72px var(--pad-x) 64px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    }
    .cat-hero h1 { margin-bottom: 18px; }
    .cat-hero h1 em { font-style: italic; color: var(--blue); }
    .cat-hero .lead { margin-bottom: 28px; }
    .cat-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
    .cat-stat { }
    .cat-stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--blue); line-height: 1; display: block; }
    .cat-stat .lbl { font-size: 0.8rem; color: var(--ink-4); font-weight: 500; margin-top: 2px; }
    .cat-hero-visual {
      display: flex; flex-direction: column; gap: 12px;
    }
    .mini-tool-row {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
      padding: 14px 18px; display: flex; align-items: center; gap: 14px;
      box-shadow: var(--shadow-xs); transition: box-shadow .2s;
    }
    .mini-tool-row:hover { box-shadow: var(--shadow-sm); }
    .mini-tool-row .icon { font-size: 1.3rem; flex-shrink: 0; }
    .mini-tool-row .info { flex: 1; }
    .mini-tool-row .name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
    .mini-tool-row .desc { font-size: 0.78rem; color: var(--ink-4); }
    .mini-tool-row .go { font-size: 0.78rem; font-weight: 700; color: var(--blue); white-space: nowrap; }

    /* TOOLS SECTION */
    .tools-section-wrap { background: var(--bg-white); }
    .tool-feature-card {
      display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
      background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
      transition: box-shadow .25s;
    }
    .tool-feature-card:hover { box-shadow: var(--shadow-lg); }
    .tool-feature-card.reverse { direction: rtl; }
    .tool-feature-card.reverse > * { direction: ltr; }
    .tfc-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
    .tfc-number { font-family: var(--font-display); font-size: 3.5rem; color: var(--blue); opacity: .12; line-height: 1; display: block; margin-bottom: -12px; }
    .tfc-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; }
    .tfc-desc { font-size: 0.92rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; }
    .tfc-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
    .tfc-features li { display: flex; gap: 9px; font-size: 0.87rem; color: var(--ink-3); }
    .tfc-features li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }
    .tfc-visual {
      background: var(--bg-off); border-radius: var(--radius); padding: 28px;
      border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px;
    }
    .tfc-visual-title { font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
    .mock-input { background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; font-size: 0.83rem; color: var(--ink-4); }
    .mock-result { border-radius: 9px; padding: 14px 16px; }
    .mock-safe   { background: var(--green-light); }
    .mock-risky  { background: var(--amber-light); }
    .mock-result-label { font-size: 0.83rem; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
    .mock-result-label.safe   { color: var(--green); }
    .mock-result-label.risky  { color: var(--amber); }
    .mock-result-sub { font-size: 0.75rem; color: var(--ink-4); }
    .mock-bar-wrap { }
    .mock-bar-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-4); margin-bottom: 5px; }
    .mock-bar-track { background: var(--border); border-radius: 4px; height: 7px; overflow: hidden; }
    .mock-bar-fill  { height: 100%; border-radius: 4px; }
    .mock-bar-fill.blue   { background: var(--blue); }
    .mock-bar-fill.teal   { background: var(--teal); }
    .mock-bar-fill.rose   { background: var(--rose); }
    .mock-bar-fill.amber  { background: var(--amber); }

    /* SEO CONTENT */
    .seo-section { background: var(--bg-off); }
    .seo-inner { max-width: 820px; }
    .seo-inner h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); margin: 28px 0 12px; }
    .seo-inner h2:first-child { margin-top: 0; }
    .seo-inner h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 22px 0 9px; }
    .seo-inner p  { font-size: 0.93rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }

    /* ALL TOOLS GRID */
    .all-tools-wrap { background: var(--bg-white); }
    .all-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

    /* RELATED */
    .related-wrap { background: var(--bg-off); }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

    @media (max-width: 1024px) {
      .cat-hero { grid-template-columns: 1fr; gap: 36px; }
      .tool-feature-card { grid-template-columns: 1fr; }
      .tool-feature-card.reverse { direction: ltr; }
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .related-grid { grid-template-columns: 1fr; }
    }


/* ── from wellness.html ── */
/* ===== WELLNESS THEME ===== */
    :root {
      --w-green:      #16a34a;
      --w-green-l:    #f0fdf4;
      --w-green-xl:   #dcfce7;
      --w-green-mid:  #86efac;
      --w-blue:       #0284c7;
      --w-blue-l:     #f0f9ff;
      --w-blue-xl:    #bae6fd;
      --w-purple:     #6d28d9;
      --w-purple-l:   #f5f3ff;
      --w-purple-xl:  #ede9fe;
    }

    /* HERO */
    .cat-hero-wrap {
      background: linear-gradient(145deg, #f0fdf4 0%, #e0f2fe 50%, #f5f3ff 100%);
      border-bottom: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    .cat-hero-wrap::before {
      content: '';
      position: absolute; top: -60px; right: -60px;
      width: 340px; height: 340px;
      background: radial-gradient(circle, rgba(134,239,172,.35) 0%, transparent 70%);
      pointer-events: none;
    }
    .cat-hero-wrap::after {
      content: '';
      position: absolute; bottom: -80px; left: 20%;
      width: 260px; height: 260px;
      background: radial-gradient(circle, rgba(125,211,252,.25) 0%, transparent 70%);
      pointer-events: none;
    }
    .cat-hero {
      max-width: var(--max-w); margin: 0 auto;
      padding: 72px var(--pad-x) 64px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
      position: relative; z-index: 1;
    }
    .cat-hero h1 { margin-bottom: 18px; }
    .cat-hero h1 em { font-style: italic; color: var(--w-green); }
    .cat-hero .lead { margin-bottom: 28px; }
    .cat-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
    .cat-stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--w-green); line-height: 1; display: block; }
    .cat-stat .lbl { font-size: 0.8rem; color: var(--ink-4); font-weight: 500; margin-top: 2px; }
    .cat-hero-visual { display: flex; flex-direction: column; gap: 12px; }

    /* MINI TOOL ROWS */
    .mini-tool-row {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
      padding: 14px 18px; display: flex; align-items: center; gap: 14px;
      box-shadow: var(--shadow-xs); text-decoration: none; color: inherit;
      transition: box-shadow .2s, transform .2s, border-color .2s;
    }
    .mini-tool-row:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
    .mini-tool-row .icon { font-size: 1.4rem; flex-shrink: 0; }
    .mini-tool-row .info { flex: 1; }
    .mini-tool-row .name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
    .mini-tool-row .desc { font-size: 0.78rem; color: var(--ink-4); margin-top: 2px; }

    .mtr-green  .mini-go { color: var(--w-green); }
    .mtr-blue   .mini-go { color: var(--w-blue); }
    .mtr-purple .mini-go { color: var(--w-purple); }
    .mtr-green:hover  { border-color: var(--w-green-mid); }
    .mtr-blue:hover   { border-color: var(--w-blue-xl); }
    .mtr-purple:hover { border-color: #c4b5fd; }
    .mini-go { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

    /* TOOLS SECTION */
    .tools-section-wrap { background: var(--bg-white); }
    .section { padding: 80px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
    .eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-green); margin-bottom: 10px; }
    .h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
    .lead { font-size: 1.08rem; color: var(--ink-3); font-weight: 300; line-height: 1.75; }

    /* FEATURE CARD */
    .tool-feature-card {
      display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
      border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
      background: var(--bg-white); transition: box-shadow .25s, transform .2s;
    }
    .tool-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
    .tool-feature-card.reverse { direction: rtl; }
    .tool-feature-card.reverse > * { direction: ltr; }

    .tfc-number { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; display: block; margin-bottom: -12px; opacity: .12; }
    .tfc-num-green  { color: var(--w-green); }
    .tfc-num-blue   { color: var(--w-blue); }
    .tfc-num-purple { color: var(--w-purple); }
    .tfc-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
    .tfc-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; }
    .tfc-desc  { font-size: 0.92rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; }

    .tfc-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
    .tfc-features li { display: flex; gap: 9px; font-size: 0.87rem; color: var(--ink-3); }
    .tfc-chk-green  li::before { content: '✓'; color: var(--w-green);  font-weight: 700; flex-shrink: 0; }
    .tfc-chk-blue   li::before { content: '✓'; color: var(--w-blue);   font-weight: 700; flex-shrink: 0; }
    .tfc-chk-purple li::before { content: '✓'; color: var(--w-purple); font-weight: 700; flex-shrink: 0; }

    /* VISUAL PANELS */
    .tfc-visual {
      border-radius: var(--radius); padding: 26px;
      border: 1px solid var(--border); display: flex; flex-direction: column; gap: 13px;
    }
    .tfc-visual-green  { background: var(--w-green-l); border-color: var(--w-green-xl); }
    .tfc-visual-blue   { background: var(--w-blue-l);  border-color: var(--w-blue-xl); }
    .tfc-visual-purple { background: var(--w-purple-l); border-color: var(--w-purple-xl); }
    .tfc-visual-title { font-size: 0.75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 2px; }

    /* MOCK UI ELEMENTS */
    .mock-tag {
      display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 100px;
      padding: 3px 10px; letter-spacing: .04em;
    }
    .mock-tag-green  { background: var(--w-green-xl);   color: var(--w-green); }
    .mock-tag-blue   { background: var(--w-blue-xl);    color: var(--w-blue); }
    .mock-tag-purple { background: var(--w-purple-xl);  color: var(--w-purple); }
    .mock-tag-amber  { background: var(--amber-light);  color: var(--amber); }
    .mock-tag-rose   { background: var(--rose-light);   color: var(--rose); }

    .mock-slider-row { background: rgba(255,255,255,.7); border-radius: 8px; padding: 11px 13px; }
    .mock-slider-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .8rem; }
    .mock-slider-lbl  { font-weight: 600; color: var(--ink-2); }
    .mock-slider-val  { font-weight: 700; }
    .mock-slider-track { background: rgba(0,0,0,.08); border-radius: 4px; height: 6px; overflow: hidden; }
    .mock-slider-fill  { height: 100%; border-radius: 4px; }

    .mock-bar-row { }
    .mock-bar-lbl  { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-4); margin-bottom: 4px; }
    .mock-bar-track { background: rgba(0,0,0,.08); border-radius: 4px; height: 7px; overflow: hidden; }
    .mock-bar-fill  { height: 100%; border-radius: 4px; }

    .mock-result-box { border-radius: 9px; padding: 12px 14px; }
    .mock-result-label { font-size: .82rem; font-weight: 700; margin-bottom: 3px; }
    .mock-result-sub   { font-size: .73rem; color: var(--ink-4); }

    .mock-water-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.7); border-radius: 8px; padding: 10px 13px; }
    .mock-water-icon { font-size: 1.4rem; }
    .mock-water-info { flex: 1; }
    .mock-water-num  { font-family: var(--font-display); font-size: 1.5rem; color: var(--w-blue); line-height: 1; }
    .mock-water-sub  { font-size: .73rem; color: var(--ink-4); margin-top: 2px; }

    /* SEO CONTENT */
    .seo-section { background: var(--bg-off); }
    .seo-inner   { max-width: 840px; }
    .seo-inner h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); margin: 28px 0 12px; }
    .seo-inner h2:first-child { margin-top: 0; }
    .seo-inner h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin: 22px 0 9px; }
    .seo-inner p  { font-size: .93rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }

    /* QUICK-ACCESS GRID */
    .all-tools-wrap { background: var(--bg-white); }
    .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
    .card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; transition: box-shadow .25s, transform .25s, border-color .25s; }
    .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
    .tool-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
    .tool-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 7px; }
    .tool-card p  { font-size: 0.85rem; color: var(--ink-4); line-height: 1.65; margin-bottom: 14px; }
    .tool-arrow   { font-size: .83rem; font-weight: 700; }

    /* RELATED CATEGORIES */
    .related-wrap { background: var(--bg-off); }
    .related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    .related-card { text-decoration: none; color: inherit; display: block; }
    .related-card .rc-head { font-size: 2rem; margin-bottom: 12px; }
    .related-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 7px; }
    .related-card p  { font-size: .85rem; color: var(--ink-4); line-height: 1.6; margin-bottom: 14px; }

    /* BUTTONS */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-body); font-weight: 600; font-size: .9rem; padding: 12px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap; }
    .btn-green   { background: var(--w-green);  color: #fff; box-shadow: 0 4px 16px rgba(22,163,74,.3); }
    .btn-green:hover   { background: #15803d; transform: translateY(-1px); }
    .btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border-2); }
    .btn-outline:hover { border-color: var(--w-green); color: var(--w-green); transform: translateY(-1px); }
    .btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }

    .tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor; }
    .tag-wellness { color: var(--w-green); background: var(--w-green-l); border-color: var(--w-green-mid); }

    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 20px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--w-green); color: #fff; border-color: var(--w-green); }

    @media (max-width:1024px) { .cat-hero { grid-template-columns: 1fr; gap: 36px; } .tool-feature-card { grid-template-columns: 1fr; } .tool-feature-card.reverse { direction: ltr; } .related-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .related-grid { grid-template-columns: 1fr; } }


/* ── from relationships.html ── */
/* ===== RELATIONSHIP THEME ===== */
    :root {
      --r-rose:      #e11d48;
      --r-rose-l:    #fff1f4;
      --r-rose-xl:   #ffe4ea;
      --r-rose-mid:  #fda4b8;
      --r-violet:    #7c3aed;
      --r-violet-l:  #f5f3ff;
      --r-violet-xl: #ede9fe;
      --r-violet-mid:#c4b5fd;
      --r-amber:     #d97706;
      --r-amber-l:   #fffbeb;
      --r-amber-xl:  #fef3c7;
    }

    /* HERO — warm romantic gradient */
    .cat-hero-wrap {
      background: linear-gradient(150deg, #1c0a1e 0%, #3b0764 35%, #701a75 70%, #be185d 100%);
      border-bottom: 1px solid #3b0764;
      position: relative; overflow: hidden;
    }
    .cat-hero-wrap::before {
      content: '';
      position: absolute; top: -80px; right: -80px;
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(244,114,182,.2) 0%, transparent 65%);
      pointer-events: none;
    }
    .cat-hero-wrap::after {
      content: '';
      position: absolute; bottom: -60px; left: 10%;
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(192,132,252,.15) 0%, transparent 65%);
      pointer-events: none;
    }
    .cat-hero {
      max-width: var(--max-w); margin: 0 auto;
      padding: 72px var(--pad-x) 64px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
      position: relative; z-index: 1;
    }
    .cat-hero h1 { color: #fff; margin-bottom: 18px; }
    .cat-hero h1 em { font-style: italic; color: #f9a8d4; }
    .cat-hero .lead { color: #e9d5ff; margin-bottom: 28px; }
    .cat-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
    .cat-stat .num { font-family: var(--font-display); font-size: 2rem; color: #f9a8d4; line-height: 1; display: block; }
    .cat-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,.55); font-weight: 500; margin-top: 2px; }

    .cat-hero-visual { display: flex; flex-direction: column; gap: 12px; }
    .mini-tool-row {
      border-radius: var(--radius); padding: 14px 18px;
      display: flex; align-items: center; gap: 14px;
      text-decoration: none; color: inherit;
      transition: transform .2s, box-shadow .2s;
    }
    .mini-tool-row:hover { transform: translateX(4px); }
    .mtr-rose   { background: rgba(255,241,244,.92); border: 1px solid var(--r-rose-mid); }
    .mtr-violet { background: rgba(245,243,255,.92); border: 1px solid var(--r-violet-mid); }
    .mtr-amber  { background: rgba(255,251,235,.92); border: 1px solid #fde68a; }
    .mtr-rose:hover   { box-shadow: 0 4px 20px rgba(225,29,72,.2); }
    .mtr-violet:hover { box-shadow: 0 4px 20px rgba(124,58,237,.2); }
    .mtr-amber:hover  { box-shadow: 0 4px 20px rgba(217,119,6,.2); }
    .mini-tool-row .icon { font-size: 1.4rem; flex-shrink: 0; }
    .mini-tool-row .info { flex: 1; }
    .mini-tool-row .name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
    .mini-tool-row .desc { font-size: 0.78rem; color: var(--ink-4); margin-top: 2px; }
    .mini-go { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

    /* SECTION */
    .section { padding: 80px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
    .eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-rose); margin-bottom: 10px; }
    .h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
    .lead { font-size: 1.08rem; color: var(--ink-3); font-weight: 300; line-height: 1.75; }

    /* FEATURE CARDS */
    .tools-section-wrap { background: var(--bg-white); }
    .tool-feature-card {
      display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
      border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
      background: var(--bg-white); transition: box-shadow .25s, transform .2s;
    }
    .tool-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
    .tool-feature-card.reverse { direction: rtl; }
    .tool-feature-card.reverse > * { direction: ltr; }

    .tfc-number { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; display: block; margin-bottom: -12px; opacity: .1; }
    .tfc-num-rose   { color: var(--r-rose); }
    .tfc-num-violet { color: var(--r-violet); }
    .tfc-num-amber  { color: var(--r-amber); }
    .tfc-badge  { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
    .tfc-title  { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; }
    .tfc-desc   { font-size: 0.92rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; }
    .tfc-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
    .tfc-features li { display: flex; gap: 9px; font-size: 0.87rem; color: var(--ink-3); }
    .tfc-chk-rose   li::before { content: '✓'; color: var(--r-rose);   font-weight: 700; flex-shrink: 0; }
    .tfc-chk-violet li::before { content: '✓'; color: var(--r-violet); font-weight: 700; flex-shrink: 0; }
    .tfc-chk-amber  li::before { content: '✓'; color: var(--r-amber);  font-weight: 700; flex-shrink: 0; }

    /* VISUAL PANELS */
    .tfc-visual { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 13px; }
    .tfc-visual-rose   { background: var(--r-rose-l);   border-color: var(--r-rose-xl); }
    .tfc-visual-violet { background: var(--r-violet-l); border-color: var(--r-violet-xl); }
    .tfc-visual-amber  { background: var(--r-amber-l);  border-color: var(--r-amber-xl); }
    .tfc-visual-title  { font-size: 0.75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 2px; }

    /* MOCK ELEMENTS */
    .mock-tag { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 100px; padding: 3px 10px; letter-spacing: .04em; }
    .mock-tag-rose   { background: var(--r-rose-xl);   color: var(--r-rose); }
    .mock-tag-violet { background: var(--r-violet-xl); color: var(--r-violet); }
    .mock-tag-amber  { background: var(--r-amber-xl);  color: var(--r-amber); }
    .mock-tag-green  { background: var(--green-light);  color: var(--green); }

    /* MOCK MESSAGE BUBBLE */
    .msg-bubble {
      border-radius: 18px 18px 4px 18px;
      padding: 12px 16px; font-size: .85rem; line-height: 1.55; color: var(--ink-2);
      position: relative;
    }
    .msg-bubble.sent { background: #fce7f3; align-self: flex-end; border-radius: 18px 18px 18px 4px; }
    .msg-bubble.recv { background: #fff; border: 1px solid var(--border); }
    .msg-time { font-size: .68rem; color: var(--ink-5); margin-top: 5px; text-align: right; }
    .msg-thread { display: flex; flex-direction: column; gap: 8px; }

    /* MOCK TONE PILLS */
    .tone-pills { display: flex; flex-wrap: wrap; gap: 6px; }
    .tone-pill { padding: 5px 11px; border-radius: 100px; font-size: .75rem; font-weight: 600; border: 1.5px solid; }
    .tp-selected { background: var(--r-rose); color: #fff; border-color: var(--r-rose); }
    .tp-plain    { background: transparent; color: var(--ink-3); border-color: var(--border); }

    /* MOCK STRENGTH METER */
    .strength-bars { display: flex; flex-direction: column; gap: 9px; }
    .sb-row { }
    .sb-label { display: flex; justify-content: space-between; margin-bottom: 4px; }
    .sb-name  { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
    .sb-score { font-size: .75rem; font-weight: 700; }
    .sb-track { background: rgba(0,0,0,.07); border-radius: 4px; height: 6px; overflow: hidden; }
    .sb-fill  { height: 100%; border-radius: 4px; }

    /* SEO */
    .seo-section { background: var(--bg-off); }
    .seo-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
    .seo-body h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); margin: 28px 0 12px; }
    .seo-body h2:first-child { margin-top: 0; }
    .seo-body h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin: 22px 0 9px; }
    .seo-body p  { font-size: .93rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }
    .seo-aside   { display: flex; flex-direction: column; gap: 16px; }
    .aside-card  { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
    .aside-card h4 { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
    .aside-card p  { font-size: .83rem; color: var(--ink-4); margin: 0; line-height: 1.65; }

    /* ALL TOOLS */
    .all-tools-wrap { background: var(--bg-white); }
    .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
    .card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; display: block; }
    .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
    .tool-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
    .tool-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 7px; }
    .tool-card p  { font-size: .85rem; color: var(--ink-4); line-height: 1.65; margin-bottom: 14px; }
    .tool-arrow   { font-size: .83rem; font-weight: 700; }

    /* RELATED */
    .related-wrap { background: var(--bg-off); }
    .related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    .related-card { text-decoration: none; color: inherit; display: block; }
    .related-card .rc-head { font-size: 2rem; margin-bottom: 12px; }
    .related-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 7px; }
    .related-card p  { font-size: .85rem; color: var(--ink-4); line-height: 1.6; margin-bottom: 14px; }

    /* BUTTONS */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-body); font-weight: 600; font-size: .9rem; padding: 12px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap; }
    .btn-rose { background: var(--r-rose); color: #fff; box-shadow: 0 4px 16px rgba(225,29,72,.3); }
    .btn-rose:hover { background: #be123c; transform: translateY(-1px); }
    .btn-outline { background: rgba(255,255,255,.9); color: var(--ink); border: 1.5px solid rgba(255,255,255,.3); }
    .btn-outline:hover { background: #fff; transform: translateY(-1px); }
    .btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }

    .tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor; }
    .tag-rel { color: #f9a8d4; background: rgba(249,168,212,.15); border-color: rgba(249,168,212,.3); }

    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 20px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--r-rose); color: #fff; border-color: var(--r-rose); }

    @media (max-width:1024px) { .cat-hero { grid-template-columns: 1fr; gap: 36px; } .tool-feature-card { grid-template-columns: 1fr; } .tool-feature-card.reverse { direction: ltr; } .seo-grid { grid-template-columns: 1fr; } .related-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .related-grid { grid-template-columns: 1fr; } }


/* ── from afford.html ── */
/* PAGE HERO */
    .page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #eaf1ff 70%, #e0ecff 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero {
      max-width: var(--max-w); margin: 0 auto;
      padding: 60px var(--pad-x) 52px;
    }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--blue); }
    .page-hero .lead { max-width: 600px; }

    /* MAIN LAYOUT */
    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* INTRO */
    .intro-block { margin-bottom: 36px; }
    .intro-block h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .intro-block p  { font-size: 0.93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    /* CALCULATOR CARD */
    .calc-card {
      background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 36px; box-shadow: var(--shadow);
      margin-bottom: 36px;
    }
    .calc-card-title {
      font-family: var(--font-display); font-size: 1.4rem; color: var(--ink);
      margin-bottom: 8px;
    }
    .calc-card-sub { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .section-divider {
      display: flex; align-items: center; gap: 12px;
      font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4);
      margin: 8px 0 20px;
    }
    .section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .calc-submit {
      width: 100%; padding: 16px;
      background: var(--blue); color: #fff;
      font-family: var(--font-body); font-size: 1rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: all .2s; margin-top: 8px;
      box-shadow: var(--shadow-blue);
    }
    .calc-submit:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(35,97,212,.35); }
    .calc-reset {
      width: 100%; padding: 10px;
      background: transparent; color: var(--ink-4);
      font-family: var(--font-body); font-size: 0.83rem; font-weight: 500;
      border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
      transition: all .2s; margin-top: 8px;
    }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }
    #result { display: none; margin-top: 24px; }

    /* HOW TO USE */
    .how-section { margin-bottom: 40px; }
    .how-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }
    .steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .step-card { background: var(--bg-off); border-radius: var(--radius); padding: 22px; }
    .step-num  { font-family: var(--font-display); font-size: 2rem; color: var(--blue); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: 0.9rem; margin: 6px 0 6px; color: var(--ink); }
    .step-card p  { font-size: 0.83rem; color: var(--ink-4); margin: 0; line-height: 1.6; }

    /* WHY SECTION */
    .why-section { margin-bottom: 40px; }
    .why-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
    .why-section p  { font-size: 0.93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
    .tip-card { background: var(--blue-xlight); border-left: 3px solid var(--blue); border-radius: 9px; padding: 16px 18px; }
    .tip-card h4 { font-weight: 700; font-size: 0.85rem; color: var(--ink); margin-bottom: 5px; }
    .tip-card p  { font-size: 0.82rem; color: var(--ink-3); margin: 0; line-height: 1.6; }

    /* FAQ */
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card {
      background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 22px; box-shadow: var(--shadow-xs);
    }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-tips { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .side-tips li { display: flex; gap: 9px; font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }
    .side-tips .icon { flex-shrink: 0; }
    .related-tools { display: flex; flex-direction: column; gap: 9px; }
    .rel-link {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
      text-decoration: none; font-size: 0.85rem; font-weight: 500; color: var(--ink);
      transition: all .2s;
    }
    .rel-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xlight); }
    .rel-link .rel-left { display: flex; align-items: center; gap: 9px; }
    .rel-link .arr { color: var(--blue); font-size: .8rem; }

    /* INTERNAL LINKS */
    .int-links-section {
      background: var(--bg-white); border-top: 1px solid var(--border);
      text-align: center; padding: 48px var(--pad-x);
    }
    .int-links-section h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 24px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .chip {
      display: inline-block; padding: 10px 20px; border-radius: 100px;
      border: 1.5px solid var(--border); background: var(--bg);
      font-size: 0.85rem; font-weight: 500; color: var(--ink); text-decoration: none;
      transition: all .2s;
    }
    .chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

    @media (max-width: 1024px) {
      .tool-layout { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .form-row { grid-template-columns: 1fr; }
      .steps-grid { grid-template-columns: 1fr; }
      .tips-grid  { grid-template-columns: 1fr; }
      .sidebar { grid-template-columns: 1fr; }
    }


/* ── from budget.html ── */
.page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #e0f7fa 65%, #ccf2f4 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero {
      max-width: var(--max-w); margin: 0 auto;
      padding: 60px var(--pad-x) 52px;
    }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--teal); }

    /* LAYOUT */
    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* CALC CARD */
    .calc-card {
      background: var(--bg-white); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
      margin-bottom: 32px;
    }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }

    .expense-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
    .expense-row  { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
    .expense-row .remove-btn {
      width: 34px; height: 38px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      background: none; cursor: pointer; font-size: 1rem; color: var(--ink-4);
      display: flex; align-items: center; justify-content: center;
      transition: all .2s; flex-shrink: 0;
    }
    .expense-row .remove-btn:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-light); }
    .add-row-btn {
      display: inline-flex; align-items: center; gap: 7px;
      font-size: 0.85rem; font-weight: 600; color: var(--teal); background: var(--teal-light);
      border: 1.5px solid #b2ebf2; border-radius: var(--radius-sm);
      padding: 9px 16px; cursor: pointer; transition: all .2s;
      font-family: var(--font-body);
    }
    .add-row-btn:hover { background: #b2f0f8; border-color: var(--teal); }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
    .calc-submit {
      width: 100%; padding: 16px; background: var(--teal); color: #fff;
      font-family: var(--font-body); font-size: 1rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: all .2s; margin-top: 8px; letter-spacing: .01em;
    }
    .calc-submit:hover { background: #0e7490; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(8,145,178,.3); }
    .calc-reset {
      width: 100%; padding: 10px; background: transparent; color: var(--ink-4);
      font-family: var(--font-body); font-size: 0.83rem; font-weight: 500;
      border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
      transition: all .2s; margin-top: 8px;
    }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT PANEL */
    #result { display: none; margin-top: 28px; }
    .result-panel {
      background: var(--bg-white); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 28px;
      animation: fadeUp .4s ease;
    }
    .result-panel-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
    .summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
    .sum-card { border-radius: var(--radius); padding: 16px; text-align: center; }
    .sum-card .s-label { font-size: 0.73rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
    .sum-card .s-val   { font-family: var(--font-display); font-size: 1.5rem; }
    .sum-card.income { background: var(--teal-light); }
    .sum-card.income .s-label { color: var(--teal); } .sum-card.income .s-val { color: #0e7490; }
    .sum-card.spent  { background: var(--amber-light); }
    .sum-card.spent  .s-label { color: var(--amber); } .sum-card.spent  .s-val { color: var(--amber); }
    .sum-card.remain { background: var(--green-light); }
    .sum-card.remain .s-label { color: var(--green); } .sum-card.remain .s-val { color: var(--green); }
    .sum-card.remain.negative { background: var(--rose-light); }
    .sum-card.remain.negative .s-label { color: var(--rose); } .sum-card.remain.negative .s-val { color: var(--rose); }

    /* BAR CHART */
    .bars-section { margin-bottom: 24px; }
    .bars-title { font-size: 0.78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .bar-row { margin-bottom: 13px; }
    .bar-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
    .bar-name { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
    .bar-amount { font-size: 0.83rem; font-weight: 700; color: var(--ink); }
    .bar-pct-badge { font-size: 0.72rem; font-weight: 600; color: var(--ink-4); background: var(--bg-subtle); border-radius: 100px; padding: 2px 7px; }
    .bar-track { background: var(--border); border-radius: 6px; height: 9px; overflow: hidden; }
    .bar-fill  { height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.25,.46,.45,.94); }

    /* 50/30/20 BREAKDOWN */
    .rule-section { background: var(--bg-off); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
    .rule-title { font-size: 0.78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .rule-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
    .rule-row:last-child { margin-bottom: 0; }
    .rule-label { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); min-width: 120px; }
    .rule-bar-wrap { flex: 1; min-width: 120px; margin: 0 12px; }
    .rule-actual { font-size: 0.82rem; font-weight: 700; }
    .rule-target { font-size: 0.72rem; color: var(--ink-4); }
    .rule-status { font-size: 0.75rem; font-weight: 700; border-radius: 100px; padding: 3px 9px; white-space: nowrap; }
    .status-ok   { background: var(--green-light); color: var(--green); }
    .status-over { background: var(--rose-light);  color: var(--rose); }
    .status-under{ background: var(--amber-light); color: var(--amber); }

    /* VERDICT */
    .verdict-row { border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; }
    .verdict-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
    .verdict-text h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
    .verdict-text p  { font-size: 0.85rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

    /* CONTENT SECTIONS */
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: 0.93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .content-section { margin-bottom: 40px; }

    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--teal); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: 0.88rem; margin: 5px 0 5px; color: var(--ink); }
    .step-card p  { font-size: 0.82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }

    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--teal); background: var(--teal-light); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: 0.85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: 0.81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }

    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: 0.85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }

    /* CHIPS */
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: 0.84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

    @media (max-width: 1024px) {
      .tool-layout { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .summary-grid { grid-template-columns: 1fr; }
      .steps-grid { grid-template-columns: 1fr; }
      .tips-grid  { grid-template-columns: 1fr; }
      .sidebar    { grid-template-columns: 1fr; }
      .expense-row { grid-template-columns: 1fr auto; }
      .expense-row .form-group:last-of-type { display: none; }
    }


/* ── from savings.html ── */
.page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #fffbeb 65%, #fef3c7 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--amber); }

    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* CALC */
    .calc-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }
    .form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
    .calc-submit {
      width: 100%; padding: 16px; background: var(--amber); color: #fff;
      font-family: var(--font-body); font-size: 1rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: all .2s; letter-spacing: .01em;
    }
    .calc-submit:hover { background: #b45309; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(217,119,6,.3); }
    .calc-reset { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: 0.83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .result-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; animation: fadeUp .4s ease; }
    .result-panel-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }

    /* BIG VERDICT CARD */
    .goal-verdict {
      border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px;
      display: flex; flex-direction: column; align-items: center; text-align: center;
    }
    .goal-verdict.on-track  { background: var(--green-light); border: 1.5px solid #6ee7b7; }
    .goal-verdict.stretch   { background: var(--amber-light); border: 1.5px solid #fcd34d; }
    .goal-verdict.difficult { background: var(--rose-light);  border: 1.5px solid #fca5a5; }
    .goal-date { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 6px; }
    .goal-verdict.on-track  .goal-date { color: var(--green); }
    .goal-verdict.stretch   .goal-date { color: var(--amber); }
    .goal-verdict.difficult .goal-date { color: var(--rose); }
    .goal-sub { font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; max-width: 400px; }

    /* STATS */
    .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
    .stat-box { background: var(--bg-off); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
    .stat-box .sl { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 5px; }
    .stat-box .sv { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }

    /* PROGRESS BAR */
    .progress-section { margin-bottom: 24px; }
    .progress-label { display: flex; justify-content: space-between; font-size: .83rem; margin-bottom: 7px; }
    .progress-label .pl { font-weight: 600; color: var(--ink-2); }
    .progress-label .pr { color: var(--ink-4); }
    .progress-track { background: var(--border); border-radius: 8px; height: 14px; overflow: hidden; }
    .progress-fill  { height: 100%; border-radius: 8px; transition: width 1s cubic-bezier(.25,.46,.45,.94); background: linear-gradient(90deg, var(--amber), #f59e0b); }

    /* MILESTONE TIMELINE */
    .timeline-section { margin-bottom: 8px; }
    .timeline-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .timeline { display: flex; flex-direction: column; gap: 0; }
    .tl-item { display: flex; align-items: flex-start; gap: 12px; }
    .tl-dot-col { display: flex; flex-direction: column; align-items: center; width: 18px; flex-shrink: 0; }
    .tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--amber); background: #fff; flex-shrink: 0; margin-top: 3px; }
    .tl-dot.reached { background: var(--amber); }
    .tl-line { width: 2px; flex: 1; min-height: 20px; background: var(--border); }
    .tl-content { padding-bottom: 18px; }
    .tl-month { font-size: 0.83rem; font-weight: 700; color: var(--ink); }
    .tl-amt   { font-size: 0.78rem; color: var(--ink-4); margin-top: 2px; }

    /* ADJUST SECTION */
    .adjust-section { background: var(--amber-light); border: 1.5px solid #fde68a; border-radius: var(--radius); padding: 20px 22px; margin-top: 20px; }
    .adjust-title { font-size: .83rem; font-weight: 700; color: var(--amber); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
    .adjust-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .adjust-row p { font-size: .85rem; color: var(--ink-3); margin: 0; }
    .adjust-row strong { color: var(--ink); }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--amber); opacity: .3; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0 5px; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }

    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--amber); background: var(--amber-light); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }

    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-light); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--amber); color: #fff; border-color: var(--amber); }

    @media (max-width:1024px) {
      .tool-layout { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    }
    @media (max-width:640px) {
      .form-row { grid-template-columns: 1fr; }
      .steps-grid { grid-template-columns: 1fr; }
      .tips-grid  { grid-template-columns: 1fr; }
      .sidebar    { grid-template-columns: 1fr; }
      .stats-row  { grid-template-columns: 1fr 1fr; }
    }


/* ── from spending.html ── */
.page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #fdf4ff 65%, #f3e8ff 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: #7c3aed; }

    :root { --violet: #7c3aed; --violet-light: #f5f3ff; --violet-mid: #c4b5fd; }

    .tool-layout { max-width: var(--max-w); margin: 0 auto; padding: 40px var(--pad-x); display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

    /* CALC */
    .calc-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }

    .spending-cats { display: flex; flex-direction: column; gap: 0; }
    .cat-row {
      display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .cat-row:last-child { border-bottom: none; }
    .cat-emoji { font-size: 1.4rem; width: 36px; text-align: center; flex-shrink: 0; }
    .cat-info h4 { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
    .cat-info p  { font-size: .76rem; color: var(--ink-4); margin: 0; }
    .cat-input-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 120px; }
    .cat-input-wrap label { font-size: .72rem; color: var(--ink-5); font-weight: 500; }
    .cat-input { width: 120px; padding: 9px 10px 9px 26px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--font-body); color: var(--ink); background: var(--bg); outline: none; transition: border-color .2s; }
    .cat-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
    .cat-input-box { position: relative; }
    .cat-input-box .pfx { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: .88rem; pointer-events: none; }

    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
    .calc-submit { width: 100%; padding: 16px; background: var(--violet); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; letter-spacing: .01em; }
    .calc-submit:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,.3); }
    .calc-reset { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: .83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .result-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; animation: fadeUp .4s ease; }
    .result-panel-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; }

    /* SCORE DISPLAY */
    .score-display { display: flex; align-items: center; gap: 24px; background: var(--bg-off); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap; }
    .score-letter { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 700; }
    .score-details { flex: 1; }
    .score-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
    .score-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
    .score-sub   { font-size: .85rem; color: var(--ink-3); }
    .score-bar-wrap { width: 100%; margin-top: 8px; }
    .score-bar-track { background: var(--border); border-radius: 6px; height: 8px; overflow: hidden; }
    .score-bar-fill  { height: 100%; border-radius: 6px; transition: width .8s ease; }

    /* CATEGORY GRADES */
    .cat-grades { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .grade-row { background: var(--bg-off); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
    .grade-badge { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
    .grade-A { background: var(--green-light);  color: var(--green); }
    .grade-B { background: var(--teal-light);   color: var(--teal); }
    .grade-C { background: var(--amber-light);  color: var(--amber); }
    .grade-D { background: #fff7ed; color: #c2410c; }
    .grade-F { background: var(--rose-light);   color: var(--rose); }
    .grade-info { flex: 1; }
    .grade-name { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
    .grade-detail { font-size: .78rem; color: var(--ink-4); }
    .grade-pct { font-size: .82rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

    /* TIPS */
    .tips-result { margin-top: 20px; }
    .tips-result-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
    .tip-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .87rem; color: var(--ink-3); line-height: 1.6; }
    .tip-item:last-child { border-bottom: none; }
    .tip-item .tip-ico { flex-shrink: 0; font-size: 1rem; }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--violet); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--violet); background: var(--violet-light); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--violet); color: var(--violet); background: var(--violet-light); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .cat-row { grid-template-columns: auto 1fr; } .cat-input-wrap { min-width: 0; } .cat-input { width: 100%; } }


/* ── from sitting.html ── */
/* PAGE THEME — Forest Green */
    :root {
      --accent:       #16a34a;
      --accent-hover: #15803d;
      --accent-light: #f0fdf4;
      --accent-mid:   #86efac;
      --accent-xlight:#dcfce7;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #f0fdf4 60%, #dcfce7 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--accent); }

    /* TAG */
    .tag-green-custom { color: var(--accent); background: var(--accent-xlight); border-color: var(--accent-mid); }

    /* LAYOUT */
    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* CALC CARD */
    .calc-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }
    .form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

    /* SLIDER INPUT */
    .slider-group { margin-bottom: 20px; }
    .slider-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
    .slider-label  { font-size: 0.83rem; font-weight: 600; color: var(--ink-2); }
    .slider-val    { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); font-weight: 700; }
    .slider-unit   { font-size: 0.75rem; color: var(--ink-4); }
    input[type=range] {
      -webkit-appearance: none; width: 100%; height: 6px;
      background: var(--border); border-radius: 4px; outline: none;
      cursor: pointer; transition: background .2s;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 20px; height: 20px;
      border-radius: 50%; background: var(--accent);
      cursor: pointer; box-shadow: 0 2px 8px rgba(22,163,74,.3);
      transition: transform .15s;
    }
    input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
    input[type=range]::-moz-range-thumb {
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--accent); cursor: pointer; border: none;
    }
    .slider-ticks { display: flex; justify-content: space-between; margin-top: 4px; }
    .slider-ticks span { font-size: 0.68rem; color: var(--ink-5); }

    .calc-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(22,163,74,.3); }
    .calc-reset { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: 0.83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RISK METER */
    #result { display: none; margin-top: 28px; }
    .result-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; animation: fadeUp .4s ease; }
    .result-panel-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; }

    .risk-meter { background: var(--bg-off); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
    .risk-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
    .risk-label-box { }
    .risk-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 3px; }
    .risk-title { font-family: var(--font-display); font-size: 1.6rem; }
    .risk-badge { font-size: 0.78rem; font-weight: 700; border-radius: 100px; padding: 5px 14px; }
    .risk-low      { color: #15803d; background: #dcfce7; }
    .risk-moderate { color: var(--amber); background: var(--amber-light); }
    .risk-high     { color: #c2410c; background: #fff7ed; }
    .risk-critical { color: var(--rose); background: var(--rose-light); }

    /* SEGMENTED BAR */
    .seg-bar-wrap { margin-bottom: 8px; }
    .seg-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; }
    .seg-bar .seg { flex: 1; transition: opacity .3s; }
    .seg-bar .seg-1 { background: #4ade80; }
    .seg-bar .seg-2 { background: #facc15; }
    .seg-bar .seg-3 { background: #fb923c; }
    .seg-bar .seg-4 { background: #f87171; }
    .seg-indicator {
      position: relative; margin-top: 4px; height: 14px;
    }
    .seg-needle {
      position: absolute; width: 3px; height: 14px;
      background: var(--ink); border-radius: 2px;
      transform: translateX(-50%);
      transition: left .8s cubic-bezier(.25,.46,.45,.94);
    }
    .seg-labels { display: flex; justify-content: space-between; margin-top: 4px; }
    .seg-labels span { font-size: 0.68rem; color: var(--ink-5); }

    /* STATS GRID */
    .stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 22px; }
    .stat-box { background: var(--bg-off); border-radius: var(--radius); padding: 14px; text-align: center; }
    .stat-box .sl { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 5px; }
    .stat-box .sv { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }

    /* RISK FACTORS */
    .risk-factors { margin-bottom: 22px; }
    .rf-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
    .rf-list  { display: flex; flex-direction: column; gap: 10px; }
    .rf-item  { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--ink-3); line-height: 1.5; }
    .rf-icon  { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

    /* MOVEMENT PLAN */
    .movement-plan { background: var(--accent-xlight); border: 1.5px solid var(--accent-mid); border-radius: var(--radius); padding: 20px 22px; }
    .mp-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
    .mp-items { display: flex; flex-direction: column; gap: 10px; }
    .mp-item  { display: flex; gap: 10px; font-size: .87rem; color: var(--ink-3); line-height: 1.5; }
    .mp-ico   { flex-shrink: 0; width: 24px; height: 24px; background: var(--accent); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }

    /* CONTENT SECTIONS */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--accent); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }

    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--accent); background: var(--accent-xlight); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }

    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }
    .faq-section    { margin-bottom: 40px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-xlight); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }

    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .form-row { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; } }


/* ── from water.html ── */
:root {
      --accent:       #0284c7;
      --accent-hover: #0369a1;
      --accent-light: #e0f2fe;
      --accent-mid:   #7dd3fc;
      --accent-xlight:#f0f9ff;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #ffffff 0%, #e0f2fe 60%, #bae6fd 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--accent); }

    .tag-water { color: var(--accent); background: var(--accent-xlight); border-color: var(--accent-mid); }

    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* CALC */
    .calc-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 28px; }
    .form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

    /* OPTION PILLS */
    .option-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .pill {
      padding: 8px 16px; border-radius: 100px; border: 1.5px solid var(--border);
      font-size: 0.82rem; font-weight: 500; color: var(--ink-3); cursor: pointer;
      background: var(--bg); transition: all .15s; user-select: none;
      font-family: var(--font-body);
    }
    .pill:hover { border-color: var(--accent); color: var(--accent); }
    .pill.selected { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

    /* CHECKBOX ROW */
    .check-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .check-pill {
      display: flex; align-items: center; gap: 7px;
      padding: 8px 14px; border-radius: 100px; border: 1.5px solid var(--border);
      font-size: 0.81rem; font-weight: 500; color: var(--ink-3); cursor: pointer;
      background: var(--bg); transition: all .15s; user-select: none;
      font-family: var(--font-body);
    }
    .check-pill input { accent-color: var(--accent); cursor: pointer; }
    .check-pill:has(input:checked) { background: var(--accent-xlight); border-color: var(--accent); color: var(--accent); }

    .calc-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(2,132,199,.3); }
    .calc-reset { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: .83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .result-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; animation: fadeUp .4s ease; }
    .result-panel-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; }

    /* WATER VISUAL */
    .water-visual {
      display: flex; align-items: center; gap: 24px;
      background: linear-gradient(135deg, var(--accent-xlight), #e0f2fe);
      border: 1.5px solid var(--accent-mid);
      border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; flex-wrap: wrap;
    }
    .water-glass-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .water-glass {
      width: 60px; height: 80px;
      border: 3px solid var(--accent); border-top: none; border-radius: 0 0 12px 12px;
      position: relative; overflow: hidden; background: #fff;
    }
    .water-fill {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(180deg, #7dd3fc, var(--accent));
      transition: height 1s cubic-bezier(.25,.46,.45,.94);
    }
    .glass-label { font-size: .72rem; color: var(--accent); font-weight: 700; text-align: center; }
    .water-numbers { flex: 1; }
    .wn-main { font-family: var(--font-display); font-size: 2.8rem; color: var(--accent); line-height: 1; margin-bottom: 4px; }
    .wn-sub  { font-size: .9rem; color: var(--ink-3); margin-bottom: 12px; }
    .wn-alt  { display: flex; gap: 16px; flex-wrap: wrap; }
    .wn-alt-item { background: rgba(255,255,255,.65); border-radius: 8px; padding: 8px 12px; }
    .wn-alt-label { font-size: .68rem; color: var(--ink-5); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
    .wn-alt-val   { font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: 2px; }

    /* BREAKDOWN */
    .breakdown-section { margin-bottom: 22px; }
    .bk-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
    .bk-rows  { display: flex; flex-direction: column; gap: 9px; }
    .bk-row   { display: flex; align-items: center; gap: 10px; font-size: .87rem; }
    .bk-label { color: var(--ink-3); min-width: 160px; }
    .bk-badge { background: var(--accent-xlight); color: var(--accent); border-radius: 100px; padding: 3px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
    .bk-badge.add  { background: #fef9c3; color: #854d0e; }
    .bk-badge.sub  { background: var(--green-light); color: var(--green); }

    /* SCHEDULE */
    .schedule-section { background: var(--accent-xlight); border: 1.5px solid var(--accent-mid); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 4px; }
    .sch-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
    .sch-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 9px; }
    .sch-item  { background: rgba(255,255,255,.7); border-radius: 8px; padding: 10px 12px; }
    .sch-time  { font-size: .72rem; color: var(--ink-4); font-weight: 600; margin-bottom: 2px; }
    .sch-amt   { font-size: .88rem; font-weight: 700; color: var(--accent); }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--accent); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--accent); background: var(--accent-xlight); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-xlight); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .form-row { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .wn-alt { flex-direction: column; gap: 8px; } .sch-grid { grid-template-columns: 1fr 1fr; } }


/* ── from sleep.html ── */
:root {
      --accent:       #6d28d9;
      --accent-hover: #5b21b6;
      --accent-light: #ede9fe;
      --accent-mid:   #c4b5fd;
      --accent-xlight:#f5f3ff;
      --night:        #1e1b4b;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #1e1b4b 0%, #2d2b7a 40%, #4338ca 100%);
      border-bottom: 1px solid #312e81;
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 64px var(--pad-x) 56px; }
    .page-hero h1 { margin: 14px 0 16px; color: #fff; }
    .page-hero h1 em { font-style: italic; color: #a5b4fc; }
    .page-hero .lead { color: #c7d2fe; }
    .tag-sleep { color: #a5b4fc; background: rgba(165,180,252,.15); border-color: rgba(165,180,252,.3); }

    .tool-layout {
      max-width: var(--max-w); margin: 0 auto;
      padding: 40px var(--pad-x);
      display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
    }

    /* CALC */
    .calc-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .calc-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .calc-sub   { font-size: 0.83rem; color: var(--ink-4); margin-bottom: 24px; }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

    /* SLEEP TARGET PICKER */
    .target-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
    .target-label { font-size: .83rem; font-weight: 600; color: var(--ink-2); }
    .target-pills { display: flex; gap: 7px; flex-wrap: wrap; }
    .target-pill {
      padding: 7px 14px; border-radius: 100px; border: 1.5px solid var(--border);
      font-size: .81rem; font-weight: 500; color: var(--ink-3);
      cursor: pointer; background: var(--bg); transition: all .15s;
      font-family: var(--font-body);
    }
    .target-pill:hover { border-color: var(--accent); color: var(--accent); }
    .target-pill.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

    /* DAILY SLEEP INPUTS */
    .sleep-days { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .sleep-day-row {
      display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center;
      background: var(--bg-off); border-radius: var(--radius-sm); padding: 10px 14px;
    }
    .day-name { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
    .day-name span { font-size: .73rem; color: var(--ink-5); font-weight: 400; display: block; }
    .day-slider { -webkit-appearance: none; width: 100%; height: 5px; background: var(--border); border-radius: 3px; outline: none; cursor: pointer; }
    .day-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 2px 6px rgba(109,40,217,.3); }
    .day-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
    .day-val { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; min-width: 52px; text-align: right; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

    .calc-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(109,40,217,.3); }
    .calc-reset { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: .83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .calc-reset:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .result-panel { border-radius: var(--radius-lg); overflow: hidden; animation: fadeUp .4s ease; }

    /* DEBT HEADER */
    .debt-header {
      padding: 24px 28px;
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    }
    .debt-header.none  { background: var(--green-light); }
    .debt-header.light { background: var(--teal-light); }
    .debt-header.moderate { background: var(--amber-light); }
    .debt-header.severe { background: #fff7ed; }
    .debt-header.critical { background: var(--rose-light); }
    .dh-left { }
    .dh-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
    .dh-title  { font-family: var(--font-display); font-size: 1.8rem; }
    .dh-sub    { font-size: .87rem; color: var(--ink-3); margin-top: 4px; }
    .debt-none     .dh-eyebrow, .debt-none     .dh-title { color: var(--green); }
    .debt-light    .dh-eyebrow, .debt-light    .dh-title { color: var(--teal); }
    .debt-moderate .dh-eyebrow, .debt-moderate .dh-title { color: var(--amber); }
    .debt-severe   .dh-eyebrow, .debt-severe   .dh-title { color: #c2410c; }
    .debt-critical .dh-eyebrow, .debt-critical .dh-title { color: var(--rose); }
    .debt-number { text-align: right; }
    .dn-val   { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
    .dn-label { font-size: .75rem; color: var(--ink-4); font-weight: 500; }
    .debt-none     .dn-val { color: var(--green); }
    .debt-light    .dn-val { color: var(--teal); }
    .debt-moderate .dn-val { color: var(--amber); }
    .debt-severe   .dn-val { color: #c2410c; }
    .debt-critical .dn-val { color: var(--rose); }

    /* WEEKLY BAR CHART */
    .week-chart { background: var(--bg-white); border: 1px solid var(--border); border-top: none; padding: 22px 28px; }
    .wc-title { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .bars-wrap { display: flex; gap: 8px; align-items: flex-end; height: 80px; }
    .day-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .day-bar-track { width: 100%; background: var(--border); border-radius: 4px 4px 0 0; position: relative; height: 70px; display: flex; align-items: flex-end; overflow: hidden; }
    .day-bar-fill  { width: 100%; border-radius: 4px 4px 0 0; transition: height .7s cubic-bezier(.25,.46,.45,.94); }
    .bar-ok   { background: #a7f3d0; }
    .bar-low  { background: #fde68a; }
    .bar-very-low { background: #fca5a5; }
    .day-bar-target { position: absolute; width: 100%; height: 2px; background: var(--accent); opacity: .4; }
    .day-bar-label { font-size: .68rem; color: var(--ink-5); font-weight: 600; }
    .day-bar-val   { font-size: .72rem; color: var(--ink-4); font-weight: 700; }

    /* STATS */
    .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 0; padding: 16px 28px; background: var(--bg-white); border: 1px solid var(--border); border-top: none; }
    .stat-box { background: var(--bg-off); border-radius: var(--radius); padding: 12px; text-align: center; }
    .stat-box .sl { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-5); margin-bottom: 4px; }
    .stat-box .sv { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

    /* EFFECTS */
    .effects-section { background: var(--bg-white); border: 1px solid var(--border); border-top: none; padding: 22px 28px; }
    .ef-title { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
    .ef-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ef-item  { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: var(--ink-3); line-height: 1.5; }
    .ef-icon  { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

    /* RECOVERY PLAN */
    .recovery-section { background: var(--accent-xlight); border: 1px solid var(--accent-mid); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 22px 28px; }
    .rec-title { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
    .rec-steps { display: flex; flex-direction: column; gap: 12px; }
    .rec-step  { display: flex; gap: 12px; font-size: .87rem; color: var(--ink-3); line-height: 1.6; }
    .rec-num   { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num-txt { font-family: var(--font-display); font-size: 2rem; color: var(--accent); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--accent); background: var(--accent-xlight); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-xlight); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .sleep-day-row { grid-template-columns: 90px 1fr 48px; } .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .stats-row { grid-template-columns: 1fr 1fr; } .ef-grid { grid-template-columns: 1fr; } }


/* ── from love-message.html ── */
:root {
      --ac:    #e11d48;
      --ac-h:  #be123c;
      --ac-l:  #fff1f4;
      --ac-xl: #ffe4ea;
      --ac-mid:#fda4b8;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #1c0a1e 0%, #4a044e 45%, #be185d 100%);
      border-bottom: 1px solid #4a044e;
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; color: #fff; }
    .page-hero h1 em { font-style: italic; color: #f9a8d4; }
    .page-hero .lead { color: #fce7f3; }
    .tag-love { color: #f9a8d4; background: rgba(249,168,212,.12); border-color: rgba(249,168,212,.3); }

    /* LAYOUT */
    .tool-layout { max-width: var(--max-w); margin: 0 auto; padding: 40px var(--pad-x); display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

    /* INTRO */
    .intro-block { margin-bottom: 36px; }
    .intro-block h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .intro-block p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    /* GENERATOR CARD */
    .gen-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .gen-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .gen-sub   { font-size: .83rem; color: var(--ink-4); margin-bottom: 28px; }

    /* OPTION PILLS */
    .opt-group { margin-bottom: 22px; }
    .opt-label { font-size: .83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; display: block; }
    .opt-label span { font-weight: 400; color: var(--ink-5); font-size: .77rem; }
    .pills { display: flex; flex-wrap: wrap; gap: 8px; }
    .pill {
      padding: 8px 16px; border-radius: 100px;
      border: 1.5px solid var(--border); font-size: .82rem; font-weight: 500;
      color: var(--ink-3); cursor: pointer; background: var(--bg);
      transition: all .15s; user-select: none; font-family: var(--font-body);
    }
    .pill:hover { border-color: var(--ac); color: var(--ac); }
    .pill.on { background: var(--ac); color: #fff; border-color: var(--ac); font-weight: 600; }

    /* TEXT INPUT */
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
    .form-group { margin-bottom: 0; }
    .form-label { display: block; font-size: .83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
    .form-label span { font-weight: 400; color: var(--ink-5); }
    .form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; font-family: var(--font-body); color: var(--ink); background: var(--bg-white); outline: none; transition: border-color .2s, box-shadow .2s; }
    .form-input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(225,29,72,.1); }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

    .gen-btn { width: 100%; padding: 16px; background: var(--ac); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; box-shadow: 0 4px 20px rgba(225,29,72,.3); }
    .gen-btn:hover { background: var(--ac-h); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(225,29,72,.4); }
    .gen-btn:active { transform: translateY(0); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .messages-wrap { display: flex; flex-direction: column; gap: 16px; animation: fadeUp .4s ease; }
    .message-card {
      border-radius: var(--radius); padding: 22px 24px;
      border: 1px solid; position: relative; transition: transform .2s, box-shadow .2s;
    }
    .message-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .mc-1 { background: var(--ac-l);  border-color: var(--ac-mid); }
    .mc-2 { background: #fdf4ff; border-color: #e9d5ff; }
    .mc-3 { background: #fffbeb; border-color: #fde68a; }
    .mc-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
    .mc-1 .mc-label { color: var(--ac); }
    .mc-2 .mc-label { color: #7c3aed; }
    .mc-3 .mc-label { color: var(--amber); }
    .mc-text { font-size: .95rem; color: var(--ink-2); line-height: 1.75; font-style: italic; margin-bottom: 14px; }
    .mc-actions { display: flex; gap: 9px; flex-wrap: wrap; }
    .copy-btn {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: .78rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-sm);
      cursor: pointer; border: 1.5px solid; transition: all .15s; font-family: var(--font-body);
    }
    .copy-btn.rose   { color: var(--ac);  border-color: var(--ac-mid); background: transparent; }
    .copy-btn.purple { color: #7c3aed; border-color: #c4b5fd; background: transparent; }
    .copy-btn.amber  { color: var(--amber); border-color: #fde68a; background: transparent; }
    .copy-btn:hover  { filter: brightness(.92); }
    .copy-btn.copied { opacity: .7; pointer-events: none; }
    .mc-note { font-size: .75rem; color: var(--ink-5); margin-top: 4px; }

    .regen-btn { width: 100%; padding: 11px; background: var(--ac-l); color: var(--ac); font-family: var(--font-body); font-size: .88rem; font-weight: 600; border: 1.5px solid var(--ac-mid); border-radius: 9px; cursor: pointer; transition: all .2s; margin-top: 4px; }
    .regen-btn:hover { background: var(--ac-xl); }

    /* CONTENT SECTIONS */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--ac); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }

    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--ac); background: var(--ac-l); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }

    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-l); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--ac); color: #fff; border-color: var(--ac); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .form-row { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } }
    @keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }


/* ── from breakup.html ── */
:root {
      --ac:    #7c3aed;
      --ac-h:  #6d28d9;
      --ac-l:  #f5f3ff;
      --ac-xl: #ede9fe;
      --ac-mid:#c4b5fd;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #1e1b4b 0%, #3b0764 45%, #4c1d95 100%);
      border-bottom: 1px solid #3b0764;
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; color: #fff; }
    .page-hero h1 em { font-style: italic; color: var(--ac-mid); }
    .page-hero .lead { color: #ddd6fe; }
    .tag-bk { color: var(--ac-mid); background: rgba(196,181,253,.1); border-color: rgba(196,181,253,.25); }

    .tool-layout { max-width: var(--max-w); margin: 0 auto; padding: 40px var(--pad-x); display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

    .intro-block { margin-bottom: 36px; }
    .intro-block h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .intro-block p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    .gen-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .gen-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .gen-sub   { font-size: .83rem; color: var(--ink-4); margin-bottom: 28px; }

    .opt-group { margin-bottom: 22px; }
    .opt-label { font-size: .83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; display: block; }
    .opt-label span { font-weight: 400; color: var(--ink-5); font-size: .77rem; }
    .pills { display: flex; flex-wrap: wrap; gap: 8px; }
    .pill { padding: 8px 16px; border-radius: 100px; border: 1.5px solid var(--border); font-size: .82rem; font-weight: 500; color: var(--ink-3); cursor: pointer; background: var(--bg); transition: all .15s; user-select: none; font-family: var(--font-body); }
    .pill:hover { border-color: var(--ac); color: var(--ac); }
    .pill.on { background: var(--ac); color: #fff; border-color: var(--ac); font-weight: 600; }

    .form-group { margin-bottom: 18px; }
    .form-label { display: block; font-size: .83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
    .form-label span { font-weight: 400; color: var(--ink-5); }
    .form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; font-family: var(--font-body); color: var(--ink); background: var(--bg-white); outline: none; transition: border-color .2s; }
    .form-input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
    .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
    .form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

    .gen-btn { width: 100%; padding: 16px; background: var(--ac); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; box-shadow: 0 4px 20px rgba(124,58,237,.3); }
    .gen-btn:hover { background: var(--ac-h); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,.4); }

    /* DISCLAIMER */
    .disclaimer { background: var(--ac-xl); border: 1px solid var(--ac-mid); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .8rem; color: var(--ac-h); margin-top: 12px; line-height: 1.55; }
    .disclaimer strong { font-weight: 700; }

    /* RESULT */
    #result { display: none; margin-top: 24px; }
    .messages-wrap { display: flex; flex-direction: column; gap: 16px; animation: fadeUp .4s ease; }
    .message-card { border-radius: var(--radius); padding: 22px 24px; border: 1px solid; position: relative; transition: transform .2s, box-shadow .2s; }
    .message-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .mc-1 { background: var(--ac-l);  border-color: var(--ac-mid); }
    .mc-2 { background: #fff1f4; border-color: #fda4b8; }
    .mc-3 { background: #fffbeb; border-color: #fde68a; }
    .mc-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
    .mc-1 .mc-label { color: var(--ac); }
    .mc-2 .mc-label { color: var(--rose); }
    .mc-3 .mc-label { color: var(--amber); }
    .mc-text { font-size: .95rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
    .mc-note { font-size: .75rem; color: var(--ink-5); margin-top: 6px; font-style: italic; }
    .copy-btn { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid; transition: all .15s; font-family: var(--font-body); }
    .copy-btn.v1 { color: var(--ac);    border-color: var(--ac-mid); background: transparent; }
    .copy-btn.v2 { color: var(--rose);  border-color: #fda4b8; background: transparent; }
    .copy-btn.v3 { color: var(--amber); border-color: #fde68a; background: transparent; }
    .copy-btn.copied { opacity: .6; pointer-events: none; }
    .regen-btn { width: 100%; padding: 11px; background: var(--ac-l); color: var(--ac); font-family: var(--font-body); font-size: .88rem; font-weight: 600; border: 1.5px solid var(--ac-mid); border-radius: 9px; cursor: pointer; transition: all .2s; }
    .regen-btn:hover { background: var(--ac-xl); }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
    .step-card  { background: var(--bg-off); border-radius: var(--radius); padding: 20px; }
    .step-num   { font-family: var(--font-display); font-size: 2rem; color: var(--ac); opacity: .25; line-height: 1; }
    .step-card h4 { font-weight: 700; font-size: .88rem; margin: 5px 0; color: var(--ink); }
    .step-card p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.6; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--ac); background: var(--ac-l); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-l); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--ac); color: #fff; border-color: var(--ac); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .form-row { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } }
    @keyframes fadeUp { from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);} }


/* ── from relationship-check.html ── */
:root {
      --ac:    #d97706;
      --ac-h:  #b45309;
      --ac-l:  #fffbeb;
      --ac-xl: #fef3c7;
      --ac-mid:#fde68a;
    }

    .page-hero-wrap {
      background: linear-gradient(150deg, #1c0a1e 0%, #78350f 45%, #d97706 100%);
      border-bottom: 1px solid #78350f;
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad-x) 52px; }
    .page-hero h1 { margin: 14px 0 16px; color: #fff; }
    .page-hero h1 em { font-style: italic; color: #fde68a; }
    .page-hero .lead { color: #fef3c7; }
    .tag-check { color: #fde68a; background: rgba(253,230,138,.12); border-color: rgba(253,230,138,.3); }

    .tool-layout { max-width: var(--max-w); margin: 0 auto; padding: 40px var(--pad-x); display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

    .intro-block { margin-bottom: 36px; }
    .intro-block h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .intro-block p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }

    /* QUIZ CARD */
    .quiz-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 32px; }
    .quiz-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .quiz-sub   { font-size: .83rem; color: var(--ink-4); margin-bottom: 28px; }

    /* PROGRESS BAR */
    .progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .progress-label { font-size: .78rem; font-weight: 700; color: var(--ink-4); }
    .progress-pct   { font-size: .78rem; font-weight: 700; color: var(--ac); }
    .progress-track { background: var(--border); border-radius: 6px; height: 6px; overflow: hidden; margin-bottom: 28px; }
    .progress-fill  { height: 100%; background: var(--ac); border-radius: 6px; transition: width .4s ease; }

    /* DIMENSION SECTION */
    .dim-section { margin-bottom: 32px; }
    .dim-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius-sm); border-left: 4px solid; }
    .dim-header.d0 { background: #eff6ff; border-color: var(--blue); }
    .dim-header.d1 { background: var(--green-light); border-color: var(--green); }
    .dim-header.d2 { background: var(--teal-light); border-color: var(--teal); }
    .dim-header.d3 { background: var(--ac-l); border-color: var(--ac); }
    .dim-header.d4 { background: #fdf4ff; border-color: #7c3aed; }
    .dim-header.d5 { background: var(--rose-light); border-color: var(--rose); }
    .dim-icon  { font-size: 1.3rem; }
    .dim-name  { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
    .dim-sub   { font-size: .75rem; color: var(--ink-4); margin-top: 1px; }

    /* QUESTION */
    .question-block { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
    .question-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .q-text { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; line-height: 1.5; }
    .q-scale { display: flex; gap: 6px; }
    .scale-btn {
      flex: 1; padding: 9px 4px; text-align: center; border-radius: var(--radius-sm);
      border: 1.5px solid var(--border); cursor: pointer; font-size: .75rem; font-weight: 600;
      color: var(--ink-4); background: var(--bg); transition: all .15s;
      font-family: var(--font-body);
    }
    .scale-btn:hover { border-color: var(--ac); color: var(--ac); }
    .scale-btn.sel { background: var(--ac); color: #fff; border-color: var(--ac); }
    .scale-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: .68rem; color: var(--ink-5); }

    .form-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
    .check-btn { width: 100%; padding: 16px; background: var(--ac); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all .2s; box-shadow: 0 4px 20px rgba(217,119,6,.3); }
    .check-btn:hover { background: var(--ac-h); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(217,119,6,.4); }
    .reset-btn { width: 100%; padding: 10px; background: transparent; color: var(--ink-4); font-family: var(--font-body); font-size: .83rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .2s; margin-top: 8px; }
    .reset-btn:hover { border-color: var(--ink-3); color: var(--ink); }

    /* RESULT */
    #result { display: none; margin-top: 28px; }
    .result-panel { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; animation: fadeUp .4s ease; }
    .rp-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 20px; }

    /* OVERALL SCORE */
    .overall-score { display: flex; align-items: center; gap: 24px; background: var(--ac-l); border: 1.5px solid var(--ac-mid); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; flex-wrap: wrap; }
    .os-num { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 700; }
    .os-info { flex: 1; }
    .os-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ac-h); margin-bottom: 4px; }
    .os-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; }
    .os-sub   { font-size: .85rem; color: var(--ink-3); line-height: 1.6; }
    .os-bar-track { background: rgba(0,0,0,.08); border-radius: 6px; height: 8px; overflow: hidden; margin-top: 10px; }
    .os-bar-fill  { height: 100%; border-radius: 6px; }

    /* DIM SCORES */
    .dim-scores { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
    .ds-row { background: var(--bg-off); border-radius: var(--radius); padding: 14px 16px; }
    .ds-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
    .ds-name { font-size: .88rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
    .ds-grade { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
    .g-A { background: var(--green-light);  color: var(--green); }
    .g-B { background: var(--teal-light);   color: var(--teal); }
    .g-C { background: var(--ac-l);         color: var(--ac-h); }
    .g-D { background: #fff7ed; color: #c2410c; }
    .g-F { background: var(--rose-light);   color: var(--rose); }
    .ds-track { background: rgba(0,0,0,.08); border-radius: 4px; height: 6px; overflow: hidden; }
    .ds-fill  { height: 100%; border-radius: 4px; }
    .ds-note  { font-size: .78rem; color: var(--ink-4); margin-top: 6px; line-height: 1.5; }

    /* INSIGHTS */
    .insights { background: var(--ac-xl); border: 1.5px solid var(--ac-mid); border-radius: var(--radius); padding: 20px 22px; }
    .insights-title { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ac-h); margin-bottom: 14px; }
    .insight-item { display: flex; gap: 10px; font-size: .87rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
    .insight-item:last-child { margin-bottom: 0; }
    .insight-icon { flex-shrink: 0; font-size: .95rem; margin-top: 2px; }

    /* CONTENT */
    .content-section { margin-bottom: 40px; }
    .content-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
    .content-section p  { font-size: .93rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 12px; }
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
    .tip-card  { border-left: 3px solid var(--ac); background: var(--ac-l); border-radius: 9px; padding: 15px 17px; }
    .tip-card h4 { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
    .tip-card p  { font-size: .81rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
    .faq-section { margin-bottom: 40px; }
    .faq-section h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 20px; }
    .side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
    .side-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
    .side-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .side-list li { display: flex; gap: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
    .rel-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .2s; margin-bottom: 8px; }
    .rel-link:last-child { margin-bottom: 0; }
    .rel-link:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-l); }
    .rel-link .rl-left { display: flex; align-items: center; gap: 8px; }
    .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
    .chip { display: inline-block; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--bg); font-size: .84rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all .2s; }
    .chip:hover { background: var(--ac); color: #fff; border-color: var(--ac); }

    @media (max-width:1024px) { .tool-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
    @media (max-width:640px)  { .q-scale { gap: 4px; } .scale-btn { padding: 8px 2px; font-size: .7rem; } .tips-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .overall-score { flex-direction: column; } }
    @keyframes fadeUp { from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);} }


/* ── from blog.html ── */
/* ============================================
   LOVIAX DESIGN SYSTEM — style.css
   ============================================ */



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- GLOBAL LIST RESET ---- */
ul, ol { list-style: none; padding: 0; margin: 0; }
li { list-style: none; }

/* Restore styled lists only inside .legal-body where numbered/bulleted lists are intentional */
.legal-body ul  { list-style: disc;    padding-left: 22px; margin-bottom: 14px; }
.legal-body ol  { list-style: decimal; padding-left: 22px; margin-bottom: 14px; }
.legal-body li  { list-style: inherit; margin-bottom: 6px; }

/* TOC ordered list inside .toc-card */
.toc-card ol { list-style: decimal; padding-left: 18px; }
.toc-card li { list-style: inherit; }

:root {
  /* Core palette */
  --ink:         #0d1117;
  --ink-2:       #2d3748;
  --ink-3:       #4a5568;
  --ink-4:       #718096;
  --ink-5:       #a0aec0;

  --bg:          #fafbfc;
  --bg-white:    #ffffff;
  --bg-off:      #f4f6f9;
  --bg-subtle:   #eef1f6;

  --blue:        #2361d4;
  --blue-hover:  #1a4fb5;
  --blue-light:  #eaf1ff;
  --blue-mid:    #93b4f5;
  --blue-xlight: #f0f5ff;

  --teal:        #0891b2;
  --teal-light:  #e0f7fa;
  --rose:        #e11d48;
  --rose-light:  #fff1f4;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --green:       #059669;
  --green-light: #ecfdf5;

  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --shadow:      0 2px 8px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05);
  --shadow-blue: 0 4px 20px rgba(35,97,212,.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITY ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: 80px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
.section-sm { padding: 48px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid currentColor;
}
.tag-blue  { color: var(--blue);  background: var(--blue-xlight);  border-color: #c7d9f9; }
.tag-teal  { color: var(--teal);  background: var(--teal-light);   border-color: #b2ebf2; }
.tag-rose  { color: var(--rose);  background: var(--rose-light);   border-color: #fecdd3; }
.tag-amber { color: var(--amber); background: var(--amber-light);  border-color: #fde68a; }
.tag-green { color: var(--green); background: var(--green-light);  border-color: #a7f3d0; }

.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.2;  letter-spacing: -0.015em; color: var(--ink); }
.h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.lead { font-size: 1.08rem; color: var(--ink-3); font-weight: 300; line-height: 1.75; }
.body-sm { font-size: 0.875rem; color: var(--ink-4); line-height: 1.65; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(35,97,212,.35); }
.btn-secondary { background: var(--bg-white); color: var(--ink); border: 1.5px solid var(--border-2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); padding: 8px 16px; }
.btn-ghost:hover { background: var(--blue-xlight); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); text-decoration: none; font-weight: 700; letter-spacing: -0.03em; }
.nav-logo span { color: var(--ink-3); }
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a {
  display: block; padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-3); text-decoration: none;
  transition: all .15s;
}
.nav-menu a:hover { background: var(--bg-off); color: var(--ink); }
.nav-menu .has-dd { position: relative; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 4.5px; cursor: pointer; padding: 6px; border: none; background: none; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; }

/* ---- AD PLACEHOLDERS ---- */
.ad-slot {
  background: var(--bg-off);
  border: 1px dashed var(--blue-mid);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-5);
  padding: 12px;
}
.ad-banner { height: 90px; }
.ad-rect   { height: 250px; max-width: 336px; }
.ad-wrap   { padding: 12px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 14px var(--pad-x); max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.8rem; color: var(--ink-4);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-5); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-link { text-decoration: none; color: inherit; display: block; }

/* ---- TOOL CARD ---- */
.tool-card { display: flex; flex-direction: column; gap: 10px; }
.tool-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.tool-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.tool-card p  { font-size: 0.85rem; color: var(--ink-4); flex: 1; }
.tool-card .arrow { font-size: 0.83rem; font-weight: 600; color: var(--blue); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ---- FORM ELEMENTS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-label .hint { font-weight: 400; color: var(--ink-5); font-size: 0.78rem; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 0.9rem; pointer-events: none; }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; font-family: var(--font-body); color: var(--ink);
  background: var(--bg-white); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,97,212,.1); }
.form-input.has-prefix { padding-left: 30px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ---- RESULT BOX ---- */
.result-box { border-radius: var(--radius); padding: 24px; animation: fadeUp .35s ease; }
.result-safe   { background: var(--green-light); border: 1.5px solid #6ee7b7; }
.result-risky  { background: var(--amber-light); border: 1.5px solid #fcd34d; }
.result-danger { background: var(--rose-light);  border: 1.5px solid #fca5a5; }
.result-neutral{ background: var(--blue-xlight); border: 1.5px solid #c7d9f9; }
.result-verdict { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.result-safe   .result-verdict { color: var(--green); }
.result-risky  .result-verdict { color: var(--amber); }
.result-danger .result-verdict { color: var(--rose);  }
.result-neutral.result-verdict { color: var(--blue);  }
.result-text { font-size: 0.88rem; color: var(--ink-3); line-height: 1.65; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.result-stat { background: rgba(255,255,255,.65); border-radius: 8px; padding: 12px 14px; }
.result-stat-label { font-size: 0.72rem; color: var(--ink-4); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.result-stat-val { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 3px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; text-align: left; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); background: none; border: none;
  cursor: pointer; font-family: var(--font-body);
}
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--border-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--blue); transition: transform .3s, background .2s; }
.faq-btn.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding-bottom: 18px; font-size: 0.9rem; color: var(--ink-3); line-height: 1.75; }

/* ---- FOOTER ---- */
.footer { background: #0d1117; color: #8b9cb6; padding: 64px var(--pad-x) 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #1e2d3d; }
.footer-brand-logo { font-family: var(--font-display); font-size: 1.6rem; color: #fff; display: block; margin-bottom: 12px; letter-spacing: -0.03em; }
.footer-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 260px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; display: block; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li { list-style: none; }
.footer-col a { font-size: 0.85rem; color: #8b9cb6; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: #8b9cb6; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---- NAMED LIST RESETS (all custom list classes — no bullets ever) ---- */
.nav-menu,
.nav-menu li,
.side-list,
.side-list li,
.side-tips,
.side-tips li,
.tfc-features,
.tfc-features li,
.tfc-chk-green,
.tfc-chk-green li,
.tfc-chk-blue,
.tfc-chk-blue li,
.tfc-chk-purple,
.tfc-chk-purple li,
.tfc-chk-rose,
.tfc-chk-rose li,
.tfc-chk-violet,
.tfc-chk-violet li,
.tfc-chk-amber,
.tfc-chk-amber li,
.faq-topics,
.faq-topics li,
.contact-methods,
.contact-methods li,
.tip-list,
.tip-list li,
.strength-bars,
.strength-bars li,
.mp-items,
.mp-items li,
.bk-rows,
.bk-rows li,
.rec-steps,
.rec-steps li,
.rf-list,
.rf-list li,
.related-tools,
.related-tools li,
.related-links,
.related-links li,
.cat-tools-list li,
.sleep-days li,
.check-row li,
.tone-pills li,
.target-pills li,
.cat-grades li,
.ef-grid li,
.footer-col ul li,
.tool-cat ul,
.tool-cat ul li,
.value-cards li,
.promise-grid li,
.tools-cats li
{ list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.anim-up    { animation: fadeUp  .6s ease both; }
.anim-in    { animation: fadeIn  .5s ease both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; }
.d3 { animation-delay: .2s;  } .d4 { animation-delay: .28s; }
.d5 { animation-delay: .36s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav-menu, .nav-cta .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px var(--pad-x) 16px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .mobile-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
  .mobile-menu a:hover { background: var(--bg-off); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .result-grid { grid-template-columns: 1fr; }
}


/* BLOG HERO */
.blog-hero-wrap { background: linear-gradient(150deg,#f0f5ff 0%,#eef1f6 60%,#fff 100%); border-bottom:1px solid var(--border); }
.blog-hero { max-width:var(--max-w); margin:0 auto; padding:64px var(--pad-x) 56px; }
.blog-hero h1 { font-family:var(--font-display); font-size:clamp(2rem,4vw,3.2rem); line-height:1.15; color:var(--ink); margin:12px 0 16px; }
.blog-hero h1 em { font-style:italic; color:var(--blue); }
.blog-hero .lead { font-size:1.05rem; color:var(--ink-3); max-width:560px; line-height:1.75; }

/* FEATURED POST */
.featured-wrap { background:var(--bg-white); border-bottom:1px solid var(--border); }
.featured-post { max-width:var(--max-w); margin:0 auto; padding:56px var(--pad-x); display:grid; grid-template-columns:3fr 2fr; gap:56px; align-items:center; }
.fp-label { font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--blue); margin-bottom:12px; }
.fp-title { font-family:var(--font-display); font-size:clamp(1.6rem,2.8vw,2.2rem); color:var(--ink); margin-bottom:14px; line-height:1.2; }
.fp-title a { text-decoration:none; color:inherit; }
.fp-title a:hover { color:var(--blue); }
.fp-excerpt { font-size:.95rem; color:var(--ink-3); line-height:1.75; margin-bottom:20px; }
.fp-meta { display:flex; align-items:center; gap:14px; font-size:.8rem; color:var(--ink-5); margin-bottom:20px; }
.fp-img { background:linear-gradient(135deg,#eaf1ff,#dbeafe); border-radius:var(--radius-lg); aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; font-size:4rem; }

/* BLOG GRID */
.posts-section { background:var(--bg); }
.posts-section-inner { max-width:var(--max-w); margin:0 auto; padding:64px var(--pad-x); }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:36px; flex-wrap:wrap; gap:12px; }
.section-head h2 { font-family:var(--font-display); font-size:clamp(1.5rem,2.5vw,2rem); color:var(--ink); }
.view-all { font-size:.85rem; font-weight:700; color:var(--blue); text-decoration:none; }
.view-all:hover { text-decoration:underline; }
.posts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }

/* POST CARD */
.post-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:transform .25s,box-shadow .25s; text-decoration:none; color:inherit; display:block; }
.post-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.post-card-img { height:160px; display:flex; align-items:center; justify-content:center; font-size:2.8rem; }
.post-card-img.finance    { background:linear-gradient(135deg,#eaf1ff,#dceeff); }
.post-card-img.wellness   { background:linear-gradient(135deg,#e0f7fa,#ccf2f4); }
.post-card-img.relations  { background:linear-gradient(135deg,#fff1f4,#ffe4ea); }
.post-card-img.general    { background:linear-gradient(135deg,#f5f3ff,#ede9fe); }
.post-card-body { padding:20px; }
.post-card-meta { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.post-date { font-size:.75rem; color:var(--ink-5); }
.post-card-title { font-family:var(--font-display); font-size:1.05rem; color:var(--ink); margin-bottom:8px; line-height:1.3; }
.post-card-excerpt { font-size:.85rem; color:var(--ink-4); line-height:1.6; margin-bottom:14px; }
.post-card-readmore { font-size:.82rem; font-weight:700; color:var(--blue); }

/* CATEGORY CARDS */
.cats-section { background:var(--bg-off); }
.cats-section-inner { max-width:var(--max-w); margin:0 auto; padding:64px var(--pad-x); }
.cats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px; }
.cat-blog-card { border-radius:var(--radius-lg); padding:28px 24px; text-decoration:none; color:inherit; display:block; transition:transform .2s,box-shadow .2s; }
.cat-blog-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.cat-blog-card.finance   { background:linear-gradient(135deg,#eaf1ff,#dceeff); }
.cat-blog-card.wellness  { background:linear-gradient(135deg,#e0f7fa,#ccf2f4); }
.cat-blog-card.relations { background:linear-gradient(135deg,#fff1f4,#ffe4ea); }
.cbc-icon { font-size:2.2rem; margin-bottom:12px; }
.cbc-title { font-family:var(--font-display); font-size:1.2rem; color:var(--ink); margin-bottom:6px; }
.cbc-count { font-size:.82rem; color:var(--ink-4); margin-bottom:14px; }
.cbc-link  { font-size:.83rem; font-weight:700; color:var(--blue); }

/* NEWSLETTER */
.nl-banner { background:var(--blue); text-align:center; padding:56px var(--pad-x); }
.nl-banner h2 { font-family:var(--font-display); font-size:clamp(1.5rem,2.5vw,2rem); color:#fff; margin-bottom:10px; }
.nl-banner p  { color:#bfdbfe; max-width:480px; margin:0 auto 24px; font-size:.95rem; }
.nl-form { display:flex; gap:10px; max-width:420px; margin:0 auto; flex-wrap:wrap; justify-content:center; }
.nl-input { flex:1; min-width:200px; padding:12px 16px; border-radius:var(--radius-sm); border:none; font-family:var(--font-body); font-size:.9rem; outline:none; }
.nl-btn { background:#fff; color:var(--blue); padding:12px 22px; border-radius:var(--radius-sm); border:none; font-weight:700; cursor:pointer; font-family:var(--font-body); font-size:.9rem; }

@media(max-width:1024px){ .featured-post{grid-template-columns:1fr;} .fp-img{display:none;} .cats-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:640px){ .cats-grid{grid-template-columns:1fr;} }

  

/* ╔══════════════════════════════════════════════════════╗
   ║  DROPDOWN NAVIGATION — complete replacement          ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Base nav ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--blue); text-decoration: none;
  font-weight: 700; letter-spacing: -.03em; flex-shrink: 0;
}
.nav-logo span { color: var(--ink-3); }

/* ── Menu list ── */
.nav-menu {
  display: flex; align-items: center;
  gap: 2px; list-style: none; margin: 0; padding: 0;
  height: 64px;
}
.nav-menu > li {
  position: relative; height: 64px;
  display: flex; align-items: center;
}

/* ── Top-level links ── */
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap; height: 36px;
}
.nav-menu > li > a:hover { background: var(--bg-off); color: var(--ink); }

/* chevron icon on dropdown parents */
.nav-menu > li.has-dd > a .nav-chevron {
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-menu > li.has-dd:hover > a .nav-chevron,
.nav-menu > li.has-dd:focus-within > a .nav-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 400;
}

/* Show on hover OR focus-within (keyboard) */
.nav-menu > li.has-dd:hover .nav-dropdown,
.nav-menu > li.has-dd:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category header inside dropdown */
.dd-header {
  padding: 6px 10px 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-5);
}

/* Individual dropdown link */
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .855rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: var(--bg-off); color: var(--blue); }
.nav-dropdown a:hover .dd-icon { filter: none; }

.dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: var(--bg-off);
  transition: background .12s;
}
.dd-icon.fi { background: #eaf1ff; }
.dd-icon.we { background: #e0f7fa; }
.dd-icon.re { background: #fff1f4; }

.nav-dropdown a:hover .dd-icon.fi { background: #c7d9f9; }
.nav-dropdown a:hover .dd-icon.we { background: #b2ebf2; }
.nav-dropdown a:hover .dd-icon.re { background: #fecdd3; }

.dd-divider {
  height: 1px; background: var(--border);
  margin: 6px 0;
}
.dd-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px;
}
.dd-footer a {
  font-size: .78rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  padding: 0 !important; background: none !important;
}
.dd-footer a:hover { text-decoration: underline; color: var(--blue-hover) !important; background: none !important; }

/* ── Nav CTA area ── */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   MOBILE MENU — accordion style
   ════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 299;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-bottom: 16px;
}
.mobile-menu.open { display: block; }

/* Mobile top-level items */
.mob-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; font-family: var(--font-body);
  transition: background .12s;
}
.mob-item:hover { background: var(--bg-off); }
.mob-item:last-of-type { border-bottom: none; }
.mob-item .mob-icon { font-size: 1rem; margin-right: 4px; }

/* Accordion chevron */
.mob-chevron {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  flex-shrink: 0; transition: transform .22s ease;
}
.mob-chevron.open { transform: rotate(180deg); }

/* Mobile sub-items (accordion panel) */
.mob-sub {
  display: none;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 28px;
  font-size: .855rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { background: var(--bg-subtle); color: var(--blue); }
.mob-sub .msub-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0; background: #fff;
}

/* Plain mobile links (no accordion) */
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mob-link:hover { background: var(--bg-off); }

/* Blog dropdown icon */
.dd-icon.bl { background: #f0f5ff; }
.nav-dropdown a:hover .dd-icon.bl { background: #c7d9f9; }


@media (max-width: 900px) {
  .nav-menu, .nav-cta > .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}



/* ── Logo image in nav & footer ── */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* SVG has transparent bg, black text — works perfectly on white nav */
}
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo-wrap:hover { opacity: .75; }

/* Footer: dark bg → invert black logo to white */
.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
  margin-bottom: 10px;
}


/* ── from about.html ── */
.page-hero-wrap {
      background: linear-gradient(150deg, #f0f5ff 0%, #eef1f6 60%, #ffffff 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 64px var(--pad-x) 56px; }
    .page-hero h1 { margin: 14px 0 18px; }
    .page-hero h1 em { font-style: italic; color: var(--blue); }
    .page-hero .lead { max-width: 620px; }

    /* MISSION */
    .mission-wrap { background: var(--bg-white); }
    .mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
    .mission-body h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); margin-bottom: 16px; }
    .mission-body p  { font-size: .95rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }
    .mission-body p:last-child { margin-bottom: 0; }
    .mission-aside { display: flex; flex-direction: column; gap: 20px; }
    .aside-stat {
      background: var(--bg-off); border-radius: var(--radius); padding: 24px;
      border-left: 4px solid var(--blue);
    }
    .aside-stat .num { font-family: var(--font-display); font-size: 2.5rem; color: var(--blue); line-height: 1; display: block; margin-bottom: 4px; }
    .aside-stat .label { font-size: .83rem; color: var(--ink-3); font-weight: 500; }
    .aside-stat .sub   { font-size: .78rem; color: var(--ink-5); margin-top: 4px; }

    /* VALUES */
    .values-wrap { background: var(--bg-off); }
    .values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
    .value-card {
      background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px 24px;
    }
    .value-icon { font-size: 1.8rem; margin-bottom: 14px; }
    .value-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
    .value-card p  { font-size: .87rem; color: var(--ink-4); line-height: 1.65; margin: 0; }

    /* TOOLS OVERVIEW */
    .tools-wrap { background: var(--bg-white); }
    .tools-cats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
    .tool-cat { border-radius: var(--radius); padding: 28px; }
    .tc-finance   { background: var(--blue-xlight); border: 1px solid #c7d9f9; }
    .tc-wellness  { background: #f0fdf4; border: 1px solid #86efac; }
    .tc-relation  { background: #fff1f4; border: 1px solid #fda4b8; }
    .tool-cat h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; color: var(--ink); }
    .tool-cat ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .tool-cat li { font-size: .86rem; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
    .tool-cat li::before { content: '→'; font-size: .75rem; flex-shrink: 0; }
    .tc-finance  li::before { color: var(--blue); }
    .tc-wellness li::before { color: #16a34a; }
    .tc-relation li::before { color: var(--rose); }
    .tool-cat a  { text-decoration: none; color: var(--ink-3); transition: color .15s; }
    .tool-cat a:hover { color: var(--blue); }
    .tc-wellness a:hover { color: #16a34a; }
    .tc-relation a:hover { color: var(--rose); }

    /* PROMISE */
    .promise-wrap { background: var(--blue); }
    .promise-inner { max-width: var(--max-w); margin: 0 auto; padding: 64px var(--pad-x); }
    .promise-inner h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.6rem); color: #fff; margin-bottom: 16px; }
    .promise-inner p  { font-size: 1rem; color: #bfdbfe; max-width: 600px; line-height: 1.75; margin-bottom: 32px; }
    .promise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
    .promise-item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 18px 20px; }
    .promise-item h4 { font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 5px; }
    .promise-item p  { font-size: .82rem; color: #bfdbfe; margin: 0; line-height: 1.55; }

    /* DISCLAIMER */
    .disclaimer-wrap { background: var(--bg-off); }
    .disclaimer-box { max-width: 760px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin: 0 auto; }
    .disclaimer-box h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
    .disclaimer-box p  { font-size: .9rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 10px; }

    /* SECTION HELPERS */
    .section { padding: 80px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
    .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
    .h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.2; color: var(--ink); }
    .lead { font-size: 1.08rem; color: var(--ink-3); font-weight: 300; line-height: 1.75; }
    .tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor; }
    .tag-blue { color: var(--blue); background: var(--blue-xlight); border-color: #c7d9f9; }

    @media (max-width:1024px) { .mission-grid { grid-template-columns: 1fr; gap: 40px; } .tools-cats { grid-template-columns: 1fr; } }
    @media (max-width:768px)  { .values-grid { grid-template-columns: 1fr; } }


/* ── from privacy.html ── */
.legal-hero {
      background: var(--bg-off); border-bottom: 1px solid var(--border);
      padding: 48px var(--pad-x) 36px;
    }
    .legal-hero-inner { max-width: var(--max-w); margin: 0 auto; }
    .legal-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.8rem); color: var(--ink); margin-bottom: 10px; }
    .legal-hero .meta { font-size: .83rem; color: var(--ink-5); }
    .legal-hero .meta span { color: var(--blue); font-weight: 600; }

    .legal-wrap { max-width: var(--max-w); margin: 0 auto; padding: 48px var(--pad-x); display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }

    .legal-body h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
    .legal-body h2:first-child { margin-top: 0; border-top: none; }
    .legal-body h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin: 22px 0 8px; }
    .legal-body p  { font-size: .93rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }
    .legal-body ul { padding-left: 20px; margin-bottom: 14px; }
    .legal-body ul li { font-size: .93rem; color: var(--ink-3); line-height: 1.7; margin-bottom: 6px; }
    .legal-body a  { color: var(--blue); }

    .highlight-box { background: var(--blue-xlight); border: 1px solid #c7d9f9; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
    .highlight-box p { color: var(--ink-2); margin: 0; font-weight: 500; font-size: .9rem; line-height: 1.65; }

    /* TOC */
    .legal-toc { position: sticky; top: 84px; }
    .toc-card { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
    .toc-card h4 { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .toc-card ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
    .toc-card a  { font-size: .84rem; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
    .toc-card a:hover { color: var(--blue); }
    .contact-box { margin-top: 20px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
    .contact-box h4 { font-weight: 700; font-size: .83rem; color: var(--ink); margin-bottom: 8px; }
    .contact-box p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.55; }
    .contact-box a  { color: var(--blue); }

    @media (max-width:900px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { display: none; } }


/* ── from terms.html ── */
.legal-hero { background: var(--bg-off); border-bottom: 1px solid var(--border); padding: 48px var(--pad-x) 36px; }
    .legal-hero-inner { max-width: var(--max-w); margin: 0 auto; }
    .legal-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.8rem); color: var(--ink); margin-bottom: 10px; }
    .legal-hero .meta { font-size: .83rem; color: var(--ink-5); }
    .legal-hero .meta span { color: var(--blue); font-weight: 600; }

    .legal-wrap { max-width: var(--max-w); margin: 0 auto; padding: 48px var(--pad-x); display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }

    .legal-body h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
    .legal-body h2:first-child { margin-top: 0; border-top: none; }
    .legal-body h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin: 22px 0 8px; }
    .legal-body p  { font-size: .93rem; color: var(--ink-3); line-height: 1.82; margin-bottom: 14px; }
    .legal-body ul { padding-left: 20px; margin-bottom: 14px; }
    .legal-body ul li { font-size: .93rem; color: var(--ink-3); line-height: 1.7; margin-bottom: 6px; }
    .legal-body a  { color: var(--blue); }

    .warn-box { background: #fff7ed; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
    .warn-box p { color: #78350f; margin: 0; font-weight: 500; font-size: .9rem; line-height: 1.65; }
    .highlight-box { background: var(--blue-xlight); border: 1px solid #c7d9f9; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
    .highlight-box p { color: var(--ink-2); margin: 0; font-weight: 500; font-size: .9rem; line-height: 1.65; }

    .legal-toc { position: sticky; top: 84px; }
    .toc-card { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
    .toc-card h4 { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
    .toc-card ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
    .toc-card a  { font-size: .84rem; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
    .toc-card a:hover { color: var(--blue); }
    .contact-box { margin-top: 20px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
    .contact-box h4 { font-weight: 700; font-size: .83rem; color: var(--ink); margin-bottom: 8px; }
    .contact-box p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.55; }
    .contact-box a  { color: var(--blue); }

    @media (max-width:900px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { display: none; } }

/* ──────────────────────────────────────────────────────────
   BLOG POST PAGE CSS (post-header, post-callout, etc.)
   ────────────────────────────────────────────────────────── */
.post-card-img.finance    { background:linear-gradient(135deg,#eaf1ff,#dceeff); }
.post-card-img.wellness   { background:linear-gradient(135deg,#e0f7fa,#ccf2f4); }
.post-card-img.relations  { background:linear-gradient(135deg,#fff1f4,#ffe4ea); }
.post-card-img.general    { background:linear-gradient(135deg,#f5f3ff,#ede9fe); }
.post-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:transform .25s,box-shadow .25s; text-decoration:none; color:inherit; display:block; }
.post-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.post-card-img { height:150px; display:flex; align-items:center; justify-content:center; font-size:2.8rem; }
.post-card-body { padding:20px; }
.post-card-meta { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.post-date { font-size:.75rem; color:var(--ink-5); }
.post-card-title { font-family:var(--font-display); font-size:1.05rem; color:var(--ink); margin-bottom:8px; line-height:1.3; }
.post-card-excerpt { font-size:.85rem; color:var(--ink-4); line-height:1.6; margin-bottom:12px; }
.post-card-readmore { font-size:.82rem; font-weight:700; color:var(--blue); }
.posts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; }

/* ===== CATEGORY PAGE ===== */
.cat-hero { background:linear-gradient(150deg,#eaf1ff 0%,#f0f5ff 60%,#fff 100%); border-bottom:1px solid var(--border); padding:56px var(--pad-x) 48px; }
.cat-hero-inner { max-width:var(--max-w); margin:0 auto; }
.cat-hero h1 { font-family:var(--font-display); font-size:clamp(1.8rem,3.5vw,2.8rem); color:var(--ink); margin:12px 0 14px; }
.cat-hero h1 em { font-style:italic; color:var(--blue); }
.cat-hero .lead { color:var(--ink-3); max-width:600px; font-size:1rem; line-height:1.75; }
.cat-body { max-width:var(--max-w); margin:0 auto; padding:56px var(--pad-x); }
.cat-intro { max-width:740px; margin-bottom:48px; }
.cat-intro h2 { font-family:var(--font-display); font-size:1.6rem; color:var(--ink); margin-bottom:12px; }
.cat-intro p  { font-size:.93rem; color:var(--ink-3); line-height:1.82; margin-bottom:12px; }
.cat-tools-cta { background:var(--blue-xlight); border:1px solid #c7d9f9; border-radius:var(--radius); padding:20px 24px; margin-top:28px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.cat-tools-cta p { font-size:.9rem; color:var(--ink-2); margin:0; }

/* ===== BLOG POST ===== */
.post-layout { max-width:var(--max-w); margin:0 auto; padding:40px var(--pad-x); display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:start; }
.post-header { margin-bottom:32px; }
.post-title { font-family:var(--font-display); font-size:clamp(1.8rem,3.5vw,2.6rem); color:var(--ink); line-height:1.15; margin:14px 0 16px; }
.post-meta { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:20px; font-size:.82rem; color:var(--ink-4); }
.post-hero-img { height:240px; border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center; font-size:5rem; margin-bottom:32px; }
.post-hero-img.finance   { background:linear-gradient(135deg,#eaf1ff,#bfdbfe); }
.post-hero-img.wellness  { background:linear-gradient(135deg,#e0f7fa,#a7f3d0); }
.post-hero-img.relations { background:linear-gradient(135deg,#fff1f4,#fecdd3); }
.post-body h2 { font-family:var(--font-display); font-size:1.5rem; color:var(--ink); margin:32px 0 12px; }
.post-body h3 { font-family:var(--font-display); font-size:1.15rem; color:var(--ink); margin:24px 0 9px; }
.post-body p  { font-size:.95rem; color:var(--ink-3); line-height:1.82; margin-bottom:16px; }
.post-body ul { list-style:disc !important; padding-left:22px !important; margin-bottom:16px; }
.post-body ul li { list-style:disc !important; font-size:.95rem; color:var(--ink-3); line-height:1.7; margin-bottom:6px; }
.post-body ol { list-style:decimal !important; padding-left:22px !important; margin-bottom:16px; }
.post-body ol li { list-style:decimal !important; font-size:.95rem; color:var(--ink-3); line-height:1.7; margin-bottom:6px; }
.post-body a { color:var(--blue); }
.post-body strong { color:var(--ink-2); font-weight:700; }
.post-callout { border-left:4px solid var(--blue); background:var(--blue-xlight); border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:16px 20px; margin:24px 0; }
.post-callout p { margin:0; font-size:.92rem; color:var(--ink-2); }
.post-callout.green { border-color:var(--green); background:var(--green-light); }
.post-callout.amber { border-color:var(--amber); background:var(--amber-light); }
.tool-cta-box { background:linear-gradient(135deg,#eaf1ff,#f0f5ff); border:1px solid #c7d9f9; border-radius:var(--radius-lg); padding:24px 28px; margin:32px 0; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.tool-cta-box .tcb-icon { font-size:2.2rem; flex-shrink:0; }
.tool-cta-box .tcb-text h4 { font-family:var(--font-display); font-size:1.05rem; color:var(--ink); margin-bottom:4px; }
.tool-cta-box .tcb-text p  { font-size:.85rem; color:var(--ink-3); margin:0; }
.post-faq { margin:40px 0; }
.post-faq h2 { font-family:var(--font-display); font-size:1.5rem; color:var(--ink); margin-bottom:20px; }
.post-conclusion { background:var(--bg-off); border-radius:var(--radius-lg); padding:24px 28px; margin:32px 0; }
.post-conclusion h2 { font-family:var(--font-display); font-size:1.3rem; margin-bottom:10px; }
.post-conclusion p  { font-size:.93rem; color:var(--ink-3); line-height:1.75; margin:0 0 10px; }
.related-posts { margin-top:48px; padding-top:32px; border-top:1px solid var(--border); }
.related-posts h3 { font-family:var(--font-display); font-size:1.2rem; color:var(--ink); margin-bottom:20px; }
.rp-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.rp-card { border:1px solid var(--border); border-radius:var(--radius); padding:16px; text-decoration:none; color:inherit; transition:border-color .2s,background .2s; }
.rp-card:hover { border-color:var(--blue); background:var(--blue-xlight); }
.rp-card .rp-tag { font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--blue); margin-bottom:6px; display:block; }
.rp-card .rp-title { font-family:var(--font-display); font-size:.95rem; color:var(--ink); line-height:1.3; }
/* SIDEBAR */
.post-sidebar { display:flex; flex-direction:column; gap:20px; }
.ps-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-xs); }
.ps-card h3 { font-family:var(--font-display); font-size:1rem; color:var(--ink); margin-bottom:12px; }
.ps-card p  { font-size:.83rem; color:var(--ink-4); line-height:1.6; margin:0 0 10px; }
.ps-tool-link { display:flex; align-items:center; justify-content:space-between; padding:10px 13px; border:1px solid var(--border); border-radius:var(--radius-sm); text-decoration:none; font-size:.84rem; font-weight:500; color:var(--ink); margin-bottom:8px; transition:all .2s; }
.ps-tool-link:last-child { margin-bottom:0; }
.ps-tool-link:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-xlight); }
.ps-post-link { display:block; padding:10px 0; border-bottom:1px solid var(--border); text-decoration:none; font-size:.84rem; color:var(--ink-3); line-height:1.4; transition:color .15s; }
.ps-post-link:last-child { border-bottom:none; }
.ps-post-link:hover { color:var(--blue); }
.image-credit { font-size:.72rem; color:var(--ink-5); text-align:center; margin-top:8px; font-style:italic; }
@media(max-width:1024px){ .post-layout{grid-template-columns:1fr;} .post-sidebar{display:grid;grid-template-columns:1fr 1fr;} }
@media(max-width:640px){ .post-sidebar{grid-template-columns:1fr;} .rp-grid{grid-template-columns:1fr;} }

  

/* ╔══════════════════════════════════════════════════════╗
   ║  DROPDOWN NAVIGATION — complete replacement          ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Base nav ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--blue); text-decoration: none;
  font-weight: 700; letter-spacing: -.03em; flex-shrink: 0;
}
.nav-logo span { color: var(--ink-3); }

/* ── Menu list ── */
.nav-menu {
  display: flex; align-items: center;
  gap: 2px; list-style: none; margin: 0; padding: 0;
  height: 64px;
}
.nav-menu > li {
  position: relative; height: 64px;
  display: flex; align-items: center;
}

/* ── Top-level links ── */
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap; height: 36px;
}
.nav-menu > li > a:hover { background: var(--bg-off); color: var(--ink); }

/* chevron icon on dropdown parents */
.nav-menu > li.has-dd > a .nav-chevron {
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-menu > li.has-dd:hover > a .nav-chevron,
.nav-menu > li.has-dd:focus-within > a .nav-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 400;
}

/* Show on hover OR focus-within (keyboard) */
.nav-menu > li.has-dd:hover .nav-dropdown,
.nav-menu > li.has-dd:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category header inside dropdown */
.dd-header {
  padding: 6px 10px 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-5);
}

/* Individual dropdown link */
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .855rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: var(--bg-off); color: var(--blue); }
.nav-dropdown a:hover .dd-icon { filter: none; }

.dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: var(--bg-off);
  transition: background .12s;
}
.dd-icon.fi { background: #eaf1ff; }
.dd-icon.we { background: #e0f7fa; }
.dd-icon.re { background: #fff1f4; }

.nav-dropdown a:hover .dd-icon.fi { background: #c7d9f9; }
.nav-dropdown a:hover .dd-icon.we { background: #b2ebf2; }
.nav-dropdown a:hover .dd-icon.re { background: #fecdd3; }

.dd-divider {
  height: 1px; background: var(--border);
  margin: 6px 0;
}
.dd-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px;
}
.dd-footer a {
  font-size: .78rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  padding: 0 !important; background: none !important;
}
.dd-footer a:hover { text-decoration: underline; color: var(--blue-hover) !important; background: none !important; }

/* ── Nav CTA area ── */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   MOBILE MENU — accordion style
   ════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 299;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-bottom: 16px;
}
.mobile-menu.open { display: block; }

/* Mobile top-level items */
.mob-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; font-family: var(--font-body);
  transition: background .12s;
}
.mob-item:hover { background: var(--bg-off); }
.mob-item:last-of-type { border-bottom: none; }
.mob-item .mob-icon { font-size: 1rem; margin-right: 4px; }

/* Accordion chevron */
.mob-chevron {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  flex-shrink: 0; transition: transform .22s ease;
}
.mob-chevron.open { transform: rotate(180deg); }

/* Mobile sub-items (accordion panel) */
.mob-sub {
  display: none;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 28px;
  font-size: .855rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { background: var(--bg-subtle); color: var(--blue); }
.mob-sub .msub-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0; background: #fff;
}

/* Plain mobile links (no accordion) */
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mob-link:hover { background: var(--bg-off); }

/* Blog dropdown icon */
.dd-icon.bl { background: #f0f5ff; }
.nav-dropdown a:hover .dd-icon.bl { background: #c7d9f9; }


@media (max-width: 900px) {
  .nav-menu, .nav-cta > .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}



/* ── Logo image in nav & footer ── */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* SVG has transparent bg, black text — works perfectly on white nav */
}
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo-wrap:hover { opacity: .75; }

/* Footer: dark bg → invert black logo to white */
.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
  margin-bottom: 10px;
}



/* ──────────────────────────────────────────────────────────
   RELATIONSHIP BLOG EXTRAS
   ────────────────────────────────────────────────────────── */
/* ===== RELATIONSHIP BLOG EXTRAS ===== */
:root {
  --rel-rose:    #e11d48;
  --rel-rose-l:  #fff1f4;
  --rel-rose-xl: #ffe4ea;
  --rel-rose-m:  #fda4b8;
  --rel-violet:  #7c3aed;
  --rel-violet-l:#f5f3ff;
  --rel-amber:   #d97706;
  --rel-amber-l: #fffbeb;
}
/* Category hero */
.cat-hero.rel-hero { background:linear-gradient(150deg,#fff1f4 0%,#fdf4ff 50%,#fff 100%); }
.cat-hero.rel-hero h1 em { color:var(--rel-rose); }

/* Post hero */
.post-hero-img.relations { background:linear-gradient(135deg,#fff1f4,#fecdd3); }

/* Tool CTA */
.tool-cta-box.rose-cta { background:linear-gradient(135deg,#fff1f4,#fdf4ff); border-color:var(--rel-rose-m); }
.tool-cta-box.rose-cta .btn { background:var(--rel-rose); box-shadow:0 4px 16px rgba(225,29,72,.3); color:#fff; }
.tool-cta-box.rose-cta .btn:hover { background:#be123c; }

/* Callouts */
.post-callout.rose   { border-color:var(--rel-rose);   background:var(--rel-rose-l); }
.post-callout.violet { border-color:var(--rel-violet); background:var(--rel-violet-l); }
.post-callout.amber  { border-color:var(--rel-amber);  background:var(--rel-amber-l); }

/* Stat boxes – rose */
.stat-box-row.rose .stat-highlight { background:var(--rel-rose-l); border:1px solid var(--rel-rose-m); }
.stat-box-row.rose .stat-highlight .sh-num { color:var(--rel-rose); }
.stat-box-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:24px 0; }
.stat-highlight { border-radius:var(--radius); padding:18px; text-align:center; }
.stat-highlight .sh-num { font-family:var(--font-display); font-size:2rem; line-height:1; }
.stat-highlight .sh-lbl { font-size:.78rem; color:var(--ink-3); margin-top:5px; }

/* Quote block */
.pull-quote { border-left:4px solid var(--rel-rose); padding:16px 20px 16px 24px; margin:28px 0;
              background:var(--rel-rose-l); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.pull-quote p { font-family:var(--font-display); font-size:1.1rem; font-style:italic; color:var(--ink-2); margin:0; line-height:1.6; }
.pull-quote cite { display:block; font-size:.78rem; color:var(--ink-4); margin-top:8px; font-style:normal; }

/* Numbered step cards */
.steps-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin:20px 0; }
.step-item { background:var(--bg-off); border-radius:var(--radius); padding:20px; }
.step-item .si-num { font-family:var(--font-display); font-size:2rem; color:var(--rel-rose); opacity:.25; line-height:1; }
.step-item h4 { font-weight:700; font-size:.9rem; color:var(--ink); margin:5px 0; }
.step-item p  { font-size:.83rem; color:var(--ink-4); margin:0; line-height:1.6; }

/* Sidebar hover rose */
.ps-rel-link { display:flex; align-items:center; justify-content:space-between; padding:10px 13px;
               border:1px solid var(--border); border-radius:var(--radius-sm); text-decoration:none;
               font-size:.84rem; font-weight:500; color:var(--ink); margin-bottom:8px; transition:all .2s; }
.ps-rel-link:last-child { margin-bottom:0; }
.ps-rel-link:hover { border-color:var(--rel-rose); color:var(--rel-rose); background:var(--rel-rose-l); }

/* Tag custom */
.tag-rose-custom { color:var(--rel-rose); background:var(--rel-rose-l); border-color:var(--rel-rose-m); }

@media(max-width:640px){
  .stat-box-row { grid-template-columns:1fr 1fr; }
  .steps-row    { grid-template-columns:1fr; }
}

  

/* ╔══════════════════════════════════════════════════════╗
   ║  DROPDOWN NAVIGATION — complete replacement          ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Base nav ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--blue); text-decoration: none;
  font-weight: 700; letter-spacing: -.03em; flex-shrink: 0;
}
.nav-logo span { color: var(--ink-3); }

/* ── Menu list ── */
.nav-menu {
  display: flex; align-items: center;
  gap: 2px; list-style: none; margin: 0; padding: 0;
  height: 64px;
}
.nav-menu > li {
  position: relative; height: 64px;
  display: flex; align-items: center;
}

/* ── Top-level links ── */
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap; height: 36px;
}
.nav-menu > li > a:hover { background: var(--bg-off); color: var(--ink); }

/* chevron icon on dropdown parents */
.nav-menu > li.has-dd > a .nav-chevron {
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-menu > li.has-dd:hover > a .nav-chevron,
.nav-menu > li.has-dd:focus-within > a .nav-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 400;
}

/* Show on hover OR focus-within (keyboard) */
.nav-menu > li.has-dd:hover .nav-dropdown,
.nav-menu > li.has-dd:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category header inside dropdown */
.dd-header {
  padding: 6px 10px 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-5);
}

/* Individual dropdown link */
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .855rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown a:hover { background: var(--bg-off); color: var(--blue); }
.nav-dropdown a:hover .dd-icon { filter: none; }

.dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: var(--bg-off);
  transition: background .12s;
}
.dd-icon.fi { background: #eaf1ff; }
.dd-icon.we { background: #e0f7fa; }
.dd-icon.re { background: #fff1f4; }

.nav-dropdown a:hover .dd-icon.fi { background: #c7d9f9; }
.nav-dropdown a:hover .dd-icon.we { background: #b2ebf2; }
.nav-dropdown a:hover .dd-icon.re { background: #fecdd3; }

.dd-divider {
  height: 1px; background: var(--border);
  margin: 6px 0;
}
.dd-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px;
}
.dd-footer a {
  font-size: .78rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  padding: 0 !important; background: none !important;
}
.dd-footer a:hover { text-decoration: underline; color: var(--blue-hover) !important; background: none !important; }

/* ── Nav CTA area ── */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   MOBILE MENU — accordion style
   ════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 299;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-bottom: 16px;
}
.mobile-menu.open { display: block; }

/* Mobile top-level items */
.mob-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; font-family: var(--font-body);
  transition: background .12s;
}
.mob-item:hover { background: var(--bg-off); }
.mob-item:last-of-type { border-bottom: none; }
.mob-item .mob-icon { font-size: 1rem; margin-right: 4px; }

/* Accordion chevron */
.mob-chevron {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  flex-shrink: 0; transition: transform .22s ease;
}
.mob-chevron.open { transform: rotate(180deg); }

/* Mobile sub-items (accordion panel) */
.mob-sub {
  display: none;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 28px;
  font-size: .855rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { background: var(--bg-subtle); color: var(--blue); }
.mob-sub .msub-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0; background: #fff;
}

/* Plain mobile links (no accordion) */
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mob-link:hover { background: var(--bg-off); }

/* Blog dropdown icon */
.dd-icon.bl { background: #f0f5ff; }
.nav-dropdown a:hover .dd-icon.bl { background: #c7d9f9; }


@media (max-width: 900px) {
  .nav-menu, .nav-cta > .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}



/* ── Logo image in nav & footer ── */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* SVG has transparent bg, black text — works perfectly on white nav */
}
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo-wrap:hover { opacity: .75; }

/* Footer: dark bg → invert black logo to white */
.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
  margin-bottom: 10px;
}



/* ──────────────────────────────────────────────────────────
   CONTACT PAGE CSS
   ────────────────────────────────────────────────────────── */

    .page-hero-wrap {
      background: linear-gradient(150deg, #f0f5ff 0%, #eef1f6 60%, #ffffff 100%);
      border-bottom: 1px solid var(--border);
    }
    .page-hero { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--pad-x) 48px; }
    .page-hero h1 { margin: 14px 0 16px; }
    .page-hero h1 em { font-style: italic; color: var(--blue); }

    /* MAIN GRID */
    .contact-wrap { max-width: var(--max-w); margin: 0 auto; padding: 52px var(--pad-x); display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

    /* FORM */
    .form-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
    .form-card h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
    .form-card .sub { font-size: .83rem; color: var(--ink-4); margin-bottom: 28px; }

    .form-group { margin-bottom: 20px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-label { display: block; font-size: .83rem; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
    .form-label .req { color: var(--rose); font-size: .75rem; margin-left: 3px; }
    .form-input {
      width: 100%; padding: 12px 14px;
      border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      font-size: .92rem; font-family: var(--font-body); color: var(--ink);
      background: var(--bg-white); outline: none;
      transition: border-color .2s, box-shadow .2s;
      -webkit-appearance: none;
    }
    .form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,97,212,.1); }
    .form-input.error { border-color: var(--rose); }
    .form-input.error:focus { box-shadow: 0 0 0 3px rgba(225,29,72,.1); }
    textarea.form-input { resize: vertical; min-height: 140px; }
    .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
    .field-error { font-size: .75rem; color: var(--rose); margin-top: 5px; display: none; }
    .field-error.show { display: block; }

    /* CHARACTER COUNT */
    .char-count { font-size: .73rem; color: var(--ink-5); text-align: right; margin-top: 4px; }

    /* SUBMIT BUTTON */
    .submit-btn {
      width: 100%; padding: 15px; background: var(--blue); color: #fff;
      font-family: var(--font-body); font-size: .95rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: all .2s; margin-top: 8px;
      box-shadow: var(--shadow-blue); letter-spacing: .01em;
    }
    .submit-btn:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(35,97,212,.35); }
    .submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
    .form-note { font-size: .75rem; color: var(--ink-5); text-align: center; margin-top: 12px; line-height: 1.55; }

    /* SUCCESS STATE */
    .success-state { display: none; text-align: center; padding: 32px 20px; }
    .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
    .success-state h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
    .success-state p { font-size: .93rem; color: var(--ink-3); line-height: 1.7; max-width: 360px; margin: 0 auto 20px; }

    /* SIDEBAR */
    .contact-aside { display: flex; flex-direction: column; gap: 20px; }
    .aside-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
    .aside-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }

    /* CONTACT METHODS */
    .contact-methods { display: flex; flex-direction: column; gap: 12px; }
    .contact-method {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 14px 16px; background: var(--bg-off); border-radius: var(--radius-sm);
    }
    .cm-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
    .cm-info h4 { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 3px; }
    .cm-info p  { font-size: .82rem; color: var(--ink-4); margin: 0; line-height: 1.5; }
    .cm-info a  { color: var(--blue); text-decoration: none; }
    .cm-info a:hover { text-decoration: underline; }

    /* FAQ LINKS */
    .faq-topics { display: flex; flex-direction: column; gap: 9px; }
    .faq-topic {
      display: flex; align-items: center; justify-content: space-between;
      padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
      text-decoration: none; font-size: .85rem; color: var(--ink-3); transition: all .2s;
    }
    .faq-topic:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xlight); }

    /* RESPONSE TIME */
    .response-card { background: var(--blue-xlight); border: 1px solid #c7d9f9; border-radius: var(--radius); padding: 20px; }
    .response-card h3 { color: var(--blue); font-family: var(--font-display); font-size: 1rem; margin-bottom: 10px; }
    .response-card p  { font-size: .84rem; color: var(--ink-3); line-height: 1.65; margin: 0 0 8px 0; }
    .response-card p:last-child { margin-bottom: 0; }

    /* SECTION */
    .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
    .tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor; }
    .tag-blue { color: var(--blue); background: var(--blue-xlight); border-color: #c7d9f9; }

    @media (max-width:960px) { .contact-wrap { grid-template-columns: 1fr; } }
    @media (max-width:640px) { .form-row { grid-template-columns: 1fr; } }
    @keyframes fadeUp { from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);} }
  
