/* TakehomeKit — premium dark design system
   Midnight base · champagne → rose → violet signature gradient · glass surfaces · Poppins */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/poppins-800.woff2") format("woff2"); }

:root {
  --bg: #0a0918;
  --bg-2: #100e24;
  --surface: #151331;
  --surface-2: #1c1940;
  --surface-3: #242050;
  --glass: rgba(28, 25, 64, .55);
  --line: rgba(200, 190, 255, .10);
  --line-2: rgba(200, 190, 255, .18);
  --text: #f6f4ff;
  --text-2: #c4bfe4;
  --text-3: #8e88b9;
  --gold: #f3cf91;
  --rose: #f4a3b4;
  --violet: #a08bff;
  --violet-2: #7c66ff;
  --keep: #5ee6ab;
  --fee: #ff7f97;
  --warn: #ffc56b;
  --grad: linear-gradient(115deg, #f3cf91 0%, #f4a3b4 48%, #a08bff 100%);
  --grad-soft: linear-gradient(115deg, rgba(243, 207, 145, .16), rgba(244, 163, 180, .12) 50%, rgba(160, 139, 255, .16));
  --on-grad: #1a1033;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --wrap: 1200px;
  --gutter: 20px;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* ambient aurora */
body::before {
  content: ""; position: fixed; inset: -20vh -10vw auto -10vw; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(124, 102, 255, .28), transparent 70%),
    radial-gradient(35% 45% at 82% 10%, rgba(243, 207, 145, .16), transparent 70%),
    radial-gradient(30% 40% at 60% 60%, rgba(244, 163, 180, .10), transparent 70%);
  filter: blur(10px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(3vw, 2vh, 0) scale(1.08); } }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(200, 190, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 190, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 75%);
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet-2); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--gold); color: var(--on-grad); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.02rem, .97rem + .3vw, 1.16rem); color: var(--text-2); max-width: 62ch; line-height: 1.7; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; padding: 14px 0 0; }
.nav-shell {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(16, 14, 36, .72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; flex: none; }
.logo:hover { color: var(--text); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .kit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav > button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 .93rem/1 var(--font); color: var(--text-2);
  padding: 11px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s;
}
.nav > a:hover, .nav > button:hover, .nav > a[aria-current="page"], .nav > button[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav > button svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { margin-left: 6px; }
.nav-shell .menu-btn { display: none; margin-left: auto; }

.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 88px; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
  border-radius: var(--r-l); border: 1px solid var(--line-2);
  background: rgba(18, 16, 40, .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  padding: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s var(--ease); }
.mega h2 { font-size: .8rem; font-weight: 600; color: var(--text-3); letter-spacing: .02em; margin-bottom: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: var(--text); font-size: .93rem; font-weight: 500; }
.mega li a:hover { background: rgba(255, 255, 255, .06); }
.mega li a .mi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); flex: none; }
.mega li a .mi svg { width: 16px; height: 16px; color: var(--gold); }

