*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--b-ground); color: var(--b-ink);
  font-family: var(--b-font); font-size: 1.0625rem; line-height: 1.55;
  font-feature-settings: 'ss01';
}
a { color: var(--b-signal); text-underline-offset: 0.2em; }
a:focus-visible, input:focus-visible + label, button:focus-visible {
  outline: 3px solid var(--b-signal); outline-offset: 3px;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--b-ink); color: var(--b-paper); padding: 0.75rem 1rem; border-radius: 0.5rem;
}
.skip:focus { top: 0.75rem; }

main > section {
  max-width: var(--b-wrap); margin: 0 auto; padding: 0 var(--b-gutter);
}

/* ---------- hero: headline left, the live drop zone right ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem; padding-top: clamp(2.5rem, 7vw, 6rem) !important; padding-bottom: 4rem !important;
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}
.hero h1 {
  margin: 0; font-weight: 750; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem); text-wrap: balance; max-width: 13ch;
  overflow-wrap: break-word;
}
.lede {
  margin: 1.75rem 0 0; max-width: 34rem; color: var(--b-graphite);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55;
}

.drop { position: relative; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__zone {
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  min-height: 15rem; padding: 2rem;
  background: var(--b-paper);
  border: 2px dashed color-mix(in srgb, var(--b-ink) 28%, transparent);
  border-radius: 1.25rem; cursor: pointer;
  transition: border-color 120ms, background-color 120ms;
}
.drop__zone:hover, .drop.is-over .drop__zone {
  border-color: var(--b-signal); background: color-mix(in srgb, var(--b-signal) 5%, var(--b-paper));
}
.drop__title { font-size: 1.75rem; overflow-wrap: anywhere; font-weight: 700; letter-spacing: -0.02em; }
.drop__hint { color: var(--b-graphite); }
.drop__pick { color: var(--b-signal); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; }

.drop__result {
  margin-top: 1rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--b-paper); border-radius: 1rem; border-left: 4px solid var(--b-signal);
}
.drop__result p { margin: 0 0 0.9rem; }
.drop__file { font-weight: 650; word-break: break-all; }
.drop__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
  border-radius: 0.625rem; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn--go { background: var(--b-signal); color: var(--b-signal-ink); }
.btn--go:hover { background: color-mix(in srgb, var(--b-signal) 86%, black); }
.btn--quiet { background: transparent; color: var(--b-ink); border-color: var(--b-rule); }
.btn--quiet:hover { border-color: var(--b-ink); }

/* The meter is the page's one loud thing: big tabular numerals, local green. */
.meter { margin-top: 1rem; padding: 1.25rem 0 0; border-top: 1px solid var(--b-rule); }
.meter__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.meter__row + .meter__row { margin-top: 0.25rem; }
.meter__label { color: var(--b-graphite); font-size: 0.975rem; }
.meter__value {
  font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.03em;
  font-size: 2.25rem; line-height: 1.1; color: var(--b-local);
}
.meter.is-live .meter__value { animation: tick 600ms ease-out; }
.meter.is-bad .meter__value { color: #b3261e; }
.meter__note { margin: 0.75rem 0 0; font-size: 0.925rem; color: var(--b-graphite); max-width: 32rem; }
@keyframes tick { from { opacity: 0.35; } to { opacity: 1; } }

/* ---------- tool list: a ruled index, not a card grid ---------- */
.tools { padding-bottom: 4.5rem !important; }
.tools h2, .check h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; font-weight: 750;
  margin: 0 0 1.25rem;
}
.toollist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--b-ink); }
.tool { border-bottom: 1px solid var(--b-rule); }
.tool__link {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem;
  padding: 1.35rem 0.25rem; color: inherit; text-decoration: none;
}
@media (min-width: 48rem) {
  .tool__link { grid-template-columns: 11rem minmax(0, 1fr) 9rem; gap: 0.5rem 2rem; align-items: baseline; }
  .tool__shot { grid-column: 2 / -1; }
}
@media (min-width: 64rem) {
  /* name + words on the left, the real screen on the right */
  .tool__link { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 24rem); grid-template-rows: auto 1fr; align-items: start; column-gap: 2.5rem; }
  .tool__name { grid-row: 1 / 3; }
  .tool__does { grid-column: 2; grid-row: 1; }
  .tool__takes { grid-column: 2; grid-row: 2; text-align: left; }
  .tool__shot { grid-column: 3; grid-row: 1 / 3; }
}
.tool__shot {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: top left;
  margin-top: 0.5rem; border-radius: 0.75rem;
  border: 1px solid var(--b-rule); background: var(--b-paper);
  box-shadow: 0 1px 2px rgba(21, 23, 26, 0.05), 0 8px 24px rgba(21, 23, 26, 0.06);
}
@media (min-width: 64rem) { .tool__shot { margin-top: 0; } }
.tool__link:hover .tool__shot { border-color: color-mix(in srgb, var(--b-signal) 45%, var(--b-rule)); }
.tool__name { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; }
.tool__does { color: var(--b-graphite); max-width: 40rem; }
.tool__takes { color: var(--b-graphite); font-size: 0.925rem; }
@media (min-width: 48rem) and (max-width: 63.99rem) { .tool__takes { text-align: right; } }
.tool__link:hover .tool__name, .tool__link:focus-visible .tool__name { color: var(--b-signal); }
.tool__link:hover { background: color-mix(in srgb, var(--b-ink) 3%, transparent); }
.tool__link:focus-visible { outline: 3px solid var(--b-signal); outline-offset: -3px; border-radius: 0.5rem; }

