@charset "utf-8";

/*
    Marketing suite - /features/marketing.

    ? A campaign has an order to it (who, what, when, then what happened), so the page follows one
    ? through it, the way the other feature pages follow a job, a day and a part. The hero is the
    ? send screen with the work already done, played once, field by field. It ends on the two things a
    ? shop owner wants to know before pressing Send: who is being left out, and that the audience is
    ? worked out again when the campaign starts.

    ? The page closes on what stays with the shop - consent, DNS, one language per message. A tool
    ? that says so is easier to trust than one that promises everything.

    ? Same ground as the rest of the site. Scoped under .marketing-page so the shared components keep
    ? their look elsewhere.
*/

.marketing-page {
    --mkt-concrete: #e8ebee;
    --mkt-paper: #f4f6f7;
    --mkt-line: #cdd4da;
    --mkt-ink: #151b21;
    --mkt-steel: #1f272f;
    --mkt-text: #36424d;
    --mkt-muted: #55616c;
    --mkt-red: #fb172b;
    --mkt-red-dark: #d9101f;

    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-stretch: 100%;
    color: var(--mkt-text);
}

/*  The display voice, shared with the other pages: the same family pulled condensed and heavy */
.marketing-page .mkt-hero-title,
.marketing-page .mkt-section-title,
.marketing-page .stop-label,
.marketing-page .stop-title,
.marketing-page .rule-name,
.marketing-page .mkt-yours-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.marketing-page a:focus-visible {
    outline: 3px solid var(--mkt-ink);
    outline-offset: 3px;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the panel is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

.marketing-page .mkt-hero {
    position: relative;
    background-color: var(--mkt-ink);
    color: #c3ccd5;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

/*  The red bay line, as on the other pages */
.marketing-page .mkt-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--mkt-red) 0 28px, transparent 28px 48px);
}

.marketing-page .mkt-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.marketing-page .mkt-hero-title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.96;
    color: #ffffff;
    max-width: 15ch;
    text-wrap: balance;
}

.marketing-page .mkt-hero-lede {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 52ch;
}

.marketing-page .mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/*  The quiet button, drawn for the dark ground */
.marketing-page .btn-mkt-ghost,
.marketing-page .btn-mkt-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.marketing-page .btn-mkt-ghost:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--mkt-ink);
}

/*  The panel --------------------------------------------------------------------------------------- */

.marketing-page .camp-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 470px;
    background-color: var(--mkt-paper);
    border-radius: 14px;
    padding: 0 22px 18px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

.marketing-page .camp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--mkt-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--mkt-ink);
}

.marketing-page .camp-card-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mkt-muted);
}

.marketing-page .camp-card-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1f9d55;
}

.marketing-page .camp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 18px 0 4px;
}

/*  ? The one thing on the page that moves by itself: the panel fills in once, in order. */
.marketing-page .camp-field,
.marketing-page .camp-line {
    animation: camp-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.7s);
}

.marketing-page .camp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.marketing-page .camp-field-wide {
    grid-column: 1 / -1;
}

.marketing-page .camp-field-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mkt-muted);
}

/*  Plain text boxes, because that is what they are: anything read wrong can be typed over */
.marketing-page .camp-field-value {
    display: block;
    min-height: 42px;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid var(--mkt-line);
    border-radius: 6px;
    font-size: 15.5px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--mkt-ink);
    font-variant-numeric: tabular-nums;
}

.marketing-page .camp-field-empty {
    border-style: dashed;
    border-color: var(--mkt-red);
}

.marketing-page .camp-line {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    text-align: center;
}

/*  What the software did, as opposed to a field. Dashed, like paint on the floor. */
.marketing-page .camp-pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: #ffffff;
    border: 1.5px dashed var(--mkt-red);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--mkt-red-dark);
    text-wrap: balance;
}

/*  The part is across. The only solid, calm line in the panel. */
.marketing-page .camp-line-sent .camp-pill {
    border: 0;
    border-radius: 100px;
    background-color: var(--mkt-steel);
    color: #ffffff;
}

.marketing-page .camp-card-caption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--mkt-muted);
}

@keyframes camp-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {

    .marketing-page .camp-field,
    .marketing-page .camp-line {
        animation: none;
    }
}


/*-------------------------------------------------------------------------------------------------
    Shared section heading
-------------------------------------------------------------------------------------------------*/

.marketing-page .mkt-section-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.4vw, 56px);
    color: var(--mkt-ink);
    text-wrap: balance;
}

.marketing-page .mkt-section-lede {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--mkt-muted);
    max-width: 44ch;
}

