/* ==========================================================================
   The offer for teams (front/partials/team-offer): what one course costs as
   an order grows. A card the page draws where a picture of the offer stood,
   so its prices are the catalogue's of the day.

   It stands on a landing in the picture column of the section that tells
   how a course works, and under a head of its own on the page of the teams
   and on the page of a course (.tofBand). It wears the language of the
   landing wherever it stands: white glass under a line of light, emerald
   for a saving, amber for a deal, royal blue for the way forward, the two
   faces through the tokens of the page. Every rule is the card's own
   (.tof ...), so no page has to dress it. It measures its own width (a
   container query), never the window's: one column from the narrowest phone
   (284px) to the column of a landing, two side by side where a page gives
   it its whole measure.

   A step of the offer is a radio button of the card, printed before the
   list and the plate it rules. The sheet reads which one is checked: it
   moves the light plate under the step (.tof__thumb) and, until the
   calculator starts, shows of every figure of the plate the one printed for
   that step (.tof__v). Six steps are written out; the fleet has four and
   the visitor's own number is the fifth (App\Support\VolumeTiers). The
   calculator (js/views/team-offer.js) marks the card .tof--live and writes
   its figures beside the printed ones (.tof__live).

   Nothing here runs for ever. A figure that changes rises into place once,
   by transform and opacity alone, and stands still for a reader who asked
   for less motion. No label is held on one line: a longer language wraps,
   and a pill of two lines is a rounded plate.
   ========================================================================== */

.tof {
    --tof-s: var(--lp-scale, var(--tp-scale, 1));
    --tof-ink: var(--lp-ink, #0b1220);
    --tof-ink-2: var(--lp-ink-2, #253247);
    --tof-ink-3: var(--lp-ink-3, #3f4d66);
    --tof-green: var(--lp-green, #059669);
    --tof-green-ink: var(--lp-green-ink, #047857);
    --tof-green-deep: #065f46;
    --tof-amber-ink: #92400e;
    --tof-hair: rgba(6, 95, 70, 0.13);
    --tof-ease: var(--lp-ease, cubic-bezier(0.22, 1, 0.36, 1));
    --tof-display: var(--lp-font-display, var(--tp-font-display, var(--sc-font-display)));
    --tof-body: var(--lp-font-body, var(--tp-font-body, var(--sc-font-body)));
    --tof-pad: calc(28px * var(--tof-s));
    --tof-gap: calc(26px * var(--tof-s));
    --tof-rise: tof-rise 0.32s var(--tof-ease) both;
    container: tof / inline-size;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    padding: calc(32px * var(--tof-s)) var(--tof-pad) var(--tof-pad);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius, 26px);
    background:
        radial-gradient(calc(360px * var(--tof-s)) calc(230px * var(--tof-s)) at 100% 0%, rgba(253, 230, 138, 0.42) 0%, rgba(253, 230, 138, 0) 72%),
        radial-gradient(calc(340px * var(--tof-s)) calc(260px * var(--tof-s)) at 0% 100%, rgba(167, 243, 208, 0.4) 0%, rgba(167, 243, 208, 0) 72%),
        rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--lp-shadow, 0 28px 60px -34px rgba(30, 58, 138, 0.45)), 0 0 0 1px var(--lp-line, rgba(30, 58, 138, 0.1));
    overflow: hidden;
    font-family: var(--tof-body);
    color: var(--tof-ink);
    text-align: left;
}

/* The card says more than the steps beside it, so on a computer it takes a little more of the row
   and its box opens wider than the box of a picture. A browser without :has() keeps the two halves. */
@media (min-width: 1025px) {
    .lp .howItWorksInner:has(.tof) {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    }
}

.lp .hiwImageBox:has(.tof) {
    max-width: calc(620px * var(--lp-scale, 1));
}

/* what the card holds, one part under another; a card as wide as its page sets them side by side (the end of the sheet) */
.tof .tof__in {
    display: flex;
    flex-direction: column;
    gap: var(--tof-gap);
}

/* the line of light along its top edge */
.tof::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669 0%, #34d399 28%, #fbbf24 62%, #f59e0b 100%);
}

/* said to a screen reader, never drawn */
.tof .tof__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   What the offer is
   -------------------------------------------------------------------------- */
.tof .tof__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tof .tof__chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 calc(16px * var(--tof-s));
    padding: 6px 15px 6px 7px;
    border: 1px solid rgba(5, 150, 105, 0.22);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(254, 243, 199, 0.92) 100%);
    box-shadow: 0 10px 20px -16px rgba(5, 150, 105, 0.7);
    font-family: var(--tof-body);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tof-green-deep);
}

.tof .tof__chipMark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 6px 14px -8px rgba(5, 150, 105, 0.9);
    color: #ffffff;
}

