/* Format pages (/epub-to-audiobook, /epub-to-m4b, /pdf-to-audiobook,
   /text-to-audiobook). Builds on home.css (shell, titles, buttons, step
   cards) and subpages.css (tiles, comparison, prose, links).

   The hero shows what happens to the reader's file: a manuscript page on
   the left, what Warblize makes of it on the right. */

.cv-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cv-ghost {
    display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
    color: var(--hn-ink); background: #fff; box-shadow: 0 0 0 1px var(--hn-line), 0 4px 10px -6px rgba(24, 24, 27, .2); text-decoration: none; transition: box-shadow .15s;
}
.cv-ghost:hover { color: var(--hn-ink); box-shadow: 0 0 0 1px var(--hn-ink-mute), 0 6px 14px -6px rgba(24, 24, 27, .25); }

.cv-flow {
    display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 0;
    max-width: 1000px; margin: 0 auto; padding: 56px 56px 48px; border-radius: 32px;
    background: radial-gradient(110% 80% at 50% 0%, #f6f1e7 0%, #ebeef7 55%, #dbe2f1 100%);
}
.cv-flow-side { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.cv-flow-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hn-dim); }
.cv-flow-file { font-size: 12.5px; color: var(--hn-ink-soft); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The manuscript page */
.cv-doc {
    position: relative; width: 250px; height: 330px; padding: 34px 28px 24px; border-radius: 6px; background: #fffdf8;
    display: flex; flex-direction: column; gap: 8px; text-align: center;
    box-shadow: 0 1px 0 #ede6d6, 0 3px 0 -1px #f7f2e7, 0 4px 0 -1px #e9e1cf, 0 30px 50px -26px rgba(24, 24, 27, .45);
    transform: rotate(-2deg);
}
.cv-doc-badge { position: absolute; top: -12px; right: -12px; height: 26px; padding: 0 10px; line-height: 26px; border-radius: 8px; background: var(--hn-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 6px 14px -6px rgba(24, 24, 27, .5); }
.cv-doc small { font-family: "Cormorant Garamond", Georgia, serif; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #8a7e68; }
.cv-doc b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.05; color: #2f2a22; }
.cv-doc-rule { width: 40px; height: 1px; margin: 6px auto 4px; background: #cbbf9f; }
.cv-doc em { font-family: Georgia, serif; font-style: italic; font-size: 12px; color: #6d6450; margin-bottom: 6px; }
.cv-doc i { display: block; height: 5px; border-radius: 3px; background: #ece6d8; }
.cv-doc i.is-short { width: 62%; margin-bottom: 8px; }

/* The arrow between them, with the brand waveform */
.cv-flow-arrow { position: relative; height: 56px; display: grid; place-items: center; }
.cv-flow-arrow::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed rgba(47, 107, 243, .35); }
.cv-flow-arrow span {
    position: relative; width: 52px; height: 52px; border-radius: 999px; background: var(--hn-blue); box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 12px 24px -10px rgba(47, 107, 243, .7);
}
.cv-flow-arrow span::after {
    content: ""; position: absolute; inset: 14px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* What Warblize makes of it */
.cv-out { width: 100%; max-width: 330px; min-height: 330px; padding: 16px 14px 10px; border-radius: 16px; background: #fff; font-size: 13px; box-shadow: 0 30px 60px -28px rgba(24, 24, 27, .45), 0 0 0 1px rgba(24, 24, 27, .05); }
.cv-out-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 10px; }
.cv-out-head b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-out-head span { font-size: 11.5px; color: var(--hn-ink-soft); white-space: nowrap; }
.cv-out-head--sub { padding-top: 12px; }
.cv-out-head--sub b { font-size: 12.5px; }
.cv-out-narrator { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--hn-fill-2); font-weight: 500; }
.cv-out-narrator em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--hn-ink-soft); }
.cv-out-chapters { list-style: none; margin: 0; padding: 0; }
.cv-out-chapters li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px; border-top: 1px solid var(--hn-line-soft); color: var(--hn-ink-2); }
.cv-out-chapters li small { margin-left: auto; color: var(--hn-ink-mute); font-variant-numeric: tabular-nums; }
.cv-out-play { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--hn-fill); color: var(--hn-ink); flex-shrink: 0; }
.cv-out-play svg { width: 9px; height: 9px; }
.cv-out-chapters li.is-on { color: var(--hn-ink); font-weight: 500; }
.cv-out-chapters li.is-on .cv-out-play { background: var(--hn-blue); color: #fff; }

.cv-out-file { display: flex; align-items: center; gap: 12px; padding: 0 2px 12px; }
.cv-out-cover {
    width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; padding: 6px; text-align: center;
    background: linear-gradient(160deg, #6d8a5a, #3f5a46); box-shadow: 0 6px 14px -6px rgba(24, 24, 27, .45);
}
.cv-out-cover b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 10.5px; line-height: 1.05; color: #f3ead6; }
.cv-out-file-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-out-file-copy b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-out-file-copy small { font-size: 11.5px; color: var(--hn-ink-soft); }
.cv-out-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cv-out-tags span { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 8px; background: var(--hn-fill-2); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-out-tags small { font-size: 10px; font-weight: 500; color: var(--hn-ink-mute); }

.cv-hero-note { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--hn-ink-soft); }
.cv-hero-note a { color: var(--hn-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--hn-line); text-underline-offset: 3px; }

/* The step cards come from the landing page; give them room under the head. */
.cv-section .hn-steps { margin-top: 8px; }

@media (max-width: 860px) {
    .cv-flow { grid-template-columns: minmax(0, 1fr); padding: 40px 20px 32px; gap: 8px; }
    .cv-flow-arrow { height: 72px; }
    .cv-flow-arrow::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed rgba(47, 107, 243, .35); }
    .cv-doc { width: 220px; height: 290px; }
}
@media (max-width: 640px) {
    .cv-flow { border-radius: 24px; }
    .cv-cta .hn-btn, .cv-cta .cv-ghost { flex: 1 1 100%; justify-content: center; }
}
