/* ─────────────────────────────────────────────────────────────────────────────
   "Experience for Free" — the deposit-backed free sample block.

   The tokens come from theme.css where it is loaded, and every one of them
   has a literal fallback, because the product page loads nav.css rather than
   theme.css and the block has to look right on both.

   The palette is deliberately quiet: a thin gold rule, black text, and one
   black button. It sits next to a paid offer on the same page and must not
   shout over it.
   ───────────────────────────────────────────────────────────────────────────── */

.fb-fs-panel {
    --fs-ink:        var(--color-text, #0a0a0a);
    --fs-muted:     var(--color-text-muted, rgba(0, 0, 0, 0.55));
    --fs-faint:     var(--color-text-faint, rgba(0, 0, 0, 0.42));
    --fs-rule:      var(--color-border-subtle, rgba(0, 0, 0, 0.08));
    --fs-surface:   var(--color-surface-2, #fcfcfc);
    --fs-accent:    var(--color-accent, #a8842c);
    --fs-accent-ln: var(--color-accent-line, rgba(168, 132, 44, 0.42));

    margin: 0 0 2rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--fs-rule);
    border-top: 2px solid var(--fs-accent-ln);
    background: var(--fs-surface);
}

/* ── Head ─────────────────────────────────────────────────────────────── */

.fb-fs-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fs-accent);
}

.fb-fs-title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--fs-ink);
}

.fb-fs-lead {
    margin: 0;
    max-width: 58ch;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--fs-muted);
}

/* ── The money ────────────────────────────────────────────────────────── */

.fb-fs-money {
    margin: 1.25rem 0 0;
    padding: 1rem 1.125rem;
    border: 1px solid var(--fs-rule);
    background: var(--color-surface-1, #fff);
}

.fb-fs-money-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3125rem 0;
    font-size: 0.8125rem;
    color: var(--fs-muted);
}

.fb-fs-money-v {
    font-variant-numeric: tabular-nums;
    color: var(--fs-ink);
}

.fb-fs-money-row.is-total {
    margin-top: 0.375rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--fs-rule);
    font-weight: 500;
    color: var(--fs-ink);
}

.fb-fs-money-row.is-total .fb-fs-money-v {
    font-size: 1.0625rem;
    font-weight: 500;
}

.fb-fs-money-note {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--fs-rule);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--fs-faint);
}

/* ── The rules ────────────────────────────────────────────────────────── */

.fb-fs-rules-wrap {
    margin: 1.25rem 0 0;
}

.fb-fs-rules-title {
    margin: 0 0 0.75rem;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fs-faint);
}

.fb-fs-rules {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.fb-fs-rule {
    display: grid;
    grid-template-columns: 1.125rem 1fr;
    gap: 0.625rem;
    align-items: start;
}

.fb-fs-rule-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.1875rem;
    border-radius: 50%;
    background: var(--color-accent-soft, rgba(197, 167, 95, 0.14));
    color: var(--fs-accent);
}

.fb-fs-rule-body {
    display: grid;
    gap: 0.1875rem;
}

.fb-fs-rule-body strong {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--fs-ink);
}

.fb-fs-rule-body span {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--fs-muted);
}

.fb-fs-rules-foot {
    margin: 0.875rem 0 0;
    padding-left: 1.75rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--fs-faint);
}

/* ── The button ───────────────────────────────────────────────────────── */

.fb-fs-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.375rem;
    padding: 0.9375rem 1.75rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.fb-fs-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -20px rgba(0, 0, 0, 0.55);
}

.fb-fs-cta:focus-visible {
    outline: 2px solid var(--fs-accent);
    outline-offset: 3px;
}

.fb-fs-cta-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.fb-fs-cta-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
}

/* ── The compact card version ─────────────────────────────────────────── */

.fb-fs-card-cta {
    display: grid;
    gap: 0.1875rem;
    margin-top: 0.625rem;
    padding: 0.6875rem 0.875rem;
    border: 1px solid var(--fs-accent-ln);
    background: var(--color-accent-soft, rgba(197, 167, 95, 0.14));
    text-decoration: none;
    color: var(--color-text, #0a0a0a);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fb-fs-card-cta:hover {
    background: var(--color-accent-soft, rgba(197, 167, 95, 0.14));
    border-color: var(--fs-accent);
}

.fb-fs-card-cta:focus-visible {
    outline: 2px solid var(--fs-accent);
    outline-offset: 2px;
}

.fb-fs-card-cta-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fs-accent);
}

.fb-fs-card-cta-note {
    font-size: 0.6875rem;
    color: var(--color-text-muted, rgba(0, 0, 0, 0.55));
}

/* ── The used state ───────────────────────────────────────────────────────
   A customer who has already had their free sample sees a plain statement
   instead of an offer. The offer is a once and over thing, and showing it
   again to someone who cannot use it is how a site teaches people to stop
   reading it. */

.fb-fs-panel.is-used {
    background: var(--fx-surface2);
}

.fb-fs-panel.is-used .fb-fs-used-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fx-muted);
}

.fb-fs-panel.is-used .fb-fs-eyebrow {
    margin-bottom: 0.625rem;
}

/* ── Narrow screens ───────────────────────────────────────────────────── */

@media (max-width: 34rem) {
    .fb-fs-panel {
        padding: 1.375rem 1.125rem 1.25rem;
    }
    .fb-fs-cta {
        display: grid;
        justify-items: center;
        gap: 0.3125rem;
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-fs-cta { transition: none; }
    .fb-fs-cta:hover { transform: none; }
}
