/* /tarifs
   Pricing page: starting prices as three offer cards, the price drivers as a
   table, worked examples as price cards, then the fine print. Mirrors the
   solution pages (same wrap, heads, bands and buttons). Tokens only,
   namespaced `tf-`. Red budget (1 of 3): the hero phrase. */

.tf-page {
    overflow-x: clip;
    color: var(--color-text);
}

.tf-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 72px);
}

.tf-section {
    padding: clamp(52px, 8.5vh, 100px) 0;
}

.tf-band {
    background: var(--color-surface);
}

.tf-page h1,
.tf-page h2,
.tf-page h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    letter-spacing: var(--track-display);
    margin: 0;
    overflow-wrap: anywhere;
}

.tf-page h2 {
    font-size: var(--fs-display-2);
    font-weight: normal;
    line-height: 1.12;
}

.tf-page h3 {
    font-size: var(--fs-display-3);
    font-weight: normal;
    line-height: 1.25;
}

.tf-page p {
    margin: 0;
}

.tf-accent {
    color: var(--color-accent);
}

/* ---- Buttons ---------------------------------------------------------- */

.tf-btn {
    display: inline-block;
    background: var(--color-ink);
    color: var(--color-surface);
    border: 2px solid var(--color-ink);
    border-radius: var(--radius);
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.tf-btn:hover {
    background: var(--color-surface);
    color: var(--color-ink);
}

.tf-link {
    font-size: var(--fs-small);
    color: var(--color-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.tf-link:hover {
    color: var(--color-ink);
    border-bottom-color: var(--color-ink);
}

.tf-page a:focus-visible,
.tf-page button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ---- Hero ------------------------------------------------------------- */

.tf-hero {
    padding: clamp(56px, 12vh, 140px) 0 clamp(52px, 8.5vh, 100px);
}

.tf-hero h1 {
    font-size: var(--fs-display-1);
    font-weight: bold;
    line-height: 1.02;
    max-width: 14em;
}

.tf-lede {
    font-size: var(--fs-lede);
    color: var(--color-text-strong);
    line-height: 1.6;
    max-width: 52ch;
    margin-top: 32px !important;
}

.tf-hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: 40px;
}

/* ---- Section heads: title and intro on one line ------------------------ */

.tf-head {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
    margin-bottom: clamp(36px, 6vh, 64px);
}

.tf-head > * {
    min-width: 0;
}

.tf-head p {
    font-size: var(--fs-body);
    line-height: 1.7;
    max-width: 52ch;
}

/* ---- Offers: three cards ------------------------------------------------ */

.tf-offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tf-offer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 36px);
}

.tf-offer-desc {
    font-size: var(--fs-small);
    line-height: 1.65;
}

.tf-prices {
    margin: 0;
    border-top: 2px solid var(--color-ink);
}

.tf-prices > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.tf-prices dt {
    font-size: var(--fs-small);
    font-weight: normal;
    color: var(--color-text-strong);
}

.tf-prices dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-emph);
    color: var(--color-ink);
    white-space: nowrap;
}

.tf-from {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin-right: 4px;
}

.tf-unit {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin-left: 2px;
}

.tf-offer .tf-link {
    align-self: flex-start;
    margin-top: auto;
}

/* ---- Price drivers table ------------------------------------------------- */

.tf-table {
    width: 100%;
    border-collapse: collapse;
}

.tf-table thead th {
    font-size: var(--fs-caption);
    font-weight: normal;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: var(--track-caps);
    text-align: left;
    padding: 0 20px 14px;
    border-bottom: 2px solid var(--color-ink);
}

.tf-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.tf-table tbody tr:nth-child(odd) {
    background: var(--color-surface);
}

.tf-table tbody th,
.tf-table tbody td {
    padding: 24px 20px;
    vertical-align: top;
    text-align: left;
}

.tf-table tbody th {
    width: 32%;
    font-family: var(--font-display);
    font-size: var(--fs-body);
    font-weight: bold;
    color: var(--color-ink);
}

.tf-table tbody td {
    font-size: var(--fs-body);
    line-height: 1.65;
}

