/*
 * Brand palette, ported from the live painel so the rebuilt public site keeps
 * the identity customers already recognise. Declared as custom properties
 * because the ported markup and the Bootstrap overrides both read them.
 *
 * This file is plain CSS on purpose: it is served exactly as committed, with
 * no build step between the repository and the browser.
 */
:root {
    --azul-muito-escuro: #0e152f;
    --azul-escuro: #162048;
    --azul-claro: #5c637f;
    --azul-muito-claro: #c5c7d1;
    --amarelo-escuro: #c6961f;
    --amarelo-claro: #e9b125;
    --cinza-escuro: #8c8b86;
    --cinza-claro: #afafaf;
    --primary-color: #162048;
    --primary-color-hover: #5c637f;
    --secondary-color: #64748b;
    --accent-color: #f1f5f9;
    --text-primary: #1d1d1d;
    --text-secondary: #333333;
    --background-color: #f8fafc;
    --border-color: #e2e8f0;
    --font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-title: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
 * Base
 *
 * Bootstrap 4 does the layout work: the grid, the spacing utilities, the
 * navbar and the form controls all stay as the framework ships them. What
 * this file adds is the brand on top of that, which is why almost every rule
 * below is either a colour, a type size or a piece of spacing the framework's
 * scale does not reach.
 *
 * The page ground is light (--background-color), the structure is navy, and
 * yellow appears in exactly two places: the primary call to action and a
 * progress indicator. Anywhere else it stops reading as "do this next".
 * ========================================================================== */

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

/*
 * The type scale. Bootstrap's own heading sizes are tuned for an admin panel;
 * these are the marketing sizes, and each one grows once at the medium
 * breakpoint rather than scaling fluidly, so the steps stay predictable.
 */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.625rem;
}

h3 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.375rem;
    }
}

a {
    color: var(--primary-color);
}

a:hover,
a:focus {
    color: var(--primary-color-hover);
}

.text-muted {
    color: var(--secondary-color) !important;
}

/* Keyboard focus must stay visible even where Bootstrap removes the outline. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary-color-hover);
    outline-offset: 2px;
}

.journey-closing a:focus-visible,
.journey-closing button:focus-visible,
.journey-closing .btn:focus-visible,
.precos-hero a:focus-visible,
.precos-hero button:focus-visible,
.precos-hero .btn:focus-visible,
.mu-timeline-on-dark a:focus-visible {
    outline-color: var(--amarelo-claro);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/*
 * The shell is a flex column so a short page still pins the footer to the
 * bottom of the viewport instead of leaving it floating mid-screen.
 */
.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-shell > main {
    flex: 1 0 auto;
}

/* ==========================================================================
 * Buttons
 *
 * Yellow is the primary action and navy is the secondary one, which is the
 * reverse of what the palette's variable names suggest: --primary-color is the
 * brand's structural navy, not the colour of the primary button.
 * ========================================================================== */

.btn {
    font-weight: 600;
    border-radius: 0.375rem;
}

.btn-brand {
    background-color: var(--amarelo-claro);
    border-color: var(--amarelo-claro);
    color: var(--azul-escuro);
    font-weight: 700;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--amarelo-escuro);
    border-color: var(--amarelo-escuro);
    color: var(--azul-escuro);
}

.btn-brand-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background-color: var(--primary-color);
    color: #fff;
}

/*
 * The framework's own primary is still reached by the ported forms (the login,
 * signup and password screens submit with .btn-primary). Repainting it here
 * keeps those buttons on the brand navy without editing every view.
 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--azul-muito-escuro);
    border-color: var(--azul-muito-escuro);
}

/* ==========================================================================
 * Header and footer
 * ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.site-header .navbar-brand img {
    display: block;
}

/*
 * Three class parts on purpose: Bootstrap's own .navbar-light .navbar-nav
 * .nav-link rule carries three, and a two-part selector here loses the
 * cascade, leaving the links on the framework grey that fails AA (3.95:1,
 * caught by Lighthouse on the operator walk).
 */
.site-header .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    color: var(--primary-color-hover);
}

.site-header .navbar-toggler {
    border-color: var(--border-color);
}

/* The brand bar of the slim `app` layout: chrome enough to place the page. */
.app-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.app-bar-brand img {
    display: block;
}

/*
 * The page body of the slim layout: the funnel and the auth screens.
 *
 * These pages carry one task each and no navigation to leave it by, so the
 * layout is a single centred column rather than the marketing grid. The width
 * is capped in characters rather than pixels because what is being read is
 * form labels and short paragraphs, and a line of those stops being scannable
 * long before a wide viewport runs out.
 *
 * The funnel screens run the stepper above the card, so the customer sees where
 * they stand before they see what to do; the auth screens carry no stepper at
 * all and take the narrower column, since a sign-in form is four fields.
 */