.tof .tof__chipMark svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.tof .tof__title {
    margin: 0;
    font-family: var(--tof-display);
    font-size: calc(31px * var(--tof-s));
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.028em;
    color: var(--tof-ink);
}

.tof .tof__lead {
    margin: calc(12px * var(--tof-s)) 0 0;
    font-size: calc(16.5px * var(--tof-s));
    font-weight: 500;
    line-height: 1.6;
    color: var(--tof-ink-2);
    text-wrap: pretty;
}

/* the largest saving, a figure and one word: the pair stays together */
.tof .tof__lead strong {
    font-weight: 800;
    color: var(--tof-green-ink);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   The steps: a list a visitor chooses from
   -------------------------------------------------------------------------- */
.tof .tof__calc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(14px * var(--tof-s));
}

/* the radio button of a step: on the page for the keyboard and a screen reader, drawn by its row */
.tof .tof__pick {
    position: absolute;
    top: calc(40px * var(--tof-s));
    left: 12px;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.tof .tof__askName {
    margin: 0;
    font-family: var(--tof-display);
    font-size: calc(16.5px * var(--tof-s));
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--tof-ink);
}

/* what the figures of the list are the price of */
.tof .tof__askNote {
    margin: 3px 0 0;
    font-size: calc(15px * var(--tof-s));
    font-weight: 500;
    line-height: 1.5;
    color: var(--tof-ink-2);
}

.tof .tof__tiers {
    --tof-at: 0;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-auto-rows: 1fr;
    column-gap: calc(12px * var(--tof-s));
    padding: 5px;
    border-radius: calc(21px * var(--tof-s));
    background: rgba(6, 95, 70, 0.055);
    box-shadow: inset 0 0 0 1px rgba(6, 95, 70, 0.1), inset 0 2px 4px -2px rgba(6, 95, 70, 0.12);
}

/* the light plate under the step that is chosen */
.tof .tof__thumb {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 5px;
    right: 5px;
    height: calc((100% - 10px) / var(--tof-n, 4));
    border-radius: calc(16px * var(--tof-s));
    background: #ffffff;
    box-shadow: 0 0 0 1.5px rgba(5, 150, 105, 0.62), 0 14px 26px -16px rgba(5, 150, 105, 0.8), 0 1px 2px rgba(15, 23, 42, 0.06);
    transform: translateY(calc(100% * var(--tof-at)));
    transition: transform 0.34s var(--tof-ease);
}

.tof .tof__tier {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(5.4em, auto);
    align-items: center;
    column-gap: calc(12px * var(--tof-s));
    min-height: calc(52px * var(--tof-s));
    margin: 0;
    padding: 8px calc(16px * var(--tof-s)) 8px calc(13px * var(--tof-s));
    box-sizing: border-box;
    border-radius: calc(16px * var(--tof-s));
    font-size: calc(15px * var(--tof-s));
    font-weight: 600;
    line-height: 1.25;
    color: var(--tof-ink-2);
    transition: background-color 0.18s var(--tof-ease);
}

@supports (grid-template-columns: subgrid) {
    .tof .tof__tier {
        grid-template-columns: subgrid;
    }
}

/* the seats of a row are the label of its radio button: it reaches over the whole row, so the row is pressed anywhere */
.tof .tof__hand {
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: var(--tof-hand, pointer);
    -webkit-tap-highlight-color: transparent;
}

.tof .tof__hand::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.tof .tof__dot {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid var(--tof-dot-line, rgba(6, 95, 70, 0.66));
    border-radius: 50%;
    background: var(--tof-dot-fill, #ffffff);
    transition: border-color 0.18s var(--tof-ease), background-color 0.18s var(--tof-ease);
}

.tof .tof__dot::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(var(--tof-dot-on, 0));
    transition: transform 0.22s var(--tof-ease);
}

/* a figure and its word: side by side on a wide card, the word under the figure on a narrow one */
.tof .tof__seats,
.tof .tof__each {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
}

.tof .tof__each {
    justify-content: flex-end;
    text-align: right;
}

.tof .tof__no {
    font-family: var(--tof-display);
    font-size: calc(18px * var(--tof-s));
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tof-ink);
    transition: color 0.18s var(--tof-ease);
}

.tof .tof__each .tof__no {
    color: var(--tof-each-ink, var(--tof-ink));
}

.tof .tof__off {
    padding: 4px 11px;
    border-radius: 14px;
    background: var(--tof-off-fill, rgba(5, 150, 105, 0.13));
    font-size: calc(14px * var(--tof-s));
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    color: var(--tof-off-ink, var(--tof-green-deep));
    transition: background-color 0.18s var(--tof-ease), color 0.18s var(--tof-ease);
}

