:root {
  --ink: #142433;
  --muted: #55657a;
  --line: #dde4ec;
  --brand: #1f5f8b;
  --brand-dark: #174a6d;
  --accent: #9fd3f5;
  --tint: #f4f7fa;
  --paper: #ffffff;
  --radius: 10px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand.small {
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a,
.link {
  color: var(--muted);
}

.nav a:hover,
.link:hover {
  color: var(--ink);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--brand);
}

.button:hover {
  background: var(--brand-dark);
}

.button.small {
  padding: 7px 14px;
}

.button.ghost {
  background: transparent;
  color: var(--brand);
}

.button.ghost:hover {
  background: var(--tint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #eef5fb 0%, var(--paper) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Screenshots */
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 40px -18px rgba(20, 36, 51, 0.28);
  overflow: hidden;
  position: relative;
}

.shot::before {
  content: '';
  display: block;
  height: 26px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14px 13px, #e7ebf0 5px, transparent 5.5px),
    radial-gradient(circle at 32px 13px, #e7ebf0 5px, transparent 5.5px),
    radial-gradient(circle at 50px 13px, #e7ebf0 5px, transparent 5.5px),
    var(--tint);
}

.shot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper));
}

/* Sections */
.section {
  padding: 88px 0;
}

.section.tinted {
  background: var(--tint);
}

.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: none;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.feature.flip .feature-text {
  order: 2;
}

.feature-text p {
  color: var(--muted);
}

/* Results */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.stat strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
}

.scores {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.scores caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 6px;
}

.scores th,
.scores td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.scores th {
  text-align: left;
  font-weight: 600;
}

.scores td {
  text-align: right;
}

.note {
  font-size: 0.85rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card,
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

.card h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

.examples-title {
  margin-top: 56px;
  scroll-margin-top: 80px;
}

.cards.examples {
  margin-top: 20px;
}

a.card {
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(20, 36, 51, 0.08);
}

a.card h3 {
  color: var(--brand);
}

.card p,
.plan p {
  color: var(--muted);
  margin: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.plan p {
  margin-bottom: 20px;
}

.closing {
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.closing p {
  color: var(--accent);
  font-size: 1.1rem;
}

.closing .button {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  margin-top: 8px;
}

/* Footer */
.foot {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-inner p {
  margin: 10px 0 0;
}

.fine {
  font-size: 0.8rem;
  max-width: 760px;
}

/* Legal pages: terms, privacy, data processing, subprocessors */
main.legal {
  max-width: 780px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.5em;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 1em;
}

.legal li {
  margin-bottom: 0.35em;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal .summary {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.legal .summary ul {
  margin: 0;
}

.legal .notice {
  border: 1px solid #e3c26b;
  background: #fff8e1;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.95rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.legal th {
  color: var(--muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}

.foot-links a {
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--brand);
}

/* Narrow screens */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.price {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.price h3 {
  margin: 0;
}

.price .amount {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.price .amount span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.price ul {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
  flex: 1;
}

.price .button {
  text-align: center;
}

.fine-print {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero-inner,
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature.flip .feature-text {
    order: 0;
  }

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

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

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .top-actions .link {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .steps,
  .cards,
  .stats,
  .plans,
  .prices {
    grid-template-columns: 1fr;
  }
  /* Tables of the legal pages: one block per row, each cell under its heading. */
  .legal table.stack thead {
    display: none;
  }

  .legal table.stack tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal table.stack td {
    display: block;
    border: 0;
    padding: 3px 0;
  }

  .legal table.stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
  }
}