@media (max-width: 960px) {
  .nav, .nav-shell .header-cta { display: none; }
  .nav-shell .menu-btn { display: grid; }
  .mega {
    position: fixed; top: 86px; left: 12px; right: 12px; bottom: 12px; max-width: none;
    grid-template-columns: minmax(0, 1fr); overflow-y: auto; padding: 20px; align-content: start;
  }
  .mega .mobile-links { display: grid !important; }
}
.mega .mobile-links { display: none; gap: 8px; grid-template-columns: 1fr 1fr; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* ---------------- Buttons ---------------- */
.btn {
  position: relative; overflow: hidden; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 .98rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  padding: 15px 24px; border-radius: 999px;
  background: var(--grad); color: var(--on-grad);
  box-shadow: 0 10px 30px -10px rgba(244, 163, 180, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn:hover { transform: translateY(-2px); color: var(--on-grad); box-shadow: 0 16px 40px -12px rgba(244, 163, 180, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: var(--text); box-shadow: none; border-color: rgba(200, 190, 255, .3); }
.btn-small { padding: 10px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn { appearance: none; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: background .2s; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------- Forms ---------------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; font-size: .9rem; color: var(--text-2); }
.hint { font-size: .82rem; color: var(--text-3); line-height: 1.55; margin: 0; }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; appearance: none;
  font: 500 .98rem/1.35 var(--font); color: var(--text);
  background: rgba(10, 9, 24, .55); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c4bfe4' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
select.input option { background: #151331; color: var(--text); }
textarea.input { resize: vertical; min-height: 100px; line-height: 1.6; }
.input::placeholder { color: #6c6696; }
.input:hover { border-color: rgba(200, 190, 255, .3); }
.input:focus { outline: none; border-color: var(--violet); background: rgba(10, 9, 24, .8); box-shadow: 0 0 0 4px rgba(160, 139, 255, .18); }
input[type="date"].input { color-scheme: dark; }
input[type="color"].input { padding: 5px; height: 50px; cursor: pointer; }
input[type="file"].input { padding: 10px; font-size: .88rem; }
input[type="file"].input::file-selector-button { font: 600 .85rem var(--font); border: 0; border-radius: 8px; padding: 8px 12px; margin-right: 10px; background: var(--surface-3); color: var(--text); cursor: pointer; }
.input-money { position: relative; }
.input-money .input { padding-left: 38px; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.input-money .sym { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 600; pointer-events: none; }
.input-money .sym:empty + .input { padding-left: 15px; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 48px; }
.input-suffix .suf { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; pointer-events: none; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 520px) { .row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 380px) { .row { grid-template-columns: minmax(0, 1fr); } }

.seg { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10, 9, 24, .55); border: 1px solid var(--line-2); width: 100%; }
.seg button { flex: 1; position: relative; z-index: 1; appearance: none; border: 0; background: transparent; color: var(--text-2); font: 600 .9rem/1 var(--font); padding: 12px 10px; border-radius: 999px; cursor: pointer; transition: color .25s, background .25s; }
.seg button[aria-pressed="true"] { background: var(--grad); color: var(--on-grad); box-shadow: 0 6px 18px -8px rgba(244, 163, 180, .7); }
.seg button:not([aria-pressed="true"]):hover { color: var(--text); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--violet)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--violet)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-2); box-shadow: 0 0 0 6px rgba(160, 139, 255, .2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-2); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: rgba(10, 9, 24, .55); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--on-grad); border-bottom: 2.5px solid var(--on-grad); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

details.more { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--text-2); padding: 2px 0 14px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f3cf91' stroke-width='2.2'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s var(--ease); }
details.more[open] > summary::before { transform: rotate(45deg); }

/* ---------------- Page hero (tools) ---------------- */
.crumbs { font-size: .84rem; color: var(--text-3); padding-top: 34px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li:not(:last-child)::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-right: 1.5px solid var(--text-3); border-top: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-1px); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.page-hero { padding: 22px 0 34px; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--text-2); padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.chip svg { width: 16px; height: 16px; color: var(--keep); }

/* ---------------- Tool shell ---------------- */
.tool {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 30px; align-items: start;
  padding: 30px; border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 25, 64, .7), rgba(16, 14, 36, .7));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tool::before { content: ""; position: absolute; inset: -1px; border-radius: 31px; padding: 1px; background: linear-gradient(140deg, rgba(243, 207, 145, .5), transparent 35%, transparent 65%, rgba(160, 139, 255, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.tool.tool-wide { grid-template-columns: minmax(0, 1fr); }
.tool-panel, .tool-out { min-width: 0; }
.tool-out { position: sticky; top: 104px; }
@media (max-width: 960px) {
  .tool { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 24px; border-radius: 24px; }
  .tool::before { border-radius: 25px; }
  .tool-out { position: static; }
}
@media (max-width: 440px) { .tool { padding: 16px; margin: 0 -8px; border-radius: 22px; } .tool::before { border-radius: 23px; } }

/* ---------------- Result card ---------------- */
.result {
  position: relative; border-radius: 24px; padding: 24px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(160, 139, 255, .22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(243, 207, 145, .12), transparent 60%), #120f2b;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-variant-numeric: tabular-nums;
}
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.res-title { font-weight: 600; font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.pill.gold { background: var(--grad-soft); color: var(--gold); border-color: rgba(243, 207, 145, .3); }
.res-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.res-total { min-width: 0; }
.res-total .l { display: block; font-size: .85rem; color: var(--text-3); font-weight: 500; }
.res-total .v { display: block; margin-top: 4px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); background: linear-gradient(180deg, #fff 30%, #d9d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-word; }
.res-total .sub2 { display: block; margin-top: 8px; font-size: .86rem; color: var(--text-2); line-height: 1.5; }
.donut { position: relative; width: 108px; height: 108px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .trk { fill: none; stroke: rgba(255, 127, 151, .85); stroke-width: 11; }
.donut .arc { fill: none; stroke: url(#keepGrad); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.donut .ctr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .ctr b { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.donut .ctr span { font-size: .68rem; color: var(--text-3); margin-top: 3px; }
.res-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.res-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .92rem; border-bottom: 1px dashed rgba(200, 190, 255, .08); }
.res-line:last-child { border-bottom: 0; }
.res-line .l { color: var(--text-2); display: flex; align-items: center; gap: 10px; min-width: 0; }
.res-line .l::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.res-line.plus .l::before { background: var(--violet); }
.res-line.minus .l::before { background: var(--fee); }
.res-line.sub .l::before { background: var(--keep); }
.res-line .v { font-weight: 600; white-space: nowrap; }
.res-line.minus .v { color: var(--fee); }
.res-line.sub { border-top: 1px solid var(--line); margin-top: 4px; }
.res-line.sub .l { color: var(--text); font-weight: 600; }
.res-line.info .l, .res-line.info .v { color: var(--text-3); font-weight: 500; font-size: .86rem; }
.res-line.info .l::before { background: transparent; border: 1.5px solid var(--text-3); width: 6px; height: 6px; }
.res-note { margin: 14px 0 0; font-size: .82rem; color: var(--text-3); line-height: 1.6; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result.reveal-in { animation: resIn .7s var(--ease) both; }
@keyframes resIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rate-status { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-3); margin: 12px 4px 0; }
.rate-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.rate-status.live .dot { background: var(--keep); box-shadow: 0 0 0 0 rgba(94, 230, 171, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 171, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(94, 230, 171, 0); } }

/* compare cards (Wise vs Payoneer, fixed vs hourly, etc.) */
.cmp { display: grid; gap: 12px; }
.cmp-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.cmp-card .n { font-weight: 600; }
.cmp-card .a { font-weight: 700; font-size: 1.15rem; text-align: right; }
.cmp-card .d { grid-column: 1 / -1; font-size: .8rem; color: var(--text-3); }
.cmp-card.best { background: var(--grad-soft); border-color: rgba(243, 207, 145, .45); }
.cmp-card.best .a { color: var(--gold); }
.cmp-card .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.cmp-card .bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .7s var(--ease); }

/* ---------------- Content ---------------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 72px 0 20px; }
@media (max-width: 1020px) { .content { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 52px; } }
.prose { max-width: 72ch; min-width: 0; color: var(--text-2); }
.prose h2 { margin: 2.2em 0 .7em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.3em; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--grad-soft); color: var(--gold); border: 1px solid rgba(243, 207, 145, .25); }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(243, 207, 145, .35); }
.prose a:hover { color: #fff; border-color: #fff; }
.prose a.btn { color: var(--on-grad); border: 0; }
.prose a.btn:hover { color: var(--on-grad); }
.prose a.btn-ghost, .prose a.btn-ghost:hover { color: var(--text); border: 1px solid var(--line-2); }
.formula { position: relative; margin: 0 0 1.3em; padding: 16px 20px 16px 22px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(243, 207, 145, .22); color: var(--text); font-weight: 500; overflow-x: auto; }
.formula::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .04); }
td { color: var(--text-2); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
.num { text-align: right !important; }

.faq { margin-top: 2.4em; }
.faq h2 { margin-bottom: .8em; }
.faq details { margin-bottom: 10px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(160, 139, 255, .35); background: rgba(160, 139, 255, .06); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 600; color: var(--text); position: relative; font-size: .98rem; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f3cf91' stroke-width='2.2'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--text-2); }
.faq details > div p { margin: 0; }

.aside { min-width: 0; }
.aside-inner { position: sticky; top: 104px; display: grid; gap: 16px; }
.aside-box { border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 20px; }
.aside-box h2 { font-size: .95rem; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); font-size: .87rem; line-height: 1.4; }
.toc li a:hover, .toc li a.active { color: var(--text); border-left-color: var(--gold); }
.rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); font-size: .9rem; font-weight: 500; line-height: 1.35; transition: background .2s; }
.rel a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.rel .mi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); flex: none; }
.rel .mi svg { width: 18px; height: 18px; color: var(--gold); }
.aside-cta { border-radius: 22px; padding: 22px; background: var(--grad); color: var(--on-grad); }
.aside-cta h2 { color: var(--on-grad); font-size: 1.05rem; margin-bottom: 6px; }
.aside-cta p { font-size: .87rem; margin-bottom: 14px; color: rgba(26, 16, 51, .8); }
.aside-cta .btn { background: var(--on-grad); color: #fff; box-shadow: none; }
.aside-cta .btn:hover { color: #fff; }
.disclaimer { font-size: .82rem; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }

/* ---------------- Home ---------------- */
.hero { position: relative; text-align: center; padding: 76px 0 30px; }
.hero .badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: .85rem; color: var(--text-2); }
.hero .badge b { font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: var(--on-grad); font-size: .75rem; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 5.4vw, 5rem); max-width: 15ch; margin: 24px auto 0; line-height: 1.04; }
.hero .lede { margin: 22px auto 0; text-align: center; }
.search { position: relative; max-width: 620px; margin: 36px auto 0; }
.search svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; font: 500 1.02rem var(--font); color: var(--text); padding: 20px 64px 20px 58px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16, 14, 36, .8); backdrop-filter: blur(12px); box-shadow: 0 20px 60px -24px rgba(124, 102, 255, .6); transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: #7f79a8; }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 5px rgba(160, 139, 255, .15), 0 20px 60px -24px rgba(124, 102, 255, .8); }
.search kbd { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 .78rem var(--font); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 9px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 44px; color: var(--text-3); font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; }
.platforms span { opacity: .75; }
.platforms-label { display: block; font-size: .8rem; font-weight: 500; color: var(--text-3); margin-top: 36px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 64px 0 0; }
.stat { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--text-3); }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; margin-top: 96px; }
.showcase h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); max-width: 16ch; }
.showcase .lede { margin-top: 16px; }
.ticks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--keep); margin-top: 2px; }
.demo { position: relative; padding: 22px; border-radius: 30px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(28, 25, 64, .8), rgba(16, 14, 36, .8)); box-shadow: 0 40px 100px -40px rgba(124, 102, 255, .55); }
@media (max-width: 960px) { .showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 72px; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { margin: 6px 0 0; color: var(--text-3); max-width: 52ch; }
.cats { margin-top: 110px; }
.cats > h2 { text-align: center; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); }
.cats > .lede { text-align: center; margin: 14px auto 0; }
.cat { padding-top: 54px; }
.cat-title { display: flex; align-items: center; gap: 14px; }
.cat-title .ci { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); box-shadow: 0 10px 26px -10px rgba(244, 163, 180, .7); }
.cat-title .ci svg { width: 22px; height: 22px; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; border-radius: 22px; color: var(--text);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(28, 25, 64, .55), rgba(16, 14, 36, .55));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.tcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at var(--mx, 80%) var(--my, 0%), rgba(160, 139, 255, .18), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tcard:hover { transform: translateY(-4px); border-color: rgba(200, 190, 255, .28); box-shadow: 0 24px 50px -24px rgba(124, 102, 255, .6); color: var(--text); }
.tcard:hover::before { opacity: 1; }
.tcard .ti { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(243, 207, 145, .25); }
.tcard .ti svg { width: 24px; height: 24px; color: var(--gold); }
.tcard h3 { font-size: 1.04rem; }
.tcard p { margin: 0; font-size: .89rem; color: var(--text-3); line-height: 1.55; flex: 1; }
.tcard .go { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--gold); }
.tcard .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tcard:hover .go svg { transform: translateX(4px); }
.tcard .pill { position: absolute; top: 18px; right: 18px; }
.no-results { text-align: center; color: var(--text-3); padding: 40px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 110px; }
.feature { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.feature .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid rgba(243, 207, 145, .25); }
.feature .fi svg { width: 26px; height: 26px; color: var(--gold); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-3); font-size: .93rem; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }

