@font-face {
  font-family: Figtree;
  src: url('/fonts/Figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: 'Young Serif';
  src: url('/fonts/YoungSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Kaushan Script';
  src: url('/fonts/KaushanScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #faf5eb;
  --surface: #fffdf8;
  --sunk: #f1eade;
  --ink: #2d2118;
  --muted: #685b4f;
  --line: #ded6c9;
  --accent: #397247;
  --accent-hover: #286037;
  --accent-ink: #fffbf4;
  --accent-soft: #d6f0da;
  --accent-line: #a9d0b0;
  --accent-text: #1b552c;
  --link: #225a31;
  --link-hover: #003f17;
  --error: #b3261e;
  --shadow: 57 42 30;
  --serif: 'Young Serif', Georgia, serif;
  --script: 'Kaushan Script', 'Young Serif', serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 Figtree,
    system-ui,
    sans-serif;
}

[hidden] {
  display: none !important;
}

main {
  flex: 1;
}

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

a:hover {
  color: var(--link-hover);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
}

.wrap,
header .bar,
footer .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wordmark {
  font-family: var(--script);
  line-height: 1;
  color: var(--ink);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(250 245 235 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
}

.brand .wordmark {
  font-size: 24px;
}

.logo {
  flex: none;
  overflow: visible;
  color: var(--accent);
}

.logo-gap {
  fill: var(--bg);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover,
.menu a[aria-current='page'] {
  background: var(--sunk);
  color: var(--ink);
}

.menu a[aria-current='page'] {
  font-weight: 600;
}

.languages {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
}

.languages > * {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

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

.languages [aria-current='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(var(--shadow) / 0.15);
}

footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: var(--sunk);
}

footer .bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

footer .wordmark {
  font-size: 26px;
}

.imprint {
  flex: 1 1 780px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.imprint p {
  text-wrap: balance;
}

.imprint a {
  white-space: nowrap;
}

.to-top {
  position: absolute;
  top: -21px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px -2px rgb(var(--shadow) / 0.18);
  cursor: pointer;
}

.to-top:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  max-width: 540px;
  font-size: 19px;
  color: var(--muted);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.button,
.page button {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.button:hover,
.page button:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.hero-shot {
  flex: 0 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  background: var(--sunk);
  border: 1px solid var(--line);
}

.hero-shot img {
  display: block;
  width: 380px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgb(var(--shadow) / 0.35);
}

.steps,
.pricing {
  border-top: 1px solid var(--line);
}

.steps {
  background: var(--surface);
}

.steps .wrap,
.pricing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps .wrap {
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.steps h2,
.pricing h2 {
  font-size: 32px;
  line-height: 1.2;
}

.steps ol {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  flex: 0 1 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  text-wrap: pretty;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
}

.needs {
  max-width: 720px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-wrap: balance;
}

#pricing {
  scroll-margin-top: 70px;
}

.pricing .wrap {
  padding-top: 64px;
  padding-bottom: 72px;
}

.pricing .wrap > * + * {
  margin-top: 28px;
}

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

.section-head p {
  color: var(--muted);
  text-wrap: pretty;
}

.offers {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.offer h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
}

.price-main {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.offer-note {
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.fine {
  max-width: 760px;
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.pricing .wrap > .fine + .fine {
  margin-top: 8px;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.doc-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc h1,
.page h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}

.doc-date {
  font-size: 14px;
  color: var(--muted);
}

.doc-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
}

.toc {
  flex: 0 0 200px;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  padding: 3px 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-text);
}

article {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

article section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 96px;
}

article h2 {
  font-size: 24px;
  line-height: 1.3;
}

article p {
  text-wrap: pretty;
}

article ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

article li {
  position: relative;
  padding-left: 24px;
  text-wrap: pretty;
}

article li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.page form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout {
  max-width: 648px;
  gap: 24px;
  padding-top: 64px;
}

.checkout form {
  gap: 24px;
}

.checkout #status:empty {
  display: none;
}

.checkout-offer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.checkout-offer-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.checkout-offer-name {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.checkout-offer-price {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
}

.checkout-offer-note {
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
  text-wrap: pretty;
  cursor: pointer;
}

.consent-card:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.consent-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent-card input {
  appearance: none;
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.consent-card input:checked {
  background: var(--accent);
}

.consent-card input:checked::after {
  content: '✓';
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.consent-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page .consent-pay button {
  justify-content: center;
  height: 52px;
  padding: 0 22px;
}

.page .consent-pay button:disabled {
  background: var(--sunk);
  color: var(--muted);
  cursor: default;
}

.consent-hint {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-wrap: pretty;
}

.consent-error {
  color: var(--error);
  font-size: 14px;
  text-align: center;
  text-wrap: pretty;
}

.consent-error:empty {
  display: none;
}

.checkout-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.checkout-totals dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.checkout-totals .checkout-total {
  color: var(--ink);
  font-weight: 600;
}

.consent-saved,
.checkout-paid {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 14px;
  text-wrap: pretty;
}

.checkout-paid {
  font-size: 16px;
  font-weight: 600;
}

.consent-saved::before,
.checkout-paid::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.checkout-payment {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-payment h2 {
  font-size: 22px;
}

/* Paddle's frame needs 312px; on 320px screens it takes part of the page gutter instead of overflowing. */
@media (max-width: 359px) {
  .checkout-frame {
    margin: 0 -20px;
  }
}

@media (max-width: 800px) {
  .toc {
    position: static;
  }
}
