/* rsch free tools. Editorial and playful, light page. Static, no build step.
   Brand: ink #15122B, chalk #F2F2FE, cobalt #3D3BF3, lime #D7FF3A. Fonts: Outfit (display) and Plus Jakarta Sans (text). */

.t-wrap {
  --ink: #15122B;
  --chalk: #F2F2FE;
  --paper: #FBFBFF;
  --white: #FFFFFF;
  --cobalt: #3D3BF3;
  --cobalt-deep: #2420B8;
  --lime: #D7FF3A;
  --muted: #55546B;
  --line: #DCDCF4;
  --warn: #C2410C;
  --head: "Outfit", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

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

.t-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }

/* hero */
.t-hero { padding: 28px 0 28px; max-width: 820px; }
.t-eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobalt);
  margin: 0 0 12px;
}
.t-hero h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(38px, 7.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.mark { background: linear-gradient(transparent 60%, var(--lime) 60% 92%, transparent 92%); padding: 0 4px; margin: 0 -4px; }
.t-sub { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0; }

/* the panel: inputs left, answer right */
.t-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -32px rgba(21, 18, 43, 0.35);
}
.t-inputs { padding: 28px 28px 24px; }
.t-out {
  position: relative;
  background: var(--cobalt);
  color: #fff;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}
@media (max-width: 820px) {
  .t-panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .t-inputs, .t-out { padding: 22px 18px 20px; }
  .t-out { min-height: 0; }
}

/* fields */
.t-field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.t-field > label, .t-field > legend {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
  padding: 0;
}
.t-hint { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.t-input, .t-area {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--chalk);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
}
.t-input:hover, .t-area:hover { border-color: var(--line); }
.t-input:focus, .t-area:focus { outline: none; border-color: var(--cobalt); background: var(--white); }
.t-area { min-height: 168px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14px; line-height: 1.55; resize: vertical; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .t-row { grid-template-columns: 1fr; } }

/* pills (radio buttons) */
.t-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.t-pills label { position: relative; }
.t-pills input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.t-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chalk);
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.t-pills input:checked + span { background: var(--ink); color: var(--lime); }
.t-pills input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.t-pills label:hover input:not(:checked) + span { background: var(--line); }

/* slider */
.t-slide { display: flex; align-items: center; gap: 14px; }
.t-slide output { font-family: var(--head); font-weight: 700; font-size: 26px; min-width: 64px; text-align: right; letter-spacing: -0.02em; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 999px; background: var(--line); outline-offset: 8px; min-width: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); border: 3px solid var(--ink); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 9px; background: var(--lime); border: 3px solid var(--ink); cursor: grab; }

/* tabs */
.t-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--chalk); border-radius: 999px; margin: 0 0 22px; flex-wrap: wrap; }
.t-tabs button {
  font: inherit; font-family: var(--head); font-weight: 600; font-size: 15px;
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink);
}
.t-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

/* details (fine tune) */
.t-more { margin: 0 0 6px; }
.t-more summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--cobalt); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.t-more[open] summary { margin-bottom: 8px; }

/* buttons */
.t-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.t-btn {
  font: inherit; font-family: var(--head); font-weight: 700; font-size: 17px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: #15122B;
}
.t-btn:hover { background: var(--ink); color: var(--lime); }
.t-btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-weight: 600; }
.t-btn.ghost:hover { background: var(--chalk); color: var(--ink); }
.t-msg { margin: 12px 0 0; font-size: 15px; color: var(--warn); min-height: 1.5em; }

