/* SEO Keuring's landing page. Same paper and ink as the app. */

/* Our own copies of the @fontsource files (site/build.mjs puts them in
   fonts/). Absolute, so the teaser pages that inline this file find them too. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/newsreader.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: oklch(0.975 0.007 82);
  --surface: oklch(0.993 0.003 82);
  --surface-2: oklch(0.955 0.008 80);
  --rule: oklch(0.905 0.009 78);
  --ink: oklch(0.255 0.013 62);
  --ink-2: oklch(0.455 0.013 62);
  --ink-3: oklch(0.585 0.011 66);
  --on-ink: oklch(0.985 0.005 82);
  --accent: oklch(0.5 0.135 262);
  --accent-soft: oklch(0.5 0.135 262 / 0.08);
  --critical: oklch(0.56 0.19 25);
  --high: oklch(0.66 0.17 45);
  --medium: oklch(0.74 0.15 75);
  --good: oklch(0.6 0.13 152);
  --shadow: 0 0 0 1px oklch(0.3 0.02 60 / 0.07), 0 1px 2px -1px oklch(0.3 0.02 60 / 0.08), 0 2px 4px 0 oklch(0.3 0.02 60 / 0.04);
  --shadow-float: 0 0 0 1px oklch(0.3 0.02 60 / 0.07), 0 2px 4px -2px oklch(0.3 0.02 60 / 0.08), 0 24px 48px -16px oklch(0.3 0.02 60 / 0.2);
  --serif: 'Newsreader', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.178 0.006 70);
    --surface: oklch(0.212 0.007 70);
    --surface-2: oklch(0.232 0.008 70);
    --rule: oklch(0.29 0.008 70);
    --ink: oklch(0.925 0.011 84);
    --ink-2: oklch(0.755 0.011 80);
    --ink-3: oklch(0.61 0.01 76);
    --on-ink: oklch(0.2 0.008 70);
    --accent: oklch(0.76 0.105 256);
    --accent-soft: oklch(0.76 0.105 256 / 0.1);
    --critical: oklch(0.68 0.17 25);
    --high: oklch(0.74 0.15 50);
    --medium: oklch(0.8 0.13 80);
    --good: oklch(0.72 0.12 152);
    --shadow: 0 0 0 1px oklch(1 0 0 / 0.075);
    --shadow-float: 0 0 0 1px oklch(1 0 0 / 0.08), 0 24px 48px -16px oklch(0 0 0 / 0.6);
  }
}

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  font-feature-settings: 'cv11', 'ss03';
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: color-mix(in oklab, var(--accent) 24%, transparent);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

.wrap {
  width: min(68rem, 100% - 32px);
  margin-inline: auto;
}
.narrow > * {
  max-width: 44rem;
}

/* --- Header ------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 20px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 22px;
  height: 22px;
}
.brand.small {
  font-size: 16px;
}
.brand.small svg {
  width: 17px;
  height: 17px;
}
nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
nav a,
.lang {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 150ms, color 150ms;
}
nav a:hover,
.lang:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.lang {
  box-shadow: var(--shadow);
  background: var(--surface);
}
@media (max-width: 760px) {
  nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .top-row {
    gap: 8px;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 10vw, 120px) 0 56px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker svg {
  width: 15px;
  height: 15px;
}
.kicker.small {
  font-size: 11px;
}
/* The kicker sits inside the h1, so the search term is part of the heading. */
h1 .kicker {
  display: flex;
  width: fit-content;
  margin-bottom: 20px;
  font-family: var(--sans);
  line-height: 1.6;
}
.hero h1 {
  margin-top: 0;
}
h1 {
  margin-top: 20px;
  max-width: 14ch;
  font: 380 clamp(2.9rem, 1.6rem + 5.4vw, 5.4rem) / 0.98 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  margin-top: 24px;
  max-width: 36rem;
  font: 400 clamp(1.15rem, 1rem + 0.5vw, 1.375rem) / 1.5 var(--serif);
  color: var(--ink-2);
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: scale 150ms ease-out, background-color 150ms;
}
.btn:active {
  scale: 0.97;
}
.btn.solid {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.18);
}
.btn.solid:hover {
  background: color-mix(in oklab, var(--ink) 90%, var(--paper));
}
button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn.small {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
}
.price > .btn {
  margin-top: 20px;
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.title {
  font: 400 clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem) / 1.1 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.sub {
  margin-top: 10px;
  max-width: 40rem;
  color: var(--ink-3);
  text-wrap: pretty;
}
.sub.small {
  margin-top: 18px;
  font-size: 14px;
}
.grid {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.grid.three {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h3,
.steps h3 {
  font: 420 21px/1.25 var(--serif);
  letter-spacing: -0.005em;
}
.card p,
.steps p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* --- Free scan form ----------------------------------------------------- */

.scan {
  margin-top: 32px;
  max-width: 42rem;
}
.scan-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.scan input {
  flex: 1 1 12rem;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.scan input::placeholder {
  color: var(--ink-3);
}
.scan input:focus-visible {
  outline-offset: 0;
}
.scan .btn {
  flex: 1 0 auto;
  justify-content: center;
  height: 48px;
}
.scan .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.scan-msg {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.scan-msg:empty {
  display: none;
}
.scan-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.scan-note a {
  color: var(--ink-2);
}
.scan.done .scan-fields,
.scan.done .scan-note {
  display: none;
}
.scan.done .scan-msg {
  margin-top: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  font: 400 19px/1.5 var(--serif);
  text-wrap: pretty;
}
.cta {
  padding: clamp(24px, 5vw, 48px);
}
.cta .scan {
  margin-top: 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Sample report ------------------------------------------------------- */

.report {
  margin-top: 32px;
  max-width: 46rem;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  padding: clamp(22px, 4vw, 40px);
  rotate: -0.4deg;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.report-domain {
  margin-top: 10px;
  font: 380 clamp(1.7rem, 1.2rem + 2vw, 2.4rem) / 1.05 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.report-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.ring {
  width: 84px;
  height: 84px;
}
.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 7;
}
.ring-track {
  stroke: var(--rule);
}
.ring-fill {
  stroke: var(--high);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}
.ring text {
  fill: var(--ink);
  font: 500 26px var(--sans);
  text-anchor: middle;
}
.report-teaser {
  margin-top: 22px;
  font: 400 18px/1.5 var(--serif);
  text-wrap: pretty;
}
.findings {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.finding {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
}
.dot.critical,
.pill.critical {
  --c: var(--critical);
}
.dot.high,
.pill.high {
  --c: var(--high);
}
.dot.medium,
.pill.medium {
  --c: var(--medium);
}
.dot {
  background: var(--c);
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  vertical-align: 2px;
  background: color-mix(in oklab, var(--c) 14%, transparent);
  color: color-mix(in oklab, var(--c) 72%, var(--ink));
}
.f-title {
  font-weight: 500;
}
.f-body {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.f-fix {
  margin-top: 8px;
  font-size: 14.5px;
}
.f-fix strong {
  font-weight: 560;
}
/* Before and after: a Google result as it is now, and as it could be. */
.ba {
  margin-top: 28px;
}
.ba-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 10px;
  margin-top: 10px;
}
.ba-side {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
}
.ba-side.before {
  background: var(--surface-2);
}
.ba-side.after {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.ba-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ba-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--critical);
}
.after .ba-tag::before {
  background: var(--good);
}
.serp-url {
  font-size: 12px;
  color: var(--ink-3);
}
.serp-title {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.serp-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.f-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.f-locked svg {
  width: 13px;
  height: 13px;
}

/* A lead's own teaser behind the short link on a letter (server/share.ts). */
.report.shared {
  margin-top: 0;
  max-width: 44rem;
  rotate: none;
}
.top-row .brand + .lang {
  margin-left: auto;
}
.shared-title {
  margin-top: 32px;
  font: 420 21px/1.25 var(--serif);
}
.shared-body {
  margin-top: 8px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.shared-title + .sub {
  margin-top: 4px;
}
.shared-cta {
  margin-top: 28px;
}
.shared-cta .btn {
  margin-top: 6px;
}
.ba-side > p:not([class]) {
  font-size: 14px;
  text-wrap: pretty;
}
.ba-code {
  margin: 0;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Steps, prices, FAQ -------------------------------------------------- */

.steps li {
  padding: 4px 4px 0;
}
.step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 560;
}
.price .amount {
  margin-top: 14px;
  font: 400 44px/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price .amount span {
  font: 400 14px var(--sans);
  letter-spacing: 0;
  color: var(--ink-3);
}
.price.featured {
  box-shadow: var(--shadow-float);
}
.ticks {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
}
.ticks li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.ticks svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--good);
}
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-weight: 400;
  color: var(--ink-3);
  transition: rotate 200ms ease-out;
}
details[open] summary::after {
  rotate: 45deg;
}
details p {
  padding: 0 0 20px;
  max-width: 38rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about {
  margin-top: 16px;
  font: 400 19px/1.6 var(--serif);
  color: var(--ink-2);
  text-wrap: pretty;
}

.about-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-photo {
  flex: none;
  margin-top: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.about-links {
  margin-top: 12px;
  font-size: 15px;
}
.about-links a {
  color: var(--accent);
}

/* --- Privacy ------------------------------------------------------------- */

.legal h2 {
  margin-top: 36px;
  font: 420 21px/1.25 var(--serif);
  letter-spacing: -0.005em;
}
.legal h2 + p {
  margin-top: 8px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal a {
  color: var(--accent);
}

/* --- Footer -------------------------------------------------------------- */

.foot {
  margin-top: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot-row .brand {
  color: var(--ink);
}
.foot-row a {
  text-decoration: none;
}
.foot-row a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