/*-------------------------------------------------------------------------------------------------
    The trip - one job, counter to close
-------------------------------------------------------------------------------------------------*/

.marketing-page .mkt-trip {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
}

.marketing-page .mkt-trip-head {
    margin-bottom: clamp(40px, 5vw, 72px);
}

.marketing-page .stops {
    list-style: none;
    margin: 0;
    padding: 0;
}

.marketing-page .stop {
    position: relative;
    display: grid;
    grid-template-columns: 190px 40px minmax(0, 1fr);
    margin: 0;
    padding-bottom: clamp(44px, 5.5vw, 72px);
}

/*  The marker on the line: a small square with an ink edge, where the red line passes through */
.marketing-page .stop::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 14px;
    height: 14px;
    margin-top: 10px;
    background-color: #ffffff;
    border: 3px solid var(--mkt-ink);
    z-index: 1;
}

/*  The line itself: dashed red, running from this marker to the next */
.marketing-page .stop::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 28px;
    bottom: -8px;
    width: 3px;
    background-image: repeating-linear-gradient(180deg, var(--mkt-red) 0 10px, transparent 10px 18px);
}

.marketing-page .stop:last-child::after {
    display: none;
}

.marketing-page .stop-label {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(28px, 2.8vw, 40px);
    color: var(--mkt-ink);
}

.marketing-page .stop-body {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.marketing-page .stop-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--mkt-ink);
    max-width: 24ch;
    text-wrap: balance;
}

.marketing-page .stop-text {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--mkt-text);
    max-width: 58ch;
}

.marketing-page .stop-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.marketing-page .stop-points li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--mkt-muted);
}

/*  A painted square, not a tick: these are facts about the product, not a checklist */
.marketing-page .stop-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: var(--mkt-red);
}

/*-------------------------------------------------------------------------------------------------
    Books you can trust
-------------------------------------------------------------------------------------------------*/

.marketing-page .mkt-rules {
    background-color: var(--mkt-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.marketing-page .mkt-rules-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}

/*  The heading stays in view while the rows go by */
.marketing-page .mkt-rules-head {
    position: sticky;
    top: 110px;
}

.marketing-page .rule-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--mkt-line);
}

.marketing-page .rule-rows li {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--mkt-line);
}

.marketing-page .rule-name {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 34px);
    color: var(--mkt-ink);
}

.marketing-page .rule-text {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--mkt-text);
    max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------
    What stays with you - the dark annex
-------------------------------------------------------------------------------------------------*/

.marketing-page .mkt-yours {
    position: relative;
    background-color: var(--mkt-steel);
    color: #c3ccd5;
    padding: clamp(56px, 8vw, 104px) 0;
}

.marketing-page .mkt-yours::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--mkt-red) 0 28px, transparent 28px 48px);
}

.marketing-page .mkt-yours-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.marketing-page .mkt-yours-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 52px);
    color: #ffffff;
    max-width: 17ch;
    text-wrap: balance;
}

.marketing-page .mkt-yours-lede {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: #b6c0ca;
    max-width: 48ch;
}

.marketing-page .mkt-yours-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.marketing-page .mkt-yours-points li {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 16.5px;
    line-height: 1.55;
    color: #ffffff;
}

.marketing-page .mkt-yours-points li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.marketing-page .mkt-yours-note {
    margin: 22px 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #b6c0ca;
    max-width: 52ch;
}



/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .marketing-page .mkt-hero-inner,
    .marketing-page .mkt-rules-inner,
    .marketing-page .mkt-yours-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .marketing-page .mkt-hero-title {
        max-width: 18ch;
    }

    .marketing-page .camp-card {
        margin-left: 0;
    }

    .marketing-page .mkt-rules-head {
        position: static;
    }

    .marketing-page .mkt-rules-inner {
        gap: 28px;
    }

    /*  The label moves above the stop, and the line moves to the left edge */
    .marketing-page .stop {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .marketing-page .stop::before {
        grid-column: 1;
        justify-self: start;
        margin-top: 6px;
    }

    .marketing-page .stop::after {
        left: 6px;
        top: 24px;
    }

    .marketing-page .stop-label {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .marketing-page .stop-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {

    .marketing-page .mkt-hero-actions .btn {
        width: 100%;
    }

    .marketing-page .camp-card {
        padding: 0 16px 16px;
    }
}

/*  A value with a second, quieter line under it: the audience size, the text's opt-out footer */
.marketing-page .camp-field-sub {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mkt-muted);
}