/* the rules alone, where no course can be priced: a list, not a choice */
.tof--rules .tof__tiers {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tof--rules .tof__tier {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* --------------------------------------------------------------------------
   The plate of the step that is chosen
   -------------------------------------------------------------------------- */
.tof .tof__plate {
    margin-top: calc(4px * var(--tof-s));
    border: 1px solid rgba(5, 150, 105, 0.22);
    border-radius: calc(22px * var(--tof-s));
    background: linear-gradient(180deg, #ecfdf5 0%, #f7fefb 30%, #ffffff 62%);
    box-shadow: 0 24px 42px -34px rgba(5, 150, 105, 0.85), inset 0 1px 0 #ffffff;
    overflow: hidden;
}

/* a figure of the plate is printed once a step; the one of the checked step is shown (the rules at the end) */
.tof .tof__v {
    display: none;
}

.tof .tof__price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name deal"
        "now now"
        "spare spare";
    align-items: center;
    column-gap: 12px;
    padding: calc(22px * var(--tof-s)) calc(22px * var(--tof-s)) calc(20px * var(--tof-s));
    background: radial-gradient(62% 120% at 100% 0%, rgba(253, 230, 138, 0.34) 0%, rgba(253, 230, 138, 0) 70%);
}

.tof .tof__priceName {
    grid-area: name;
    margin: 0;
    font-size: calc(15.5px * var(--tof-s));
    font-weight: 700;
    line-height: 1.3;
    color: var(--tof-ink-2);
}

.tof .tof__deal {
    grid-area: deal;
    margin: 0;
    padding: 6px 14px;
    border-radius: 17px;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 58%, #f59e0b 100%);
    box-shadow: 0 12px 22px -14px rgba(217, 119, 6, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-family: var(--tof-display);
    font-size: calc(15.5px * var(--tof-s));
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #78350f;
}

.tof .tof__now {
    grid-area: now;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px calc(14px * var(--tof-s));
    margin: calc(8px * var(--tof-s)) 0 0;
    line-height: 1;
}

/* as large as the card allows: a fifth of its width on a phone, 76px on a computer */
.tof .tof__fig--now {
    font-family: var(--tof-display);
    font-size: calc(76px * var(--tof-s));
    font-size: min(calc(76px * var(--tof-s)), 21cqi);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--tof-ink);
}

.tof .tof__sign,
.tof .tof__cents {
    display: inline-block;
    font-size: 0.5em;
    letter-spacing: -0.02em;
    transform: translateY(-0.74em);
}

.tof .tof__sign {
    margin-right: 0.06em;
}

.tof .tof__cents {
    margin-left: 0.04em;
}

.tof .tof__was {
    font-family: var(--tof-display);
    font-size: calc(24px * var(--tof-s));
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tof-ink-3);
}

/* The price nobody pays is struck in red from corner to corner, rising to the right: a stroke of a pen,
   never a ruled line through the middle. The line is the background of the figure itself, so it follows
   the figure whatever its length. */
.tof .tof__was .tof__v,
.tof .tof__was .tof__live {
    padding: 0 0.12em;
    background: linear-gradient(to top right, rgba(220, 38, 38, 0) calc(50% - 1.3px), #dc2626 calc(50% - 1.3px), #dc2626 calc(50% + 1.3px), rgba(220, 38, 38, 0) calc(50% + 1.3px)) no-repeat center / 100% 62%;
}

/* the words under the price: what is saved on a course, why, and what the next step would save */
.tof .tof__words {
    grid-area: spare;
    display: grid;
    gap: 4px;
    margin: calc(10px * var(--tof-s)) 0 0;
}

.tof .tof__spare {
    margin: 0;
    font-size: calc(16px * var(--tof-s));
    font-weight: 600;
    line-height: 1.4;
    color: var(--tof-green-ink);
}

.tof .tof__why {
    margin: 0;
    font-size: calc(14.5px * var(--tof-s));
    font-weight: 500;
    line-height: 1.45;
    color: var(--tof-ink-2);
}

/* the next saving, a few courses away: the one line of the plate that wears the amber of a deal */
.tof .tof__next {
    justify-self: start;
    margin: calc(4px * var(--tof-s)) 0 0;
    padding: 5px 12px;
    border-radius: 15px;
    background: rgba(254, 243, 199, 0.9);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.28);
    font-size: calc(14.5px * var(--tof-s));
    font-weight: 700;
    line-height: 1.4;
    color: #78350f;
}

.tof .tof__spare .tof__fig {
    font-weight: 800;
}

/* the three sums of the order: the count takes the room of its name, the two sums of money share the rest */
/* the three sums of the order stand side by side while the plate holds them; where a longer language or a
   larger order needs the room, the name of a sum goes onto two lines and, past that, the last sum goes under
   the others: a sum is never cut and never leaves the plate */
.tof .tof__sums {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--tof-hair);
    border-bottom: 1px solid var(--tof-hair);
    background: rgba(255, 255, 255, 0.66);
}

