@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #e3f0ff;
  --ink: #15151a;
  --paper: #fffdf8;
  --magenta: #d81b60;
  --yellow: #ffe14a;
  --green: #0f7a34;
  --black: #16161b;
  --cobalt: #2541e6;
  --lime: #c6f24e;
  --tangerine: #ff9a3d;
  --shadow: 5px 5px 0 var(--ink);
  --line: 3px solid var(--ink);
  --display: "Bricolage Grotesque", "Schibsted Grotesk", sans-serif;
  --body: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--sky) url("/css/dots.svg") 0 0 / 220px 220px repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.45;
  padding: 16px 16px 108px;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, .tool-title, .stat strong, .logo, .finding {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  border: var(--line);
  z-index: 50;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  transform: rotate(-8deg);
}

.nameplate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: calc(100% - 74px);
  margin-right: auto;
  padding: 7px 12px;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.nameplate strong { font-size: 1rem; }

.nameplate span {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.files-pill,
.privacy-link,
.btn,
.chip,
.fact {
  text-decoration: none;
}

.files-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: var(--green);
  color: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero,
.panel,
.drop,
.sheet-dialog {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}

.hero, .panel { padding: 22px 18px 20px; }

.hero, .drop, .stat {
  margin-bottom: 0;
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero { margin-bottom: 18px; }

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: var(--sky);
  border-bottom: var(--line);
  border-left: var(--line);
  border-radius: 0 26px 0 16px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.eyebrow, .chip, .stat span, .fine, .search-status {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
}

.eyebrow { margin: 0; }

.fact {
  margin: 0;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 1.08;
}

.word-sticker {
  display: inline-block;
  margin: 0 0.08em;
  padding: 0 0.16em;
  background: var(--magenta);
  color: #fff;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.lede { font-size: 1.125rem; max-width: 38rem; }

.actions, .footer-actions, .dialog-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}

.btn-yellow { background: var(--yellow); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-paper { background: var(--paper); }

.text-link { font-weight: 700; }

.drop {
  margin: 18px 0;
  padding: 18px;
  background: var(--yellow);
  --tilt: -1deg;
  transform: rotate(var(--tilt));
}

.drop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.drop-plus {
  width: 54px;
  height: 54px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.drop h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 0.95;
}

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

.chip {
  padding: 4px 8px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.lock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-weight: 700;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.stat {
  margin: 0;
  padding: 12px;
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}

.dock {
  position: fixed;
  z-index: 30;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  padding: 6px;
  background: var(--paper);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.dock a,
.dock > button {
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.dock-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: var(--line);
  border-radius: 12px;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.category {
  display: inline-block;
  margin: 18px 0 12px;
  padding: 4px 12px;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: #fff;
  font-size: 1rem;
  transform: rotate(-2deg);
}

.category-magenta { background: var(--magenta); }
.category-cobalt { background: var(--cobalt); }
.category-green { background: var(--green); }
.category-black { background: var(--black); }

.tool-grid {
  display: grid;
  gap: 14px;
}

.tool {
  --tilt: 0deg;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tool-title { font-size: 1.35rem; line-height: 1.05; }
.tool-line { font-size: 0.98rem; }

.flag {
  padding: 2px 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.tool-magenta { background: var(--magenta); color: #fff; }
.tool-yellow { background: var(--yellow); }
.tool-green { background: var(--green); color: #fff; }
.tool-black { background: var(--black); color: #fff; }
.tool-cobalt { background: var(--cobalt); color: #fff; }
.tool-lime { background: var(--lime); }
.tool-tangerine { background: var(--tangerine); }

.why-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.why-grid p {
  margin: 0;
  padding: 16px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.why-grid p:nth-child(1) { background: var(--yellow); }
.why-grid p:nth-child(2) { background: var(--paper); }
.why-grid p:nth-child(3) { background: var(--lime); }

.tiles {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.tiles article {
  margin: 0;
  padding: 16px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tiles h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.05;
}

.tiles p { margin: 0; }

.tiles article:nth-child(7n + 1) { background: var(--paper); color: var(--ink); }
.tiles article:nth-child(7n + 2) { background: var(--magenta); color: #fff; }
.tiles article:nth-child(7n + 3) { background: var(--yellow); color: var(--ink); }
.tiles article:nth-child(7n + 4) { background: var(--green); color: #fff; }
.tiles article:nth-child(7n + 5) { background: var(--black); color: #fff; }
.tiles article:nth-child(7n + 6) { background: var(--lime); color: var(--ink); }
.tiles article:nth-child(7n + 7) { background: var(--tangerine); color: var(--ink); }

@media (min-width: 800px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}

.panel { margin: 18px 0; }
.panel h2 { font-size: 1.8rem; line-height: 1; }

label { display: grid; gap: 6px; font-weight: 700; }

input[type="email"],
input[type="number"],
input[type="search"] {
  min-height: 44px;
  padding: 8px 10px;
  border: var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.setup-form { display: grid; gap: 10px; margin-top: 12px; }
.setup-form > .btn { justify-self: start; }

.share-url {
  padding: 10px;
  background: var(--sky);
  border: var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.footer {
  margin-top: 28px;
  padding-top: 8px;
}

.footer p { max-width: 40rem; }

.footer-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sheet-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
  color: var(--ink);
}

.sheet-dialog::backdrop,
#soon::backdrop,
#gate::backdrop { background: rgba(21, 21, 26, 0.46); }

.recent-list { padding-left: 1.1rem; }

.form-status { font-weight: 700; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: var(--line);
}

th, td {
  padding: 8px 10px;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

th { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; }

caption { text-align: left; font-weight: 700; padding-bottom: 8px; }

.result-sheet {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.finding {
  margin: 0;
  padding: 14px 16px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.45rem;
  line-height: 1.05;
}

.finding:nth-child(4n + 1) { background: var(--yellow); }
.finding:nth-child(4n + 2) { background: var(--magenta); color: #fff; }
.finding:nth-child(4n + 3) { background: var(--lime); }
.finding:nth-child(4n + 4) { background: var(--paper); }

.crumb { font-weight: 700; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

@keyframes pop {
  from { transform: rotate(var(--tilt, 0deg)) scale(0.96); }
  to { transform: rotate(var(--tilt, 0deg)) scale(1); }
}

@media (hover: hover) {
  .tool:hover,
  .btn:hover,
  .files-pill:hover,
  .privacy-link:hover,
  .logo:hover {
    transform: rotate(var(--tilt, 0deg)) translateY(-2px);
  }

  .logo:hover { transform: rotate(-8deg) translateY(-2px); }
}

.tool:active,
.btn:active,
.files-pill:active,
.privacy-link:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.drop.is-hot { transform: rotate(var(--tilt)) translateY(-2px); }

@media (min-width: 800px) {
  body { padding: 20px 28px 32px; }

  .hero, .panel { padding: 18px 28px 16px; }
  .drop { margin: 12px 0; padding: 14px 18px; }
  .stats { margin: 12px 0; }
  .category { margin-top: 8px; }

  .tool-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

  .tool:nth-child(4n + 1) { --tilt: -1.6deg; }
  .tool:nth-child(4n + 2) { --tilt: 1.3deg; }
  .tool:nth-child(4n + 3) { --tilt: -0.9deg; }
  .tool:nth-child(4n + 4) { --tilt: 1.7deg; }
  .tool { transform: rotate(var(--tilt)); }

  .why-grid { grid-template-columns: repeat(3, 1fr); }

  .dock {
    position: static;
    display: block;
    max-width: 420px;
    margin: 0 auto 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .dock a,
  .dock > button { display: none; }
}

@media (min-width: 800px) and (max-width: 1040px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 799px) {
  body { padding: 10px 12px 92px; }
  .top { margin-bottom: 8px; }
  .hero { margin-bottom: 10px; padding: 12px 12px 10px; }
  .hero h1 { margin-bottom: 8px; font-size: 2rem; line-height: 1.28; }
  .word-sticker {
    margin: 0.06em 0.28em 0.06em 0.04em;
    padding: 0 0.1em;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .lede { margin-bottom: 8px; font-size: 1rem; }
  .drop { margin: 10px 0; padding: 12px; }
  .drop h2 { margin-bottom: 0; font-size: 1.45rem; }

  body[data-tool] .top { margin-bottom: 4px; }
  body[data-tool] .nameplate span { display: none; }
  body[data-tool] .nameplate { min-height: 44px; justify-content: center; }
  body[data-tool] .logo { width: 44px; height: 44px; font-size: 0.95rem; }
  body[data-tool] .crumb { margin: 0; }
  body[data-tool] .hero { padding: 8px 10px; margin-bottom: 6px; }
  body[data-tool] .hero .eyebrow,
  body[data-tool] .hero .lede { display: none; }
  body[data-tool] .hero h1 { font-size: 1.35rem; line-height: 1.1; margin-bottom: 4px; }
  body[data-tool] .hero p { margin: 0; font-size: 0.92rem; }
  body[data-tool] .drop { margin: 0; padding: 8px 10px; }
  body[data-tool] .drop-plus { width: 36px; height: 36px; font-size: 1.3rem; }
  body[data-tool] .drop-head { margin-bottom: 6px; }
  body[data-tool] .drop .actions { margin: 0; }
  body[data-tool] .drop .btn { padding: 8px 10px; }
  body[data-tool] .chips,
  body[data-tool] .drop > p,
  body[data-tool] .lock-note { margin-top: 6px; margin-bottom: 0; }

  body.page-upgrade .hero { padding: 10px 12px; margin-bottom: 0; }
  body.page-upgrade .hero h1 { font-size: 1.7rem; line-height: 1.05; margin-bottom: 6px; }
  body.page-upgrade .lede { margin-bottom: 6px; }
  body.page-upgrade .setup-form { margin-top: 6px; gap: 6px; }
  body.page-upgrade .refund { margin: 0; }

  body[data-tool] .drop-extra { display: none; }
  body[data-tool] .files-pill,
  body[data-tool] .privacy-link { font-size: 0.8rem; padding: 6px 10px; }
}

@media (max-width: 420px) {
  body[data-tool] .hero h1 { font-size: 1.2rem; }
  body.page-upgrade .hero h1 { font-size: 1.45rem; }
  body.page-upgrade .lede { font-size: 0.95rem; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tool:hover,
  .btn:hover,
  .files-pill:hover,
  .privacy-link:hover,
  .logo:hover,
  .drop.is-hot,
  .tool:active,
  .btn:active {
    transform: none;
  }

  .tool { transform: none; }
}
