@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/fraunces-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/fraunces-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/manrope-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/manrope-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/manrope-700.ttf') format('truetype');
}

:root {
  --paper: #f4efe4;
  --paper-strong: #fffaf0;
  --ink: #1e1c1a;
  --ink-soft: #4f4a43;
  --line: rgba(30, 28, 26, 0.14);
  --accent: #ba3a1d;
  --accent-dark: #8d230d;
  --panel: rgba(255, 250, 240, 0.86);
  --shadow: 0 24px 60px rgba(33, 26, 17, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(186, 58, 29, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(87, 133, 99, 0.16), transparent 26%),
    linear-gradient(180deg, #e9dcc5 0%, var(--paper) 38%, #efe7d8 100%);
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.page-shell-compact {
  width: min(760px, calc(100% - 2rem));
}

.hero,
.subpage-header,
.section-grid,
.site-footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero,
.subpage-header {
  padding: clamp(2rem, 5vw, 4rem);
}

.hero {
  width: min(1440px, calc(100vw - 2rem));
  margin-left: 50%;
  transform: translateX(-50%);
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 520px);
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.hero::after {
  content: 'KLARTEXT';
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  font-family: 'Fraunces', 'Baskerville', serif;
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 0.9;
  color: rgba(30, 28, 26, 0.05);
  pointer-events: none;
}

.hero-heading,
.hero-content,
.hero-screenshot,
.cta-row,
.hero-facts {
  position: relative;
  z-index: 1;
}

.hero-heading {
  grid-column: 1 / -1;
  width: 100%;
}

.hero-heading h1 {
  max-width: none;
}

.hero-content {
  grid-column: 1;
  grid-row: 2;
}

.hero-screenshot {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Fraunces', 'Baskerville', serif;
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

h1.large {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

h2.large {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3.large {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-copy-muted {
  color: var(--ink-soft);
}

.cta-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf3;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 18px 32px rgba(141, 35, 13, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.hero-facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.section-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.section-highlight {
  background:
    linear-gradient(135deg, rgba(186, 58, 29, 0.08), rgba(255, 250, 240, 0.88)),
    var(--panel);
}

.card-grid,
.store-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card,
.store-card,
.privacy-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.info-card,
.store-card {
  padding: 1.2rem;
}

.info-card p,
.store-card p,
.privacy-card p,
.legal-card p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.steps {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.95rem;
}

.steps li::marker {
  color: var(--accent-dark);
  font-weight: 700;
}

.privacy-card,
.legal-card {
  padding: 1.4rem;
}

.legal-card h2 {
  margin: 1.8rem 0 0.55rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.4rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
}

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

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-screenshot {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .hero-facts {
    grid-column: 1;
  }

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

  .hero::after {
    right: -0.75rem;
    bottom: -0.75rem;
    font-size: min(32vw, 8rem);
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(186, 58, 29, 0.14), transparent 32%),
      linear-gradient(180deg, #e8dcc6 0%, var(--paper) 42%, #efe7d8 100%);
  }

  .page-shell,
  .page-shell-compact {
    width: min(100% - 1rem, 100%);
  }

  .hero,
  .subpage-header,
  .section-grid,
  .site-footer {
    border-radius: 22px;
  }

  .site-footer {
    align-items: flex-start;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 0.6rem;
  }
}