/* a hair on the left of a sum and one over it: the plate shows the hairs between two sums and its own edge
   hides the others, however the sums come to stand */
.tof .tof__sum {
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: calc(15px * var(--tof-s)) calc(18px * var(--tof-s)) calc(15px * var(--tof-s)) calc(22px * var(--tof-s));
    box-shadow: -1px 0 0 var(--tof-hair), 0 -1px 0 var(--tof-hair);
}

/* the count is the short one: the room that is left goes to the two sums of money */
.tof .tof__sum:first-child {
    flex-grow: 0;
}

.tof .tof__sum dt {
    margin: 0;
    font-size: calc(14.5px * var(--tof-s));
    font-weight: 600;
    line-height: 1.3;
    color: var(--tof-ink-2);
}

.tof .tof__sum dd {
    margin: 5px 0 0;
    font-family: var(--tof-display);
    font-size: calc(25px * var(--tof-s));
    font-size: min(calc(25px * var(--tof-s)), 5.4cqi);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--tof-ink);
}

.tof .tof__sum--save dd {
    color: var(--tof-green-ink);
}

/* the courses of the example */
.tof .tof__order {
    padding: calc(18px * var(--tof-s)) calc(22px * var(--tof-s)) calc(22px * var(--tof-s));
}

.tof .tof__orderName {
    margin: 0 0 calc(12px * var(--tof-s));
    font-size: calc(15.5px * var(--tof-s));
    font-weight: 700;
    line-height: 1.35;
    color: var(--tof-ink);
}

.tof .tof__lines {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tof .tof__line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: calc(12px * var(--tof-s));
    margin: 0;
    padding: 6px calc(13px * var(--tof-s)) 6px 6px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    background-clip: padding-box;
    box-shadow: 0 0 0 1px rgba(30, 58, 138, 0.1), 0 10px 18px -16px rgba(30, 58, 138, 0.5);
}

.tof .tof__lineSeats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: calc(66px * var(--tof-s));
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(5, 150, 105, 0.11);
    font-family: var(--tof-display);
    font-size: calc(15px * var(--tof-s));
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    color: var(--tof-green-deep);
}

.tof .tof__lineName {
    font-size: calc(16px * var(--tof-s));
    font-weight: 600;
    line-height: 1.35;
    color: var(--tof-ink);
    white-space: normal;
    overflow-wrap: anywhere;
}

.tof .tof__lineUnit {
    font-size: calc(15px * var(--tof-s));
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
    color: var(--tof-ink-2);
}

.tof .tof__lineUnit .tof__fig {
    font-family: var(--tof-display);
    font-weight: 800;
    color: var(--tof-ink);
}

/* any other course joins the order */
.tof .tof__line--more {
    padding-top: 8px;
    padding-bottom: 8px;
    border: 1.5px dashed rgba(5, 150, 105, 0.45);
    background: none;
    box-shadow: none;
}

.tof .tof__line--more .tof__lineSeats {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.3);
    font-size: calc(19px * var(--tof-s));
    line-height: 1;
    color: var(--tof-green-ink);
}

.tof .tof__lineNote {
    grid-column: 2 / -1;
    font-size: calc(15px * var(--tof-s));
    font-weight: 500;
    line-height: 1.5;
    color: var(--tof-ink-2);
}

/* --------------------------------------------------------------------------
   The savings of a smaller order
   -------------------------------------------------------------------------- */
.tof .tof__moreName {
    margin: 0 0 calc(12px * var(--tof-s));
    font-family: var(--tof-display);
    font-size: calc(16.5px * var(--tof-s));
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--tof-ink);
}

.tof .tof__deals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12px * var(--tof-s));
    margin: 0;
    padding: 0;
    list-style: none;
}

.tof .tof__dealCard {
    display: flex;
    align-items: center;
    gap: calc(12px * var(--tof-s));
    margin: 0;
    padding: calc(12px * var(--tof-s)) calc(14px * var(--tof-s));
    border-radius: calc(16px * var(--tof-s));
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.24), 0 12px 20px -18px rgba(180, 83, 9, 0.6);
}

.tof .tof__dealCard .spot {
    flex: 0 0 auto;
}

.tof .tof__dealWords {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tof .tof__dealValue {
    font-family: var(--tof-display);
    font-size: calc(20px * var(--tof-s));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--tof-amber-ink);
}

.tof .tof__dealRule {
    font-size: calc(14.5px * var(--tof-s));
    font-weight: 600;
    line-height: 1.4;
    color: var(--tof-ink-2);
}

.tof .tof__small {
    margin: calc(10px * var(--tof-s)) 0 0;
    font-size: calc(14px * var(--tof-s));
    font-weight: 500;
    line-height: 1.5;
    color: var(--tof-ink-3);
}

/* --------------------------------------------------------------------------
   The way forward
   -------------------------------------------------------------------------- */