/* ---------- check ---------- */
.check { padding-bottom: 5rem !important; }
.check__body { max-width: 40rem; }
.check__body p { margin: 0 0 1rem; }
kbd {
  font-family: inherit; font-size: 0.9em; font-weight: 600;
  padding: 0.05em 0.4em; border: 1px solid var(--b-rule); border-bottom-width: 2px;
  border-radius: 0.3rem; background: var(--b-paper);
}

/* ---------- privacy page ---------- */
.prose { max-width: 42rem !important; padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; padding-bottom: 5rem !important; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 1.5rem; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--b-ink); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── home: motion and file states (redesign pass) ───────── */

/* One orchestrated arrival: headline, lede, then the drop zone and meter. */
.hero__copy > *, .drop { animation: b-rise-in 520ms var(--b-ease) both; }
.hero__copy > .lede { animation-delay: 70ms; }
.drop { animation-delay: 140ms; }

.drop__zone { align-items: center; text-align: center; transition: border-color var(--b-fast) var(--b-ease), background-color var(--b-fast) var(--b-ease), box-shadow var(--b-med) var(--b-ease), transform var(--b-med) var(--b-ease); }
.drop__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 0.5rem;
  background: color-mix(in srgb, var(--b-signal) 9%, var(--b-paper));
  border: 1px solid color-mix(in srgb, var(--b-signal) 20%, transparent); border-radius: 1rem;
  transition: transform var(--b-med) var(--b-ease);
}
.drop__icon::after {
  content: ''; width: 1.6rem; height: 1.6rem; background: var(--b-signal);
  -webkit-mask: var(--tray) center / contain no-repeat; mask: var(--tray) center / contain no-repeat;
}
:root {
  --tray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7.5 9.5 4.5 4.5 4.5-4.5'/%3E%3Cpath d='M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3C/svg%3E");
  --ico-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-4.5-4.5L6 21'/%3E%3C/svg%3E");
  --ico-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E");
  --ico-sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18'/%3E%3C/svg%3E");
  --ico-other: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
}
.drop__zone:hover .drop__icon { transform: translateY(-2px); }
.drop.is-over .drop__zone {
  border-style: solid; border-color: var(--b-signal);
  background: color-mix(in srgb, var(--b-signal) 7%, var(--b-paper));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--b-signal) 12%, transparent);
  transform: scale(1.01);
}
.drop.is-over .drop__icon { transform: translateY(3px) scale(1.06); }

/* A chosen file replaces the drop zone with a card. */
.drop.has-file .drop__zone { display: none; }
.drop__result {
  margin-top: 0; padding: 1.25rem; border-left: 0;
  background: var(--b-paper); border: 1px solid var(--b-rule); border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(21, 23, 26, 0.04), 0 10px 30px rgba(21, 23, 26, 0.06);
  animation: b-rise-in 360ms var(--b-ease) both;
}
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center; }
.file__icon {
  width: 3rem; height: 3rem; border-radius: 0.875rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--b-signal) 9%, var(--b-paper));
}
.file__icon::after { content: ''; width: 1.4rem; height: 1.4rem; background: var(--b-signal); -webkit-mask: var(--ico-other) center / contain no-repeat; mask: var(--ico-other) center / contain no-repeat; }
.file__icon--image::after { -webkit-mask-image: var(--ico-image); mask-image: var(--ico-image); }
.file__icon--pdf::after { -webkit-mask-image: var(--ico-pdf); mask-image: var(--ico-pdf); }
.file__icon--sheet::after { -webkit-mask-image: var(--ico-sheet); mask-image: var(--ico-sheet); }
.file__meta { display: flex; flex-direction: column; min-width: 0; }
.file__name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.file__sub { color: var(--b-graphite); font-size: 0.925rem; }
.file__again {
  font: inherit; font-weight: 600; font-size: 0.925rem; color: var(--b-signal);
  background: none; border: 0; padding: 0 0.25rem; min-height: 44px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}
