:root {
  --ink: #17212b;
  --muted: #66717c;
  --paper: #f6f2e9;
  --paper-dark: #eae3d7;
  --white: #fffdf9;
  --blue: #2358d4;
  --blue-dark: #1742a8;
  --line: #d9d3c8;
  --green: #25805e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.8), transparent 32rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.page-shell { min-height: 100vh; overflow: hidden; }
.nav, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.03em; }
.brand-accent { color: var(--blue); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--blue); color: white; border-radius: 50%; }
.brand-mark svg { width: 19px; height: 19px; stroke-width: 1.7; }
.nav-badge { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,128,94,.12); }

.hero { max-width: 950px; margin: 0 auto; padding: 92px 0 78px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.hero h1 { margin: 23px 0 18px; font: 500 clamp(54px, 8vw, 86px)/.93 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-weight: 500; }
.hero-copy { width: min(610px, 100%); margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.65; }

.download-form { width: min(790px, 100%); margin: 40px auto 0; text-align: left; }
.download-form label { display: block; margin: 0 0 9px 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.input-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--white); border: 1px solid #cfc8bb; border-radius: 14px; box-shadow: 0 16px 50px rgba(48,42,32,.1); transition: border-color .2s, box-shadow .2s; }
.input-row:focus-within { border-color: var(--blue); box-shadow: 0 16px 50px rgba(35,88,212,.13), 0 0 0 3px rgba(35,88,212,.09); }
.link-icon { flex: 0 0 31px; color: #8b918e; display: grid; place-items: center; }
.link-icon svg { width: 20px; height: 20px; }
.input-row input { min-width: 0; flex: 1; height: 48px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.input-row input::placeholder { color: #9da39f; }
.input-row button { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; background: var(--blue); color: white; cursor: pointer; font-size: 14px; font-weight: 800; transition: background .2s, transform .2s; }
.input-row button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.input-row button:disabled { cursor: wait; opacity: .8; transform: none; }
.input-row button > svg { width: 17px; height: 17px; }
.button-loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-loader { display: inline-block; }
.is-loading .button-text, .is-loading button > svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { min-height: 22px; margin: 9px 4px 0; color: #b33329; font-size: 13px; }

.result { width: min(790px, 100%); margin: 18px auto 0; padding: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; text-align: left; background: var(--white); border: 1px solid #cfc8bb; border-radius: 14px; box-shadow: 0 16px 50px rgba(48,42,32,.08); }
.result[hidden] { display: none; }
.result-cover { width: 76px; height: 107px; object-fit: cover; align-self: stretch; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-dark); box-shadow: 0 6px 18px rgba(48,42,32,.13); }
.result-kicker { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.result h2 { margin: 4px 0; font: 600 20px/1.2 var(--serif); }
.result p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.result-link:hover { background: var(--blue); color: white; }
.result-link svg { width: 15px; height: 15px; }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.result-pdf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: white; cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; }
.result-pdf:hover { background: var(--blue-dark); }
.result-pdf:disabled { cursor: wait; opacity: .7; }
.result-pdf svg { width: 15px; height: 15px; }
.pdf-progress { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid var(--line); }
.pdf-progress[hidden], .pdf-download[hidden] { display: none; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.progress-heading strong { color: var(--blue); font-size: 12px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--paper-dark); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4f7be8); transition: width .35s ease; }
.pdf-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; padding: 12px 16px; border-radius: 8px; background: var(--green); color: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.pdf-download:hover { background: #1f6c50; }
.pdf-download svg { width: 16px; height: 16px; }

.viewer { width: min(900px, 100%); margin: 28px auto 0; text-align: left; }
.viewer[hidden] { display: none; }
.viewer-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.viewer-heading h2 { margin: 4px 0 0; font: 600 25px/1.2 var(--serif); }
.viewer-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.viewer iframe { display: block; width: 100%; height: min(78vh, 850px); min-height: 600px; border: 1px solid #cfc8bb; border-radius: 14px; background: var(--white); box-shadow: 0 16px 50px rgba(48,42,32,.08); }

.trust-row { margin-top: 17px; display: flex; align-items: center; justify-content: center; gap: 25px; color: #7a827e; font-size: 11px; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--green); }

.how-it-works { padding: 74px 0 94px; border-top: 1px solid var(--line); }
.section-heading { display: flex; gap: 20px; align-items: center; margin-bottom: 45px; }
.section-number { font: italic 22px var(--serif); color: var(--blue); }
.section-heading p { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { margin: 0; font: 500 35px var(--serif); letter-spacing: -.03em; }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 230px; padding: 30px 38px; border-left: 1px solid var(--line); }
.steps li:last-child { border-right: 1px solid var(--line); }
.step-number { position: absolute; top: 0; right: 25px; color: #d5d0c7; font: italic 48px var(--serif); }
.step-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 26px; color: var(--blue); background: rgba(35,88,212,.08); border-radius: 50%; }
.step-icon svg { width: 21px; height: 21px; }
.steps h3 { margin: 0 0 10px; font: 600 22px var(--serif); }
.steps p { max-width: 245px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.notice { display: flex; gap: 21px; align-items: flex-start; margin-bottom: 90px; padding: 30px 34px; border: 1px solid #c9c2b6; background: rgba(255,253,249,.55); }
.notice-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--blue); border: 1px solid var(--blue); border-radius: 50%; font: italic 19px var(--serif); }
.notice h2 { margin: 1px 0 8px; font: 600 19px var(--serif); }
.notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

footer { min-height: 120px; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: #7d837f; font-size: 11px; }
.brand-small { margin-right: auto; color: var(--ink); font-size: 17px; }
.brand-small .brand-mark { width: 27px; height: 27px; }
.brand-small .brand-mark svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .nav { height: 72px; }
  .nav-badge { display: none; }
  .hero { padding: 66px 0 58px; }
  .hero h1 { font-size: clamp(49px, 16vw, 68px); }
  .hero-copy { font-size: 16px; }
  .input-row { padding: 7px; }
  .link-icon { display: none; }
  .input-row input { padding-left: 9px; font-size: 13px; }
  .input-row button { padding: 0 15px; }
  .result { grid-template-columns: auto 1fr; }
  .result-cover { width: 66px; height: 93px; }
  .result-actions { grid-column: 1 / -1; }
  .result-link { justify-content: center; }
  .viewer-heading { display: block; }
  .viewer-heading p { margin-top: 6px; }
  .viewer iframe { min-height: 520px; }
  .trust-row { flex-wrap: wrap; gap: 11px 18px; }
  .how-it-works { padding: 58px 0 66px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:last-child { min-height: 0; padding: 28px 25px 34px; border: 0; border-top: 1px solid var(--line); }
  .steps p { max-width: none; }
  .notice { padding: 24px 21px; }
  footer { padding: 30px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand-small { margin: 0 0 8px; }
  footer p { margin: 0; }
}
