@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --ground: #f3f5f8;
  --surface: #ffffff;
  --text: #16233a;
  --muted: #4a5668;
  --primary: #1e4e8c;
  --primary-hover: #163b6b;
  --on-primary: #ffffff;
  --border: #6f7d91;
  --rule: #d5dbe4;
  --mark-bg: #ffe7a3;
  --mark-text: #5c3d00;
  --ok: #1b6b3a;
  --error: #a4262c;
  --paper: #fbfaf6;
  --ink: #2b2b2b;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1724;
    --surface: #182235;
    --text: #e6eaf0;
    --muted: #a8b3c4;
    --primary: #8cb4f0;
    --primary-hover: #b4cdf5;
    --on-primary: #0f1724;
    --border: #7a879a;
    --rule: #2c3a52;
    --mark-bg: #4a3500;
    --mark-text: #ffe7a3;
    --ok: #6fd39a;
    --error: #ff9b9b;
  }
}

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

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

main { flex: 1; width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
h1 { font-size: 1.953rem; }
h2 { font-size: 1.5625rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: var(--ground);
  padding: 1px 6px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 2px solid var(--primary);
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap, .wrap-narrow, .wrap-prose { margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.wrap { max-width: 70rem; }
.wrap-narrow { max-width: 33rem; }
.wrap-prose { max-width: 46rem; }

.nav { background: var(--surface); border-bottom: 1px solid var(--rule); }
.nav-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 4.5rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}
.logo:hover { color: var(--text); }
.seal { width: 2rem; height: 2rem; flex: none; color: var(--primary); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-left: auto;
}
.nav-links > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-links > a:not(.btn):hover { border-bottom-color: var(--primary); }
.nav-links form { margin: 0; }
.nav-user { color: var(--muted); }

.btn {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ground); color: var(--primary-hover); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { border-color: var(--rule); }
.btn-lg { font-size: 1.125rem; min-height: 3.25rem; padding: 0.75rem 1.75rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }

.lead { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.sheet > :last-child { margin-bottom: 0; }
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.sheet-head h2 { margin: 0; }

form { margin: 0 0 1rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; margin: 0 0 1.25rem; }
.field-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
label { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 0 0 1rem; }
.field .hint { margin: 0; }
.btn + .hint { margin-top: 0.5rem; }
input[type="text"], input[type="email"], input[type="password"] {
  font: inherit;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
input[aria-invalid="true"] { border: 2px solid var(--error); }
.error { color: var(--error); font-weight: 600; margin: 0; }
.error::before { content: "⚠ "; }
.notice {
  border-left: 4px solid var(--ok);
  background: var(--surface);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.table-scroll { position: relative; overflow-x: auto; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: middle; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
th { font-size: 0.875rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--border); }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }

.packages { border: 0; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.75rem; }
.packages legend { font-weight: 600; margin-bottom: 0.75rem; }
.package {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "radio pages price" "radio note note";
  gap: 0.125rem 0.75rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-weight: 400;
}
.package input { grid-area: radio; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--primary); }
.package:has(input:checked) { border: 2px solid var(--primary); padding: calc(0.875rem - 1px) calc(1rem - 1px); }
.package-pages { grid-area: pages; font-weight: 600; }
.package-price { grid-area: price; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.package-note { grid-area: note; color: var(--muted); font-size: 0.875rem; }

.big-number { font-family: var(--serif); font-size: 2.441rem; font-weight: 600; line-height: 1; }
progress {
  appearance: none;
  width: 100%;
  height: 0.625rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--ground);
  overflow: hidden;
  margin: 0.75rem 0;
}
progress::-webkit-progress-bar { background: var(--ground); }
progress::-webkit-progress-value { background: var(--primary); }
progress::-moz-progress-bar { background: var(--primary); }

.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.25rem; }
.card a { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }

.key {
  display: block;
  font-size: 1.125rem;
  padding: 1rem;
  border: 2px dashed var(--border);
  user-select: all;
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.hero { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-text { flex: 1 1 28rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.05rem); max-width: 14em; margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.25rem; max-width: 32em; color: var(--text); }
.hero-doc { flex: 1 1 22rem; max-width: 29rem; position: relative; margin-bottom: 1.5rem; }
.paper {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.paper p { margin-bottom: 0.75rem; }
.paper .center { text-align: center; }
.paper .bold { font-weight: 700; }
.stamp {
  position: absolute;
  right: -1rem;
  bottom: -1.25rem;
  width: 9.5rem;
  height: 9.5rem;
  padding: 0.75rem;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: var(--ground);
  color: var(--primary);
  transform: rotate(-12deg);
}
.stamp span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}
.stamp small { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; margin-top: 0.25rem; }

.band { border-top: 1px solid var(--rule); padding-top: 3.5rem; padding-bottom: 3.5rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: start; }
.step-n {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 0.5rem; }
.split { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.ruled { list-style: none; padding: 0; font-size: 1.125rem; }
.ruled li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.ruled li:last-child { border-bottom: 0; }
.trust { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.trust li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; }
.trust svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.trust strong { display: block; }
.cta { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: 0.5rem; }
.cta > div { flex: 1 1 24rem; }

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }
.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem;
}
footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .wrap, .wrap-narrow, .wrap-prose { padding: 2rem 1rem 3rem; }
  .sheet { padding: 1.25rem; }
  .nav-in { padding: 0.75rem 1rem; }
  .nav-links { margin-left: 0; }
  .stamp { right: 0.5rem; }
  .nav-user { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-links > a { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
