/* ==========================================================================
   Reusable components: buttons, hero slider, comparison slider, package
   cards, book rows, step list, accordion.
   ========================================================================== */

/* -------------------------------------------------------------- buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--ink);
}

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 253, 248, .6);
    color: var(--white);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
    background: rgba(255, 253, 248, .12);
    border-color: var(--white);
    color: var(--white);
}

.btn--ghost-dark {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn--ghost-dark:hover,
.btn--ghost-dark:focus-visible {
    background: var(--ink);
    color: var(--paper);
}

.btn--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn--ink:hover,
.btn--ink:focus-visible {
    background: var(--slate);
    border-color: var(--slate);
    color: var(--white);
}

.btn--block { width: 100%; }
.btn--small { min-height: 46px; padding: 11px 20px; font-size: .96rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.header-cta { display: none; }

@media (min-width: 620px) {
    .header-cta { display: inline-flex; flex: 0 0 auto; }
}

/* --------------------------------------------------------------- slider -- */

.hero {
    position: relative;
    background: var(--ink-soft);
    isolation: isolate;
}

.hero__viewport {
    position: relative;
    height: clamp(470px, calc(100vh - 214px), 620px);
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center right;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Slide one: the portrait occupies the right of the panel at close to its
   natural scale rather than being blown up to cover the whole banner. */
.hero__slide--portrait .hero__media {
    left: auto;
    right: 0;
    width: min(56%, 740px);
    background-image: url("../images/hero/author-portrait-duotone.jpg");
    /* Scaled to the panel height so the top of the head is never clipped. */
    background-size: auto 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
}

.hero__slide--portrait .hero__scrim {
    background:
        linear-gradient(96deg,
            rgba(20, 32, 42, 1) 0%,
            rgba(20, 32, 42, 1) 38%,
            rgba(20, 32, 42, .62) 52%,
            rgba(20, 32, 42, 0) 68%),
        linear-gradient(0deg,
            rgba(20, 32, 42, .78) 0%,
            rgba(20, 32, 42, 0) 34%);
}

/* Slide two: pricing, on deep slate with the typewriter mark behind. */
.hero__slide--pricing .hero__media {
    background: var(--ink-soft);
}

.hero__slide--pricing .hero__scrim {
    background:
        url("../images/branding/typewriter-mark-white.png") no-repeat 88% 118%/clamp(320px, 34vw, 520px) auto,
        linear-gradient(100deg, #1b2932 0%, #2c414e 100%);
    opacity: 1;
}

.hero__slide--pricing .hero__scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 32, 42, .55) 0%, rgba(20, 32, 42, .1) 70%);
}

/* Slide three: the books, on cream with ink copy. */
.hero__slide--books .hero__media { background: var(--cream); }

.hero__slide--books .hero__scrim {
    background:
        url("../images/texture/paper-grain.png") repeat 0 0/320px,
        linear-gradient(90deg, var(--cream) 46%, var(--cream-deep) 100%);
    background-blend-mode: multiply, normal;
}

.hero__inner {
    position: relative;
    display: grid;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    width: 100%;
    /* Leaves room for the control bar that sits on the same baseline. */
    padding-bottom: clamp(56px, 6vw, 76px);
}

.hero__copy { max-width: 34rem; }

.hero__slide--portrait .hero__copy,
.hero__slide--pricing .hero__copy { color: var(--white); }

.hero__slide--portrait h1,
.hero__slide--portrait h2,
.hero__slide--pricing h1,
.hero__slide--pricing h2 { color: var(--white); }

/* Only the first banner carries the page H1. The others use H2 and are
   sized to match so the banner reads the same either way. */
.hero h1,
.hero h2 {
    margin-bottom: 18px;
    font-size: clamp(2.05rem, 3.7vw, 3.05rem);
    line-height: 1.12;
}

.hero__lede {
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    line-height: 1.55;
    margin-bottom: 26px;
}

.hero__slide--portrait .hero__lede,
.hero__slide--pricing .hero__lede { color: rgba(255, 253, 248, .88); }

.hero__slide--books .hero__lede { color: var(--slate-mid); }

.hero__credit {
    max-width: 30rem;
    margin-top: 26px;
    padding-top: 15px;
    border-top: 1px solid var(--rule-light);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.hero__slide--books .hero__credit {
    border-top-color: var(--rule-strong);
    color: var(--gold-deep);
}

/* Price block on slide two */
.hero__price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
}

.hero__price span {
    font-family: var(--font-mono);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 253, 248, .78);
}

/* Book stack on slide three */
.hero__stack {
    display: none;
    position: relative;
    justify-self: end;
    align-self: center;
}