.file__none { margin: 1rem 0 0; color: var(--b-graphite); }
.drop__result .drop__actions { margin-top: 1.1rem; }
.drop__result .btn { animation: b-rise-in 360ms var(--b-ease) both; }
.drop__result .btn + .btn { animation-delay: 60ms; }
@media (max-width: 30rem) {
  .file { grid-template-columns: auto minmax(0, 1fr); }
  .file__again { grid-column: 1 / -1; justify-self: start; padding: 0; }
  .drop__result .btn { width: 100%; justify-content: center; }
}

/* The meter number pops when it changes. */
.meter__value.is-bump { animation: meter-bump 420ms var(--b-ease); }
@keyframes meter-bump { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.meter__value { display: inline-block; transform-origin: right center; }

/* The tool list: the screenshot lifts on hover, the name turns blue. */
.tool__shot { transition: transform var(--b-med) var(--b-ease), box-shadow var(--b-med) var(--b-ease), border-color var(--b-fast) var(--b-ease); }
.tool__link:hover .tool__shot { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21, 23, 26, 0.05), 0 16px 40px rgba(21, 23, 26, 0.1); }
.tool__name { transition: color var(--b-fast) var(--b-ease); }

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .drop, .drop__result, .drop__result .btn, .meter__value.is-bump { animation: none !important; }
  .drop__zone, .drop__icon, .tool__shot { transition: none !important; transform: none !important; }
}

/* ───────── The tools, as a bento of real screenshots ───────── */
.tools__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.tools__head h2 { margin: 0 !important; }
.tools__sub { margin: 0; color: var(--b-graphite); max-width: 34rem; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento__tile { grid-column: span 12; }
@media (min-width: 56rem) {
  .bento__tile--wide { grid-column: span 7; }
  .bento__tile--narrow { grid-column: span 5; }
}
.bento__link {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 22px; text-decoration: none; color: inherit;
  background: var(--b-paper); border: 1px solid var(--b-rule);
  box-shadow: 0 1px 2px rgba(21,23,26,.04);
  transition: transform var(--b-med) var(--b-ease), box-shadow var(--b-med) var(--b-ease), border-color var(--b-fast);
}
.bento__link:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(21,23,26,.06), 0 22px 50px rgba(21,23,26,.12); border-color: color-mix(in srgb, var(--b-signal) 35%, var(--b-rule)); }
.bento__link:focus-visible { outline: 3px solid var(--b-signal); outline-offset: 3px; }
.bento__text { display: grid; gap: 0.35rem; padding: 1.4rem 1.5rem 1.1rem; }
.bento__name { font-size: 0.95rem; font-weight: 700; color: var(--tile, var(--b-signal)); }
.bento__lede { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; color: var(--b-ink); }
.bento__more { color: var(--b-graphite); font-size: 0.975rem; max-width: 34rem; }
.bento__takes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.4rem; color: var(--b-graphite); font-size: 0.9rem; }
.bento__go { font-weight: 700; color: var(--b-ink); padding: 0.45rem 0.9rem; border-radius: 999px; background: color-mix(in srgb, var(--b-ink) 6%, transparent); transition: background-color var(--b-fast), color var(--b-fast); }
.bento__link:hover .bento__go { background: var(--b-ink); color: #fff; }
.bento__shotwrap { position: relative; margin: auto 1.5rem 0; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--b-rule); border-bottom: 0; box-shadow: 0 -2px 20px rgba(21,23,26,.06); }
.bento__shot { display: block; width: 100%; height: auto; transition: transform 600ms var(--b-ease); transform-origin: top center; }
.bento__link:hover .bento__shot { transform: scale(1.025); }
.bento__tile--stripshot { --tile: #2638d9; }
.bento__tile--truecolor { --tile: #8f3f66; }
.bento__tile--formfix { --tile: #0b6b43; }
.bento__tile--datapeek { --tile: #8a5a00; }
.bento__tile--stripshot .bento__link { background: linear-gradient(180deg, #eef1fb, var(--b-paper) 55%); }
.bento__tile--truecolor .bento__link { background: linear-gradient(180deg, #f8ecef, var(--b-paper) 55%); }
.bento__tile--formfix .bento__link { background: linear-gradient(180deg, #e9f3ee, var(--b-paper) 55%); }
.bento__tile--datapeek .bento__link { background: linear-gradient(180deg, #f7f0e2, var(--b-paper) 55%); }
@media (max-width: 30rem) { .bento__text { padding: 1.2rem 1.1rem 1rem; } .bento__shotwrap { margin: auto 1.1rem 0; } }
@media (prefers-reduced-motion: reduce) { .bento__link, .bento__shot, .bento__tile { transition: none; animation: none; } .bento__link:hover { transform: none; } }
.file__none--error { color: #b3261e; font-weight: 600; }
