.preview-flow h1[tabindex="-1"]:focus,
#contact-received-title:focus { outline: none; }
.preview-flow {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 80% 52%, #2e3d6b, transparent 58%), linear-gradient(145deg, #10182e 20%, #1e2b50 100%);
}
.preview-flow > main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
.preview-flow .flow-file, .preview-flow .flow-processing { margin-block: auto; }
.flow-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom));
  background: #10182e;
  color: #c8d6ef;
}
.flow-footer a { color: inherit; font-size: .875rem; }
.flow-file.hero { padding: clamp(37px, 7vw, 78px) 0; background: transparent; text-align: center; }
.preview-flow noscript { color: #d3e2f7; text-align: center; }
.flow-file h1, .flow-progress h1, .flow-result h1 {
  margin: 0;
  font: 800 clamp(1.95rem, 5vw, 3.45rem)/1.08 var(--sans);
  letter-spacing: -.06em;
  text-wrap: balance;
}
.flow-file h1 { max-width: 700px; margin: 0 auto 25px; }
.flow-file h1 strong { color: #ffe0ae; }
.flow-file-note { color: #d3e2f7; font-size: .83rem; }
.flow-processing {
  max-width: 590px;
  padding-block: clamp(28px, 6vw, 62px);
  color: #f7f9ff;
  text-align: center;
}
.flow-progress { margin: 0 auto 22px; }
.flow-progress .press-art {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border: 1px solid #9cb0e349;
  background: #182644;
  box-shadow: 0 10px 26px #0b142c55, 0 0 21px #8aa9fa29;
}
.flow-progress p { margin: 11px auto; color: #d3e2f7; }
#loading-estimate { max-width: 385px; font-size: .875rem; line-height: 1.45; text-wrap: balance; }
.flow-meter {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(385px, 100%);
  margin: 15px auto 0;
}
.flow-meter progress {
  appearance: none;
  flex: 1;
  width: 0;
  height: 9px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #b4c7f035;
}
.flow-meter progress::-webkit-progress-bar { background: #b4c7f035; border-radius: 99px; }
.flow-meter progress::-webkit-progress-value { background: #67efad; border-radius: 99px; }
.flow-meter progress::-moz-progress-bar { background: #67efad; border-radius: 99px; }
#loading-percent { min-width: 3ch; color: #a7f4cc; font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: end; }
.flow-contact {
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #a9bde646;
  border-radius: 18px;
  text-align: start;
  background: #233453;
  box-shadow: 0 14px 37px #070e244d, inset 0 1px 0 #f6f9ff0d;
}
.flow-step-count { margin: 0 0 9px; color: #a7f4cc; font-size: .77rem; font-weight: 800; text-align: center; }
.flow-contact fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.flow-contact label:not(.flow-consent) { display: block; font-size: 1.08rem; font-weight: 800; }
.flow-contact fieldset > input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 7px 0 4px;
  padding: 8px 12px;
  border: 1px solid #adc0e26b;
  border-radius: 9px;
  background: #14213b;
  color: #f7f9ff;
  color-scheme: dark;
  font-size: 16px;
}
.flow-contact input::placeholder { color: #aebfda; }
.flow-contact :is(input, .text-button):focus-visible { outline-color: #83e9ba; }
.flow-consent { display: flex; align-items: start; gap: 9px; margin: 13px 0 0; color: #d9e4f7; font-size: .83rem; }
.flow-consent input { flex: 0 0 16px; height: 16px; margin: 3px 0 0; color-scheme: dark; accent-color: #67efad; }
.flow-consent a { color: #adf4ce; text-underline-offset: .17em; }
.flow-contact-actions { display: grid; gap: 4px; margin-top: 16px; }
.flow-contact-actions .primary { width: 100%; }
.flow-contact-actions .primary:disabled {
  color: #bdcbe1;
  background: #334564;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
  transform: none;
}
.flow-contact[aria-busy="true"] .primary:disabled { cursor: wait; }
.flow-contact-actions .text-button { justify-self: center; min-height: 44px; color: #ddedff; }
.flow-contact-error { margin: 12px 0 0; color: #ffd1c9; font-size: .86rem; text-align: center; }
.flow-confirmation { border-color: #83e9ba59; text-align: center; }
.flow-confirmation:not([hidden]) {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.confirmation-check {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #86eeb5;
  color: #103323;
  font: 800 1.5rem/1 var(--sans);
}
.flow-confirmation h2 { margin: 0; color: #f7f9ff; font: 750 1.25rem/1.2 var(--sans); }
.flow-confirmation p { margin: 6px 0 0; color: #d3e2f7; font-size: .94rem; line-height: 1.45; }
.flow-result {
  flex: 1 0 auto;
  padding-block: clamp(29px, 6vw, 58px) calc(116px + env(safe-area-inset-bottom));
}
.flow-result h1 { max-inline-size: 680px; color: #111; }
#print-warning {
  max-width: 650px;
  margin: 0 auto 20px;
  text-align: center;
  text-wrap: balance;
}
.flow-result h1 strong {
  padding-inline: .07em;
  border-radius: .08em;
  background: linear-gradient(transparent 54%, #8cf2b7 54% 91%, transparent 91%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.flow-book-pages {
  display: grid;
  gap: clamp(15px, 3vw, 30px);
  max-width: 650px;
  margin-inline: auto;
  container-type: inline-size;
}
.flow-book-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25em;
  min-height: 145cqi;
  padding: clamp(28px, 10cqi, 68px) clamp(22px, 10cqi, 68px) clamp(16px, 5cqi, 33px);
  border: 1px solid #e5dfd3;
  border-radius: 6px;
  background: #fffdf8;
  color: #111;
  box-shadow: 0 7px 20px #29201715;
  font: 400 clamp(1rem, 3.4cqi, 1.23rem)/1.65 var(--book);
}
.flow-book-text { overflow-wrap: anywhere; }
.flow-book-text p { margin: 0 0 .8em; text-align: start; }
.flow-book-text h3 {
  margin: 9% 0 10%;
  font: 650 clamp(1.55rem, 6.3cqi, 2.55rem)/1.12 var(--book);
  text-align: center;
  text-wrap: balance;
}
.flow-book-folio { font-size: .82em; text-align: center; }
.flow-book-page-locked { pointer-events: none; user-select: none; }
.flow-book-page-locked .flow-book-text { min-height: 78cqi; }
.flow-book-page-locked .locked-thumbnail { display: block; width: 100%; height: auto; filter: blur(5px); }
.flow-book-page-studio {
  padding: 0;
  aspect-ratio: 16 / 23;
  overflow: hidden;
  background: #fff;
}
.flow-book-page-studio img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flow-book-page-studio.flow-book-page-locked img { filter: blur(10px); transform: scale(1.03); }
.flow-book-page-locked .mask-text { height: 12cqi; }
.flow-book-page-locked .mask-chapter { height: 8cqi; }
.flow-book-offer {
  padding: clamp(25px, 5vw, 44px) clamp(16px, 5vw, 42px);
  border: 1px solid #3f547b;
  border-radius: 18px;
  background: radial-gradient(ellipse at 85% 0, #2e4267, transparent 76%), #141f37;
  color: #f7f9ff;
  text-align: center;
  box-shadow: 0 12px 25px #111b3530, inset 0 1px 0 #ffffff16;
}
.flow-book-offer h2 {
  margin: 0 auto;
  font: 750 clamp(1.5rem, 4.5vw, 2.45rem)/1.12 var(--sans);
  letter-spacing: -.047em;
  text-wrap: balance;
}
.flow-book-offer h2 strong { color: #9af5c6; }
.flow-book-offer p {
  margin: 12px auto 20px;
  color: #d3e2f7;
  text-wrap: balance;
}
.flow-book-offer .primary {
  max-width: 100%;
  padding-inline: clamp(10px, 4vw, 24px);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #c2ffdbb3, 0 0 16px #51f3a673;
}
.flow-checkout-bar {
  position: fixed;
  z-index: 5;
  inset: auto 0 max(14px, calc(8px + env(safe-area-inset-bottom)));
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
}
.flow-checkout-bar .primary {
  min-height: 54px;
  padding-inline: clamp(13px, 4vw, 26px);
  border: 1px solid #ecfff3b0;
  border-radius: 999px;
  background: #71f2ad;
  color: #092c1d;
  box-shadow: 0 7px 27px #12432a40, 0 0 19px #68eca67a, inset 0 1px 2px #fff9, inset 0 -2px 4px #2aa66835;
  animation: none;
  font-size: clamp(.8rem, 3.8vw, 1rem);
}
.flow-checkout-bar .primary:hover { background: #8af7be; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .flow-checkout-bar .primary {
    background: linear-gradient(145deg, #b9ffd8c9, #67eda4be 58%, #53dd94c9);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
  .flow-checkout-bar .primary:hover { background: #89f7bfcf; }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-book-offer .primary {
    background-image: linear-gradient(108deg, transparent 38%, #bdffd459 45%, #e8ffefcc 50%, #bdffd459 55%, transparent 62%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    animation: offer-pulse 2.8s ease-in-out infinite, offer-sheen 2.8s ease-in-out infinite;
  }
  @keyframes offer-pulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.045; box-shadow: inset 0 0 0 1px #dcffe9, 0 0 30px 4px #51f3a699; }
  }
  @keyframes offer-sheen {
    0%, 12% { background-position: 100% center; }
    72%, 100% { background-position: 0% center; }
  }
  .flow-confirmation:not([hidden]) { animation: contact-received-enter .32s ease-out; }
  @keyframes contact-received-enter { from { opacity: 0; transform: translateY(5px); } }
  .flow-meter progress::-webkit-progress-value { transition: width .35s ease-out; }
  .flow-meter progress::-moz-progress-bar { transition: width .35s ease-out; }
  .flow-checkout-bar { animation: checkout-enter .32s ease-out; }
  @keyframes checkout-enter { from { translate: 0 9px; } }
}
