@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@500&display=swap");

:root {
  --paper: #f9f9f7;
  --ink: #121316;
  --muted: #5b5f68;
  --line: #dcdcd6;
  --blue: #0559fd;
  --good: #12a150;
  --warn: #d98a00;
  --bad: #d93025;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--paper);
}

.app { max-width: 1120px; margin: 0 auto; padding: 40px 20px 56px; }

.kicker, .label, legend {
  font: 500 12px "Geist Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 8px 0 10px; }
.lede { max-width: 680px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.panel {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px;
}

form label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
form label:first-child { margin-top: 0; }

input[type="text"], input[type="url"], textarea {
  width: 100%;
  font: 15px/1.5 Geist, system-ui, sans-serif;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  resize: vertical;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.meter .bar { flex: 1; height: 8px; background: #ececE6; position: relative; overflow: hidden; }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--good); transition: width .2s, background .2s; }
.meter b { font: 500 12px "Geist Mono", monospace; min-width: 150px; text-align: right; }
.meter.warn .bar i { background: var(--warn); }
.meter.bad .bar i { background: var(--bad); }

.device { border: 0; padding: 0; margin: 20px 0 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.device legend { margin-bottom: 8px; width: 100%; }
.device label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; }

.preview-wrap .label { margin: 0 0 14px; }

.serp {
  font-family: Arial, sans-serif;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
  max-width: 652px;
  transition: max-width .25s;
}
.serp.mobile { max-width: 360px; }

.site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fav {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font: 700 14px Geist, sans-serif;
}
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who strong { font-size: 14px; font-weight: 400; color: #202124; }
.who small { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t { font: 400 20px/1.3 Arial, sans-serif; color: #1a0dab; margin: 0 0 4px; white-space: nowrap; overflow: hidden; }
.serp.mobile .t { white-space: normal; font-size: 18px; }
.d { font: 14px/1.58 Arial, sans-serif; color: #4d5156; margin: 0; }

.tips { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; }
.tips li { padding-left: 22px; position: relative; line-height: 1.45; }
.tips li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--good); }
.tips li.warn::before { background: var(--warn); }
.tips li.bad::before { background: var(--bad); }

.note { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }

.foot { margin-top: 36px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--blue); font-weight: 600; }
