/* The add-on card, /pricing.
 *
 * Plain CSS, not Tailwind, and deliberately: public/assets/css/app.css is a
 * frozen build that nothing regenerates, so a utility not already in it renders
 * as nothing. The first version of this card used sm:col-span-3, which is not
 * in there, and collapsed to a 160px column with the title broken over four
 * lines.
 *
 * It is dark on purpose. A white card with a pale gray rail is the house shape
 * every other panel on this page already wears, so the one paid extra on the
 * page disappeared into it. Sitting this on the same near-black the "included
 * on every plan" band uses makes it read as the upgrade it is.
 *
 * It used to be a stacked split panel: a 2rem-padded body with the description
 * under a rule, beside a 2.5rem rail carrying a 3.1rem figure. That ran the
 * band to 541px for a single add-on. It is ONE horizontal strip now at desktop
 * (medallion, copy, price), with the description tucked under the blurb rather
 * than below a divider. Same words, same card, same glow.
 *
 * Colors come from --brand / --brand-rgb (partials/brand-vars). No Tailwind
 * opacity utilities anywhere: v4 emits those through color-mix, and the
 * no-color-mix fallback is the color at FULL strength.
 */

.adn { border-top: 1px solid rgba(214, 211, 209, .8); background: #fff; padding: 38px 0; }
/* Width and gutter come from the Blade wrapper's `mx-auto {{ $maxWidth }} px-4`,
   because $maxWidth is config-driven (az.max_width). */
.adn-wrap { position: relative; }
.adn-list { margin-top: 20px; display: grid; gap: 14px; }

.adn-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: linear-gradient(135deg, #0b1220 0%, #111c33 58%, #16233f 100%);
    box-shadow: 0 24px 50px -38px rgba(11, 18, 32, .95);
    transition: border-color .35s;
}

/* A hairline of brand along the top edge, the way a lit panel catches light. */
.adn-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .75) 30%, rgba(var(--brand-rgb), .75) 70%, transparent);
}

/* The glow is the whole trick: one soft brand light behind the price, which
   moves when you touch the card. */
.adn-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -45%;
    right: -12%;
    width: 62%;
    height: 190%;
    background: radial-gradient(closest-side, rgba(var(--brand-rgb), .38), rgba(var(--brand-rgb), 0) 72%);
    pointer-events: none;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

/* R15: the resting edge changes color under the pointer. */
.adn-card:hover { border-color: rgba(var(--brand-rgb), .45); }
.adn-card:hover::after { transform: translate(-7%, 3%) scale(1.08); }

/* Everything on one line at desktop: medallion, copy, price. Items align to
   the TOP, not the center: R25's medallion labels the copy beside it, and
   centring it against a three-line block floats it down next to the
   description instead of the name it belongs to. The rail re-centers itself. */
.adn-in { display: grid; gap: 14px; padding: 16px 18px; align-items: start; }
@media (min-width: 900px) { .adn-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; } }

.adn-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(var(--brand-rgb), .45);
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(var(--brand-rgb), .28), rgba(var(--brand-rgb), .06));
    color: #fff;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: border-color .35s, transform .35s cubic-bezier(.2, .8, .3, 1);
}
.adn-card:hover .adn-ic { border-color: rgba(var(--brand-rgb), .85); transform: rotate(-8deg); }

.adn-txt { min-width: 0; }
.adn-name { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.adn-blurb { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.adn-desc { margin: 7px 0 0; font-size: 12.5px; line-height: 1.6; color: #8da2bf; }

/* The price on its own ground, so the number stops being the last line of a
   paragraph. */
.adn-rail { align-self: center; display: flex; flex-direction: column; gap: 2px; border-left: 0; padding-left: 0; text-align: left; }
@media (min-width: 900px) { .adn-rail { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 20px; text-align: right; } }
.adn-price { margin: 0; white-space: nowrap; }
.adn-amt { font-size: 36px; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.adn-per { font-size: 14px; font-weight: 600; color: #94a3b8; }
.adn-terms { margin: 5px 0 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--brand-300, #93c5fd); white-space: nowrap; }
.adn-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.5; color: #7c8ba1; max-width: 22ch; }
@media (min-width: 900px) { .adn-note { margin-left: auto; } }

@media (prefers-reduced-motion: reduce) {
    .adn-card, .adn-card::after, .adn-ic { transition: none; }
    .adn-card:hover::after { transform: none; }
    .adn-card:hover .adn-ic { transform: none; }
}
