@import url('https://fonts.googleapis.com/css2?family=Londrina+Shadow&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --primary: #2f7dff;
  --secondary: #1db574;
  --lilac: #dcc0f4;
  --mint: #bff2dd;
  --lemon: #f3e1a0;
  --sky: #cde2ff;
  --text: #101216;
  --muted: #5f6670;
  --border: #17181c;
  --line: #d7dce4;
  --radius: 30px;
  --radius-sm: 14px;
  --shadow: 0 12px 30px rgba(12, 18, 28, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}
a { color: inherit; }
.container { width: min(1140px, 94%); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.logo {
  font-family: "Archivo Black", sans-serif;
  text-decoration: none;
  font-size: 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 15px;
}
nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid transparent;
}
nav a:hover { border-color: var(--line); background: var(--surface-soft); }
.site-search input {
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: #fff;
  font-family: "IBM Plex Mono", monospace;
}

.section { padding: 28px 0; }
.label {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 10px; line-height: 1.08; }
h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.45rem);
  letter-spacing: -0.02em;
  max-width: 11ch;
}
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }

.hero {
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
}
.hero-sub { color: #2d333d; font-size: 1.15rem; max-width: 42ch; }
.hero-left { display: grid; gap: 16px; align-content: start; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.hero-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  font-weight: 600;
}
.hero-tags .is-accent { background: var(--mint); }
.hero-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-blob {
  border-radius: 38px;
  border: 1px solid var(--line);
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-blob h3 { font-size: 1.35rem; margin-bottom: 6px; }
.hero-blob p { margin: 0; color: #2f3340; font-size: .95rem; max-width: 24ch; }
.hero-blob.mint { background: var(--mint); }
.hero-blob.lilac { background: #bfa1f4; color: #fff; }
.hero-blob.lilac p { color: #f2ecff; }
.hero-blob.sky { background: #ecd2f6; }
.hero-blob.lemon { background: var(--lemon); }
.hero-blob:nth-child(1) { border-bottom-right-radius: 90px; }
.hero-blob:nth-child(2) { border-bottom-left-radius: 72px; }
.hero-blob:nth-child(3) { border-top-right-radius: 72px; min-height: 170px; }
.hero-blob:nth-child(4) { border-top-left-radius: 72px; min-height: 230px; }

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
}
.btn-alt { background: var(--secondary); color: #062d1c; border-color: #138a59; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }

.tool-card,
.chunky-block,
.tool-form,
.result-panel,
.related-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.tool-card { padding: 20px; position: relative; overflow: hidden; }
.tool-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  right: -28px;
  top: -28px;
  background: var(--mint);
  opacity: .75;
}
.cards-grid .tool-card:nth-child(3n)::before { background: var(--lilac); }
.cards-grid .tool-card:nth-child(3n+1)::before { background: var(--lemon); }
.cards-grid .tool-card > * { position: relative; z-index: 1; }

.dual-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chunky-block { padding: 22px; }
.dual-blocks .chunky-block:first-child { background: color-mix(in srgb, var(--mint) 45%, #fff 55%); }
.dual-blocks .chunky-block:last-child { background: color-mix(in srgb, var(--lilac) 45%, #fff 55%); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags span,
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  text-decoration: none;
  font-size: .82rem;
  padding: 6px 11px;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.chip { cursor: pointer; }
.is-active {
  background: linear-gradient(120deg, var(--secondary), #89dfbc);
  color: #072f1d;
  border-color: #138a59;
}

.prose { display: grid; gap: 14px; }
.prose p,
.prose ol,
.prose ul,
.post-content p,
.post-content ul,
.post-content pre,
.post-content table { margin: 0; }
.prose ol, .prose ul { padding-left: 28px; }

.tool-page h1,
.tool-page > p { padding: 0; border: 0; box-shadow: none; background: transparent; }
.tool-form { padding: 16px; display: grid; gap: 12px; }
.tool-form label { display: grid; gap: 7px; font-weight: 700; }
.tool-form input,
.tool-form select,
.tool-form textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 12px;
}
.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, white 80%);
}
.sheet-wrap { overflow-x: auto; }
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.sheet-table th,
.sheet-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}
.sheet-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--surface-soft);
}
.sheet-table tr:last-child td { border-bottom: 0; }
.sheet-table input { width: 100%; }
.row-remove {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.result-panel { padding: 16px; min-height: 76px; overflow: auto; }
.result-panel img { max-width: 340px; border-radius: 16px; border: 1px solid var(--line); }
.countdown-code-wrap {
  display: grid;
  gap: 8px;
}
.countdown-code-wrap label {
  font-weight: 700;
}
.countdown-code-wrap textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: "IBM Plex Mono", monospace;
  font-size: .86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 12px;
}
.qr-layout {
  display: grid;
  grid-template-columns: 1.25fr minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}
.qr-steps { display: grid; gap: 12px; }
.qr-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface-soft);
  display: none;
}
.qr-step.is-active { display: grid; gap: 10px; }
.qr-step h2 { font-size: 1rem; margin-bottom: 8px; }
.qr-content-group { display: grid; gap: 10px; }
.qr-span-2 { grid-column: span 2; }
.qr-wizard-progress { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-wizard-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  color: var(--muted);
  background: #fff;
}
.qr-wizard-pill.is-active {
  background: var(--secondary);
  color: #072f1d;
  border-color: #138a59;
  font-weight: 700;
}
.qr-wizard-pill.is-done {
  background: var(--mint);
  color: #063622;
  border-color: #50b38a;
}
.qr-wizard-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-preview-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.geo-warning {
  background: color-mix(in srgb, var(--lemon) 35%, #fff 65%);
}
.geo-cookie-builder {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface-soft);
}
.geo-cookie-rows {
  display: grid;
  gap: 8px;
}
.geo-cookie-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.geo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.geo-compare-fields {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}
.geo-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.geo-tab-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.geo-preview-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.geo-topbar p {
  margin: 0 0 8px;
}
.geo-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.geo-compare-col {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .geo-compare-grid {
    grid-template-columns: 1fr;
  }
  .geo-cookie-row {
    grid-template-columns: 1fr;
  }
}
.qr-preview-panel textarea {
  width: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: .82rem;
}
.qr-warning-list {
  margin: 0;
  padding-left: 18px;
  color: #9d4f00;
}
.qr-download-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.related-block { padding: 16px; }

.post-content code { background: #ecf0f4; border-radius: 6px; padding: 2px 6px; }
.blog-post > h1 { max-width: 16ch; }
.post-content { display: grid; gap: 14px; }
.post-content h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  max-width: none;
}
.post-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin-top: 8px;
}
.post-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin-top: 6px;
}
.post-content pre { overflow: auto; }
.post-content table { border-collapse: collapse; width: 100%; }
.post-content td,
.post-content th { border: 1px solid var(--line); padding: 8px; }

.site-footer { padding: 30px 0 40px; }
.footer-wrap {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .93rem;
  color: var(--muted);
}

.form-error { color: #b01818; }
.form-success { color: #0e8f57; }
.hp { position: absolute; left: -10000px; }
.mini { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
  .nav-wrap { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 24px; border-radius: 24px; }
  .hero-stack { grid-template-columns: 1fr; }
  .dual-blocks, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-span-2 { grid-column: auto; }
  .qr-preview-panel { position: static; }
  .site-search input { width: 100%; min-width: 0; }
}