.app-screen {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.app-screen-inner {
    max-width: 44rem;
    margin: 0 auto;
}

.app-screen-narrow {
    max-width: 28rem;
    margin: 0 auto;
}

/* The stepper sits above the card, separated by the gap it needs to read as
   context for the card rather than as part of it. */
.app-screen-inner > .mu-timeline {
    margin-bottom: 2rem;
}

.app-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.app-screen-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.app-screen-lead {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/*
 * The section headings inside an app card. They divide one card rather than
 * introducing separate pages, so they are quieter than the card's own title and
 * carry their weight through spacing above instead of size.
 *
 * The margin above is the section break, so it is right in every position but
 * one: the heading that OPENS a card's body, directly under the card's lead,
 * where the lead has already left the gap and the margin doubles it. That case
 * is named by the markup with the modifier below rather than guessed at with
 * `:first-of-type`, which is scoped to the heading's parent element: on the
 * signup card the headings sit inside the form, so the pseudo-class matched
 * whichever heading a form happened to open with, and moving a field across the
 * form boundary would have moved the gap with it.
 */
.app-card-heading {
    font-size: 1.125rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.app-card-heading-flush {
    margin-top: 0;
}

.app-card-footnote {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.site-footer {
    background-color: var(--accent-color);
    border-top: 1px solid var(--border-color);
}

.site-footer-brand img {
    display: inline-block;
}

.site-footer a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--primary-color-hover);
    text-decoration: none;
}

.site-footer .social-link {
    color: var(--primary-color);
}

.site-footer .social-link:hover,
.site-footer .social-link:focus {
    color: var(--primary-color-hover);
}

/*
 * --text-secondary rather than --secondary-color: at 13px this line is small
 * text, so it needs the full AA ratio against the footer's --accent-color
 * ground. The lighter grey reaches only 4.34:1 and fails it.
 */
.site-footer .copyright {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/*
 * The signed-in customer's strip above the page. It is a utility bar, not a
 * second navigation: quiet, dense, and visually subordinate to the header.
 */
.client-nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.client-nav-link {
    padding: 0.25rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.client-nav-link:hover,
.client-nav-link:focus {
    color: var(--primary-color-hover);
    text-decoration: none;
}

/* The logout control is a form submit, so it arrives as a button. */
button.client-nav-link {
    border: 0;
    background: none;
    vertical-align: baseline;
}

/*
 * The same strip inside the client area itself, where it is the only navigation
 * there is: the app chrome carries none. It therefore sits INSIDE the page
 * column rather than spanning the viewport as the public site's utility bar
 * does, and it reads as a set of tabs rather than as a footnote, which is what
 * the underline on the current one is for.
 *
 * The current tab is marked by an underline as well as by colour, because
 * "which page am I on" must not be a question only a customer who can separate
 * two blues is able to answer. The underline is navy rather than yellow:
 * yellow on this site means "do this next", and it is spent on the one primary
 * action per screen and on the progress indicator. A tab saying where the
 * customer already is competes with that action for exactly the wrong glance.
 */
.client-nav-tabs {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 0.25rem;
}

.client-nav-tabs .client-nav-link {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
}

.client-nav-tabs .client-nav-link:first-child {
    padding-left: 0;
}

.client-nav-tabs .client-nav-link.is-current {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ==========================================================================
 * Sections
 *
 * The rhythm every public page is built from. Bootstrap 4's spacing scale
 * stops at 3rem (p-5), which is tighter than a marketing section wants, so the
 * section padding lives here rather than being restated inline per view.
 * ========================================================================== */

.section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-heading {
    max-width: 46rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/*
 * The card the feature sections are built from: white, quietly bordered, and
 * lifting on hover so a grid of them reads as a set of things rather than as
 * one block of text.
 */
.card-feature {
    height: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card-feature:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.card-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-feature-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
 * Forms
 *
 * These class names are not written in any view: Yii's ActiveForm emits them.
 * The site uses both widgets, and they disagree on the name, so both are
 * styled. `yii\widgets\ActiveForm` (the auth and signup screens) puts the
 * message in `.help-block`; `yii\bootstrap4\ActiveForm` (the contact form)
 * uses Bootstrap's own `.invalid-feedback` and flags the control with
 * `.is-invalid`.
 * ========================================================================== */

/*
 * The error red, declared here rather than in the token block at the top of the
 * file so the palette ported from the live painel stays exactly as it arrived.
 * Everything that means "this went wrong" reads it: the form messages below and
 * the timeline's failed step. It is darker than the #dc3545 those messages used
 * to hardcode, because that value measured 4.33:1 against the page ground and a
 * 15px message needs 4.5:1; this one measures 6.21:1.
 */
:root {
    --vermelho-erro: #b02a37;
}

.help-block {
    margin-left: 3px;
    color: var(--vermelho-erro);
}

/*
 * Bootstrap renders .invalid-feedback red already, but it also renders it for
 * an empty element, which is what the widget emits before validation runs. The
 * :not(:empty) guard is what keeps the indent off a message that is not there.
 */
.invalid-feedback:not(:empty) {
    margin-left: 3px;
    color: var(--vermelho-erro);
}

.is-invalid {
    border: 2px solid var(--vermelho-erro) !important;
    padding-right: 2.25rem !important;
}

/* ==========================================================================
 * Password strength
 *
 * Drawn under the password field on signup, password reset and password
 * change by frontend/views/partials/_password-strength.php. Four segments
 * fill left to right as the script scores the value with the same ruler the
 * server applies; the rule list under it turns each line navy as it is met.
 * Yellow stays where the palette allows it, so the "fair" step borrows the
 * warm token rather than a new colour, and the error red is the Forms one.
 *
 * The "strong" green is the one colour here the palette has no token for: the
 * brand is navy and yellow, and a fourth segment painted in either would read
 * as the same step as the third. It is spelled literally rather than promoted
 * into the frozen :root block, which no feature may edit.
 * ========================================================================== */

.pw-meter {
    margin-top: 0.5rem;
}

.pw-meter-bar {
    display: flex;
    gap: 4px;
    height: 6px;
}

.pw-meter-bar span {
    flex: 1 1 0;
    border-radius: 3px;
    background: var(--border-color);
    transition: background-color 150ms ease;
}

.pw-meter[data-level="1"] .pw-meter-bar span:nth-child(-n+1) { background: var(--vermelho-erro); }
.pw-meter[data-level="2"] .pw-meter-bar span:nth-child(-n+2) { background: var(--amarelo-escuro); }
.pw-meter[data-level="3"] .pw-meter-bar span:nth-child(-n+3) { background: var(--azul-claro); }
.pw-meter[data-level="4"] .pw-meter-bar span:nth-child(-n+4) { background: #2e7d32; }

.pw-meter-label {
    margin: 0.375rem 0 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pw-meter-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.pw-meter-rules li::before {
    content: "\2022";
    display: inline-block;
    width: 1rem;
}

.pw-meter-rules li.is-met {
    color: var(--azul-muito-escuro);
}

.pw-meter-rules li.is-met::before {
    content: "\2713";
}

@media (prefers-reduced-motion: reduce) {
    .pw-meter-bar span {
        transition: none;
    }
}

/* ==========================================================================
 * Timeline
 *
 * The four steps between signing up and having a store on the air, drawn as
 * dots on a connecting bar. It is the same partial on the home hero, in the
 * signup funnel and in the client area, so the states below are the whole
 * vocabulary those three screens have: done, current, failed, and pending.
 *
 * Yellow is spent here on purpose. The palette block above allows it in two
 * places, the primary call to action and the progress indicator, and this is
 * that indicator at full size: the dots the customer has already reached.
 * Everything still ahead stays navy, so the boundary between the yellow dots
 * and the navy ones is what the eye reads as "you are here".
 *
 * The bar is a pseudo-element on the list rather than a border on each item,
 * because it has to run behind the dots and stop under the last one instead of
 * trailing off the end.
 *
 * Progress is told by the dots, not by the length of the bar. The partial emits
 * only class names, so the stylesheet has no number to size a bar from, and
 * inventing one from a nth-child guess would put the boundary in a place the
 * markup never claimed. The bar is the quiet track the dots sit on; the yellow
 * running along it appears only in the animated hero, where it is a promise
 * rather than a reading of anyone's real progress.
 * ========================================================================== */

.mu-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/*
 * The track and, stacked on it, the yellow the hero animation sweeps along.
 * On narrow screens the steps stack, so both run vertically down the middle of
 * the dot column. The yellow one is collapsed to nothing until an animation
 * grows it, which is why a static timeline shows only the track.
 */
.mu-timeline::before,
.mu-timeline::after {
    content: "";
    position: absolute;
    left: 0.6875rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 0.125rem;
    border-radius: 2rem;
}

.mu-timeline::before {
    background-color: var(--azul-muito-claro);
}

.mu-timeline::after {
    background-color: var(--amarelo-claro);
    transform-origin: top center;
    transform: scaleY(0);
}

.mu-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 1.5rem;
}

/*
 * The dot doubles as the glyph slot. A dot that only changes hue tells a
 * customer who cannot separate yellow from red nothing at all, and the failed
 * step is the one they must not miss, so done and failed each carry a shape as
 * well: a check and a cross, drawn as text inside the circle.
 *
 * The border is navy rather than the pale blue the track uses, because the dot
 * carries state and a graphical object that does needs 3:1 against the page;
 * the yellow fill alone measures 1.58:1 and could not carry it.
 */
.mu-step-dot {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 0.125rem solid var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--background-color);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

/*
 * Pending labels were #8c8b86 on the page ground, 3.26:1, under the 4.5:1 a
 * 15px label needs. --text-secondary measures 12.08:1 and still reads as the
 * quieter of the two label weights next to the navy of a reached step.
 *
 * 15px is this rule's own size, the one a phone renders. From 768px up the
 * label grows to 16px, where the same 4.5:1 threshold applies and the same
 * 12.08:1 clears it with more room, so the reasoning above only strengthens.
 */
.mu-step-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/*
 * The status word each step carries for a screen reader. It is removed from the
 * page without being removed from the accessibility tree, which display: none
 * and visibility: hidden would both do.
 */
.mu-step-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mu-step.is-done .mu-step-dot,
.mu-step.is-current .mu-step-dot {
    background-color: var(--amarelo-claro);
    border-color: var(--amarelo-escuro);
}

.mu-step.is-done .mu-step-dot::before {
    content: "\2713";
}

.mu-step.is-done .mu-step-label,
.mu-step.is-current .mu-step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* The step the customer is on gets the only ring on the list, so it reads as
   the one live thing among four settled ones. */
.mu-step.is-current .mu-step-dot {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 0.25rem var(--background-color),
        0 0 0 0.375rem var(--amarelo-escuro);
}

.mu-step.is-failed .mu-step-dot {
    background-color: var(--vermelho-erro);
    border-color: var(--vermelho-erro);
    color: #ffffff;
}

.mu-step.is-failed .mu-step-dot::before {
    content: "\00d7";
    font-size: 1.125rem;
}

.mu-step.is-failed .mu-step-label {
    color: var(--vermelho-erro);
    font-weight: 700;
}

/*
 * From the tablet width up the steps sit side by side and the bar turns
 * horizontal, which is the shape the home hero and the funnel header use.
 */
@media (min-width: 768px) {
    .mu-timeline {
        flex-direction: row;
        gap: 0;
    }

    .mu-timeline::before,
    .mu-timeline::after {
        left: 12.5%;
        right: 12.5%;
        top: 0.6875rem;
        bottom: auto;
        width: auto;
        height: 0.125rem;
    }

    .mu-timeline::after {
        transform-origin: left center;
        transform: scaleX(0);
    }

    .mu-step {
        flex: 1 1 0;
        flex-direction: column;
        /* Stacked under the dot rather than beside it, the label needs more
           room off the circle than it did sitting next to one. */
        gap: 0.75rem;
        text-align: center;
    }

    /*
     * Only from this width up: stacked under its dot the label carries the
     * step on its own, where on a phone it sits beside the dot and reads as
     * the smaller half of a pair. Larger than the 0.9375rem base, not smaller
     * - the label is the step's whole name here, and the contrast note on that
     * base rule holds a fortiori at a bigger size.
     */
    .mu-step-label {
        font-size: 1rem;
    }
}

/*
 * The hero variant. Nothing here is state the partial emits: the loop replays
 * the same four steps filling up, over and over, because the page's promise is
 * that the wait is short enough to watch. One pass takes nine seconds, which
 * is long enough to read the four labels and short enough that a visitor
 * scrolling past still catches a store going up.
 *
 * The whole animation lives behind prefers-reduced-motion: no-preference, and
 * the reduce branch below paints the same picture standing still, so a visitor
 * who asked for stillness loses the motion and none of the meaning.
 *
 * Every dot rule here is scoped away from steps that carry a real state. An
 * animation origin outranks ordinary author declarations in the cascade, so an
 * unscoped keyframe would repaint the failed step yellow on a nine second loop
 * and delete the one thing a customer in trouble needs to see. The states and
 * the loop are independent parameters, so that call is legal and the guard has
 * to live in the selector rather than in a caller's discipline.
 */
@media (prefers-reduced-motion: no-preference) {
    .mu-timeline-animated::after {
        animation: mu-timeline-fill-down 9s linear infinite;
    }

    .mu-timeline-animated .mu-step:not(.is-done):not(.is-current):not(.is-failed) .mu-step-dot {
        animation: mu-timeline-dot 9s linear infinite;
    }

    /* Each dot lights up as the fill reaches it, a quarter of a pass apart. */
    .mu-timeline-animated .mu-step:nth-child(1) .mu-step-dot {
        animation-delay: 0s;
    }

    .mu-timeline-animated .mu-step:nth-child(2) .mu-step-dot {
        animation-delay: 2.25s;
    }

    .mu-timeline-animated .mu-step:nth-child(3) .mu-step-dot {
        animation-delay: 4.5s;
    }

    .mu-timeline-animated .mu-step:nth-child(4) .mu-step-dot {
        animation-delay: 6.75s;
    }
}

/*
 * Standing still, the hero shows the end of the story rather than the start of
 * it: the bar full and the dots lit. Leaving the collapsed track in place would
 * hand a reduced-motion visitor an empty rail and none of the promise the
 * animation exists to make. Steps carrying a real state are excluded here for
 * the same reason as above.
 */
@media (prefers-reduced-motion: reduce) {
    .mu-timeline-animated::after {
        transform: scaleY(1);
    }

    .mu-timeline-animated .mu-step:not(.is-failed) .mu-step-dot {
        background-color: var(--amarelo-claro);
        border-color: var(--amarelo-escuro);
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
    .mu-timeline-animated::after {
        transform: scaleX(1);
    }
}

/*
 * Two passes of the same sweep, one per axis, because the bar turns horizontal
 * at the tablet breakpoint and a transform cannot pick its own direction. Both
 * reach full length at 88% of the pass and hold there, so the finished picture,
 * a store on the air, is the one the loop rests on before restarting.
 */
@keyframes mu-timeline-fill-down {
    0% {
        transform: scaleY(0);
    }

    88%,
    100% {
        transform: scaleY(1);
    }
}

@keyframes mu-timeline-fill-across {
    0% {
        transform: scaleX(0);
    }

    88%,
    100% {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .mu-timeline-animated::after {
        animation-name: mu-timeline-fill-across;
    }
}

@keyframes mu-timeline-dot {
    0%,
    2% {
        background-color: var(--background-color);
        border-color: var(--primary-color);
    }

    6%,
    100% {
        background-color: var(--amarelo-claro);
        border-color: var(--amarelo-escuro);
    }
}

/* ==========================================================================
 * Home: the journey spine
 *
 * The home page is structured as the provisioning journey itself. A vertical
 * spine runs down the left of every section and each section anchors to a
 * numbered step node: the unnumbered hero opens, then 1 the plan summary,
 * 2 the platform built during provisioning, 3 the store on the air. The spine
 * is pure CSS: a 2px line drawn per section on the inner wrapper, so the
 * segments abut across section boundaries and each ground can colour its own
 * stretch. On the navy hero the segment is yellow, the progress accent; on the
 * light sections it is the structural navy.
 *
 * The rail offset is one custom property so the line, the node dots and the
 * content padding can never disagree about where the spine is. Mobile pulls it
 * in to 24px; from the tablet width up it sits at 64px inside the centered
 * content column.
 *
 * EVERY read of the property carries a fallback matching the declaration below
 * it, and that is not decoration. The property is declared on `.mu-journey`,
 * which the home page opens and the help centre does not: the hub and the
 * article pages write journey sections with no such ancestor. An undeclared
 * custom property makes the `calc()` around it an invalid value, and an
 * invalid value in a shorthand drops the entire declaration, so those pages
 * rendered with padding-left computing to zero and their headings flush
 * against the edge of a phone. The fallback makes the rail a property of the
 * journey language itself rather than of one page's wrapper.
 *
 * The arithmetic the fallback restores, at the root font size of 16px:
 *
 *   mobile  padding-left = 1.5rem (rail) + 1.75rem = 24 + 28 = 52px
 *   md and up            = 4rem   (rail) + 3rem    = 64 + 48 = 112px
 *
 * Both clear the 15px a Bootstrap gutter would have paid, which is the number
 * the hub needs: it places its headings straight into the wrapper with no
 * container between, so this padding is the only thing holding them off the
 * edge of the screen. Before the fallback the calc() was invalid on those
 * pages and both figures computed to 0.
 *
 * Nothing double-pays. `.journey-inner > .row` drops the row's negative
 * margin instead of paying it back, so a row inside the wrapper sits at the
 * wrapper's own edge rather than a gutter outside it. The article body's
 * separate compensation is unchanged and still nets to zero:
 * `.article-body` +15px, its containers 0, the row's pull -15px.
 * ========================================================================== */

.mu-journey {
    --journey-rail: 1.5rem;
}

@media (min-width: 768px) {
    .mu-journey {
        --journey-rail: 4rem;
    }
}

.journey-ground-light {
    background-color: var(--background-color);
}

.journey-ground-white {
    background-color: #fff;
}

/*
 * The section padding lives on the inner wrapper rather than the section, so
 * the wrapper spans the section's full height and the spine drawn on its
 * ::before runs edge to edge with no gaps between sections.
 */
.journey-inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1rem 3rem calc(var(--journey-rail, 1.5rem) + 1.75rem);
}

@media (min-width: 768px) {
    .journey-inner {
        padding: 4.5rem 1.5rem 4.5rem calc(var(--journey-rail, 4rem) + 3rem);
    }
}

.journey-inner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--journey-rail, 1.5rem);
    width: 2px;
    background-color: var(--primary-color);
}

/*
 * The spine tracks the same fallback the padding does, width for width. The
 * node dots are placed off the CONTENT edge by exactly the distance the
 * padding adds past the rail (1.75rem here, 3rem from md up), so a spine that
 * kept the mobile fallback at md would leave the dots hanging beside the line
 * on every page that has no .mu-journey ancestor.
 */
@media (min-width: 768px) {
    .journey-inner::before {
        left: var(--journey-rail, 4rem);
    }
}

/*
 * The step node: an uppercase eyebrow naming the step on the spine.
 */
.journey-node {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    margin-bottom: 1.25rem;
}

.journey-node-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

/* The marketing voice of the page: section titles and their one-line leads. */
.journey-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.journey-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 46rem;
}

.mu-timeline-on-dark .mu-timeline::before {
    background-color: rgba(255, 255, 255, 0.3);
}

.mu-timeline-on-dark .mu-step-label {
    color: rgba(255, 255, 255, 0.85);
}

.mu-timeline-on-dark .mu-step.is-done .mu-step-label,
.mu-timeline-on-dark .mu-step.is-current .mu-step-label {
    color: #fff;
}

.mu-timeline-on-dark .mu-step-dot {
    background-color: var(--azul-muito-escuro);
    border-color: var(--azul-muito-claro);
    color: #fff;
    box-shadow: 0 0 0 0.25rem var(--azul-muito-escuro);
}

.mu-timeline-on-dark .mu-step.is-done .mu-step-dot,
.mu-timeline-on-dark .mu-step.is-current .mu-step-dot {
    background-color: var(--amarelo-claro);
    border-color: var(--amarelo-escuro);
    color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--azul-muito-escuro);
}

.mu-timeline-on-dark .mu-step.is-current .mu-step-dot {
    box-shadow:
        0 0 0 0.25rem var(--azul-muito-escuro),
        0 0 0 0.375rem var(--amarelo-escuro);
}

/*
 * The other kind of way onward: a link sitting inside a sentence rather than
 * closing a section. The pricing table ends on a line of prose that offers a
 * conversation, and the offer is part of the sentence - turning it into a
 * button would break the line in half and give a mid-paragraph aside the same
 * weight as the section-closing decisions above.
 *
 * So it keeps the treatment the section links used to carry, which is what an
 * inline link wanted all along: bolder than its sentence, underlined, and
 * offset far enough that the underline does not cut the descenders.
 */
.journey-inline-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.journey-inline-link:hover,
.journey-inline-link:focus {
    color: var(--primary-color-hover);
}

/*
 * Every grid row the journey wrapper holds keeps its columns inside it.
 *
 * A Bootstrap row pulls itself out by half a gutter on each side and expects
 * the container it was written for to have padded the same amount back in. The
 * journey wrapper is not that container: its horizontal padding is spent
 * placing content clear of the timeline rail. So every row inside it hung
 * fifteen pixels past the right edge, which is what put the home's
 * differential images flush against the edge of a phone while the text beside
 * them kept its margin, and what made the resource hub scroll sideways.
 *
 * The pull is dropped rather than paid back, so the row's own box ends where
 * the wrapper does and nothing can extend past it. The columns keep their
 * padding, so the space between two cards is unchanged and the cards simply
 * sit a gutter inside the wrapper's edge.
 */
.journey-inner > .row {
    margin-left: 0;
    margin-right: 0;
}

/* The navy band the journey ends on: the last ask, full width, no spine. */
.journey-closing {
    background-color: var(--azul-muito-escuro);
    padding: 4rem 0;
}

.journey-closing-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.journey-closing-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
}

/* ==========================================================================
 * Pricing page (/precos)
 *
 * One comparison table, the whole catalogue side by side. The recommended
 * column is the page's single emphasis: a warm tint and the flag, nothing
 * else competing with it. The table is wider than a phone on purpose and
 * scrolls inside its own wrapper, never the page body.
 * ========================================================================== */

.precos-hero {
    background-color: var(--azul-muito-escuro);
    padding: 4rem 0;
}

.precos-eyebrow {
    color: var(--amarelo-claro);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.precos-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.precos-hero-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    max-width: 46rem;
    margin-bottom: 0;
}

.precos-compare {
    padding: 4rem 0;
}

.precos-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.precos-table-wrap:focus {
    outline: 2px solid var(--azul-claro);
    outline-offset: 2px;
}

.precos-table {
    width: 100%;
    min-width: 56rem;
    border-collapse: collapse;
    background-color: #fff;
}

.precos-table th,
.precos-table td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    vertical-align: top;
}

/* The feature column keeps the table readable while the plans scroll by. */
.precos-corner,
.precos-feature {
    background-color: var(--accent-color);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/*
 * Qualified by the table so it outranks `.precos-table th`, which sets top
 * alignment on every cell: bottom alignment is what keeps each plan's price
 * and button on the same line as its neighbours', whatever sits above them.
 */
.precos-table .precos-plan {
    min-width: 11rem;
    vertical-align: bottom;
}

.precos-plan.is-recommended,
.precos-value.is-recommended {
    background-color: rgba(233, 177, 37, 0.08);
}

.precos-plan.is-recommended {
    border-top: 3px solid var(--amarelo-escuro);
}

.precos-plan-flag-slot {
    display: flex;
    align-items: flex-start;
    min-height: 1.75rem;
    margin-bottom: 0.5rem;
}

.precos-plan-flag {
    display: inline-block;
    background-color: var(--amarelo-escuro);
    color: var(--azul-muito-escuro);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    padding: 0.2rem 0.6rem;
}

.precos-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.precos-plan-description {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.precos-plan-price {
    margin-bottom: 0.75rem;
}

.precos-plan-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.precos-plan-period {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.precos-value {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/*
 * The stacked rendering of the same catalogue, for the widths the comparison
 * table cannot serve.
 *
 * The table needs 56rem to hold five columns, so on a phone it showed a column
 * and a half and asked the customer to drag a twenty-six row grid sideways.
 * Below md the plans become one card each and the comparison becomes a read
 * down the page instead. Which of the two the visitor gets is decided by the
 * `d-none d-md-block` / `d-md-none` pair in the markup; these rules only shape
 * the cards, and the price and the button reuse the table's own classes so the
 * two renderings cannot drift apart typographically.
 */
.precos-cards {
    display: grid;
    gap: 1rem;
}

.precos-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

/* The one plan the page recommends, lifted the way the table lifts its column. */
.precos-card.is-recommended {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.precos-card-flag {
    display: inline-block;
    background-color: var(--amarelo-escuro);
    color: var(--azul-muito-escuro);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
}

.precos-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.precos-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.precos-card-price {
    margin-bottom: 0.75rem;
}

/*
 * The restriction list of one plan: a label and its value on one line each, so
 * the pair stays readable at the narrow widths this rendering exists for. The
 * definition list is the semantic shape of what the table states as a row.
 */
.precos-card-values {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
}

.precos-card-feature {
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.precos-card-value {
    color: var(--text-primary);
    margin: 0;
}

/* ==========================================================================
 * Ported vocabulary
 *
 * These classes arrived with the pages ported from the live painel and are
 * still consumed, so they outlived the redesign rather than waiting on it.
 * Three groups, and each has a different reason to stay:
 *
 * - The legal and contact screens (`.py-md-6`, `.contact-*`) keep their bodies
 *   untouched by the redesign, so they keep the classes those bodies name.
 * - `.pricing-card` stays as the card the brand rules are pinned on; the home
 *   that built cards from it now has its own stylesheet.
 * - The `.resource-*` and `.abbr-custom` classes are NOT written in any view.
 *   They are inside the stored article bodies, authored against this
 *   vocabulary and served from the database through the purifier, so grepping
 *   the view tree alone reports them dead and deleting one unstyles a live
 *   page with a green suite. `common/migrations/data/articles/*.html` is the
 *   consumer to grep, together with whatever an editor has since saved.
 *
 * The handful of selectors in these groups that nothing referenced any more
 * were deleted rather than carried; what remains is referenced.
 * ========================================================================== */

/*
 * Bootstrap 4's spacing scale stops at 3rem; the legal and contact sections
 * reach for a sixth step from the medium breakpoint up, pairing it with the
 * framework's own .py-5 below that width.
 */
@media (min-width: 768px) {
    .py-md-6 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/*
 * Pricing
 *
 * The recommended card is the one deliberate emphasis on the page: it lifts,
 * takes the gold border and carries the flag. Everything around it stays
 * quiet so the lift reads as a recommendation rather than as noise.
 */
.pricing-card {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.pricing-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.pricing-card.is-recommended {
    border-color: var(--amarelo-escuro);
    border-width: 2px;
    box-shadow: 0 16px 36px rgba(22, 32, 72, 0.14);
}

@media (min-width: 1200px) {
    .pricing-card.is-recommended {
        transform: translateY(-0.75rem);
    }
}

.restriction-yes {
    color: #16a34a;
    font-weight: 700;
}

.restriction-no {
    color: #dc2626;
    font-weight: 700;
}

.restriction-unlimited {
    color: var(--amarelo-escuro);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
}

/*
 * Resource pages
 *
 * The article bodies share one shape: a run of heading-plus-cards sections.
 * The classes below carry that shape, so a body stays content and does not
 * restate the same spacing and type scale in inline styles. The page chrome
 * around them (hero, navigation, closing call to action) is the journey
 * vocabulary above; only `.resource-page` and the `.resource-nav-*` group are
 * written by `frontend/views/site/article.php` and `resources.php` themselves.
 */
.resource-page {
    max-width: 1500px;
    margin: 0 auto;
}

/*
 * The wrapper the stored article body is printed into.
 *
 * The bodies were authored in Bootstrap's grid vocabulary, so their rows pull
 * themselves out by half a gutter on each side expecting a container to have
 * paid it back. Six of the seeded bodies open a row with no container above
 * it, and nothing between the page and the body pays that gutter, so those
 * pages bled fifteen pixels past the right edge and the whole document
 * scrolled sideways on a phone. Hiding the overflow instead would leave the
 * bleed in place and only stop the page from admitting it.
 *
 * The padding is unconditional, so it does not depend on what an editor wrote.
 * The bodies that DO carry a container give their own padding up in exchange,
 * which keeps one gutter on the page rather than stacking a second one.
 *
 * The reset reaches every container, not just a direct child: eighteen of the
 * seeded bodies nest a container inside a container, and a direct-child rule
 * would leave the inner one padding a second time. `.container-fluid` carries
 * the same padding and is reset with it, so a body that reaches for the
 * full-width variant does not reintroduce the stack.
 *
 * The invariant this compensation rests on: NOTHING between `.article-body`
 * and a `.row` may supply horizontal padding of its own. Containers are
 * handled above; a body that wraps a row in some other padded element (a
 * `px-*` utility, say) would push that row's negative margin back out past
 * this wrapper's gutter and start bleeding again. The bodies are
 * editor-authored, so this is a contract on what may be written, not
 * something the stylesheet can enforce on its own. Rows nested directly
 * inside other rows are the same hazard from the other direction and appear
 * in none of the seeded bodies today.
 */
.article-body {
    padding-left: 15px;
    padding-right: 15px;
}

.article-body .container,
.article-body .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.resource-nav {
    gap: 1rem;
}

.resource-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.2s ease-in-out;
}

.resource-nav-link:hover,
.resource-nav-link:focus {
    color: var(--primary-color-hover);
    text-decoration: none;
}

/*
 * The previous and next links take the free space either side so the middle
 * link stays centred whether or not both of them are present.
 */
.resource-nav-prev,
.resource-nav-next,
.resource-nav-spacer {
    flex: 1 1 0;
}

.resource-nav-back {
    flex: 0 0 auto;
}

/*
 * The quieter second half of a heading, used where the painel split a title
 * across two lines.
 */
.resource-title-muted {
    color: var(--cinza-escuro);
}

/* The step number on the "how it works" cards. */
.resource-step-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.resource-code {
    background-color: var(--accent-color);
    border-radius: 0.25rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.875em;
}

.resource-caption {
    color: var(--cinza-escuro);
    font-size: 0.9375rem;
    font-style: italic;
}

/* A stack of alternating text/image rows. */
.resource-row-stack > .row + .row {
    margin-top: 3rem;
}

/*
 * Cards stacked vertically rather than laid out in a row: the gap belongs
 * between them, so the last card does not push the section open at the bottom.
 */
.resource-card-stack > * + * {
    margin-top: 1.5rem;
}

.resource-lead {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.resource-section-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .resource-section-title {
        font-size: 2.25rem;
    }
}

.resource-rule {
    width: 5rem;
    height: 0.25rem;
    border-radius: 2rem;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
}

.resource-section-text {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 46rem;
}

.resource-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: box-shadow 0.2s ease-in-out;
}

.resource-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.resource-card-title {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
}

.resource-card-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.resource-list-item {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.resource-list-item::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

/*
 * Abbreviations whose expansion is written on the element as data-title.
 *
 * The expansion is the reason the abbreviation is readable at all, so it is
 * surfaced on hover and on keyboard focus alike: these elements carry tabindex,
 * and a hover-only bubble would make them focus stops that reveal nothing. The
 * dotted underline is what tells a reader there is something to hover in the
 * first place.
 *
 * position is set here rather than by a helper class in the markup, because the
 * bubble is positioned against this element and nothing else may place it.
 */
.abbr-custom {
    position: relative;
    border-bottom: 1px dotted var(--azul-claro);
    text-decoration: none;
    cursor: help;
}

.abbr-custom::after {
    content: attr(data-title);
    position: absolute;
    bottom: calc(100% + 8px);
    /*
     * Centred on the abbreviation rather than anchored to its left edge: these
     * sit mid-sentence, and an abbreviation near the right margin would push a
     * left-anchored bubble past the viewport and clip the explanation off.
     */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: block;
    width: max-content;
    max-width: min(18rem, 90vw);
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--azul-escuro);
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-style: normal;
    line-height: 1.4;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /*
     * Hidden by opacity rather than display, so the bubble can fade and so it
     * never becomes a hover target of its own that would keep itself open.
     */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
}

.abbr-custom:hover::after,
.abbr-custom:focus::after,
.abbr-custom:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* Resource index */

/*
 * The whole card is clickable: the title's link is stretched over it, so the
 * visible hit area matches what a visitor expects without nesting the card's
 * text inside the anchor.
 */
.resource-index-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s ease-in-out;
}

.resource-index-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.resource-index-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.resource-index-card:hover .resource-index-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.resource-index-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.resource-index-card-title a {
    color: inherit;
}

.resource-index-card-title a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.resource-index-card-title a:hover,
.resource-index-card-title a:focus {
    color: var(--primary-color-hover);
    text-decoration: none;
}

.resource-index-card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/*
 * Contact
 *
 * The form sits on a raised card against the section background, which is what
 * separates the thing the visitor is asked to do from the prose arguing for it.
 */
.contact-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.contact-subheading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-tagline {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-plan-note {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-success-mark {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--primary-color);
}