.hero__stack img {
    width: clamp(150px, 15vw, 215px);
    box-shadow: var(--shadow-cover);
}

.hero__stack img:first-child {
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
}

.hero__stack img:last-child {
    position: absolute;
    top: 40px;
    left: 62%;
    z-index: 1;
    transform: rotate(5deg);
    width: clamp(126px, 12vw, 180px);
}

@media (min-width: 860px) {
    .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .hero__stack { display: block; }
}

/* Slider controls sit together on one baseline inside the page gutter so
   neither the arrows nor the markers land on top of the headline. */

.hero__controls {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(18px, 2.6vw, 30px);
    z-index: 6;
}

.hero__controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero__dots {
    display: flex;
    gap: 9px;
}

/* The visible marker stays 5px, but padding gives it a touch safe hit area. */
.hero__dots button {
    box-sizing: content-box;
    width: 42px; height: 5px;
    padding: 15px 0;
    border: 0;
    background-color: rgba(255, 253, 248, .4);
    background-clip: content-box;
    transition: background-color .16s ease;
}

/* Use background-color, not the shorthand. The shorthand would reset
   background-clip and repaint the whole padding box. */
.hero__dots button.is-active { background-color: var(--gold-bright); }

.hero__arrows {
    display: none;
    gap: 8px;
}

@media (min-width: 720px) {
    .hero__arrows { display: flex; }
}

.hero__arrow {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    background: rgba(255, 253, 248, .1);
    border: 1px solid rgba(255, 253, 248, .38);
    color: var(--white);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.hero__arrow svg { width: 15px; height: 15px; }

/* --------------------------------------------------------- motto strip -- */

.motto {
    background: var(--gold);
    color: var(--ink);
}

.motto__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 26px;
    padding-block: 16px;
    font-family: var(--font-mono);
    font-size: clamp(.86rem, 1.5vw, 1.02rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
}

.motto__inner span { white-space: nowrap; }

.motto__dot {
    width: 5px; height: 5px;
    background: var(--ink);
    border-radius: 50%;
    letter-spacing: 0;
}

/* ------------------------------------------------------- format panels -- */

.formats {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .formats {
        grid-template-columns: 1.22fr 1fr;
        grid-template-rows: auto auto;
    }
    .formats > :first-child { grid-row: span 2; }
}

.format {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 40px);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--gold);
}

.format--lead {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
    color: rgba(255, 253, 248, .88);
}

.format--lead h3 { color: var(--white); }

.format__no {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .2em;
    color: var(--gold-deep);
    margin-bottom: 14px;
}

.format--lead .format__no { color: var(--gold-bright); }

.format h3 { margin-bottom: 12px; }
.format p { font-size: 1rem; }

/* Fills the taller lead panel with real content rather than leaving a blank
   lower half under a short paragraph. The quote carries the spare height so
   the breathing room reads as spacing after the intro, not a hole above the
   fact rows. */
.format--lead .format__quote { margin-top: auto; }
.format--lead .format__facts { margin-top: 0; }

.format__quote {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 24px 0 4px;
    border-top: 1px solid var(--rule-light);
}

.format__quote p {
    font-family: var(--font-display);
    font-size: clamp(1.16rem, 1.9vw, 1.55rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--gold-bright);
    max-width: 17ch;
}

.format__quote img {
    flex: 0 0 auto;
    width: clamp(64px, 8vw, 96px);
    opacity: .9;
}

.format__facts {
    margin-top: auto;
    padding-top: 22px;
}

.format__facts li {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--rule);
    font-size: .96rem;
}

.format--lead .format__facts li { border-top-color: var(--rule-light); }

.format__facts b {
    flex: 0 0 auto;
    min-width: 116px;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding-top: 3px;
}

.format--lead .format__facts b { color: var(--gold-bright); }

.format__lead-media {
    margin: 0 0 26px;
    border: 1px solid var(--rule-light);
}

/* ---------------------------------------------------- author two column -- */

