:root {
  --bg: #ffffff;
  --bg-muted: #f7f8fb;
  --text: #1f2933;
  --text-muted: #536170;
  --border: #d9dee7;
  --blue: #174ea6;
  --blue-dark: #103b7c;
  --green: #2f7d32;
  --red: #c62828;
  --paper: #ffffff;
  --shadow: 0 24px 80px rgba(18, 38, 63, 0.14);
  --radius: 18px;
  --max: 1240px;
  --narrow: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.section {
  padding: 88px 0;
}

.section-narrow .container {
  width: min(100% - 40px, var(--narrow));
}

.muted {
  background: var(--bg-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 222, 231, 0.75);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

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

.nav a:hover {
  color: var(--blue);
}

.nav .nav-cta {
  color: #ffffff;
  background: var(--blue);
  padding: 9px 14px;
  border-radius: 9px;
}

.nav .nav-cta:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: #ffffff;
}

.hero {
  padding-top: 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 76px;
  align-items: center;
}

.language-link {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 18px 0 0;
}

mark {
  background-color: rgba(255, 255, 0, 0.2);
  padding-bottom: 2px;
  padding-top: 2px;
}

.hero-text {
  max-width: 640px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 1.18rem;
}

.handwritten {
  color: var(--blue);
  font-family: "Architects Daughter", cursive;
  font-size: 1.35rem;
  line-height: 1.35;
  transform: rotate(-1deg);
}

.hero-note {
  max-width: 420px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

#download {
  padding-top: 3rem;
  border-top: 1px var(--border) solid;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 60rem;
  text-align: center;
}

#download h2 {
  font-size: 2rem;
  font-weight: normal;
}

.download-buttons {
  margin-top: 1rem;
  display: grid;
  justify-content: center;
  justify-items: center;
  grid-template-columns: 1fr 1fr;
}

.download {
  padding: 1rem;
  max-width: 20rem;
}

.download small {
  display: block;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
}

.button-secondary {
  color: var(--blue);
  background: transparent;
}

.button-secondary:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-visual figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p + h2 {
  margin-top: 10px;
}

.side-note {
  max-width: 420px;
  margin-top: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.question {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card {
  padding: 24px;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-weight: 900;
}

.card p,
.question p,
.logic-box p,
.limits-box p,
.cta-box p {
  color: var(--text-muted);
}

.logic-box {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.question {
  padding: 26px;
}

.question h3 {
  margin-bottom: 12px;
}

.examples-grid {
  display: grid;
  gap: 36px;
}

.example-card {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
}

.example-image img {
  /* border: 1px solid var(--border); */
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(18, 38, 63, 0.12);
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.badge-positive {
  background: var(--green);
}

.badge-negative {
  background: var(--red);
}

table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  margin-bottom: 10px;
  color: var(--text);
  text-align: left;
}

th,
td {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-align: left;
}

td {
  width: 48px;
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.limits-box {
  max-width: 50rem;
}

.cta-section {
  text-align: center;
}

.cta-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 34px;
  box-shadow: var(--shadow);
}

.cta-box .button {
  margin-top: 30px;
}

.small {
  font-size: 0.88rem;
}

.citation-list {
  width: 100%;
  max-width: 100%;
  margin-top: 32px;
}

.citation-card {
  max-width: 100%;
  margin-bottom: 2rem;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.citation-card h3 {
  margin-bottom: 10px;
}

.citation-card p {
  margin-top: 0;
  color: var(--text-muted);
}

.citation-card pre {
  margin: 0;
  padding: 18px;
  overflow-x: scroll;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.citation-card code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

#citation img {
  width: 88px;
  height: auto;
}

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

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

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .example-card,
  .example-card-reverse {
    grid-template-columns: 1fr;
  }

  .example-card-reverse .example-image {
    order: 0;
  }

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

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 56px;
  }

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

  .example-card {
    padding: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}