.tof .tof__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: calc(58px * var(--tof-s));
    box-sizing: border-box;
    padding: 10px calc(26px * var(--tof-s));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: calc(29px * var(--tof-s));
    background: linear-gradient(135deg, var(--lp-navy, #1e3a5f) 0%, var(--lp-blue, #2563eb) 55%, var(--lp-blue-deep, #1d4ed8) 100%);
    background-size: 160% 100%;
    background-position: 0% 50%;
    box-shadow: 0 18px 34px -16px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-family: var(--tof-display);
    font-size: calc(16.5px * var(--tof-s));
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.005em;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s var(--tof-ease), box-shadow 0.2s var(--tof-ease), background-position 0.45s var(--tof-ease);
}

.tof .tof__button:hover,
.tof .tof__button:focus {
    color: #ffffff;
    text-decoration: none;
}

.tof .tof__button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.32), 0 18px 34px -16px rgba(37, 99, 235, 0.75);
}

.tof .tof__button:active {
    transform: translateY(0) scale(0.99);
}

.tof .tof__button svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--tof-ease);
}

.tof .tof__notes {
    display: grid;
    gap: calc(10px * var(--tof-s));
    margin: calc(18px * var(--tof-s)) 0 0;
    padding: 0;
    list-style: none;
}

.tof .tof__note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 11px;
    margin: 0;
    font-size: calc(15px * var(--tof-s));
    font-weight: 500;
    line-height: 1.5;
    color: var(--tof-ink-2);
}

.tof .tof__note svg {
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.14);
    fill: none;
    stroke: var(--tof-green-ink);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   The step that is checked: where the light plate stands, how its row is
   drawn, which figure of the plate is shown, and the ring of the keyboard
   -------------------------------------------------------------------------- */
.tof .tof__pick:nth-of-type(2):checked ~ .tof__tiers { --tof-at: 1; }
.tof .tof__pick:nth-of-type(3):checked ~ .tof__tiers { --tof-at: 2; }
.tof .tof__pick:nth-of-type(4):checked ~ .tof__tiers { --tof-at: 3; }
.tof .tof__pick:nth-of-type(5):checked ~ .tof__tiers { --tof-at: 4; }
.tof .tof__pick:nth-of-type(6):checked ~ .tof__tiers { --tof-at: 5; }

.tof .tof__pick:nth-of-type(1):checked ~ .tof__tiers .tof__tier:nth-of-type(1),
.tof .tof__pick:nth-of-type(2):checked ~ .tof__tiers .tof__tier:nth-of-type(2),
.tof .tof__pick:nth-of-type(3):checked ~ .tof__tiers .tof__tier:nth-of-type(3),
.tof .tof__pick:nth-of-type(4):checked ~ .tof__tiers .tof__tier:nth-of-type(4),
.tof .tof__pick:nth-of-type(5):checked ~ .tof__tiers .tof__tier:nth-of-type(5),
.tof .tof__pick:nth-of-type(6):checked ~ .tof__tiers .tof__tier:nth-of-type(6) {
    --tof-dot-line: var(--tof-green);
    --tof-dot-fill: var(--tof-green);
    --tof-dot-on: 1;
    --tof-off-fill: var(--tof-green-ink);
    --tof-off-ink: #ffffff;
    --tof-each-ink: var(--tof-green-ink);
    --tof-hand: default;
}

.tof:not(.tof--live) .tof__pick:nth-of-type(1):checked ~ .tof__plate .tof__v:nth-child(1),
.tof:not(.tof--live) .tof__pick:nth-of-type(2):checked ~ .tof__plate .tof__v:nth-child(2),
.tof:not(.tof--live) .tof__pick:nth-of-type(3):checked ~ .tof__plate .tof__v:nth-child(3),
.tof:not(.tof--live) .tof__pick:nth-of-type(4):checked ~ .tof__plate .tof__v:nth-child(4),
.tof:not(.tof--live) .tof__pick:nth-of-type(5):checked ~ .tof__plate .tof__v:nth-child(5),
.tof:not(.tof--live) .tof__pick:nth-of-type(6):checked ~ .tof__plate .tof__v:nth-child(6) {
    display: inline-block;
    animation: var(--tof-rise);
}

.tof .tof__pick:nth-of-type(1):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(1),
.tof .tof__pick:nth-of-type(2):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(2),
.tof .tof__pick:nth-of-type(3):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(3),
.tof .tof__pick:nth-of-type(4):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(4),
.tof .tof__pick:nth-of-type(5):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(5),
.tof .tof__pick:nth-of-type(6):focus-visible ~ .tof__tiers .tof__tier:nth-of-type(6) {
    outline: 3px solid rgba(37, 99, 235, 0.6);
    outline-offset: 2px;
}