.author-block {
    display: grid;
    gap: clamp(28px, 4vw, 60px);
    align-items: stretch;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .author-block { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

.author-block__media {
    position: relative;
    min-height: 100%;
}

.author-block__media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: 50% 28%;
}

.author-block__media::after {
    content: "";
    position: absolute;
    left: -14px; bottom: -14px;
    width: 108px; height: 108px;
    background: var(--gold);
    z-index: -1;
}

.author-block__body { align-self: center; }
.author-block__body h2 { margin-bottom: 16px; }
.author-block__body p + p { margin-top: 16px; }

.author-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 28px 0 30px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.author-titles img {
    width: 84px;
    box-shadow: var(--shadow-cover);
}

.author-titles__note {
    flex: 1 1 220px;
    font-size: .96rem;
    color: var(--slate-mid);
}

/* ------------------------------------------------ before / after slider -- */

.compare {
    display: grid;
    gap: clamp(26px, 4vw, 56px);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 940px) {
    .compare { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

.compare__figure { margin: 0; }

.compare__frame {
    position: relative;
    width: 100%;
    /* Square, so the portrait sheet inside has room for the full page and the
       certificate line at the foot of it. */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream-deep);
    border: 1px solid var(--rule-strong);
    touch-action: pan-y;
    user-select: none;
}

.compare__pane {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(20px, 3vw, 40px);
}

.compare__pane--after {
    clip-path: inset(0 0 0 var(--split, 50%));
}

.compare__sheet {
    display: flex;
    flex-direction: column;
    width: min(100%, 430px);
    aspect-ratio: 3 / 4;
    max-height: 100%;
    padding: clamp(18px, 2.6vw, 32px);
    background: #fdfbf3;
    box-shadow: 0 8px 24px rgba(20, 32, 42, .18);
    border: 1px solid rgba(20, 32, 42, .12);
    font-family: var(--font-mono);
    font-size: clamp(.72rem, 1.05vw, .86rem);
    line-height: 1.8;
    color: #38342e;
    overflow: hidden;
}

.compare__sheet p { max-width: none; }

.compare__head {
    font-size: .82em;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(56, 52, 46, .55);
}

.compare__prompt {
    margin: .9em 0 1.1em;
    padding-bottom: .9em;
    border-bottom: 1px dashed rgba(56, 52, 46, .35);
    color: rgba(56, 52, 46, .8);
}

.compare__lines { flex: 1; }

.compare__sheet .caret {
    display: inline-block;
    width: .62em; height: 1.05em;
    background: #38342e;
    vertical-align: -.16em;
    animation: blink 1.15s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.compare__stamp {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(56, 52, 46, .45);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .78em;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.compare__tag {
    position: absolute;
    top: 14px;
    z-index: 4;
    padding: 7px 14px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.compare__tag--before { left: 14px; }
.compare__tag--after  { right: 14px; background: var(--gold); color: var(--ink); }

.compare__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--split, 50%);
    z-index: 5;
    width: 3px;
    margin-left: -1.5px;
    background: var(--gold);
}

.compare__grip {
    position: absolute;
    top: 50%; left: 50%;
    width: 54px; height: 54px;
    transform: translate(-50%, -50%);
    background: var(--gold);
    border: 0;
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(20, 32, 42, .3);
}

.compare__grip svg { width: 26px; height: 16px; }

.compare__range {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare__caption {
    margin-top: 14px;
    font-size: .92rem;
    color: var(--slate-mid);
}

/* ------------------------------------------------------------ packages -- */

.packages {
    position: relative;
    display: grid;
    gap: clamp(20px, 2.6vw, 30px);
    grid-template-columns: 1fr;
}

@media (min-width: 880px) {
    .packages { grid-template-columns: 1fr 1fr; }
}

.package {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    box-shadow: var(--shadow-card);
}

.package__head {
    padding: 26px clamp(24px, 3vw, 34px) 22px;
    background: var(--ink);
    color: var(--white);
}

.package--gold .package__head { background: var(--gold-deep); }

.package__head h3 {
    color: var(--white);
    font-size: clamp(1.12rem, 1.7vw, 1.34rem);
    line-height: 1.28;
}

.package__price {
    display: block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--gold-bright);
}

.package--gold .package__price { color: var(--white); }

.package__price small {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 253, 248, .92);
}

.package__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(24px, 3vw, 34px);
}

.package__list li {
    position: relative;
    padding: 12px 0 12px 34px;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
}

.package__list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 20px;
    width: 13px; height: 7px;
    border-left: 2.5px solid var(--gold);
    border-bottom: 2.5px solid var(--gold);
    transform: rotate(-45deg);
}

.package__body .btn { margin-top: auto; }
.package__body .btn { margin-top: 26px; }

.addon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 22px;
    margin-top: clamp(20px, 2.6vw, 30px);
    padding: 22px clamp(20px, 3vw, 34px);
    background: var(--ink-soft);
    color: var(--white);
    text-align: center;
}

.addon strong {
    font-family: var(--font-display);
    font-size: clamp(1.16rem, 2vw, 1.5rem);
    color: var(--gold-bright);
}

