/*
 * TechSfera / dawid-minta.pl - warstwa stylow dla sekcji /narzedzia/.
 * Samodzielny arkusz: nie zalezy od hashowanego bundla Astro, ktory zmienia
 * nazwe przy kazdym buildzie glownej strony.
 */

:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.46);
  --accent: #67e8f9;
  --accent-soft: rgba(103, 232, 249, 0.14);
  --accent-line: rgba(103, 232, 249, 0.3);
  --accent-ink: #cffafe;
  --positive: #4ade80;
  --warn: #fbbf24;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shell: min(1160px, 100%);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 900;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .shell {
    padding: 0 24px;
  }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 0.95rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  object-fit: cover;
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.28);
}

.site-nav {
  order: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.site-nav a {
  padding: 9px 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a + a {
  border-left: 1px solid var(--line-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (min-width: 900px) {
  .site-nav {
    order: 2;
    width: auto;
    display: flex;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
  }

  .site-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
  }

  .site-nav a + a {
    border-left: 0;
  }
}

.header-cta {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.header-cta:hover {
  background: var(--accent);
}

@media (min-width: 900px) {
  .header-cta {
    order: 3;
  }
}

/* ------------------------------------------------------------ typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.9rem);
}

h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose {
  max-width: 74ch;
  color: var(--muted);
}

.prose h2 {
  margin: 2.6rem 0 1rem;
  color: #fff;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  color: #fff;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: #fff;
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

/* --------------------------------------------------------------- layout */

.section {
  padding: clamp(48px, 7vw, 86px) 0;
}

.section--tight {
  padding: clamp(32px, 5vw, 56px) 0;
}

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 78px) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 232, 249, 0.16), transparent 42%),
    linear-gradient(180deg, #03080b, #000 70%);
}

.hero__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 44px;
  }
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.28);
}

.breadcrumbs a:hover {
  color: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- cards */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(18px, 3vw, 26px);
}

.card--glow {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.12), transparent 55%),
    var(--surface-strong);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.tool-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.tool-card .eyebrow {
  align-self: flex-start;
}

.tool-card h3 {
  font-size: 1.15rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tool-card__meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------- form */

.tool {
  display: grid;
  gap: 18px;
  scroll-margin-top: 90px;
}

@media (min-width: 1000px) {
  .tool {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    align-items: start;
    gap: 22px;
  }

  .tool__result {
    position: sticky;
    top: 84px;
  }
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

fieldset:last-of-type {
  margin-bottom: 0;
}

legend {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field {
  margin-bottom: 16px;
}

.field > label,
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.field__hint {
  margin: 6px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--faint);
}

.field__row {
  display: grid;
  gap: 14px;
}

@media (min-width: 620px) {
  .field__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.16);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

select option {
  background: #0a0f12;
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.check-grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 620px) {
  .check-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check:hover {
  border-color: rgba(103, 232, 249, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check span {
  font-size: 0.88rem;
  line-height: 1.45;
}

.check small {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 700;
}

.range-field output {
  float: right;
  color: var(--accent-ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  margin: 6px 0 0;
  accent-color: var(--accent);
}

/* --------------------------------------------------------------- result */

.result {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.05);
  padding: clamp(18px, 3vw, 24px);
}

.result__label {
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result__value {
  margin: 6px 0 2px;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.result__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result__stats {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 480px) {
  .result__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.result__stats div {
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.32);
}

.result__stats dt {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result__stats dd {
  margin: 3px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.breakdown {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.breakdown li:first-child {
  border-top: 0;
}

.breakdown b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.breakdown small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 0.75rem;
}

.bar {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), rgba(103, 232, 249, 0.35));
}

.callout {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgba(103, 232, 249, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: var(--warn);
  background: rgba(251, 191, 36, 0.08);
}

.score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.score__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: conic-gradient(var(--accent) calc(var(--pct, 0) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.score__ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: var(--radius-pill);
  background: #04090c;
}

.score__ring b {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-line);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- table */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  padding: 0 2px 12px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

thead th {
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Narrow screens cannot fit four columns without shredding the prose in the
   last one, so each row becomes its own card with the header as a label. */

thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

tbody tr {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

tbody tr + tr {
  margin-top: 12px;
}

tbody td {
  display: block;
  padding: 12px 16px;
  color: var(--muted);
}

tbody td + td {
  border-top: 1px solid var(--line-soft);
}

tbody td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody td:first-child {
  color: #fff;
  font-weight: 700;
}

tbody td:first-child::before {
  content: none;
}

@media (min-width: 760px) {
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }

  caption {
    padding: 14px 16px;
  }

  thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  th,
  td {
    padding: 12px 16px;
    text-align: left;
    border-top: 1px solid var(--line-soft);
  }

  thead th {
    border-top: 0;
  }

  tbody tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: none;
  }

  tbody tr + tr {
    margin-top: 0;
  }

  tbody td {
    display: table-cell;
  }

  tbody td::before {
    content: none;
  }
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 16px;
}

details[open] {
  border-color: var(--accent-line);
}

summary {
  padding: 15px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--accent);
  font-weight: 900;
}

details[open] summary::after {
  content: "\2212";
}

details > div {
  padding-bottom: 15px;
  color: var(--muted);
  font-size: 0.92rem;
}

details > div p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------- cta/foot */

.cta-band {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 0%, rgba(103, 232, 249, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.05);
}

@media (min-width: 860px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #000;
  padding: 34px 0 44px;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: grid;
  gap: 22px;
}

@media (min-width: 780px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------- consent */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 115;
  padding: 14px;
}

.consent__box {
  display: grid;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

@media (min-width: 820px) {
  .consent__box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.consent p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.consent strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------- utilities */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 200;
  transform: translate(-50%, 140%);
  padding: 11px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.22s ease;
}

.toast[data-visible="true"] {
  transform: translate(-50%, 0);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.stack > * + * {
  margin-top: 14px;
}

.updated {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- print */

@media print {
  :root {
    --muted: #333;
    --faint: #555;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .consent,
  .actions,
  .cta-band,
  .skip-link,
  .toast,
  form .field__hint {
    display: none !important;
  }

  .card,
  .result,
  .table-wrap {
    border-color: #ccc;
    background: #fff;
    color: #000;
    break-inside: avoid;
  }

  .result__value,
  h1,
  h2,
  h3,
  .breakdown b {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
  }
}
