:root {
  --accent: #4F46E5;
  --accent-muted: #E0E7FF;
  --bg: #E2E5EA;
  --surface: #F7F8FA;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --border: #CBD0D8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-doc: ui-serif, "New York", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A5B4FC;
    --accent-muted: #24224A;
    --bg: #141414;
    --surface: #1E1F23;
    --text: #E5E7EB;
    --text-secondary: #A3A9B4;
    --border: #34363C;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
}

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

.site-header {
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
}

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem 4.5rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.pitch {
  margin: 1.5rem 0 0;
  max-width: 30ch;
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  line-height: 1.4;
}

.badge {
  display: inline-block;
  margin: 2rem 0 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 650;
}

.platforms {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.invoice {
  position: relative;
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 6px solid #4F46E5;
  border-radius: 4px;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgb(31 41 55 / 0.08), 0 28px 56px -18px rgb(31 41 55 / 0.35);
}

.invoice p {
  margin: 0;
}

.invoice-kind {
  font-family: var(--font-doc);
  font-size: 1.75rem;
  line-height: 1.1;
}

.invoice-number {
  color: #4B5563;
}

.invoice-stamp {
  position: absolute;
  top: 1.6rem;
  right: 1.25rem;
  padding: 0.15rem 0.7rem;
  border: 3px solid #4F46E5;
  border-radius: 6px;
  color: #4F46E5;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: rotate(-9deg);
}

.invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 1.5rem 0 1.25rem;
}

.invoice-meta dt {
  color: #4B5563;
  font-size: 0.8125rem;
}

.invoice-meta dd {
  margin: 0;
  font-weight: 600;
}

.invoice-lines {
  width: 100%;
  border-collapse: collapse;
}

.invoice-lines th,
.invoice-lines td {
  padding: 0.65rem 0;
  border-bottom: 1px solid #CBD0D8;
  text-align: left;
  vertical-align: top;
}

.invoice-lines thead th {
  padding-top: 0;
  color: #4B5563;
  font-size: 0.8125rem;
  font-weight: 500;
}

.invoice-lines th:last-child,
.invoice-lines td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 1rem;
}

.invoice-lines td span {
  display: block;
  color: #4B5563;
  font-size: 0.8125rem;
}

.invoice-lines tfoot th,
.invoice-lines tfoot td {
  padding-top: 0.9rem;
  border-top: 2px solid #1F2937;
  border-bottom: 0;
  font-size: 1.125rem;
  font-weight: 750;
}

.section {
  padding-block: 4rem;
}

.spec {
  margin-top: 2rem;
}

.spec-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}

.spec-row ul,
.plan ul {
  margin: 0;
  padding-left: 1.15rem;
}

.spec-row li,
.plan li {
  padding-left: 0.2rem;
  margin-bottom: 0.4rem;
}

.spec-row li::marker,
.plan li::marker {
  color: var(--accent);
}

.tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}

.plan {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.plan-unlocked {
  border: 2px solid var(--accent);
}

.plan-price {
  margin: 0.4rem 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.plan-note {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.promise {
  padding-block: 4rem;
  background: var(--accent-muted);
}

.promise-points {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.promise-points p {
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
  max-width: 36ch;
}

.page {
  padding-block: 3rem 5rem;
}

.page > * {
  max-width: 42rem;
}

.page h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.page h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.page p,
.page ul {
  margin: 0 0 1rem;
}

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }

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

  .spec-row {
    grid-template-columns: 13rem 1fr;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    padding-block: 4rem 6rem;
  }

  .spec-row ul {
    columns: 2;
    column-gap: 2.5rem;
  }

  .spec-row li {
    break-inside: avoid;
  }
}