/* ---- Worked examples: four price cards ------------------------------------ */

.tf-examples {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tf-example {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.tf-example h3 {
    font-size: var(--fs-body);
    font-weight: bold;
    min-height: 2.5em;
}

.tf-config {
    list-style: none;
    margin: 20px 0 24px;
    padding: 0;
    flex-grow: 1;
}

.tf-config li {
    font-size: var(--fs-small);
    line-height: 1.5;
    padding: 8px 0;
    border-top: 1px solid var(--color-border);
}

.tf-example-price {
    font-family: var(--font-display);
    font-size: var(--fs-display-2);
    color: var(--color-ink);
    line-height: 1.1;
    border-top: 2px solid var(--color-ink);
    padding-top: 16px;
}

.tf-example-year {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin-top: 6px !important;
}

/* ---- Good to know -------------------------------------------------------- */

.tf-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    margin: 0;
}

.tf-note {
    border-top: 2px solid var(--color-ink);
    padding-top: 20px;
}

.tf-note dt {
    font-family: var(--font-display);
    font-size: var(--fs-body);
    font-weight: bold;
    color: var(--color-ink);
    margin-bottom: 12px;
}

.tf-note dd {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.7;
}

.tf-offer-note {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin-top: -8px !important;
}

/* ---- Contact form ------------------------------------------------------- */

.tf-contact {
    scroll-margin-top: 90px;
}

.tf-contact-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 72px);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 64px);
}

.tf-contact-card > * {
    min-width: 0;
}

.tf-contact-intro h2 {
    margin-bottom: 20px;
}

.tf-contact-intro p {
    font-size: var(--fs-body);
    line-height: 1.7;
    max-width: 40ch;
}

.tf-field {
    margin-bottom: 20px;
}

.tf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.tf-field-row > * {
    min-width: 0;
}

.tf-field-row .tf-field {
    margin-bottom: 0;
}

.tf-field label {
    display: block;
    font-size: var(--fs-small);
    color: var(--color-ink);
    margin-bottom: 8px;
}

.tf-field .required {
    color: var(--color-text-soft);
}

.tf-field input,
.tf-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tf-field input:focus,
.tf-field textarea:focus {
    outline: none;
    border-color: var(--color-ink);
    background: var(--color-surface-2);
}

.tf-field input::placeholder,
.tf-field textarea::placeholder {
    color: var(--color-text-soft);
}

.tf-field textarea {
    resize: vertical;
    min-height: 120px;
}

.tf-field-error {
    color: var(--color-danger);
    font-size: var(--fs-caption);
    margin-top: 6px;
}

.tf-form-alert {
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    border-left: 3px solid var(--color-danger);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: var(--fs-small);
    color: var(--color-text-strong);
}

.tf-form-submit {
    width: 100%;
    margin-top: 4px;
    cursor: pointer;
}

.tf-form-note {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    margin-top: 16px !important;
}

.tf-form-success h3 {
    font-size: var(--fs-display-3);
    font-weight: bold;
    margin-bottom: 12px;
}

.tf-form-success p {
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .tf-examples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .tf-head,
    .tf-offers,
    .tf-notes,
    .tf-contact-card {
        grid-template-columns: 1fr;
    }

    .tf-head {
        align-items: start;
    }
}

@media (max-width: 620px) {
    .tf-hero h1 {
        line-height: 1.06;
    }

    .tf-examples,
    .tf-field-row {
        grid-template-columns: 1fr;
    }

    .tf-example h3 {
        min-height: 0;
    }

    /* Table reflows into stacked records, zebra off. */
    .tf-table thead {
        display: none;
    }

    .tf-table,
    .tf-table tbody,
    .tf-table tr,
    .tf-table th,
    .tf-table td {
        display: block;
        width: 100%;
    }

    .tf-table tbody tr:nth-child(odd) {
        background: none;
    }

    .tf-table tbody th {
        width: 100%;
        padding: 20px 0 6px;
    }

    .tf-table tbody td {
        padding: 0 0 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-page *,
    .tf-page *::before,
    .tf-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