.addon p { margin: 0; color: rgba(255, 253, 248, .86); }

.pricing-notes {
    margin-top: clamp(22px, 3vw, 34px);
    padding: clamp(20px, 2.6vw, 28px);
    background: var(--cream-deep);
    border-left: 4px solid var(--gold);
}

.pricing-notes p { font-size: .98rem; color: var(--slate-mid); }
.pricing-notes p + p { margin-top: 10px; }

/* --------------------------------------------------------------- books -- */

.book-row {
    display: grid;
    gap: clamp(22px, 3vw, 42px);
    grid-template-columns: 1fr;
    padding-block: clamp(26px, 3vw, 40px);
    border-top: 1px solid var(--rule);
    align-items: center;
}

.book-row:last-of-type { border-bottom: 1px solid var(--rule); }

@media (min-width: 720px) {
    .book-row { grid-template-columns: 190px minmax(0, 1fr); }
}

.book-row__cover img {
    width: 100%;
    max-width: 190px;
    box-shadow: var(--shadow-cover);
}

/* Forthcoming title. Styled as a deliberate placeholder card carrying the
   brand mark, not as a broken image slot. */
.book-row__placeholder {
    display: grid;
    place-items: center;
    gap: 12px;
    width: 100%;
    max-width: 190px;
    aspect-ratio: 2 / 3;
    padding: 20px 16px;
    background: var(--ink-soft);
    border: 1px solid var(--ink-soft);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold-bright);
    box-shadow: var(--shadow-cover);
}

.book-row__placeholder img {
    width: 56px;
    opacity: .55;
}

.book-row h3 { margin-bottom: 6px; }

.book-row__series {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.book-row p { margin-top: 12px; font-size: 1rem; }

.book-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.book-row__pending {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--slate-mid);
}

/* --------------------------------------------------------------- steps -- */

.steps {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    counter-reset: step;
}

@media (min-width: 780px) {
    .steps { grid-template-columns: repeat(5, 1fr); }
}

.step {
    position: relative;
    padding: 30px clamp(16px, 2vw, 24px) 30px 0;
    border-top: 3px solid var(--rule-light);
}

@media (min-width: 780px) {
    .step { padding-right: clamp(14px, 1.6vw, 24px); }
}

.step:first-child { border-top-color: var(--gold); }

.step__no {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .2em;
    color: var(--gold-bright);
}

.step h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: var(--white);
}

.step p { font-size: .96rem; }

/* ----------------------------------------------------------- questions -- */

.faq { border-top: 1px solid var(--rule); }

.faq__item { border-bottom: 1px solid var(--rule); }

.faq__trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 1.6vw, 1.24rem);
    font-weight: 500;
    color: var(--ink);
}

.faq__trigger:hover { color: var(--gold-deep); }

.faq__sign {
    position: relative;
    flex: 0 0 auto;
    width: 22px; height: 22px;
    margin-top: 6px;
}

.faq__sign::before,
.faq__sign::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    background: var(--gold-deep);
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
}

.faq__sign::before { width: 18px; height: 2.5px; }
.faq__sign::after  { width: 2.5px; height: 18px; }

.faq__trigger[aria-expanded="true"] .faq__sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq__panel { display: none; padding: 0 0 24px; }
.faq__panel.is-open { display: block; }
.faq__panel p { color: var(--slate-mid); }
.faq__panel p + p { margin-top: 12px; }

/* ------------------------------------------------------- download band -- */

.download {
    display: grid;
    gap: clamp(26px, 4vw, 56px);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 820px) {
    .download { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
}

.download__preview {
    position: relative;
    justify-self: start;
}

.download__preview img {
    width: min(100%, 330px);
    border: 1px solid var(--rule-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
}

/* ------------------------------------------------------------ cta band -- */

.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--ink-soft);
    /* The band is dark, so every text colour inside it is set explicitly.
       Inheriting the page defaults here would print near black on near black. */
    color: rgba(255, 253, 248, .88);
}

.cta-band h2 { color: var(--white); }
.cta-band p  { color: rgba(255, 253, 248, .86); }

.cta-band::before {
    content: "";
    position: absolute;
    right: -60px; bottom: -80px;
    width: clamp(280px, 30vw, 460px);
    aspect-ratio: 1 / .99;
    background: url("../images/branding/typewriter-mark-white.png") no-repeat center/contain;
    opacity: .07;
}

.cta-band__inner {
    position: relative;
    display: grid;
    gap: clamp(22px, 3vw, 42px);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 880px) {
    .cta-band__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
    .cta-band .btn-row { justify-content: flex-end; }
}

.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: 14px; }
