:root {
  --bg: #f7f5f1;
  --bg-raised: #fffcf8;
  --ink: #1b1b1b;
  --muted: #5c5c5c;
  --line: rgba(0, 0, 0, 0.12);
  --primary: #1976d2;
  --primary-ink: #0d47a1;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(27, 27, 27, 0.08);
  --nav-h: 72px;
  --max: 1120px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
}

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

.skip:focus {
  transform: none;
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.brand__beta {
  font-family: "Dancing Script", cursive;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
}

.btn--ghost {
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-ink);
}

.btn--lg {
  min-height: 48px;
  padding: 0 20px;
}

.hero {
  padding: 72px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 620;
}

.lead {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-demo {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
}

.search-demo__kicker {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 560;
}

.search-demo__bar {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.search-demo__sum {
  margin: 22px 0 16px;
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.search-demo__hits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-demo__hits li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.search-demo__hits strong {
  font-weight: 560;
}

.search-demo__hits span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: #efece6;
}

.section__head {
  max-width: 38rem;
  margin-bottom: 40px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.section__head p + p {
  margin-top: 10px;
}

.steps,
.features,
.trust,
.plans,
.faq {
  display: grid;
  gap: 16px;
}

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

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.steps .card {
  min-height: 100%;
}

.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p,
.card li {
  color: var(--muted);
}

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

.trust {
  grid-template-columns: repeat(2, 1fr);
}

.legal-page {
  padding: 48px 0 96px;
}

.legal-page .wrap {
  width: min(44rem, calc(100% - 40px));
}

.legal-page .kicker {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-page .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-toc {
  margin: 0 0 36px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-toc p {
  margin: 0 0 8px;
  font-weight: 560;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.legal-toc a {
  text-decoration: none;
}

.legal-page h2 {
  margin: 2.2em 0 0.55em;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.05rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.2em;
}

.legal-page li {
  margin: 0 0 6px;
}

.legal-page address {
  font-style: normal;
  color: var(--muted);
}

.legal-page {
  padding: 48px 0 96px;
}

.legal-page .wrap {
  width: min(44rem, calc(100% - 40px));
}

.legal-page .kicker {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-page .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-toc {
  margin: 0 0 36px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-toc p {
  margin: 0 0 8px;
  font-weight: 560;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.legal-toc a {
  text-decoration: none;
}

.legal-page h2 {
  margin: 2.2em 0 0.55em;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.05rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.2em;
}

.legal-page li {
  margin: 0 0 6px;
}

.legal-page address {
  font-style: normal;
  color: var(--muted);
}

.legal-page code {
  font-size: 0.9em;
}

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

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan--featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow);
}

.plan__label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.plan__use {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
  min-height: calc(1.2rem * 1.25 * 2);
}

.plan__price {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  font-weight: 620;
}

.plan__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan ul {
  margin: 12px 0 18px;
  padding-left: 1.1em;
  flex: 1;
}

.plan li {
  margin: 0 0 8px;
}

.plan:not(:has(.btn))::after {
  content: "";
  min-height: 42px;
}

.faq {
  grid-template-columns: 1fr;
}

.cta {
  max-width: 38rem;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta p {
  margin: 0 0 24px;
  color: var(--muted);
}

.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 560;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.legal p,
.legal address {
  font-style: normal;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero__grid,
  .steps,
  .features,
  .trust,
  .plans,
  .legal {
    grid-template-columns: 1fr;
  }

  .search-demo__hits li {
    flex-direction: column;
    gap: 4px;
  }

  .search-demo__hits span {
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links,
  .nav-actions .btn--ghost {
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 16px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav-login-mobile {
    display: block;
  }

  .plan__use {
    min-height: 0;
  }

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 64px 0;
  }
}
