/* Calm, readable, one-question-at-a-time e-will. */
.ew-landing,.ew-builder-page { background: #f6f7f5; color: #253f43; }
.ew-kicker { color: #576b6b; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.ew-new { display: inline-block; padding: 7px 13px; border-radius: 999px; background: #dce8de; color: #2d5144; font-size: .74rem; font-weight: 750; letter-spacing: .12em; margin-bottom: 22px; }
.ew-hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(36px,7vw,100px); padding-block: 65px 85px; }
.ew-hero-copy h1 { color: #294347; font-size: clamp(2.8rem,5.3vw,5rem); line-height: 1.1; margin-block: 12px 26px; }
.ew-lead { max-width: 490px; font-size: 1.24rem; line-height: 1.7; color: #536568; margin-bottom: 28px; }
.ew-start { min-height: 62px; font-size: 1.1rem; padding: 14px 30px; }
.ew-price-line { margin: 22px 0 8px; font-weight: 650; }
.ew-price-line span { display: block; font-weight: 400; color: #5c6b6c; font-size: .92rem; }
.ew-small { font-size: .94rem; line-height: 1.6; color: #57696a; }
.ew-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; background: #f9f6ec; color: #37594e; border: 1px solid #c9cabc; padding: 34px; isolation: isolate; }
.ew-cover::before { content: ''; position: absolute; inset: 15px; border: 1px solid #b9c2ac; pointer-events: none; }
.ew-cover::after { content: ''; position: absolute; inset: 22px; border: 1px solid #d9d9c9; pointer-events: none; }
.ew-cover-sample { aspect-ratio: 210/297; max-height: 620px; box-shadow: 9px 16px 0 #dedfcf, 0 25px 50px #263b4220; transform: rotate(2deg); }
.ew-cover-top,.ew-cover-bottom { font-size: .59rem; letter-spacing: .2em; line-height: 1.6; }
.ew-cover-title { font-family: 'Source Serif 4',Georgia,serif; font-size: clamp(2.6rem,5vw,4.4rem); letter-spacing: -.04em; line-height: 1.1; color: #37594e; margin-bottom: 16px; }
.ew-cover-name { font-size: 1.1rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.ew-cover-message { font-family: 'Source Serif 4',Georgia,serif; font-style: italic; max-width: 28ch; margin: 20px auto; line-height: 1.7; overflow-wrap: anywhere; }
.ew-cover-art { position: relative; flex: 0 0 auto; width: 150px; height: 160px; margin: 16px auto; background: radial-gradient(circle at 50% 35%,#e2c98d 0 32px,transparent 33px); }
.ew-cover-art::before,.ew-cover-art::after,.ew-cover-art span::before,.ew-cover-art span::after,.ew-cover-art i::before,.ew-cover-art i::after { content: ''; position: absolute; width: 42px; height: 24px; background: #78947a; border-radius: 100% 0 100% 0; transform: rotate(-20deg); }
.ew-cover-art::before { left: 29px; top: 110px; }.ew-cover-art::after { left: 72px; top: 91px; transform: rotate(85deg); }
.ew-cover-art span::before { left: 33px; top: 70px; }.ew-cover-art span::after { left: 73px; top: 49px; transform: rotate(80deg); }
.ew-cover-art i::before { left: 38px; top: 29px; }.ew-cover-art i::after { left: 68px; top: 8px; transform: rotate(-45deg); width: 34px; }
.ew-cover-art span { position: absolute; inset: 0; border-left: 2px solid #54735c; left: 49%; height: 148px; transform: rotate(8deg); }
.ew-cover-art span::before,.ew-cover-art span::after { left: -40px; }.ew-cover-art span::after { left: 1px; }
.ew-simple-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; padding-block: 42px 65px; border-top: 1px solid #d5dfda; }
.ew-simple-steps span { color: #738b7c; font-size: .86rem; }.ew-simple-steps h2 { font-size: 1.6rem; margin: 14px 0 12px; }.ew-simple-steps p { color: #526767; }
.ew-future { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 40px 0 70px; }.ew-future h2 { font-size: 2.1rem; margin-bottom: 20px; }.ew-future h3 { font-size: 1.5rem; margin-bottom: 20px; }
.ew-promo { background: #edf2ec; border-color: #d2ddd4; gap: 35px; }.ew-promo .ew-new { margin-bottom: 16px; }.ew-promo h2 { color: #2f5148; }.ew-promo>.button { color: white; flex-shrink: 0; }.ew-promo>.button:hover { color: white; }
.ew-builder-wrap { max-width: 850px; padding-block: 24px 80px; }.ew-back-home { color: #516767; font-size: .94rem; text-decoration: none; }
#ew-app { margin-top: 22px; min-height: 550px; background: #fff; padding: clamp(22px,5vw,54px); border: 1px solid #d8e2dd; border-radius: 16px; box-shadow: 0 15px 50px #294d3a05; }
.ew-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }.ew-toolbar .ew-kicker { margin: 0; }
.ew-text-button { border: 0; background: transparent; color: #28564b; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; min-height: 48px; cursor: pointer; }
.ew-save-status { color: #637474; font-size: .85rem; min-height: 1.5em; margin: 6px 0 28px; }
.ew-progress { margin-bottom: 28px; }.ew-progress .ew-progress-group { font-weight: 700; color: #365c4e; margin-bottom: 6px; }.ew-progress p { font-size: .94rem; color: #536968; margin-bottom: 8px; }.ew-progress progress { display: block; width: 100%; height: 6px; accent-color: #527a62; border: 0; border-radius: 99px; }.ew-progress progress::-webkit-progress-bar { background: #edf1ec; border-radius: 99px; }.ew-progress progress::-webkit-progress-value { background: #527a62; border-radius: 99px; }
.ew-question-title { font-size: clamp(1.9rem,4vw,2.8rem); line-height: 1.23; margin-bottom: 16px; color: #294347; overflow-wrap: anywhere; }.ew-question-title:focus { outline: none; }
.ew-question-guidance { margin: 0 0 16px; color: #405c54; font-size: .95rem; line-height: 1.6; }
.ew-question-guidance summary { cursor: pointer; font-weight: 600; }
.ew-question-guidance p { margin: 10px 0; }
.ew-help { font-size: 1.13rem; line-height: 1.7; color: #576c6b; margin-bottom: 28px; }
.ew-answer { display: block; width: 100%; border: 2px solid #aebfba; border-radius: 9px; padding: 17px; min-height: 62px; font-size: 1.25rem; background: #fff; color: #263f43; line-height: 1.5; resize: vertical; }.ew-answer:focus { outline: 3px solid #3f6654; outline-offset: 3px; border-color: #3f6654; }.ew-answer[aria-invalid] { border-color: #a23f34; }
.ew-choices { margin: 0; border: 0; padding: 0; display: grid; gap: 13px; }.ew-choice { display: flex; align-items: center; gap: 17px; min-height: 74px; padding: 17px 20px; border: 2px solid #c4d0c8; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }.ew-choice:has(input:checked) { background: #edf4eb; border-color: #53765b; }.ew-choice:focus-within { outline: 3px solid #b9cdb9; outline-offset: 3px; }.ew-choice input { width: 24px; height: 24px; flex-shrink: 0; accent-color: #42664e; }
.ew-question-form { padding-bottom: 8px; scroll-margin-bottom: 96px; }
.ew-question-nav { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; gap: 15px; margin-top: 24px; padding-block: 14px; background: #fff; box-shadow: 0 -8px 18px -12px #294d3a33; }.ew-question-nav .button { min-height: 62px; font-size: 1.12rem; flex: 1; }.ew-question-form .ew-skip { display: block; margin: 10px auto 0; }
/* Matalat ruudut (esim. 1366x650, kannettavat zoomilla): tiivistä kysymyksen yläosa, jotta kysymys + kenttä + Jatka mahtuvat näkyviin ilman vieritystä. */
@media (max-height: 700px) {
  .ew-builder-wrap { padding-block: 10px 40px; }
  #ew-app { margin-top: 12px; padding-block: clamp(18px,3vh,30px); }
  .ew-toolbar { margin-bottom: 4px; }
  .ew-save-status { margin: 4px 0 12px; }
  .ew-progress { margin-bottom: 14px; }
  .ew-question-title { font-size: clamp(1.6rem,3.4vw,2.2rem); margin-bottom: 10px; }
  .ew-help { margin-bottom: 16px; }
  .ew-question-nav { margin-top: 14px; padding-block: 10px; }
  .ew-question-nav .button { min-height: 54px; }
}
.ew-error { color: #a0342a; font-size: 1rem; margin: 14px 0; }.ew-error:empty { margin: 0; }.ew-resume { margin-bottom: 20px; }
.ew-review { margin: 30px 0; }.ew-review>div { display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; padding: 22px 0; border-bottom: 1px solid #d8e0d8; }.ew-review dt { grid-column: 1; font-size: .92rem; color: #607370; }.ew-review dd { grid-column: 1; margin: 0; font-size: 1.15rem; white-space: pre-wrap; overflow-wrap: anywhere; }.ew-review-actions { grid-column: 2; grid-row: 1/3; align-self: center; display: grid; justify-items: end; }.ew-review-errors { padding: 22px; background: #f7f4ec; border-radius: 10px; }.ew-review-errors h2 { font-size: 1.2rem; margin-bottom: 10px; }.ew-review-errors ul { margin: 0; padding-left: 20px; }.ew-review-errors .ew-text-button { text-align: left; padding-block: 6px; }.ew-actions button:disabled { opacity: .5; cursor: not-allowed; }
.ew-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }.ew-actions .button { min-height: 58px; }
.ew-pages { display: grid; gap: 30px; }.ew-document-cover { min-height: 760px; padding: 50px 35px; }.ew-document-cover .ew-cover-top,.ew-document-cover .ew-cover-bottom { font-size: .69rem; }.ew-document-cover .ew-cover-message { max-width: 36ch; font-size: 1.13rem; }
.ew-information-page { background: #fffefa; border: 1px solid #dedfd1; padding: clamp(24px,4vw,50px); overflow-wrap: anywhere; }.ew-information-page>h2 { font-size: 2.2rem; margin-bottom: 12px; }.ew-document-subtitle { color: #64736e; font-size: .9rem; letter-spacing: .06em; }.ew-document-block { padding: 20px 0; border-top: 1px solid #d9dfd3; }.ew-document-block h3,.ew-signing h3 { font-size: 1.2rem; margin-bottom: 12px; color: #365547; }.ew-document-block p { white-space: pre-wrap; margin-bottom: 0; }.ew-beneficiaries { list-style: none; padding: 0; margin: 0; }.ew-beneficiaries li { padding: 8px 0; }.ew-beneficiaries strong,.ew-beneficiaries span { display: block; }.ew-beneficiaries span { color: #62716a; font-size: .94rem; }.ew-signing { margin-top: 24px; padding: 24px; background: #f1f4ec; border-radius: 8px; }.ew-signing p:last-child { margin-bottom: 0; }.ew-document-foot { text-align: center; font-size: .75rem; margin: 30px 0 0; color: #667968; }
.ew-finish { border: 1px solid #d6dfd4; background: #fcfdf9; border-radius: 12px; padding: clamp(20px,4vw,36px); margin-top: 25px; }.ew-finish h2 { font-size: 1.9rem; margin-bottom: 24px; }.ew-finish-steps { padding-left: 25px; margin: 26px 0; }.ew-finish-steps li { padding-left: 9px; margin-bottom: 26px; }.ew-finish-steps li::marker { color: #52745e; font-weight: 700; }.ew-finish-steps h3 { font-size: 1.2rem; margin-bottom: 10px; }.ew-finish-steps p { line-height: 1.7; }.ew-guide-page a { overflow-wrap: anywhere; }
.ew-storage-dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; border: 1px solid #c7d4ca; border-radius: 14px; padding: 30px; color: #263f43; }.ew-storage-dialog::backdrop { background: #18352fc0; }.ew-storage-dialog h2 { font-size: 1.8rem; margin-bottom: 18px; }.ew-storage-dialog label { display: block; margin: 18px 0 8px; }.ew-storage-dialog .button { margin: 8px 8px 0 0; }
@media(max-width:760px) { .ew-hero { grid-template-columns: 1fr; padding-top: 38px; gap: 40px; }.ew-cover-sample { width: min(100%,420px); justify-self: center; margin-bottom: 16px; }.ew-simple-steps,.ew-future { grid-template-columns: 1fr; gap: 28px; }.ew-future { padding-inline: 0; }.ew-simple-steps h2 { margin-block: 8px; }.ew-promo { align-items: stretch; }.ew-promo>.button { align-self: flex-start; }.ew-hero-copy h1 { font-size: clamp(2.5rem,9vw,4rem); }.ew-question-nav { flex-wrap: wrap; }.ew-question-nav .button { min-width: 115px; }.ew-builder-wrap { width: calc(100% - 24px); }.ew-document-cover { min-height: 620px; padding: 34px 27px; }.ew-document-cover .ew-cover-top,.ew-document-cover .ew-cover-bottom { font-size: .53rem; }.ew-cover-art { transform: scale(.85); }.ew-actions .button { width: 100%; }.ew-toolbar { gap: 0; }.ew-question-title { font-size: 1.9rem; }.ew-review>div { gap: 8px; }.ew-information-page { padding: 24px 18px; }.ew-review dd { font-size: 1.05rem; }.ew-choice { padding: 15px; font-size: 1.1rem; } }
@media print {
  @page ew-cover { size: A4; margin: 17mm; @bottom-center { content: none; } @bottom-right { content: none; } }
  @page ew-detail { size: A4; margin: 17mm; }
  body[data-ew-phase] { background: white!important; }
  body[data-ew-phase] .site-header,body[data-ew-phase] .site-footer,body[data-ew-phase] .skip-link,body[data-ew-phase] .ew-back-home,body[data-ew-phase] .ew-toolbar,body[data-ew-phase] .ew-save-status,body[data-ew-phase] .ew-question-title,body[data-ew-phase] .ew-help,body[data-ew-phase] .ew-actions { display:none!important; }
  body[data-ew-phase] .site-main,body[data-ew-phase] .container,body[data-ew-phase] #ew-app { width:100%; max-width:none; padding:0; margin:0; background:white; border:0; box-shadow:none; }
  body[data-ew-phase] .ew-pages { display:block; }
  body[data-ew-phase] .ew-document-cover { page:ew-cover; height:260mm; min-height:0; break-after:page; padding:20mm 14mm; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  body[data-ew-phase] .ew-cover-title { font-size:46pt; }
  body[data-ew-phase] .ew-information-page { page:ew-detail; border:0; padding:0; font-size:11pt; line-height:1.45; }
  body[data-ew-phase] .ew-information-page>h2 { font-size:24pt; }
  body[data-ew-phase] .ew-document-block { break-inside:auto; padding:3mm 0; }
  body[data-ew-phase] .ew-document-block h3 { font-size:12pt; margin-bottom:2mm; }
  body[data-ew-phase] .ew-beneficiaries li { padding:1mm 0; }
  body[data-ew-phase] .ew-document-block h3 { break-after:avoid; }
  body[data-ew-phase] .ew-document-block p { orphans:3; widows:3; }
  body[data-ew-phase] .ew-signing { break-inside:avoid; padding:4mm; margin-top:4mm; }
  body[data-ew-phase] .ew-signing p { margin-bottom:2mm; }
  body[data-ew-phase] .ew-document-foot { margin-top:5mm; }
  body[data-ew-phase] .ew-guide-page { break-before:page; }
  body[data-ew-phase] .ew-finish { page:ew-detail; border:0; padding:0; margin:0; background:white; }
  body[data-ew-phase] .ew-finish-steps li { break-inside:avoid; }
  body[data-ew-phase="question"] #ew-app,body[data-ew-phase="review"] #ew-app { display:none; }
}
