/* /why-you-received-email.
 *
 * Plain CSS, not Tailwind: public/assets/css/app.css is a frozen build and a
 * new arbitrary utility renders as nothing. Prefix `out-`, checked against
 * the rest of public/css before it was claimed.
 */

/* ------------------------------------------------------- the trust strip */

.out-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

@media (min-width: 768px) {
    .out-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.out-strip__item { display: flex; align-items: flex-start; gap: 12px; }

.out-strip__title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

.out-strip__sub {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

/* ------------------------------------------------------------ the cards */

/* Two across, one below 640. Both grids on this page use it, so the answer
 * cards and the objection cards are the same object. */
.out-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* EVEN. Grid stretches the cards to the tallest in the row on its own; what
 * was uneven was the inside: `items-center` floated the medallion to the
 * vertical middle of its copy, so a two paragraph card put its icon halfway
 * down the box and nothing lined up across a row. flex-start pins every
 * medallion to the top of its own copy (R25). */
.out-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.out-card__body { min-width: 0; flex: 1; }

.out-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

.out-card__text {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
}

/* The DB bodies are multi-paragraph HTML, so the spacing between paragraphs
 * belongs here rather than in each row's markup. */
.out-card__text p + p { margin-top: 10px; }
.out-card__text a { color: var(--brand); font-weight: 600; }
.out-card__text a:hover { text-decoration: underline; }
.out-card__text strong { color: #0f172a; }

/* One medallion for the whole page: bordered, square-ish, floated left of
 * its copy and never centered against it. */
.out-medallion {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6fb;
    border-radius: 12px;
    background: #eff5ff;
    color: var(--brand);
    font-size: 15px;
}

/* ----------------------------------------------------------- the opt out */

.out-stop {
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid #e7e5e4;
    border-radius: 20px;
    background: #fff;
}

.out-stop__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    border-bottom: 1px solid #e7e5e4;
    background: #f8fafc;
}

.out-stop__medallion {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 16px;
}

.out-stop__title {
    font-family: var(--font-display, inherit);
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.out-stop__lead {
    margin-top: 6px;
    max-width: 62ch;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
}

/* Three numbered steps, one per column, because this is a procedure and a
 * procedure reads as steps. */
.out-stop__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    background: #e7e5e4;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .out-stop__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.out-stop__steps > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fff;
}

.out-stop__num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6fb;
    border-radius: 9px;
    background: #eff5ff;
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 800;
}

.out-stop__step {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
}

.out-stop__step code {
    padding: 1px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    color: #0f172a;
}

.out-stop__note {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
}

.out-stop__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    /* The same hairline the card itself wears. This was #f1f5f9, which is
       invisible against the #f8fafc it sits on, so the last row read as part
       of step three rather than as its own band. */
    border-top: 1px solid #e7e5e4;
    background: #f8fafc;
}

.out-stop__alt {
    min-height: 38px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.out-stop__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.out-stop__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 11px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.out-stop__btn:hover { border-color: rgba(var(--brand-rgb), 0.45); color: var(--brand); }

.out-stop__btn--go {
    border-color: var(--brand-700);
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #fff;
}

.out-stop__btn--go:hover {
    border-color: var(--brand-800);
    background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
    color: #fff;
}
