/* Cystems free tools — on top of /styles.css */
.nav.static { position: static; border-bottom: 1px solid var(--line); background: var(--bg); }
.tool-wrap { width: min(1100px, 100% - 48px); margin: 0 auto; }
.tool-head { padding: 56px 0 24px; }
.tool-head h1 { margin: 10px 0 14px; font-weight: 400; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.tool-head .body { max-width: 62ch; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; margin: 28px 0 40px; }
.result-pre p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.result-pre .btn { width: 100%; }
.result-pre ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.result-pre li { color: var(--ink-2); font-size: 14px; padding-left: 18px; position: relative; }
.result-pre li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }
.linkbtn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: linear-gradient(180deg, #0f1319, #0a0d12); }
.panel h2 { margin: 0 0 18px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel h2.mt { margin-top: 26px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.f { display: grid; gap: 6px; align-content: start; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 13px; color: var(--ink-2); }
.f .in { position: relative; display: flex; align-items: center; }
.f input, .f select { width: 100%; height: 42px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; padding: 0 12px; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.f select option { background: #0d1015; }
.f input:focus, .f select:focus { outline: none; border-color: rgba(77, 116, 255, .7); }
.f .u { position: absolute; right: 12px; font: 400 12px var(--mono); color: var(--muted); pointer-events: none; }
.f .in input { padding-right: 64px; }
.f .hint { font-size: 12px; color: var(--muted); }
.big { font-size: clamp(40px, 5vw, 60px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 16px; color: var(--ink-2); letter-spacing: 0; margin-left: 8px; }
.sub { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
.rows { margin: 22px 0 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rows li span:last-child { text-align: right; }
.rows li.tot { color: var(--ink); font-weight: 500; }
.rows li.tot span:first-child::before { content: ""; }
.rows li.sum { border-top: 1px solid rgba(255, 255, 255, .25); }
.bar { height: 8px; border-radius: 4px; overflow: hidden; display: flex; margin-top: 20px; background: rgba(255, 255, 255, .06); }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k1 { background: #4d74ff; } .k2 { background: #1de38c; } .k3 { background: #ff9a1f; } .k4 { background: #9b6bff; } .k5 { background: #e2434b; } .k6 { background: #6b7280; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-wa { background: #25d366; color: #06110a; }
.btn-line { background: transparent; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* back to the product, everywhere */
.cta { border: 1px solid rgba(77, 116, 255, .35); border-radius: 12px; padding: 26px 28px; background: linear-gradient(160deg, rgba(77, 116, 255, .14), rgba(77, 116, 255, .03)); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 0 0 56px; }
.cta h3 { margin: 0 0 6px; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.cta p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 62ch; }
.cta .btn { white-space: nowrap; }

/* the words under the tool (what search engines read) */
.prose { max-width: 72ch; margin: 0 0 56px; color: var(--ink-2); font-size: 15.5px; }
.prose h2 { color: var(--ink); font-weight: 400; font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.prose h3 { color: var(--ink); font-weight: 500; font-size: 17px; margin: 24px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose code { font-family: var(--mono); font-size: 13px; color: #c9d6ff; background: rgba(77, 116, 255, .1); padding: 2px 6px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0 16px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 500; }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 80px; }
.related a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #0d1015; }
.related a:hover { border-color: rgba(255, 255, 255, .25); }
.related b { display: block; font-weight: 500; margin-bottom: 4px; }
.related span { color: var(--ink-2); font-size: 13.5px; }

/* the gate: who is calculating */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(7, 9, 12, .72); backdrop-filter: blur(4px); }
.gate[hidden] { display: none; }
.gate-card { width: min(520px, 100%); margin: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 28px; background: #0d1015; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.gate-card h2 { margin: 0 0 6px; font-weight: 400; font-size: 26px; letter-spacing: -0.02em; }
.gate-card p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.gate-card .err { color: #ff8a8a; font-size: 13px; min-height: 18px; margin-top: 8px; }
.gate-card .btn { width: 100%; margin-top: 6px; }
.gate-card .fine { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }

/* tools hub */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 56px; }
.hub-grid > a, .hub-grid > div { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: linear-gradient(180deg, #0f1319, #0a0d12); }
.hub-grid > a:hover { border-color: rgba(77, 116, 255, .5); }
.hub-grid .fk { margin-bottom: 10px; }
.hub-grid b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.hub-grid span { color: var(--ink-2); font-size: 14px; }
.hub-grid .soon { opacity: .5; }

@media (max-width: 900px) { .calc, .related, .hub-grid, .cta { grid-template-columns: 1fr; } .tool-head { padding: 36px 0 18px; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .tool-wrap { width: calc(100% - 32px); } .gate { padding: 12px; } .gate-card { padding: 22px; } }