.cta-band { position: relative; margin-top: 110px; padding: 56px 32px; border-radius: 34px; text-align: center; overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, rgba(160, 139, 255, .35), transparent 70%), linear-gradient(180deg, #1c1940, #120f2b); border: 1px solid var(--line-2); }
.cta-band::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--grad); }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--text-2); margin: 14px auto 28px; max-width: 52ch; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; margin-top: 110px; padding: 64px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 14, 36, .4), rgba(10, 9, 24, 1)); font-size: .92rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(243, 207, 145, .6), rgba(160, 139, 255, .6), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--text-3); margin: 16px 0 0; max-width: 34ch; font-size: .9rem; }
.foot-grid h2 { font-size: .9rem; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-3); }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------------- Simple pages ---------------- */
.page-simple { padding-top: 10px; }
.page-simple .prose { margin-top: 30px; }
.panel { border-radius: 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 32px; }
@media (max-width: 520px) { .panel { padding: 22px; } }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 13px 20px; border-radius: 999px; background: rgba(28, 25, 64, .95); border: 1px solid var(--line-2); color: var(--text); font-weight: 500; font-size: .9rem; box-shadow: 0 20px 50px -20px #000; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Tool-specific ---------------- */
.counter-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.counter-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--keep), #8ff0c6); transition: width .25s, background .25s; }
.counter-meter.warn span { background: linear-gradient(90deg, var(--warn), #ffe0a3); }
.counter-meter.over span { background: linear-gradient(90deg, var(--fee), #ffb0bf); }
.count-row { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.count-row .over { color: var(--fee); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(200, 190, 255, .08); font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.checks li.ok::before { background: rgba(94, 230, 171, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235ee6ab' stroke-width='2.6'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks li.bad::before { background: rgba(255, 127, 151, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ff7f97' stroke-width='2.6'%3E%3Cpath d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.score-ring { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.title-preview { font-weight: 600; font-size: 1.02rem; line-height: 1.4; margin: 0; }

.drop { display: grid; place-items: center; text-align: center; gap: 10px; padding: 52px 20px; border-radius: 22px; cursor: pointer; border: 1.5px dashed rgba(200, 190, 255, .28); background: rgba(10, 9, 24, .45); transition: border-color .25s, background .25s; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(243, 207, 145, .05); }
.drop .di { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); margin-bottom: 6px; }
.drop .di svg { width: 30px; height: 30px; }
.drop strong { font-size: 1.05rem; }
.preview-box { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: repeating-conic-gradient(#1c1940 0% 25%, #151331 0% 50%) 50% / 22px 22px; }
.preview-box canvas { width: 100%; height: auto; }

.items { display: grid; gap: 10px; margin-bottom: 4px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 108px 40px; gap: 8px; align-items: center; }
.item-row .input { padding: 11px 12px; font-size: .93rem; }
.item-head { font-size: .78rem; font-weight: 500; color: var(--text-3); }
.del { appearance: none; border: 0; background: rgba(255, 255, 255, .04); color: var(--text-3); width: 40px; height: 44px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.del:hover { color: var(--fee); background: rgba(255, 127, 151, .1); }
.del svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .item-row { grid-template-columns: minmax(0, 1fr) 58px 84px 36px; gap: 6px; } .item-row .input { padding: 10px 9px; font-size: .88rem; } .del { width: 36px; } }

.doc-paper { background: #fff; color: #1b1835; border-radius: 16px; padding: 30px; font-size: .85rem; line-height: 1.55; font-variant-numeric: tabular-nums; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); max-height: 760px; overflow: auto; }
.doc-paper .doc-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 2px solid #1b1835; }
.doc-paper .doc-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: #1b1835; line-height: 1.1; }
.doc-paper .doc-logo { max-width: 120px; max-height: 60px; object-fit: contain; }
.doc-paper .muted { color: #6d6890; font-size: .78rem; }
.doc-paper .doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; white-space: pre-line; }
.doc-paper table { font-size: .82rem; }
.doc-paper th { background: #f1effa; color: #1b1835; }
.doc-paper th, .doc-paper td { color: #1b1835; border-color: #e6e3f3; white-space: normal; padding: 9px 10px; }
.doc-paper .table-wrap { border-color: #e6e3f3; border-radius: 10px; background: #fff; }
.doc-paper tbody tr:hover { background: transparent; }
.doc-paper .doc-totals { margin-left: auto; width: min(270px, 100%); margin-top: 14px; }
.doc-paper .doc-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc-paper .doc-totals .grand { border-top: 2px solid #1b1835; margin-top: 6px; padding-top: 9px; font-weight: 800; font-size: 1.05rem; }
.doc-paper .doc-notes { margin-top: 20px; white-space: pre-line; color: #45405f; }
.doc-paper h3 { color: #1b1835; font-size: .95rem; margin: 18px 0 6px; }
.doc-paper p { margin: 0 0 8px; color: #2c2848; }
.doc-paper .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.doc-paper .sign div { border-top: 1px solid #1b1835; padding-top: 6px; font-size: .78rem; color: #45405f; }

.gen-out { white-space: pre-wrap; font-size: .92rem; line-height: 1.7; color: var(--text); background: rgba(10, 9, 24, .55); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px; margin: 0; max-height: 520px; overflow: auto; font-family: var(--font); }
.variants { display: grid; gap: 14px; }
.variant { border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 16px 18px; }
.variant .vh { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.variant .vh b { font-size: .88rem; color: var(--gold); font-weight: 600; }
.variant p { margin: 0; color: var(--text); font-size: .92rem; line-height: 1.65; white-space: pre-wrap; }
.variant .count-row { margin-top: 10px; }

.conv-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; }
.conv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px dashed rgba(200, 190, 255, .08); font-variant-numeric: tabular-nums; }
.conv-list li:last-child { border-bottom: 0; }
.conv-list .cur { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.conv-list .cur i { font-style: normal; width: 38px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: var(--grad-soft); color: var(--gold); border: 1px solid var(--line); }
.conv-list .cur small { color: var(--text-3); font-weight: 400; font-size: .8rem; }
.conv-list .amt { font-weight: 600; }


/* ---------------- Blog ---------------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-grid > li { min-width: 0; }
.pcard { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; color: var(--text); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(28, 25, 64, .55), rgba(16, 14, 36, .55)); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pcard:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(200, 190, 255, .28); box-shadow: 0 24px 50px -24px rgba(124, 102, 255, .6); }
.pcover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; overflow: hidden;
  background: radial-gradient(70% 90% at 15% 10%, rgba(243, 207, 145, .55), transparent 60%), radial-gradient(80% 90% at 90% 100%, rgba(160, 139, 255, .65), transparent 60%), #1c1940; }
.post-grid > li:nth-child(3n+2) .pcover { background: radial-gradient(70% 90% at 85% 10%, rgba(244, 163, 180, .55), transparent 60%), radial-gradient(80% 90% at 10% 100%, rgba(124, 102, 255, .6), transparent 60%), #1c1940; }
.post-grid > li:nth-child(3n+3) .pcover { background: radial-gradient(70% 90% at 50% 0%, rgba(94, 230, 171, .35), transparent 60%), radial-gradient(80% 90% at 80% 100%, rgba(243, 207, 145, .45), transparent 60%), #1c1940; }
.pcover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.pci { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(10, 9, 24, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); transition: transform .4s var(--ease); }
.pcard:hover .pci { transform: scale(1.08) rotate(-4deg); }
.pci svg { width: 30px; height: 30px; color: #fff; }
.pcover .pill { position: absolute; z-index: 1; left: 16px; top: 16px; background: rgba(10, 9, 24, .6); color: var(--text); border-color: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); }
.pbody { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.pmeta { font-size: .8rem; color: var(--text-3); }
.pcard h3 { font-size: 1.08rem; line-height: 1.35; }
.pcard p { margin: 0; font-size: .88rem; color: var(--text-3); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .go { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--gold); }
.pcard .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pcard:hover .go svg { transform: translateX(4px); }
@media (min-width: 1001px) {
  .post-grid > li:first-child:has(.pcard-big) { grid-column: 1 / -1; }
  .pcard-big { flex-direction: row; }
  .pcard-big .pcover { aspect-ratio: auto; flex: 0 0 48%; min-height: 300px; }
  .pcard-big .pci { width: 92px; height: 92px; border-radius: 28px; }
  .pcard-big .pci svg { width: 44px; height: 44px; }
  .pcard-big .pbody { padding: 34px; justify-content: center; }
  .pcard-big h3 { font-size: 1.7rem; letter-spacing: -0.02em; }
  .pcard-big p { -webkit-line-clamp: 4; flex: none; font-size: .97rem; }
}
.home-guides { margin-top: 110px; }
.more-posts { margin-top: 70px; }
.more-posts h2 { margin-bottom: 22px; }
.post-hero h1 { max-width: 24ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .85rem; color: var(--text-3); margin-bottom: 18px; }
.post-meta > span:not(.pill) { padding-right: 16px; border-right: 1px solid var(--line-2); line-height: 1.1; }
.post-meta > span:last-child { border-right: 0; padding-right: 0; }
.post-content { padding-top: 10px; }
.post-content .prose { font-size: 1.02rem; line-height: 1.8; }
.takeaways { margin: 0 0 2.2em; padding: 22px 24px; border-radius: 22px; background: var(--grad-soft); border: 1px solid rgba(243, 207, 145, .28); }
.takeaways > b { display: block; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.takeaways ul { margin: 0 !important; }
.takeaways li { color: var(--text); }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 1.6em 0 2em; padding: 20px 22px; border-radius: 20px; background: linear-gradient(120deg, rgba(160, 139, 255, .16), rgba(16, 14, 36, .4)); border: 1px solid rgba(160, 139, 255, .35); }
.tool-cta b { display: block; color: var(--text); font-weight: 600; font-size: 1.02rem; }
.tool-cta p { margin: 4px 0 0; font-size: .9rem; color: var(--text-2); line-height: 1.55; }
.prose .tool-cta a.btn { flex: none; color: var(--on-grad); border: 0; }
@media (max-width: 560px) { .tool-cta { flex-direction: column; align-items: flex-start; } }
.prose pre.gen-out { font-size: .9rem; }

/* ---------------- Reveal animation ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-in > * { animation: heroIn .9s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
.hero-in > *:nth-child(5) { animation-delay: .32s; }
.hero-in > *:nth-child(6) { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; }
  body::before, body::after { display: none; }
  body * { visibility: hidden; }
  #doc-print, #doc-print * { visibility: visible; }
  #doc-print { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; padding: 0; }
}
