/* LooksAI. Design follows unslop by Damir Sokolovsky (https://github.com/heydamir/unslop), CC BY 4.0.
   Direction: a copy editor's proof. Warm paper, ink, one proofreader's red used for marks and the main action. */
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/InstrumentSans.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/DMMono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/DMMono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --bg: #f7f4ee; --card: #fdfbf7; --raised: #efe9df; --line: rgba(31, 27, 22, 0.1); --line-2: rgba(31, 27, 22, 0.16);
  --ink: #1f1b16; --ink-2: #5e554a; --ink-3: #736a5e; --red: #b8321e; --red-ink: #9e2a18;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Instrument Sans", "Helvetica Neue", sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.mark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 17px; }
.mark-g { width: 22px; height: 22px; color: var(--red); }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 8px; font: 500 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--raised); }
.btn[disabled] { opacity: 0.6; cursor: default; }
input[type=text], input[type=email], input[type=password] { height: 48px; width: 100%; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 400 16px var(--sans);
  transition: border-color 140ms var(--ease); }
input:focus { outline: none; border-color: var(--ink); }
input::placeholder { color: var(--ink-3); }

/* hero */
.hero { padding: 96px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: 72px; line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .soft { color: var(--red); }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.check { margin-top: 32px; max-width: 34rem; }
.check-row { display: flex; gap: 8px; }
.check-row .btn { height: 48px; }
.check-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); min-height: 20px; }
.check-note.err { color: var(--red-ink); }
.proof { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 8px 24px rgba(31, 27, 22, 0.06); transform: rotate(1.2deg); }
.proof svg { display: block; width: 100%; height: auto; }
.pen { stroke: var(--red); stroke-width: 2.5; }
.pen-note { font-family: var(--serif); fill: var(--red); }
.pen-score { font-family: var(--serif); fill: var(--red); }

/* bands */
.band { padding: 80px 0; border-top: 1px solid var(--line); }
.band-tight { padding: 56px 0; }
.band h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
.sub { margin-top: 12px; color: var(--ink-2); max-width: 40rem; font-size: 17px; }
.two { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.two-l p { margin-top: 16px; color: var(--ink-2); max-width: 30rem; }
.groups { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.group dt { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.group dd { margin: 0; padding: 4px 0; font-size: 15px; }
.bands { display: grid; gap: 4px; font-size: 15px; }
.bands b { font-family: var(--mono); font-weight: 500; color: var(--ink); display: inline-block; min-width: 8.5em; }
.weights { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; }
.weights-h { font-size: 13px; color: var(--ink-3); padding: 12px 0 8px; }
.w-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.w-row .num { color: var(--red); }

/* plans: a price list, not a card grid */
.plans { margin-top: 32px; border-top: 1px solid var(--ink); }
.plan { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan h3 { font-size: 18px; font-weight: 500; }
.price { font-family: var(--mono); font-size: 18px; }
.price span { font-size: 13px; color: var(--ink-3); }
.plan > p { color: var(--ink-2); font-size: 15px; }
.plan .btn { min-width: 220px; }
.plan-free .price { color: var(--ink-3); }
.list { margin-top: 32px; max-width: 34rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.list-h { font-weight: 500; margin-bottom: 12px; }
.list.ok .check-row { display: none; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 8px; color: var(--ink-2); max-width: 36rem; }

/* result */
.res { padding: 64px 0 56px; }
.res-head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.res-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.res-host { font-family: var(--serif); font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; margin-top: 8px; overflow-wrap: anywhere; }
.res-verdict { margin-top: 12px; font-size: 19px; color: var(--ink-2); }
.res-note { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.res-url { font-family: var(--mono); font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.share { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.share .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.grade { position: relative; width: 240px; height: 204px; display: grid; place-items: center; }
.grade svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.grade .pen { stroke-width: 3; }
.grade-n { font-family: var(--serif); font-size: 104px; line-height: 1; color: var(--red); margin-top: -12px; }
.grade-of { position: absolute; bottom: 30px; font-size: 13px; color: var(--ink-3); }
.signs { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sign { padding: 20px 0; border-top: 1px solid var(--line); }
.sign:last-child { border-bottom: 1px solid var(--line); }
.sign-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.sign h3 { font-size: 18px; font-weight: 500; }
.pts { color: var(--red); font-size: 15px; }
.why { margin-top: 4px; color: var(--ink-2); }
.ev { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.fix { margin-top: 8px; font-size: 15px; }
.fix b { font-weight: 500; color: var(--red); margin-right: 4px; }
.clean { font-size: 18px; }
.passed { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.passed summary { cursor: pointer; }
.passed ul { margin: 8px 0 0; padding-left: 20px; }
.again { margin-top: 32px; }

/* simple pages */
.page-h { font-family: var(--serif); font-size: 48px; line-height: 1.1; }
.prose h2 { font-family: var(--sans); font-size: 18px; font-weight: 500; margin-top: 32px; }
.prose p { margin-top: 8px; color: var(--ink-2); }
.err { margin-top: 12px; color: var(--red-ink); }
.boo-login { margin-top: 24px; display: grid; gap: 8px; max-width: 360px; }

/* admin */
.boo-head { display: flex; justify-content: space-between; align-items: center; }
.boo-grid { margin: 24px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.boo-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.boo-card h2, .boo h2 { font-family: var(--sans); font-size: 17px; font-weight: 500; }
.boo > .band > .wrap > h2 { margin: 32px 0 12px; }
.small { font-size: 14px; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl .btn { height: 32px; padding: 0 12px; font-size: 13px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
.foot-in { display: grid; gap: 8px; }
.foot-name { color: var(--ink); }

/* motion: one short rise for the result list, nothing loops */
@media (prefers-reduced-motion: no-preference) {
  .sign { animation: rise 360ms var(--ease) both; }
  .sign:nth-child(2) { animation-delay: 50ms; } .sign:nth-child(3) { animation-delay: 100ms; } .sign:nth-child(4) { animation-delay: 150ms; } .sign:nth-child(5) { animation-delay: 200ms; } .sign:nth-child(n+6) { animation-delay: 250ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-in, .two { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .proof { transform: rotate(0.8deg); }
  .band { padding: 56px 0; }
  .band h2 { font-size: 32px; }
  .plan { grid-template-columns: 1fr; gap: 12px; }
  .plan .btn { width: 100%; }
  .res-head { grid-template-columns: 1fr; gap: 16px; }
  .res-host { font-size: 40px; overflow-wrap: normal; }
  .grade { width: 200px; height: 170px; order: -1; }
  .grade-n { font-size: 88px; }
  .boo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .groups { grid-template-columns: 1fr; gap: 24px; }
  .check-row { flex-direction: column; }
  .check-row .btn { width: 100%; }
  .nav-links { gap: 16px; font-size: 14px; }
  .tbl { font-size: 13px; }
}
