/* Theme and content layout for the isolated Basecoat 1.0.2 card.
   Card, button, typography and interaction styles come from Basecoat itself. */
:host {
    display: block;
    min-width: 0;
    font-family: var(--ui-font, system-ui, sans-serif);
    --radius: 0.625rem;
    --card: #101923;
    --card-foreground: #eef3f7;
    --foreground: #eef3f7;
    --muted-foreground: #acbac8;
    --border: #2a3948;
    --primary: #a2e6d8;
    --primary-foreground: #0c2925;
    --ring: #a2e6d8;
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-foreground: var(--foreground);
    --color-muted-foreground: var(--muted-foreground);
    --color-border: var(--border);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-ring: var(--ring);
    --font-sans: var(--ui-font, system-ui, sans-serif);
    --default-font-family: var(--font-sans);
    color-scheme: dark;
}

.card > header > h3 {
    line-height: 1.3;
    text-wrap: balance;
}

.card > header > p {
    line-height: 1.5;
}

.offer-content {
    display: grid;
    gap: 16px;
}

.offer-price {
    display: grid;
    gap: 2px;
}

.offer-price strong {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.offer-period,
.offer-monthly {
    font-size: 13px;
    color: var(--muted-foreground);
}

.offer-benefits {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}

.offer-benefits li {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.offer-benefits li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: 600;
    flex: 0 0 auto;
}

.card > .offer-footer {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.offer-footer > .btn {
    width: 100%;
    min-height: 40px;
    height: auto;
    white-space: normal;
    text-align: center;
}

.offer-byline,
.offer-payment {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-foreground);
}

.offer-payment {
    display: grid;
    gap: 2px;
}

.offer-payment nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
}

.offer-payment a {
    display: inline-block;
    padding-block: 4px;
    color: var(--card-foreground);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

.offer-payment a:hover {
    text-decoration-color: currentColor;
}

.offer-payment a:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}
