:root {
  --paper: #f6f2eb;
  --surface: #fffdfa;
  --ink: #2e2923;
  --muted: #71685d;
  --forest: #805f42;
  --forest-dark: #61472f;
  --line: #e3dbce;
  --mist: #f0e8dc;
  --soft: #f7f2e9;
  --warning: #80532d;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(54, 42, 31, .09), 0 2px 7px rgba(54, 42, 31, .04);
  --content: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--forest-dark); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #765536; outline-offset: 3px; }
::selection { background: #eadfce; color: var(--ink); }

.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); color: #fff; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.14; }
h1 { font-size: clamp(2.7rem, 5.3vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--forest); font-size: .72rem; font-weight: 750; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-rule { width: 24px; height: 1px; background: var(--forest); }
.intro-copy { color: var(--muted); font-size: 1.15rem; line-height: 1.65; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(220,228,221,.85); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.14rem; font-weight: 730; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.site-brand:hover { color: var(--forest); }
.brand-mark { width: 27px; height: 31px; color: var(--forest); }
.brand-dot { color: var(--forest); }
.primary-navigation { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav-items { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); margin: 0; padding: 0; list-style: none; }
.nav-items li { margin: 0; padding: 0; }
.primary-navigation .nav-items a { color: var(--ink); font-size: .91rem; font-weight: 570; text-decoration: none; }
.primary-navigation .nav-items a:hover { color: var(--forest); }
.menu-toggle { display: none; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: .94rem; font-weight: 680; line-height: 1.1; text-align: center; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-dark); color: #fff; }
.button-small { min-height: 43px; padding: 0 16px; font-size: .85rem; }
.button-light { background: #fff; color: var(--forest-dark); }
.button-light:hover { background: var(--mist); color: var(--forest-dark); }
.button-secondary { border-color: var(--line); background: #fffdfa; color: var(--ink); }
.button-secondary:hover { border-color: #c4b39c; background: var(--soft); }
.button-quiet { min-height: 44px; padding: 0 12px; background: transparent; color: var(--forest); }
.button:disabled { transform: none; cursor: not-allowed; opacity: .55; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: .92rem; font-weight: 680; text-decoration: none; }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }

.hero-section { position: relative; overflow: hidden; padding: clamp(62px, 8vw, 110px) 0 78px; background-color: #f2ece2; background-image: radial-gradient(ellipse at 82% 13%, rgba(255,255,255,.84), transparent 30%), radial-gradient(ellipse at 87% 72%, rgba(190,168,139,.17), transparent 36%), linear-gradient(124deg, transparent 41.5%, rgba(255,255,255,.2) 42.1%, rgba(255,255,255,.07) 42.9%, transparent 43.6%), linear-gradient(157deg, transparent 67%, rgba(194,174,146,.11) 68%, transparent 69%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(350px, .87fr); align-items: center; gap: clamp(30px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero-copy h1 { max-width: 740px; margin-bottom: 24px; }
.hero-copy h1 em { color: var(--forest); font-weight: 400; }
.hero-intro { max-width: 590px; margin-bottom: 27px; color: #5c5247; font-size: 1.14rem; line-height: 1.68; }
.hero-search { display: flex; min-height: 68px; align-items: center; gap: 12px; max-width: 615px; padding: 7px 8px 7px 18px; border: 1px solid #ded2c0; border-radius: 9px; background: #fffdfa; box-shadow: 0 7px 23px rgba(76,57,38,.07); }
.hero-search > svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.hero-search input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .96rem; }
.hero-search input::placeholder { color: #776c60; opacity: 1; }
.hero-search input:focus-visible { outline: 0; }
.hero-search:focus-within { border-color: #a68460; box-shadow: 0 0 0 3px rgba(128,95,66,.16); }
.hero-search .button { min-height: 50px; flex: 0 0 auto; padding-inline: 17px; }
.hero-footnote { display: flex; align-items: center; gap: 8px; margin: 15px 0 0; color: var(--muted); font-size: .82rem; }
.small-check { display: inline-grid; width: 18px; height: 18px; place-items: center; border: 1px solid #b8cbbd; border-radius: 50%; color: var(--forest); font-size: .7rem; font-weight: 800; }
.hero-visual { position: relative; display: grid; min-height: 420px; place-items: center; }
.paper-stack { position: absolute; width: min(74%, 340px); height: 375px; border: 1px solid #dfe7df; border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.paper-back { transform: rotate(7deg) translate(22px, 5px); background: #e9e0d3; }
.paper-front { z-index: 1; display: flex; flex-direction: column; padding: 31px 31px 25px; transform: rotate(-3deg); }
.paper-topline { display: flex; justify-content: space-between; margin-bottom: 31px; }
.paper-topline span:first-child { width: 42px; height: 4px; background: var(--forest); }
.paper-topline span:last-child { width: 22px; height: 4px; background: #e8dfd2; }
.paper-kicker { margin-bottom: 10px; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .12em; }
.paper-question { margin-bottom: 20px; font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.2; }
.paper-choice { display: flex; min-height: 48px; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: #62584c; font-size: .79rem; }
.paper-choice.selected { border-color: #a88967; background: #f6efe5; color: var(--ink); }
.choice-dot { width: 14px; height: 14px; border: 1px solid #9baaa1; border-radius: 50%; }
.selected .choice-dot { border: 4px solid var(--forest); }
.choice-check { margin-left: auto; color: var(--forest); font-weight: 800; }
.paper-progress { height: 4px; margin-top: auto; background: #e8ede8; }
.paper-progress span { display: block; width: 27%; height: 100%; background: var(--forest); }
.paper-progress-label { margin: 9px 0 0; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .1em; }

.hero-ornament { position: absolute; top: 20px; right: 5px; width: 60px; height: 60px; border-top: 1px solid #d2c4b0; border-right: 1px solid #d2c4b0; border-radius: 0 28px 0 0; transform: rotate(20deg); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.65); }
.trust-items { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-items > div { display: flex; min-height: 84px; align-items: center; gap: 15px; padding: 17px 26px; border-right: 1px solid var(--line); }
.trust-items > div:first-child { padding-left: 0; }
.trust-items > div:last-child { border-right: 0; }
.trust-symbol { color: var(--forest); font-family: Georgia, serif; font-size: 1rem; }
.trust-items p { margin: 0; color: #443a30; font-size: .88rem; font-weight: 570; }

.section { padding-block: clamp(66px, 8vw, 106px); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.section-heading-row .eyebrow { margin-bottom: 12px; }
.heading-link { margin-bottom: 9px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.document-card { display: flex; min-width: 0; min-height: 268px; flex-direction: column; padding: 24px 25px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.document-card:hover { transform: translateY(-2px); border-color: #b6cabb; box-shadow: 0 12px 30px rgba(29,49,39,.07); }
.document-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 27px; }
.category-label { color: var(--forest); font-size: .7rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.time-label { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.document-card h2 { margin-bottom: 11px; font-size: 1.62rem; }
.document-card h2 a { color: var(--ink); text-decoration: none; }
.document-card h2 a:hover { color: var(--forest); }
.document-card p { margin: 0 0 22px; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.document-card .text-link { margin-top: auto; font-size: .84rem; }

.category-section { padding-block: clamp(64px, 8vw, 100px); background: #efe7db; }
.category-layout { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: clamp(45px, 9vw, 130px); }
.category-intro h2 { margin-bottom: 19px; }
.category-intro > p:not(.eyebrow) { max-width: 360px; margin-bottom: 23px; color: var(--muted); }
.category-list { border-top: 1px solid #d5c8b6; }
.category-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; min-height: 66px; align-items: center; gap: 12px; border-bottom: 1px solid #d5c8b6; color: var(--ink); font-size: 1.03rem; font-weight: 590; text-decoration: none; transition: padding .15s ease, color .15s ease; }
.category-row:hover { padding-inline: 6px; color: var(--forest); }
.category-index { color: #7c6d5d; font-family: Georgia, serif; font-size: .83rem; }
.category-arrow { color: var(--forest); font-size: .9rem; text-align: right; }

.process-section { padding-bottom: clamp(66px, 8vw, 100px); }
.process-heading { align-items: end; }
.section-intro { max-width: 410px; margin: 0 0 5px; color: var(--muted); }
.process-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-cards li { min-height: 215px; padding: 25px 28px 15px 0; border-right: 1px solid var(--line); }
.process-cards li + li { padding-left: 28px; }
.process-cards li:last-child { border-right: 0; }
.process-number { display: inline-block; margin-bottom: 23px; color: var(--forest); font-family: Georgia, serif; font-size: 1.15rem; }
.process-cards h3 { margin-bottom: 12px; font-size: 1.32rem; }
.process-cards p { max-width: 310px; margin: 0; color: var(--muted); font-size: .92rem; }

.notice { display: flex; align-items: flex-start; gap: 16px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; }
.notice-demo { background: var(--soft); }
.notice-mark { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1px solid #b8a184; border-radius: 50%; color: var(--forest); font-family: Georgia, serif; font-weight: 700; }
.notice h2 { margin: 0 0 6px; font-family: inherit; font-size: 1rem; font-weight: 720; letter-spacing: 0; }
.notice p { margin: 0; color: #5c5247; font-size: .88rem; }
.notice p + p { margin-top: 7px; }
.demo-notice-section { padding-bottom: clamp(58px, 7vw, 90px); }
.closing-cta { display: flex; min-height: 210px; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 86px; padding: 39px clamp(26px, 5vw, 62px); border-radius: 12px; background: var(--forest-dark); }
.closing-cta .eyebrow { color: #c9dfd0; }
.closing-cta h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.5rem); }

.page-intro { padding-top: 73px; padding-bottom: 35px; }
.page-intro h1 { margin-bottom: 15px; font-size: clamp(2.7rem, 4.7vw, 3.8rem); }
.page-intro .intro-copy { max-width: 710px; margin-bottom: 0; }
.catalogue-tools { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: end; margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.catalogue-tools label, .field-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .86rem; font-weight: 680; }
.catalogue-tools input, .catalogue-tools select { width: 100%; min-width: 0; height: 49px; padding: 0 13px; border: 1px solid #cbd7ce; border-radius: 6px; background: #fff; color: var(--ink); }
.catalogue-tools input:focus, .catalogue-tools select:focus { border-color: #806042; outline: 3px solid rgba(128,95,66,.15); }
.catalogue-results { padding-bottom: 86px; }
.result-count { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed #b9c9bc; border-radius: 9px; color: var(--muted); text-align: center; }
.empty-state[hidden] { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 24px 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }
.document-intro-page { padding-bottom: 80px; }
.document-intro-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(36px, 7vw, 90px); padding: clamp(30px, 5.5vw, 66px); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(29,49,39,.04); }
.document-intro-copy h1 { margin-bottom: 18px; font-size: clamp(2.8rem, 4.7vw, 4rem); }
.document-intro-copy .intro-copy { max-width: 560px; margin-bottom: 22px; }
.time-estimate { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; color: var(--muted); font-size: .89rem; }
.time-mark { width: 15px; height: 15px; border: 1.5px solid #789082; border-radius: 50%; }
.time-mark::after { content: ""; display: block; width: 4px; height: 5px; margin: 2px 0 0 5px; border-left: 1px solid #789082; border-bottom: 1px solid #789082; }
.document-intro-aside { padding: 25px 25px 21px; border-radius: 8px; background: var(--soft); }
.document-intro-aside h2 { margin-bottom: 19px; font-family: inherit; font-size: 1rem; font-weight: 720; letter-spacing: 0; }
.process-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; }
.process-list li > span { color: var(--forest); font-family: Georgia, serif; font-size: .8rem; }
.process-list strong { display: block; margin-bottom: 3px; font-size: .91rem; }
.process-list p { margin: 0; color: var(--muted); font-size: .82rem; }
.document-intro-page .notice { margin-top: 25px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-main { display: flex; min-height: 170px; align-items: center; justify-content: space-between; gap: 35px; }
.footer-brand-block p { max-width: 350px; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--ink); font-size: .87rem; font-weight: 570; text-decoration: none; }
.footer-links a:hover { color: var(--forest); }
.footer-bottom { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e8ede8; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .75rem; }
.content-page { min-height: 500px; padding-top: 62px; padding-bottom: 80px; }
.entry-content-wrap { max-width: 760px; margin: 0 auto; }
.entry-header { margin-bottom: 30px; }
.entry-header .eyebrow { margin-bottom: 11px; }
.entry-content { color: #405349; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin: 1.7em 0 .65em; }
.content-list { display: grid; gap: 16px; margin-top: 35px; }
.content-list-item { padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.content-list-item h2 { margin-bottom: 8px; font-size: 1.5rem; }
.not-found-page { display: flex; min-height: 460px; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 60px; }
.not-found-page h1 { max-width: 650px; margin-bottom: 15px; }
.not-found-page > p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); }

/* Guided interview */
.wizard-page { padding-bottom: 78px; }
.wizard-container { max-width: 1120px; }
.wizard-breadcrumb { padding-top: 20px; }
.wizard-app { min-height: 520px; }
.wizard-loading { padding: 48px 25px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.wizard-privacy-note { margin: 17px 0 0; color: var(--muted); font-size: .79rem; }
.wizard-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 9px 0 20px; }
.wizard-document-name { margin: 0 0 4px; color: var(--ink); font-size: .88rem; font-weight: 680; }
.wizard-save-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; }
.save-indicator { width: 7px; height: 7px; border-radius: 50%; background: #5d9873; }
.save-indicator.is-error { background: #a66343; }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 20px; }
.wizard-main-panel, .wizard-context-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wizard-main-panel { min-height: 490px; padding: clamp(25px, 4.4vw, 55px); }
.wizard-context-panel { padding: 23px 21px; }
.wizard-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--muted); font-size: .77rem; }
.wizard-progress-head strong { color: var(--ink); font-weight: 660; }
.wizard-progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: #e6ece6; }
.wizard-progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--forest); transition: width .2s ease; }
.wizard-section-label { margin: 34px 0 9px; color: var(--forest); font-size: .72rem; font-weight: 740; letter-spacing: .1em; text-transform: uppercase; }
.wizard-question-title { max-width: 700px; margin: 0 0 10px; font-size: clamp(1.9rem, 3.2vw, 2.65rem); }
.wizard-question-help { max-width: 680px; margin: 0 0 22px; color: var(--muted); font-size: .94rem; }
.wizard-answer-area { min-height: 110px; }
.answer-options { display: grid; gap: 10px; max-width: 650px; }
.answer-option { position: relative; display: flex; min-height: 58px; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fffdfa; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.answer-option:hover { border-color: #b6a083; background: #fcfaf7; }
.answer-option.is-selected { border-color: #8a6847; background: #f6efe5; }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer-option input:focus-visible + .option-mark { outline: 3px solid #765536; outline-offset: 3px; }
.option-mark { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1.5px solid #a99882; border-radius: 50%; background: #fffdfa; }
.answer-option.is-selected .option-mark { border: 5px solid var(--forest); }
.answer-option-label { color: var(--ink); font-size: .98rem; font-weight: 560; }
.answer-input, .answer-textarea, .repeat-field input, .repeat-field select { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 12px 14px; border: 1px solid #d3c7b6; border-radius: 6px; background: #fffdfa; color: var(--ink); }
.answer-input::placeholder, .answer-textarea::placeholder, .repeat-field input::placeholder { color: #839189; opacity: 1; }
.answer-input:focus, .answer-textarea:focus, .repeat-field input:focus, .repeat-field select:focus { border-color: #806042; outline: 3px solid rgba(128,95,66,.15); }
.answer-textarea { min-height: 125px; resize: vertical; }
.field-error { margin: 8px 0 0; color: #8b402f; font-size: .83rem; font-weight: 590; }
.answer-input[aria-invalid="true"], .answer-textarea[aria-invalid="true"] { border-color: #b85c4a; }
.wizard-inline-help { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 31px; padding-top: 23px; border-top: 1px solid #e8ede8; }
.wizard-actions-primary { display: flex; align-items: center; gap: 9px; }
.wizard-context-panel h2 { margin-bottom: 10px; font-family: inherit; font-size: 1rem; font-weight: 720; letter-spacing: 0; }
.wizard-context-panel p { color: var(--muted); font-size: .84rem; }
.context-rule { height: 1px; margin: 19px 0; background: var(--line); }
.context-help-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: .8rem; }
.context-help-list li + li { margin-top: 8px; }

.repeat-list { display: grid; gap: 12px; }
.repeat-item { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.repeat-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.repeat-item-title { margin: 0; font-family: inherit; font-size: .87rem; font-weight: 700; letter-spacing: 0; }
.repeat-remove { border: 0; background: transparent; color: #7a493d; cursor: pointer; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.repeat-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.repeat-field label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 650; }
.repeat-field input, .repeat-field select { min-height: 45px; padding: 9px 10px; font-size: .9rem; }
.repeat-add { margin-top: 12px; }
.repeat-subtotal { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding: 11px 13px; border-radius: 6px; background: var(--mist); color: var(--ink); font-size: .83rem; }
.repeat-subtotal strong { font-variant-numeric: tabular-nums; }

.wizard-context-progress { display: grid; gap: 8px; margin-top: 10px; }
.context-step { display: flex; align-items: center; gap: 9px; color: #718077; font-size: .78rem; }
.context-step-marker { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid #adbab0; border-radius: 50%; }
.context-step.is-current { color: var(--forest); font-weight: 700; }
.context-step.is-current .context-step-marker { border-color: var(--forest); background: var(--forest); }
.context-step.is-done .context-step-marker { border-color: var(--forest); background: #d5e4d8; }

.draft-choice { max-width: 560px; margin: 25px auto; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.draft-choice h2 { margin-bottom: 9px; font-size: 1.8rem; }
.draft-choice p { color: var(--muted); }
.draft-choice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.review-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.review-header h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
.review-section { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e8ede8; }
.review-section-head h2 { font-family: inherit; font-size: .95rem; font-weight: 730; letter-spacing: .01em; }
.review-edit { border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: .83rem; font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.review-list { margin: 0; padding: 0 18px; }
.review-row { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf0ed; }
.review-row:last-child { border-bottom: 0; }
.review-row dt { color: var(--muted); font-size: .82rem; }
.review-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .9rem; font-weight: 570; }
.review-array { display: grid; gap: 6px; }
.review-empty { color: #75847c; font-style: italic; }
.review-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.review-demo-note { margin: 22px 0 0; color: var(--muted); font-size: .82rem; }

.preview-heading { margin-bottom: 20px; }
.preview-heading h1 { margin-bottom: 7px; font-size: clamp(2rem, 3vw, 2.7rem); }
.preview-heading p { color: var(--muted); }
.preview-paper { max-width: 770px; min-height: 510px; margin: 0 auto; padding: clamp(30px, 6vw, 70px); border: 1px solid #d9dfd9; background: #fff; box-shadow: var(--shadow); }
.preview-paper-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.preview-paper-top h2 { font-size: 1.7rem; }
.preview-stamp { padding: 5px 9px; border: 1px solid #a06c3a; color: #875a30; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }
.preview-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-block: 28px; }
.preview-meta div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.preview-meta dt { margin-bottom: 4px; color: var(--muted); font-size: .74rem; }
.preview-meta dd { margin: 0; overflow-wrap: anywhere; font-size: .95rem; font-weight: 650; }
.print-document-intro { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.print-section { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); break-inside: avoid-page; }
.print-section h3 { margin-bottom: 9px; font-size: 1.15rem; }
.print-list { margin: 0; }
.print-row { display: grid; grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid #eee8de; }
.print-row dt { color: var(--muted); font-size: .83rem; }
.print-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .92rem; font-weight: 560; white-space: pre-wrap; }
.print-repeat-list { display: grid; gap: 10px; }
.print-repeat-item { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fcfaf7; break-inside: avoid-page; }
.print-repeat-item h4 { margin-bottom: 5px; font-family: inherit; font-size: .88rem; font-weight: 700; letter-spacing: 0; }
.print-nested-list .print-row { grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); padding: 6px 0; }
.preview-placeholder { margin-top: 37px; padding: 18px; border-left: 3px solid #a9824d; background: #f7f3ec; color: #5f4d36; font-size: .87rem; }
.preview-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 770px; margin: 20px auto 0; }

@media print {
  @page { size: A4; margin: 18mm; }
  html, body { margin: 0 !important; background: #fff !important; color: #241f1a !important; }
  .site-header, .site-footer, .breadcrumbs, .wizard-privacy-note { display: none !important; }
  .wizard-page { padding: 0 !important; }
  .wizard-page > .container { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .wizard-app { min-height: 0 !important; }
  .wizard-app.is-print-preview > :not([data-print-document]) { display: none !important; }
  .wizard-app.is-print-preview > [data-print-document] { display: block !important; }
  .preview-paper { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: none; color: #241f1a; font: 11pt/1.5 Georgia, "Times New Roman", serif; }
  .preview-paper-top { align-items: flex-start; }
  .preview-paper-top h2 { font-size: 20pt; }
  .print-document-intro, .print-row dt, .print-row dd { color: #332b23; }
  .print-section, .print-row, .print-repeat-item { break-inside: avoid-page; }
  .print-repeat-item { background: #fff; }
  .preview-placeholder { border-color: #8b6b47; background: #f6f1e8; color: #493b2b; }
}

.confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 20px 80px rgba(10,25,15,.28); }
.confirm-dialog::backdrop { background: rgba(20,34,27,.46); }
.confirm-dialog h2 { margin-bottom: 9px; font-size: 1.65rem; }
.confirm-dialog p { color: var(--muted); }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.wizard-announcer { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(285px, .75fr); gap: 32px; }
  .hero-visual { min-height: 380px; }
  .paper-stack { height: 345px; }
  .paper-front { padding: 25px 24px 20px; }
  .document-grid { gap: 13px; }
  .document-card { padding: 20px; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; }
  .wizard-context-panel { padding: 19px 16px; }
}

@media (max-width: 760px) {
  .container { width: min(var(--content), calc(100% - 36px)); }
  .header-inner { min-height: 68px; }
  html.js .menu-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 4px 0 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: .84rem; font-weight: 650; }
  .menu-toggle-lines { display: grid; gap: 5px; }
  .menu-toggle-lines i { display: block; width: 18px; height: 1px; background: var(--ink); }
  html.js .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); background: #fffdfa; box-shadow: 0 12px 22px rgba(54,42,31,.08); }
  html.js .primary-navigation.is-open { display: grid; }
  html:not(.js) .header-inner { min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .primary-navigation { position: static; display: flex; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 2px; border: 0; background: transparent; box-shadow: none; }
  .primary-navigation .nav-items { display: grid; gap: 0; }
  .primary-navigation .nav-items a { display: block; padding: 13px 4px; border-bottom: 1px solid #e8dfd2; }
  .primary-navigation .button { margin-top: 13px; }
  html:not(.js) .primary-navigation .nav-items { display: grid; gap: 0; }
  html:not(.js) .primary-navigation .nav-items a { padding: 10px 0; }
  html:not(.js) .primary-navigation .button { margin-top: 7px; }
  .hero-section { padding: 57px 0 42px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 9.3vw, 3.5rem); }
  .hero-intro { font-size: 1.02rem; }
  .hero-visual { min-height: 300px; margin: 8px auto 0; width: min(100%, 400px); }
  .paper-stack { width: 66%; height: 285px; }
  .paper-front { padding: 19px 19px 16px; }
  .paper-topline { margin-bottom: 19px; }
  .paper-question { margin-bottom: 12px; font-size: 1.35rem; }
  .paper-choice { min-height: 38px; margin-bottom: 6px; padding-inline: 9px; font-size: .7rem; }

  .hero-ornament { top: -2px; right: 8px; }
  .trust-items { grid-template-columns: 1fr; padding-block: 6px; }
  .trust-items > div, .trust-items > div:first-child { min-height: 51px; padding: 9px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-items > div:last-child { border-bottom: 0; }
  .trust-items p { font-size: .83rem; }
  .section { padding-block: 59px; }
  .section-heading-row { align-items: flex-start; gap: 16px; }
  .section-heading-row h2 { font-size: 2.15rem; }
  .heading-link { align-self: end; margin-bottom: 4px; font-size: .79rem; white-space: nowrap; }
  .document-grid { grid-template-columns: 1fr; gap: 12px; }
  .document-card { min-height: 224px; padding: 20px; }
  .document-card-topline { margin-bottom: 20px; }
  .category-layout { grid-template-columns: 1fr; gap: 27px; }
  .category-intro h2 br { display: none; }
  .category-intro h2 { max-width: 440px; }
  .process-heading { display: block; }
  .section-intro { margin-top: 14px; }
  .process-cards { grid-template-columns: 1fr; }
  .process-cards li, .process-cards li + li { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-cards li:last-child { border-bottom: 0; }
  .process-number { margin-bottom: 11px; }
  .process-cards h3 { margin-bottom: 7px; }
  .notice { gap: 12px; padding: 18px; }
  .closing-cta { min-height: 0; flex-direction: column; align-items: flex-start; margin-bottom: 58px; padding: 28px 23px; }
  .closing-cta h2 { font-size: 1.9rem; }
  .page-intro { padding-top: 53px; padding-bottom: 25px; }
  .page-intro h1 { font-size: 2.55rem; }
  .catalogue-tools { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .catalogue-results { padding-bottom: 58px; }
  .document-intro-panel { grid-template-columns: 1fr; gap: 29px; padding: 25px 21px; }
  .document-intro-copy h1 { font-size: 2.75rem; }
  .document-intro-aside { padding: 20px; }
  .document-intro-page { padding-bottom: 58px; }
  .footer-main { min-height: 0; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 33px; }
  .footer-links { flex-wrap: wrap; gap: 14px 24px; }
  .footer-bottom { min-height: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 13px; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-main-panel { min-height: 0; padding: 24px 20px; }
  .wizard-context-panel { order: 2; }
  .wizard-context-progress { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wizard-section-label { margin-top: 27px; }
  .wizard-question-title { font-size: 2rem; }
  .wizard-actions { margin-top: 24px; }
  .wizard-actions .button { min-height: 48px; padding-inline: 14px; }
  .repeat-fields { grid-template-columns: 1fr; }
  .review-header { align-items: flex-start; }
  .review-row { grid-template-columns: 1fr; gap: 3px; }
  .review-footer { flex-direction: column-reverse; }
  .review-footer .button { width: 100%; }
  .preview-paper { min-height: 0; padding: 25px 21px; }
  .preview-meta { grid-template-columns: 1fr; gap: 12px; }
  .preview-actions { flex-direction: column-reverse; }
  .preview-actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 30px); }
  h1 { font-size: 2.5rem; }
  .hero-section { padding-top: 44px; }
  .hero-search { min-height: 60px; flex-wrap: wrap; padding: 8px; }
  .hero-search > svg { margin-left: 5px; }
  .hero-search input { width: calc(100% - 40px); height: 38px; }
  .hero-search .button { width: 100%; min-height: 46px; }
  .hero-footnote { align-items: flex-start; font-size: .76rem; }
  .hero-visual { min-height: 275px; }
  .paper-stack { height: 260px; }
  .paper-topline { margin-bottom: 14px; }
  .paper-kicker { margin-bottom: 7px; }
  .paper-question { font-size: 1.2rem; }
  .paper-choice { min-height: 34px; }
  .section-heading-row { flex-direction: column; }
  .heading-link { align-self: flex-start; }
  .wizard-topline { align-items: flex-start; }
  .wizard-save-status { max-width: 145px; text-align: right; }
  .wizard-actions { align-items: stretch; }
  .wizard-actions-primary { flex: 1; }
  .wizard-actions-primary .button { flex: 1; }
  .wizard-actions .button-quiet { padding-inline: 5px; }
  .answer-option { min-height: 54px; }
  .draft-choice-actions { display: grid; }
  .draft-choice-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