@keyframes tof-rise {
    from { opacity: 0; transform: translateY(0.16em); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .tof .tof__tier:hover {
        background-color: rgba(255, 255, 255, 0.62);
    }

    .tof--rules .tof__tier:hover {
        background-color: transparent;
    }

    .tof .tof__button:hover {
        transform: translateY(-2px);
        background-position: 100% 50%;
        box-shadow: 0 26px 44px -16px rgba(37, 99, 235, 0.85), 0 0 0 6px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .tof .tof__button:hover svg {
        transform: translateX(4px);
    }
}

/* --------------------------------------------------------------------------
   A narrow card: a phone, and the column of a small computer. A container
   is measured inside its padding: 429px here is a card of about 485px.
   -------------------------------------------------------------------------- */
@container tof (max-width: 429px) {
    .tof .tof__title {
        font-size: calc(27px * var(--tof-s));
    }

    .tof .tof__lead {
        font-size: calc(16px * var(--tof-s));
    }

    /* the word of a figure goes under it, so the three parts of a row keep one line */
    .tof .tof__tiers,
    .tof .tof__tier {
        column-gap: 10px;
    }

    .tof .tof__tier {
        min-height: 56px;
        padding: 7px 13px 7px 11px;
        font-size: 14px;
        line-height: 1.2;
    }

    .tof .tof__seats,
    .tof .tof__each {
        flex-direction: column;
        align-items: flex-start;
    }

    .tof .tof__each {
        align-items: flex-end;
    }

    .tof .tof__price {
        padding: 18px 16px 16px;
    }

    .tof .tof__was {
        font-size: 21px;
    }

    /* the sums stand one under another: the name on the left, the figure on the right */
    .tof .tof__sums {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .tof .tof__sum {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 2px 12px;
        padding: 11px 16px;
    }

    .tof .tof__sum dd {
        margin: 0;
        font-size: 21px;
    }

    .tof .tof__order {
        padding: 16px 16px 18px;
    }

    /* the price of a course of the example goes under its name */
    .tof .tof__line {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 1px;
    }

    .tof .tof__lineSeats {
        grid-row: 1 / span 2;
        min-width: 58px;
    }

    .tof .tof__line--more .tof__lineSeats {
        grid-row: auto;
    }

    .tof .tof__lineUnit {
        grid-column: 2;
        text-align: left;
    }

    .tof .tof__deals {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the narrowest phone: the row is told by its light plate alone */
@container tof (max-width: 269px) {
    .tof .tof__dot {
        display: none;
    }

    .tof .tof__tiers {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .tof .tof__tier {
        grid-template-columns: minmax(0, 1fr) auto minmax(4.6em, auto);
        padding-left: 13px;
    }

    @supports (grid-template-columns: subgrid) {
        .tof .tof__tier {
            grid-template-columns: subgrid;
        }
    }
}

/* a phone: the padding of a card of the page there (a container cannot ask its own width) */
@media (max-width: 640px) {
    .tof {
        --tof-pad: 18px;
        --tof-gap: 24px;
        padding-top: 26px;
        padding-bottom: 22px;
    }
}

/* --------------------------------------------------------------------------
   The calculator: what its script switches on (js/views/team-offer.js)
   -------------------------------------------------------------------------- */

/* a figure the calculator wrote stands in the place of the ones the page printed for its steps */
.tof .tof__live {
    display: none;
}

.tof--live .tof__live {
    display: inline-block;
    animation: var(--tof-rise);
}

.tof--live .tof__lineSeats .tof__fig {
    display: none;
}

/* a field of the card: the visitor's own number, the seats of a course */
.tof .tof__own,
.tof .tof__qty {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(5, 150, 105, 0.5);
    font-family: var(--tof-display);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: var(--tof-ink);
    -moz-appearance: textfield;
    appearance: textfield;
    transition: box-shadow 0.18s var(--tof-ease);
}

.tof .tof__own::-webkit-outer-spin-button,
.tof .tof__own::-webkit-inner-spin-button,
.tof .tof__qty::-webkit-outer-spin-button,
.tof .tof__qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tof .tof__own:focus,
.tof .tof__qty:focus,
.tof .tof__add:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--tof-green), 0 0 0 3px rgba(37, 99, 235, 0.32);
}

.tof .tof__own {
    width: calc(6ch + 22px);
    padding: 7px 6px;
}

.tof .tof__own::placeholder {
    font-family: var(--tof-body);
    font-weight: 600;
    color: var(--tof-ink-3);
    opacity: 1;
}

.tof .tof__qty {
    width: calc(4ch + 16px);
    padding: 6px 2px;
    color: var(--tof-green-deep);
}

.tof--live .tof__lineSeats {
    padding: 5px 9px 5px 5px;
}

.tof .tof__times {
    font-size: max(14px, 0.92em);
}

/* a course whose seats are nought waits in the order without counting */
.tof .tof__line.is-idle .tof__lineName,
.tof .tof__line.is-idle .tof__lineUnit {
    opacity: 0.55;
}

/* a course the visitor added can be taken off again */
.tof .tof__line--added {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.tof .tof__drop {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0 calc(-5px * var(--tof-s)) 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--tof-ink-2);
    cursor: pointer;
    transition: background-color 0.18s var(--tof-ease), color 0.18s var(--tof-ease);
}

.tof .tof__drop svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.tof .tof__drop:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.6);
    outline-offset: 2px;
}

/* the list of the courses a visitor can add */
.tof .tof__add {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 42px 9px 14px;
    border: 0;
    border-radius: 11px;
    padding-left: 44px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.8' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center, right 13px center;
    background-size: 18px 18px;
    box-shadow: inset 0 0 0 1.5px rgba(5, 150, 105, 0.45);
    font-family: var(--tof-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tof-ink);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.18s var(--tof-ease);
}

/* with the calculator the last row of the order is the list itself, from edge to edge: its plus is the list's own */
.tof--live .tof__line--more {
    display: block;
    padding: 0;
    border: 0;
}

.tof--live .tof__line--more .tof__lineSeats {
    display: none;
}

.tof--live .tof__add {
    box-shadow: none;
    outline: 1.5px dashed rgba(5, 150, 105, 0.5);
    outline-offset: -1.5px;
    border-radius: 14px;
    min-height: 50px;
    font-weight: 700;
    color: var(--tof-green-deep);
}

/* the visitor's own number: the row keeps the shape of a step, its field in the place of the seats; with no
   saving and no price of its own to show, the field and its word take the rest of the row and stay on one line */
.tof .tof__tier--own .tof__seats {
    grid-column: 2 / -1;
    align-items: center;
    column-gap: 8px;
}

/* a narrow card sets the seats of a row over their word: the field keeps the edge the figures keep */
@container tof (max-width: 429px) {
    .tof .tof__tier--own .tof__seats {
        align-items: flex-start;
    }
}

/* the narrowest phone draws no dot: the seats open the row */
@container tof (max-width: 269px) {
    .tof .tof__tier--own .tof__seats {
        grid-column: 1 / -1;
    }
}

/* its label lies over the whole row and names the field for a screen reader; the field stands above it */
.tof .tof__tier--own .tof__hand {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* what the pack leaves out, on demand: a small mark in the corner of its card opens a note above it */
.tof .tof__dealCard {
    position: relative;
}

.tof .tof__dealCard--note {
    padding-right: calc(42px * var(--tof-s));
}

.tof .tof__info {
    position: absolute;
    top: 8px;
    right: 8px;
}

.tof .tof__infoMark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(146, 64, 14, 0.42), 0 6px 12px -8px rgba(146, 64, 14, 0.7);
    color: var(--tof-amber-ink);
    list-style: none;
    cursor: pointer;
    transition: background-color 0.18s var(--tof-ease), color 0.18s var(--tof-ease);
}

.tof .tof__infoMark::-webkit-details-marker {
    display: none;
}

.tof .tof__infoMark svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.tof .tof__infoMark:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.6);
    outline-offset: 2px;
}

