/*
 * Ink hero band (« Net » dark header), first drawn on /creation-web (css/custom-offers.css) and shared here by the hosting
 * offers (storefront/offers/page), the domain page (storefront/domain), the knowledge base (guides/index) and the contact
 * page: ink background, white title, sky-blue kicker, and on the right a dark card whose rows end in a bar (storage per
 * plan, guides per topic) or, on the domain page, in what every domain comes with.
 * The band runs full width; its content sits on the header's column.
 */
.hero-ink { background: var(--ink); color: #fff; }
.workspace.hero-ink,
.offer-page > .workspace.hero-ink { width: 100%; max-width: none; margin-inline: 0; padding-top: 40px; padding-bottom: 76px; padding-inline: max(var(--gutter, 16px), calc((100% - var(--container, 1280px)) / 2)); }
.hero-ink :is(.offer-back, .back-link) { color: #cfd6e3; }
.hero-ink :is(.offer-back, .back-link):hover { color: #fff; }
.hero-ink :is(.offer-kicker, .eyebrow) { color: var(--dot); }
/* Two classes: the page stylesheets (offers.css loads after this one) give .offer-hero h1 its ink colour. */
.hero-ink h1,
.hero-ink h1.hero-ink-title { color: #fff; }
.hero-ink h1.hero-ink-title { max-width: 760px; margin: 4px 0 22px; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-ink :is(.offer-lead, .hero-ink-lead),
.hero-ink .guide-hero p:not(.eyebrow),
.hero-ink .contact-hero-copy > p:not(.eyebrow) { max-width: 600px; color: #cfd6e3; }
.hero-ink .offer-hero-orbit { display: none; }
.hero-ink .contact-trust-points span { color: #cfd6e3; }
/* Knowledge base: under the band, the guides take the same full width and the header's column. */
.guide-hero-band + .guide-shell { max-width: none; padding-top: 48px; padding-inline: max(var(--gutter, 16px), calc((100% - var(--container, 1280px)) / 2)); }

.hero-ink-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 56px; }
.hero-ink-copy { flex: 1 1 520px; min-width: 0; }
.hero-ink-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ink-ghost,
.hero-ink .button.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 20px; border: 1px solid #4a5468; border-radius: 12px; background: transparent; color: #fff; font-weight: 600; line-height: 1.4; text-decoration: none; }
.hero-ink-ghost:hover,
.hero-ink .button.ghost:hover { border-color: #fff; background: transparent; color: #fff; }

.hero-ink-card { flex: 1 1 400px; min-width: 0; max-width: 540px; padding: 28px; border: 1px solid #2a3449; border-radius: var(--radius-lg, 22px); background: #1a2336; color: #fff; }
.hero-ink-card-title { margin: 0 0 18px; color: #cfd6e3; font-family: var(--font-mono); font-size: .8rem; }
.hero-ink-card ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.hero-ink-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; font-size: .95rem; }
.hero-ink-row-name { color: #fff; font-weight: 600; }
a.hero-ink-row-name { text-decoration: none; }
a.hero-ink-row-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-ink-row-value { color: #cfd6e3; white-space: nowrap; }
.hero-ink-bar { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: 999px; background: #2a3449; }
.hero-ink-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.hero-ink-card li:first-child .hero-ink-bar > span { background: var(--dot); }
.hero-ink-card li:last-child:not(:first-child) .hero-ink-bar > span { background: #fff; }
.hero-ink-card-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #2a3449; color: #cfd6e3; font-size: .88rem; line-height: 1.5; }
.hero-ink :focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }

@media (max-width: 760px) {
    .workspace.hero-ink,
    .offer-page > .workspace.hero-ink { padding-top: 25px; padding-bottom: 48px; }
    .hero-ink-card { padding: 22px; }
    .hero-ink-actions > a,
    .hero-ink-actions > button { flex: 1 1 100%; }
}

/*
 * Entrance, like the domain and contact pages (css/motion.css, whose keyframes it uses): back link and kicker, then the
 * title, the lead and the actions one after the other; the card rises beside them, its rows follow one another and each
 * bar fills from the left. Played at every visit; the offer pages skip it only when the visitor comes from another
 * offer family (.offer-hero-seen, storefront/offers/page.blade.php). Nothing moves with reduced motion.
 */
@media (prefers-reduced-motion: no-preference) {
    .hero-ink.offer-hero > .hero-ink-grid { animation: none; }
    .guide-hero-band > .back-link,
    .hero-ink-copy > *,
    .hero-ink-card { animation: motion-rise 0.8s var(--motion-ease) var(--enter, 0s) backwards; }
    .hero-ink-copy > :nth-child(1) { --enter: 0.16s; }
    .hero-ink-copy > :nth-child(2) { --enter: 0.24s; }
    .hero-ink-copy > :nth-child(3) { --enter: 0.32s; }
    .hero-ink-copy > :nth-child(n + 4) { --enter: 0.4s; }
    .hero-ink-card { --enter: 0.2s; }
    /* --enter is set again on each row: it would otherwise inherit the card's 0.2s. */
    .hero-ink-card li { --enter: 0.7s; animation: motion-rise-short 0.6s var(--motion-ease) var(--enter) backwards; }
    .hero-ink-card li:nth-child(2) { --enter: 0.78s; }
    .hero-ink-card li:nth-child(3) { --enter: 0.86s; }
    .hero-ink-card li:nth-child(n + 4) { --enter: 0.94s; }
    .hero-ink-bar > span { transform-origin: left center; animation: hero-ink-fill 0.9s var(--motion-ease) calc(var(--enter, 0.7s) + 0.2s) backwards; }
    .hero-ink-card-note { animation: motion-fade 0.6s ease 1.1s backwards; }

    :root.offer-hero-seen .hero-ink :is(.hero-ink-copy > *, .hero-ink-card, .hero-ink-card li, .hero-ink-bar > span, .hero-ink-card-note) { animation: none; }
}

@keyframes hero-ink-fill {
    from { scale: 0 1; }
}