/* the answer side */
.t-ayo { position: absolute; right: 8px; bottom: -6px; width: 150px; pointer-events: none; }
.t-ayo svg { display: block; width: 100%; height: auto; overflow: visible; }
.t-out-label { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: #C9C8FF; margin: 0 0 4px; }
.t-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(76px, 13vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--lime);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.t-unit { font-family: var(--head); font-weight: 600; font-size: 22px; margin: 6px 0 18px; }
.t-facts { list-style: none; margin: 0; padding: 0; max-width: 62%; font-size: 15.5px; color: #E6E6FF; }
.t-facts li { margin: 0 0 8px; padding-left: 16px; position: relative; }
.t-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.t-facts.full { max-width: none; }
.t-out.is-empty .t-num { color: #8F8EFB; }
.t-out.is-err .t-num { color: #fff; font-size: clamp(40px, 7vw, 56px); }
@media (max-width: 820px) {
  .t-ayo { width: 96px; right: 6px; bottom: -4px; }
  .t-facts { max-width: calc(100% - 100px); }
  .t-facts.full { max-width: none; }
  .t-num { font-size: clamp(64px, 22vw, 96px); }
}

/* alpha gauge */
.t-gauge { margin: 4px 0 18px; max-width: 64%; }
.t-gauge-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.18); position: relative; }
.t-gauge-bar i { display: block; height: 100%; }
.t-gauge-bar i:nth-child(1) { width: 70%; background: rgba(255,255,255,0.28); }
.t-gauge-bar i:nth-child(2) { width: 10%; background: #9C9BFF; }
.t-gauge-bar i:nth-child(3) { width: 10%; background: #C8F26A; }
.t-gauge-bar i:nth-child(4) { width: 10%; background: var(--lime); }
.t-gauge-pin { position: absolute; top: -5px; width: 6px; height: 24px; background: #fff; border-radius: 3px; transform: translateX(-50%); box-shadow: 0 0 0 3px var(--ink); transition: left 260ms ease; left: 0; }
.t-gauge-scale { display: flex; justify-content: space-between; font-size: 12px; color: #C9C8FF; margin-top: 6px; position: relative; }
.t-label { font-family: var(--head); font-weight: 700; font-size: 26px; margin: 0 0 4px; }
.t-note { margin: 0; font-size: 15.5px; color: #E6E6FF; max-width: 62%; }
.t-note:empty { display: none; }
.t-meta { margin-top: 12px; color: #C9C8FF; font-size: 14px; }
@media (max-width: 820px) { .t-note, .t-gauge { max-width: calc(100% - 100px); } }

/* item table under the panel */
.t-items { margin: 24px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 6px 4px 4px; overflow-x: auto; }
.t-items table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15.5px; }
.t-items caption { text-align: left; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 14px 16px 6px; }
.t-items th, .t-items td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.t-items thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.t-items tbody tr:last-child th, .t-items tbody tr:last-child td { border-bottom: 0; }
.t-items td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--head); font-weight: 600; font-size: 17px; }
.t-items thead th.num { text-align: right; }
.t-items td.up { color: var(--cobalt); }
.t-items-note { margin: 0; padding: 12px 16px 14px; font-size: 15px; color: var(--muted); }

/* reading section: editorial two columns */
.t-read { margin-top: 64px; display: grid; gap: 44px; }
.t-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 20px 48px; padding-top: 26px; border-top: 2px solid var(--ink); }
.t-block > h2 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.t-block > div > *:first-child { margin-top: 0; }
.t-block p { margin: 0 0 14px; }
.t-block ul, .t-block ol { margin: 0 0 14px; padding-left: 1.3em; }
.t-block li { margin-bottom: 8px; }
.t-steps { list-style: none; padding: 0; counter-reset: s; }
.t-steps > li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 16px; }
.t-steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 11px; background: var(--lime); color: #15122B; font-family: var(--head); font-weight: 700; display: grid; place-items: center; transform: rotate(-4deg); }
.t-table { overflow-x: auto; border-radius: 16px; background: var(--white); border: 1px solid var(--line); margin: 0 0 14px; }
.t-table table { border-collapse: collapse; width: 100%; min-width: 360px; font-size: 15.5px; }
.t-table caption { text-align: left; font-weight: 600; padding: 12px 16px 4px; }
.t-table th, .t-table td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.t-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.t-table tbody tr:last-child th, .t-table tbody tr:last-child td { border-bottom: 0; }
.t-table td.num, .t-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-faq h3 { font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin: 22px 0 6px; }
.t-faq h3:first-child { margin-top: 0; }
.t-faq p { margin: 0; }
@media (max-width: 820px) { .t-block { grid-template-columns: minmax(0, 1fr); gap: 14px; } .t-items table { min-width: 0; } .t-items th, .t-items td { padding: 10px 8px; } .t-items caption { padding-left: 8px; } .t-items-note { padding-left: 8px; padding-right: 8px; } }

/* tools index */
.t-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.t-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px 24px; text-decoration: none; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(21,18,43,0.45); }
.t-card b { display: block; font-family: var(--head); font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.t-card span { color: var(--muted); font-size: 16px; display: block; margin-bottom: 18px; }
.t-card em { color: #15122B; font-style: normal; font-family: var(--head); font-weight: 700; background: var(--lime); border-radius: 999px; padding: 8px 16px; display: inline-block; }
@media (max-width: 720px) { .t-cards { grid-template-columns: minmax(0, 1fr); } }

/* call to action */
.t-cta { margin-top: 64px; background: var(--ink); color: #fff; border-radius: 28px; padding: 34px 28px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.t-cta h2 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; max-width: 520px; }
.t-cta p { margin: 0; color: #D9D8F5; max-width: 520px; }
.t-cta a.t-btn { text-decoration: none; display: inline-flex; align-items: center; }
.t-cta a.t-btn:hover { background: #fff; color: var(--ink); }

.t-byline { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.t-byline a { color: var(--muted); }

/* Ayo (static copy of the app mascot) */
.ayo-body { animation: ayo-float 3.4s ease-in-out infinite; transform-origin: 80px 150px; }
.ayo-arm, .ayo-block, .ayo-pupil { transition: transform 420ms cubic-bezier(.3,1.4,.5,1), x 420ms ease, y 420ms ease, cx 300ms ease, cy 300ms ease; }
.ayo-pupils { transition: transform 120ms ease-out; }
.ayo-confetti-bit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ayo-confetti.go .ayo-confetti-bit { animation: ayo-pop 900ms cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes ayo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ayo-pop {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .ayo-body, .ayo-confetti.go .ayo-confetti-bit { animation: none; }
  .ayo-arm, .ayo-block, .ayo-pupil, .ayo-pupils, .t-gauge-pin, .t-card, .t-pills span { transition: none; }
}

@media (max-width: 480px) { body { font-size: 16px; } .t-sub { font-size: 17px; } }
@media print { .t-head, .t-cta, .t-foot, .t-ayo { display: none; } body { background: #fff; } }

/* dark: same switch as the rest of the site (the visitor's choice, or the system setting) */
:root[data-theme="dark"] .t-wrap { --ink: #F2F2FE; --chalk: #0E0C1F; --paper: #15122B; --white: #15122B; --line: #2A2745; --muted: #A3A2BD; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-wrap { --ink: #F2F2FE; --chalk: #0E0C1F; --paper: #15122B; --white: #15122B; --line: #2A2745; --muted: #A3A2BD; }
}
:root[data-theme="dark"] .t-pills input:checked + span,
:root[data-theme="dark"] .t-tabs button[aria-pressed="true"] { background: var(--lime); color: #15122B; }
:root[data-theme="dark"] .t-btn:hover { background: #FFFFFF; color: #15122B; }
:root[data-theme="dark"] .mark { background: linear-gradient(transparent 62%, rgba(215, 255, 58, 0.45) 62% 92%, transparent 92%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-pills input:checked + span,
  :root:not([data-theme="light"]) .t-tabs button[aria-pressed="true"] { background: var(--lime); color: #15122B; }
  :root:not([data-theme="light"]) .t-btn:hover { background: #FFFFFF; color: #15122B; }
  :root:not([data-theme="light"]) .mark { background: linear-gradient(transparent 62%, rgba(215, 255, 58, 0.45) 62% 92%, transparent 92%); }
}