.tof .tof__info[open] .tof__infoMark {
    background-color: var(--tof-amber-ink);
    color: #ffffff;
}

.tof .tof__pop {
    position: absolute;
    z-index: 6;
    right: -8px;
    bottom: calc(100% + 11px);
    width: min(calc(290px * var(--tof-s)), 76cqi);
    box-sizing: border-box;
    padding: calc(15px * var(--tof-s)) calc(17px * var(--tof-s));
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(146, 64, 14, 0.2);
    text-align: left;
    animation: var(--tof-rise);
}

.tof .tof__pop::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 7px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 1px 0 rgba(146, 64, 14, 0.2));
}

.tof .tof__popName {
    margin: 0 0 8px;
    font-family: var(--tof-display);
    font-size: calc(15.5px * var(--tof-s));
    font-weight: 800;
    line-height: 1.3;
    color: var(--tof-ink);
}

.tof .tof__popList {
    display: grid;
    gap: 5px;
    margin: 0 0 9px;
    padding: 0;
    list-style: none;
}

.tof .tof__popList li {
    position: relative;
    margin: 0;
    padding: 0 0 0 16px;
    font-size: calc(15px * var(--tof-s));
    font-weight: 600;
    line-height: 1.4;
    color: var(--tof-ink);
}

.tof .tof__popList li::before {
    content: '';
    position: absolute;
    top: 0.52em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d97706;
}

.tof .tof__popText {
    margin: 0;
    font-size: calc(14.5px * var(--tof-s));
    font-weight: 500;
    line-height: 1.5;
    color: var(--tof-ink-2);
}

@keyframes tof-rise-again {
    from { opacity: 0; transform: translateY(0.16em); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .tof .tof__drop:hover {
        background-color: rgba(220, 38, 38, 0.1);
        color: #b91c1c;
    }

    .tof .tof__infoMark:hover {
        background-color: #fffbeb;
    }

    .tof .tof__info[open] .tof__infoMark:hover {
        background-color: var(--tof-amber-ink);
    }
}

@container tof (max-width: 429px) {
    /* the mark that takes a course off stands at the end of its first line */
    .tof .tof__line--added {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .tof .tof__line--added .tof__drop {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .tof .tof__own {
        width: calc(6ch + 14px);
    }
}

/* where the browser can, the field of the visitor's own number is as wide as the word that waits in it, in
   whatever language the page is read, and never narrower than a number of five figures */
@supports (field-sizing: content) {
    .tof .tof__own {
        field-sizing: content;
        width: auto;
        min-width: calc(6ch + 14px);
        max-width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* --------------------------------------------------------------------------
   A card as wide as its page (the page of the teams, the page of a course):
   what is chosen on the left, what it comes to on the right
   -------------------------------------------------------------------------- */
@container tof (min-width: 860px) {
    .tof .tof__in {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "head plate"
            "ask plate"
            "tiers plate"
            "go more";
        column-gap: calc(38px * var(--tof-s));
        row-gap: calc(18px * var(--tof-s));
        align-items: start;
    }

    .tof .tof__calc {
        display: contents;
    }

    .tof .tof__head { grid-area: head; }
    .tof .tof__ask { grid-area: ask; }
    .tof .tof__tiers { grid-area: tiers; }
    .tof .tof__more { grid-area: more; }
    .tof .tof__go { grid-area: go; }

    /* the plate fills its side down to the row of the button, however few courses the order holds */
    .tof .tof__plate {
        grid-area: plate;
        align-self: stretch;
        margin-top: 0;
    }

    /* a platform of one course has no saving for a mix to set beside the button: the button closes the side of
       the price, under the order it is about, and the plate ends where that order ends */
    .tof .tof__in:not(:has(.tof__more)) {
        grid-template-areas:
            "head plate"
            "ask plate"
            "tiers plate"
            "tiers go";
    }
}

/* --------------------------------------------------------------------------
   The card under a head of its own, on a page that gives it its measure
   -------------------------------------------------------------------------- */
.tofBand {
    --tofb-s: var(--lp-scale, var(--tp-scale, 1));
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

/* a band of its own between two sections of a page: the cream of the offer, with its two lights */
section.tofBand {
    padding: calc(84px * var(--tofb-s)) 0;
    background:
        radial-gradient(50% 60% at 100% 0%, rgba(254, 240, 199, 0.85) 0%, rgba(254, 240, 199, 0) 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(209, 250, 229, 0.6) 0%, rgba(209, 250, 229, 0) 70%),
        linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    overflow: clip;
}

.tofBand .tofBand__in {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(1120px * var(--tofb-s));
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.tofBand--in .tofBand__in {
    max-width: none;
    margin-top: calc(44px * var(--tofb-s));
    padding: 0;
}

.tofBand .tofBand__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 calc(34px * var(--tofb-s));
    text-align: center;
}

.tofBand .tofBand__title {
    max-width: 24em;
    margin: 0;
    font-family: var(--lp-font-display, var(--tp-font-display, var(--sc-font-display)));
    font-size: clamp(27px, 2.8vw, calc(40px * var(--tofb-s)));
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--lp-ink, #0b1220);
    text-wrap: balance;
}

.tofBand--in .tofBand__title {
    font-size: clamp(24px, 2.2vw, calc(31px * var(--tofb-s)));
}

.tofBand .tofBand__lead {
    max-width: calc(720px * var(--tofb-s));
    margin: calc(16px * var(--tofb-s)) 0 0;
    font-family: var(--lp-font-body, var(--tp-font-body, var(--sc-font-body)));
    font-size: calc(17.5px * var(--tofb-s));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2, #253247);
    text-wrap: pretty;
}

@media (max-width: 640px) {
    section.tofBand {
        padding: 52px 0;
    }

    .tofBand .tofBand__in {
        padding: 0 18px;
    }

    .tofBand--in .tofBand__in {
        padding: 0;
    }

    .tofBand .tofBand__lead {
        font-size: 16.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tof {
        --tof-rise: none;
    }

    .tof .tof__thumb,
    .tof .tof__dot,
    .tof .tof__dot::after,
    .tof .tof__button,
    .tof .tof__button svg,
    .tof .tof__own,
    .tof .tof__qty,
    .tof .tof__add,
    .tof .tof__drop,
    .tof .tof__infoMark {
        transition: none;
    }
}

/* What waits for its moment is not drawn: the last word of the sheet, over every rule that lays a part out. */
.tof [hidden] {
    display: none;
}
