/*
 * Visual identity "Kermesse": the village fête, as an app. Bright colours, round shapes, buttons with depth,
 * but plain words and WCAG AA contrasts: it remains a public service.
 *
 * Themes. Components only use the ROLE variables declared in a theme block (--action, --surface, --text…);
 * a theme is one block of values. Colours are written in theme blocks only (tests/Shared/StyleSheetTest.php
 * enforces it, and checks the contrast of each text/background pair of each theme). A future theme (a more
 * institutional one for larger communes) is a new [data-theme='…'] block, without touching any component.
 */

/* ---------------------------------------------------------------- Fonts --
 * Self-hosted (no CDN): Nunito variable (weights 200 to 1000), SIL OFL 1.1, licence in assets/fonts/.
 * Latin subset: covers French (’, œ, €).
 */
@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-latin-wght-normal-c23Eawv.woff2") format('woff2');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-latin-wght-italic--euoNa4.woff2") format('woff2');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

/* ---------------------------------------------------- Theme: Kermesse -- */
:root,
[data-theme='kermesse'] {
    --font-display: 'Nunito', system-ui, sans-serif;
    --font-text: 'Nunito', system-ui, sans-serif;
    --weight-display: 900;

    --surface: #ffffff;
    --surface-sunken: #f4f6fb;
    --surface-tint: #eef2fd;
    --text: #1d2433;
    --text-muted: #4a5263;
    --border: #e3e7ef;
    --border-strong: #c9d2ee;
    --input-border: #737c90;
    --link: #2f4bc7;
    --link-hover: #1f3596;
    --focus: #23399a;
    --focus-on-dark: #ffc83d;

    --action: #3b5bdb;
    --action-depth: #23399a;
    --text-on-action: #ffffff;
    --action-soft: #e6ecfd;
    --text-on-action-soft: #23399a;

    --highlight: #ffc83d;
    --highlight-depth: #c99410;
    --text-on-highlight: #3d2e00;
    --highlight-soft: #fff8db;
    --highlight-border: #ffd86b;
    --text-on-highlight-soft: #6b4e00;

    --dark: #1d2433;
    --dark-depth: #000000;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: #c9cfdc;

    --success: #17633a;
    --success-depth: #0e3f24;
    --success-soft: #d8f3e2;
    --warning: #6b4e00;
    --warning-soft: #fff3cc;
    --danger: #b42318;
    --danger-soft: #fdecea;
    --danger-border: #f3c6c1;
    --info: #23399a;
    --info-soft: #e6ecfd;
    --neutral: #4a5263;
    --neutral-soft: #eef0f4;

    /* Content categories: a strong colour (with white text), its depth, a soft background and its text. */
    --news: #3b5bdb;
    --news-depth: #23399a;
    --news-soft: #e6ecfd;
    --news-text: #23399a;
    --agenda: #c8402c;
    --agenda-depth: #8f2a1c;
    --agenda-soft: #ffe7e3;
    --agenda-text: #a3291b;
    --arretes: #ffc83d;
    --arretes-depth: #c99410;
    --arretes-soft: #fff3cc;
    --arretes-text: #6b4e00;
    --council: #7a45c9;
    --council-depth: #5b2fa3;
    --council-soft: #f0e8fb;
    --council-text: #5b2fa3;
    --venues: #1f7a45;
    --venues-depth: #155c33;
    --venues-soft: #e3f5e9;
    --venues-text: #1d6b3d;
    --text-on-category: #ffffff;

    /* Decorative illustrations (aria-hidden): no text on them, brighter tones allowed. */
    --art-sun: #ffc83d;
    --art-hill: #9fdcb5;
    --art-wall: #ffffff;
    --art-line: #1d2433;
    --art-flag: #ff6b57;
    --art-door: #3b5bdb;
    --art-house: #ff6b57;
    --art-tree: #2f9e5b;
    --art-trunk: #1d6b3d;
    --art-sign: #c8402c;
    --art-post: #737c90;

    /* The logo's own colours (a logo is exempt from contrast ratios, like the illustrations). */
    --logo-tent: #febd3e;
    --logo-letter: #243ea9;
    --logo-flag: #fb6d51;

    --footer: #1d2433;
    --text-on-footer: #ffffff;
    --progress-track: #f3e3a8;
    --progress-fill: #1f7a45;
    --check-border: #9a7600;
    /* Something floating over the page (a notification in the landing page's phone). */
    --shadow-float: rgba(29, 36, 51, 0.18);

    --radius: 16px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --button-depth: 4px;
    --border-width: 2px;
}

/* --------------------------------------------- Layout (not themable) -- */
:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --container: 72.5rem;
    --container-narrow: 40rem;
}

/* ----------------------------------------------------------------- Base -- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1.0625rem; /* 17px */
    line-height: 1.55;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
}

h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.625rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1875rem;
}

p {
    margin: 0;
}

a {
    color: var(--link);
    font-weight: 700;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--link-hover);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* The hidden attribute always wins: components setting a display (.btn, .badge…) would show it otherwise. */
[hidden] {
    display: none !important;
}

/* Inside the installed app (opened from the home screen): no invitation to install it. */
@media (display-mode: standalone) {
    .hide-when-installed {
        display: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10;
}

.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
}

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

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stack--tight {
    gap: var(--space-1);
}

.stack--lg {
    gap: var(--space-6);
}

/* ----------------------------------------------------------- Containers -- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.page {
    padding-block: var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Targets of the skip link (tabindex -1): no ring around a whole page. */
main[tabindex='-1']:focus {
    outline: none;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* --------------------------------------------------------------- Header -- */
.app-header {
    background: var(--surface);
    border-bottom: var(--border-width) solid var(--border);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    min-height: 4.5rem;
    padding-block: var(--space-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: 1.375rem;
}

.brand:hover {
    color: var(--text);
}

.brand__mark {
    flex: none;
    display: inline-flex;
    width: 44px;
    height: 44px;
}

.brand__name small {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-muted);
}

.app-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-3);
    border-radius: 12px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.app-nav a:not(.btn):hover {
    background: var(--surface-tint);
}

.app-nav a[aria-current='page'] {
    background: var(--action-soft);
    color: var(--text-on-action-soft);
}

/* ------------------------------------------------------------- Buttons --
 * A depth under each button, which it loses when pressed. Pointed at or focused, it rises a little, its depth
 * growing, like a key about to be pressed; released, it springs back. Without motion (reduced motion setting), only
 * the press remains, as before; without hovering (touch screens), the press alone.
 */
.btn {
    --depth-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0 var(--space-5);
    border: var(--border-width) solid transparent;
    border-radius: var(--radius);
    box-shadow: 0 var(--button-depth) 0 var(--depth-color);
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btn:active {
    transform: translateY(var(--button-depth));
    box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
    .btn {
        transition:
            transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
            box-shadow 0.14s ease,
            background-color 0.2s ease;
    }

    .btn:active {
        transition-duration: 0.05s;
    }

    .btn:focus-visible:not(:active) {
        transform: translateY(-2px);
        box-shadow: 0 calc(var(--button-depth) + 2px) 0 var(--depth-color);
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .btn:hover:not(:active, :disabled) {
        transform: translateY(-2px);
        box-shadow: 0 calc(var(--button-depth) + 2px) 0 var(--depth-color);
    }
}

/* « On y va » : the arrow of a call to action moves ahead when pointed at. */
.btn__arrow {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .btn__arrow {
        transition: transform 0.2s ease;
    }

    .btn:hover .btn__arrow,
    .btn:focus-visible .btn__arrow {
        transform: translateX(4px);
    }
}

.btn--primary {
    --depth-color: var(--action-depth);
    background: var(--action);
    color: var(--text-on-action);
}

.btn--primary:hover {
    color: var(--text-on-action);
}

.btn--highlight {
    --depth-color: var(--highlight-depth);
    background: var(--highlight);
    color: var(--text-on-highlight);
}

.btn--highlight:hover {
    color: var(--text-on-highlight);
}

.btn--dark {
    --depth-color: var(--dark-depth);
    background: var(--dark);
    color: var(--text-on-dark);
}

.btn--dark:hover {
    color: var(--text-on-dark);
}

.btn--outline {
    --depth-color: var(--border-strong);
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text-on-action-soft);
}

.btn--outline:hover {
    color: var(--text-on-action-soft);
    background: var(--surface-tint);
}

.btn--danger {
    --depth-color: var(--danger-border);
    background: var(--surface);
    border-color: var(--danger-border);
    color: var(--danger);
}

.btn--small {
    min-height: 44px;
    padding: 0 var(--space-4);
    font-size: 1rem;
}

.btn-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

/* ---------------------------------------------------------------- Forms -- */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.field > label,
.field__label,
legend {
    font-weight: 800;
}

.field__help {
    color: var(--text-muted);
    font-size: 1rem;
}

.field__errors {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--danger);
    font-weight: 800;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='time'],
input[type='file'],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: var(--space-2) var(--space-4);
    border: var(--border-width) solid var(--input-border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

/* A quantity, a capacity: a few digits, not a line of text. */
input[type='number'] {
    max-width: 12rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--action);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'],
select[aria-invalid='true'] {
    border-color: var(--danger);
    background: var(--danger-soft);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

legend {
    margin-bottom: var(--space-2);
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius);
}

.choice input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--action);
}

.choice-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.choice__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.field > .choice {
    font-weight: 400;
}

.choice__label {
    font-weight: 800;
}

.search-form {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.search-form input {
    flex: 1 1 14rem;
    width: auto;
}

/* ------------------------------------------------- Messages and alerts -- */
/* A demonstration instance, on every page. */
.demo-banner {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background: var(--dark);
    color: var(--text-on-dark);
    text-align: center;
}

.flash {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    border: var(--border-width) solid currentColor;
    font-weight: 800;
}

.flash--success {
    background: var(--success-soft);
    color: var(--success);
}

.flash--error {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ---------------------------------------------------------------- Cards -- */
.card {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

a.card {
    color: var(--text);
    text-decoration: none;
}

a.card:hover {
    border-color: var(--border-strong);
}

.card--muted {
    background: var(--surface-sunken);
    border-color: transparent;
}

.card--emphasis {
    border-color: var(--border-strong);
}

/* Urgent or current information (an arrêté in force): yellow, with depth. */
.card--highlight {
    background: var(--highlight-soft);
    border-color: var(--highlight-border);
    box-shadow: 0 var(--button-depth) 0 var(--highlight-border);
}

/* A card with a leading visual (date tile, icon), then its text. */
.card--row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.card__kicker {
    font-size: 0.875rem;
    font-weight: 900;
}

.details {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2) var(--space-5);
}

.details dt {
    font-weight: 800;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.link-list,
.plain-list,
.card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.card-list {
    gap: var(--space-4);
}

/* Date of an event or meeting, as a tile. */
.date-tile {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 68px;
    border-radius: 14px;
    background: var(--agenda);
    color: var(--text-on-category);
    box-shadow: 0 3px 0 var(--agenda-depth);
    line-height: 1;
}

.date-tile__month {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
}

.date-tile__day {
    font-size: 1.625rem;
    font-weight: 900;
}

.date-tile--council {
    background: var(--council);
    box-shadow: 0 3px 0 var(--council-depth);
}

/* --------------------------------------------------- Category colours -- */
.text-news { color: var(--news-text); }
.text-agenda { color: var(--agenda-text); }
.text-arretes { color: var(--arretes-text); }
.text-council { color: var(--council-text); }
.text-venues { color: var(--venues-text); }

/* --------------------------------------------------------------- Badges -- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 900;
    white-space: nowrap;
}

.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--primary { background: var(--action-soft); color: var(--text-on-action-soft); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--neutral { background: var(--neutral-soft); color: var(--neutral); }
.badge--news { background: var(--news-soft); color: var(--news-text); }
.badge--agenda { background: var(--agenda-soft); color: var(--agenda-text); }
.badge--arretes { background: var(--arretes-soft); color: var(--arretes-text); }
.badge--council { background: var(--council-soft); color: var(--council-text); }

/* ---------------------------------------------------------------- Table -- */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.table caption {
    text-align: left;
    padding-bottom: var(--space-3);
    color: var(--text-muted);
}

.table th {
    text-align: left;
    padding: var(--space-3);
    border-bottom: var(--border-width) solid var(--border-strong);
}

.table td {
    padding: var(--space-4) var(--space-3);
    border-top: var(--border-width) solid var(--border);
    vertical-align: middle;
}

.table td.table__actions {
    text-align: right;
}

.table__actions .btn-row {
    justify-content: flex-end;
}

/* ------------------------------------------------------ Commune site -- */
.hero {
    background: var(--surface-tint);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-6);
    padding-top: var(--space-7);
}

.hero__text {
    flex: 1 1 26rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-bottom: var(--space-7);
    align-self: center;
}

.hero__text p {
    font-size: 1.1875rem;
    max-width: 34rem;
}

.hero__art {
    flex: 1 1 20rem;
    max-width: 26rem;
    height: auto;
    display: block;
}

/* On a phone the drawing stays a small vignette under the text. */
@media (max-width: 40rem) {
    .hero__inner {
        padding-top: var(--space-6);
        gap: 0;
    }

    .hero__text {
        padding-bottom: var(--space-5);
    }

    .hero__art {
        flex-basis: auto;
        width: 15rem;
        margin-inline: auto;
    }
}

.home-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
    padding-block: var(--space-6) var(--space-7);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: var(--space-4);
}

.tiles {
    display: grid;
    /* Two columns on a phone, all five in a row on a large screen. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: var(--space-3);
}

.tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 7rem;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
}

.tile:hover {
    color: var(--text);
    filter: brightness(0.97);
}

.tile strong {
    font-size: 1.125rem;
    font-weight: 900;
}

.tile span {
    font-weight: 600;
    color: var(--text-muted);
}

.tile--news { background: var(--news-soft); }
.tile--agenda { background: var(--agenda-soft); }
.tile--arretes { background: var(--arretes-soft); }
.tile--council { background: var(--council-soft); }
.tile--venues { background: var(--venues-soft); }
.tile--practical { background: var(--highlight-soft); }

.art-sun { fill: var(--art-sun); }
.art-hill { fill: var(--art-hill); }
.art-wall { fill: var(--art-wall); stroke: var(--art-line); }
.art-line { stroke: var(--art-line); fill: none; }
.art-ink { fill: var(--art-line); }
.art-flag { fill: var(--art-flag); }
.art-door { fill: var(--art-door); }
.art-bell { fill: var(--art-sun); stroke: var(--art-line); }
.art-house { fill: var(--art-house); }
.art-window { fill: var(--art-wall); }
.art-tree { fill: var(--art-tree); }
.art-trunk { fill: var(--art-trunk); }

/* Footer of the commune sites: lasting pages and the pages the law requires. */
.site-footer {
    background: var(--footer);
    color: var(--text-on-footer);
    padding: var(--space-6) 0;
}

.site-footer a {
    color: var(--text-on-footer);
}

.site-footer :focus-visible {
    outline-color: var(--focus-on-dark);
}

.site-footer .link-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
}

/* --------------------------------------------------------- Staff space -- */
.staff-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 4.5rem);
    background: var(--surface-sunken);
}

.staff-nav {
    flex: 1 1 15rem;
    max-width: 17.5rem;
    background: var(--surface);
    border-right: var(--border-width) solid var(--border);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.staff-nav__commune {
    padding: 0 var(--space-2);
    line-height: 1.2;
}

.staff-nav__commune span {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-muted);
}

.staff-nav__commune strong {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: var(--weight-display);
}

.staff-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.staff-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--space-4);
    border-radius: 14px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.staff-nav a:hover {
    background: var(--surface-tint);
    color: var(--text);
}

.staff-nav a[aria-current='page'] {
    background: var(--action-soft);
    color: var(--text-on-action-soft);
}

/* At phone width the menu stacks above the content, full width. */
@media (max-width: 40rem) {
    .staff-nav {
        max-width: none;
        border-right: 0;
        border-bottom: var(--border-width) solid var(--border);
    }
}

.staff-main {
    flex: 999 1 35rem;
    min-width: 0;
    max-width: 70rem;
    padding: var(--space-6) var(--space-5) var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Big coloured shortcuts of the staff dashboard. */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--space-4);
}

.action-btn {
    --depth-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: 0 var(--button-depth) 0 var(--depth-color);
    font-weight: 900;
    font-size: 1.0625rem;
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(var(--button-depth));
    box-shadow: none;
}

.action-btn--news { --depth-color: var(--news-depth); background: var(--news); color: var(--text-on-category); }
.action-btn--agenda { --depth-color: var(--agenda-depth); background: var(--agenda); color: var(--text-on-category); }
.action-btn--arretes { --depth-color: var(--arretes-depth); background: var(--arretes); color: var(--text-on-highlight); }
.action-btn--news:hover,
.action-btn--agenda:hover { color: var(--text-on-category); }
.action-btn--arretes:hover { color: var(--text-on-highlight); }

.todo-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    background: var(--warning-soft);
    color: var(--text);
    text-decoration: none;
}

.todo-link:hover {
    color: var(--text);
}

/* Getting the commune site ready: progress and steps. */
.progress {
    appearance: none;
    width: 100%;
    height: 16px;
    border: var(--border-width) solid var(--check-border);
    border-radius: var(--radius-pill);
    background: var(--progress-track);
    color: var(--progress-fill);
    overflow: hidden;
}

.progress::-webkit-progress-bar {
    background: var(--progress-track);
}

.progress::-webkit-progress-value {
    background: var(--progress-fill);
    border-radius: var(--radius-pill);
}

.progress::-moz-progress-bar {
    background: var(--progress-fill);
    border-radius: var(--radius-pill);
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
}

/* Month grid of a venue: which days a rental option can start on. */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.month-nav h2 {
    text-align: center;
}

.month-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: var(--space-1);
    table-layout: fixed;
}

.month-grid th {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-muted);
}

.month-grid abbr {
    text-decoration: none;
}

.month-grid__day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 800;
}

.month-grid__day--free {
    background: var(--surface);
    color: var(--action);
    border: var(--border-width) solid var(--input-border);
    text-decoration: none;
}

.month-grid__day--picked {
    background: var(--action);
    color: var(--text-on-action);
    border-color: var(--action);
}

.month-grid__day--taken {
    background: var(--neutral-soft);
    color: var(--neutral);
    text-decoration: line-through;
}

.month-grid__day--unavailable {
    color: var(--text-muted);
    font-weight: 600;
}

/* Numbered steps of a how-to (installing the app): a round number before each step. */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.steps > li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.steps > li::before {
    content: counter(step);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--action);
    color: var(--text-on-action);
    font-weight: 900;
}

.steps svg {
    vertical-align: text-bottom;
}

.check {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--check-border);
}

.check--done {
    border-color: var(--progress-fill);
    background: var(--progress-fill);
    color: var(--text-on-category);
}

/* Rich text: the Trix editor (town hall side) and its rendered HTML (public side). */
.rich-text trix-editor {
    min-height: 12rem;
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    color: var(--text);
    border: var(--border-width) solid var(--input-border);
    border-radius: var(--radius);
}

.rich-text trix-editor[aria-invalid='true'] {
    border-color: var(--danger);
    background: var(--danger-soft);
}

/* Tools the sanitizer would drop anyway (strike, code, attachments): not offered. */
.rich-text .trix-button--icon-strike,
.rich-text .trix-button--icon-code,
.rich-text .trix-button-group--file-tools {
    display: none;
}

.rich-text-content > * + * {
    margin-top: var(--space-3);
}

/* Logo mark: colours from the theme. */
.logo-tent { fill: var(--logo-tent); }
.logo-letter { fill: var(--logo-letter); }
.logo-flag { fill: var(--logo-flag); }

/* --------------------------------------------------------- Landing page --
 * The platform's front door, for town halls (templates/tenancy/landing/). Interface fragments (.mock…) show the
 * product as it is; they are pictures (aria-hidden), apart from the tabs of the first feature.
 */
.landing-header {
    background: var(--action-soft);
}

.landing-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: 4.5rem;
    padding-block: var(--space-2);
}

.landing-header .brand {
    margin-right: auto;
}

.landing-nav ul {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav a {
    color: var(--text);
    text-decoration: none;
}

.landing-nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Bunting across the top, drawn at the real width (bunting controller). */
.bunting {
    display: block;
    width: 100%;
    height: 48px;
}

.bunting__string {
    fill: none;
    stroke: var(--art-line);
    stroke-width: 1.5;
}

.bunting__flag--1 { fill: var(--art-flag); }
.bunting__flag--2 { fill: var(--art-sun); }
.bunting__flag--3 { fill: var(--art-door); }
.bunting__flag--4 { fill: var(--art-tree); }

.landing-hero {
    background: var(--action-soft);
    overflow: hidden;
}

.landing-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-6);
    align-items: center;
    padding-top: var(--space-5);
}

.landing-hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-bottom: var(--space-7);
}

.landing-hero h1 {
    font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.25rem);
    line-height: 1.08;
    text-wrap: balance;
}

.landing-hero h1 em {
    font-style: normal;
    color: var(--text-on-action-soft);
}

.landing-hero__lead {
    font-size: 1.25rem;
    max-width: 34rem;
}

.reassure {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 800;
    font-size: 0.9375rem;
}

.reassure li::before {
    content: '✓';
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: var(--space-2);
    border-radius: 50%;
    background: var(--success);
    color: var(--text-on-action);
    font-size: 0.875rem;
}

.try-commune {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 28rem;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.try-commune label {
    font-weight: 800;
}

.try-commune input {
    font-size: 1.125rem;
    font-weight: 800;
}

.try-commune p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.try-commune strong {
    color: var(--text);
}

.landing-hero__visual {
    position: relative;
    align-self: end;
    height: 600px;
}

.landing-hero__scene {
    position: absolute;
    left: -40px;
    bottom: 0;
    width: calc(100% + 240px);
    height: auto;
}

.phone {
    position: absolute;
    left: 42%;
    bottom: -40px;
    transform: translateX(-50%);
    width: 300px;
    padding: 12px;
    border-radius: 40px;
    background: var(--dark);
}

.phone__screen {
    height: 560px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--action);
    color: var(--text-on-action);
    font-weight: 900;
}

.mock-bar img {
    padding: 2px;
    border-radius: 8px;
    background: var(--surface);
}

.mock-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    font-size: 0.875rem;
    line-height: 1.4;
}

.mock-body__hello {
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1.15;
}

.mock-follow {
    padding: var(--space-2);
    border-radius: 12px;
    background: var(--highlight);
    box-shadow: 0 3px 0 var(--highlight-depth);
    color: var(--text-on-highlight);
    font-weight: 900;
    text-align: center;
}

.mock {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.mock-card {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    border-radius: 14px;
    background: var(--surface-sunken);
}

.mock-card--setting {
    align-items: center;
}

.mock-card__body {
    min-width: 0;
}

.mock-card__kicker {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 800;
}

.date-tile--small {
    width: 46px;
    height: 50px;
    border-radius: 10px;
}

.date-tile--small .date-tile__day {
    font-size: 1.125rem;
}

.mock-mail__row {
    padding-block: var(--space-2);
    border-bottom: var(--border-width) solid var(--surface-sunken);
}

.mock-month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.875rem;
}

.mock-month b {
    color: var(--text-muted);
}

.mock-month span {
    padding-block: 5px;
    border-radius: 7px;
    background: var(--success-soft);
    color: var(--success);
    font-weight: 800;
    transition: background 0.5s ease, color 0.5s ease;
}

.mock-month .is-asked {
    background: var(--action);
    color: var(--text-on-action);
}

.mock-month .is-taken {
    background: var(--danger-soft);
    color: var(--danger);
    text-decoration: line-through;
}

.mock-button {
    align-self: flex-start;
    padding: var(--space-2) var(--space-3);
    border-radius: 10px;
    background: var(--action);
    box-shadow: 0 3px 0 var(--action-depth);
    color: var(--text-on-action);
    font-weight: 800;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.3s ease;
}

.mock-button.is-pressed {
    transform: translateY(3px);
    box-shadow: none;
}

.mock-button.is-done {
    background: var(--success);
    box-shadow: 0 3px 0 var(--success-depth);
}

.mock-switch {
    position: relative;
    flex: none;
    margin-left: auto;
    width: 46px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--input-border);
    transition: background 0.5s ease;
}

.mock-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mock-switch.is-on {
    background: var(--success);
}

.mock-switch.is-on::after {
    transform: translateX(20px);
}

/* A notification arriving on the phone. */
.notice {
    position: absolute;
    z-index: 2;
    left: calc(42% - 300px);
    top: 330px;
    display: flex;
    gap: var(--space-3);
    width: 300px;
    padding: var(--space-3) var(--space-4);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px var(--shadow-float);
    font-size: 0.875rem;
    line-height: 1.35;
}

.notice__icon {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 4px;
    border-radius: 10px;
    background: var(--highlight-soft);
}

.notice__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    color: var(--text-muted);
    font-weight: 800;
}

/* The village entrance sign: the name typed in the hero. */
.village-sign {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 24px;
    width: 170px;
    height: auto;
    overflow: visible;
}

.village-sign__post { fill: var(--art-post); }

.village-sign__plate {
    fill: var(--art-wall);
    stroke: var(--art-sign);
    stroke-width: 9;
}

/* Its size is the drawing's (font-size attribute, in the sign's own units), not a reading size. */
.village-sign__name {
    fill: var(--art-line);
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.village-sign__panel {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.motion-toggle {
    position: absolute;
    z-index: 3;
    top: var(--space-2);
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-4) 0 var(--space-3);
    border: var(--border-width) solid var(--action);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-on-action-soft);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
}

.motion-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Lists that take a new row at the top: the row opens its own height. */
.feed {
    display: flex;
    flex-direction: column;
}

.slot {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.7s ease, opacity 0.7s ease;
}

.slot.is-closed {
    grid-template-rows: 0fr;
    opacity: 0;
}

.slot__in {
    min-height: 0;
    overflow: hidden;
}

.slot__in > .mock-card {
    margin-bottom: var(--space-3);
}

.landing-section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.landing-section--sunken {
    background: var(--surface-sunken);
}

.landing-section--dark {
    background: var(--dark);
    color: var(--text-on-dark);
}

.landing-section--dark a {
    color: var(--text-on-dark);
}

.landing-section--dark :focus-visible {
    outline-color: var(--focus-on-dark);
}

.landing-section--highlight {
    background: var(--highlight);
    color: var(--text-on-highlight);
}

.landing-section__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 46rem;
    margin-bottom: var(--space-6);
}

.landing-section__head h2,
.landing-request h2 {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.landing-section__head p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.landing-section--dark .landing-section__head p {
    color: var(--text-on-dark-muted);
}

.pains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.pain {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--agenda-soft);
}

.pain h3 {
    font-size: 1.375rem;
}

.landing-answer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    font-size: 1.25rem;
    font-weight: 800;
}

.selling-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.selling-point {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: var(--space-4);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.selling-point h3 {
    font-size: 1.375rem;
}

.selling-point__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.selling-point__list li {
    position: relative;
    padding-left: var(--space-5);
}

.selling-point__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--highlight);
}

.selling-point__demo {
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    background: var(--action-soft);
}

.demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.demo-tabs [role='tab'] {
    min-height: 40px;
    padding: 0 var(--space-4);
    border: var(--border-width) solid var(--action);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-on-action-soft);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
}

.demo-tabs [aria-selected='true'] {
    background: var(--action);
    color: var(--text-on-action);
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-on-dark-muted);
}

.trust-list li {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.trust-list strong {
    color: var(--text-on-dark);
    font-size: 1.1875rem;
    font-weight: 900;
}

.trust-list svg {
    width: 44px;
    height: 44px;
}

.trust-list__shackle {
    fill: none;
    stroke: var(--art-sun);
    stroke-width: 4;
}

.trust-list__arrow {
    fill: none;
    stroke: var(--art-line);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-list__bar {
    stroke: var(--art-wall);
    stroke-width: 4;
    stroke-linecap: round;
}

.pilot-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.pilot-steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--highlight-soft);
}

.pilot-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: var(--highlight);
    color: var(--text-on-highlight);
    font-size: 1.25rem;
    font-weight: 900;
}

.pilot-steps strong {
    font-size: 1.1875rem;
    font-weight: 900;
    line-height: 1.2;
}

.faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-5);
    align-items: start;
}

.faq__item {
    padding: 0 var(--space-5);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq__item summary {
    position: relative;
    padding: var(--space-4) var(--space-6) var(--space-4) 0;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: var(--space-3);
    color: var(--text-on-action-soft);
    font-size: 1.5rem;
    font-weight: 900;
}

.faq__item[open] summary::after {
    content: '–';
}

.faq__item p {
    padding-bottom: var(--space-4);
    color: var(--text-muted);
}

.landing-request {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: start;
}

.landing-request__text p {
    margin-top: var(--space-3);
    font-size: 1.25rem;
}

.landing-request__form {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
}

/* The field robots fill and people never see (Tenancy\Security\SpamTrap). */
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* What the demos change catches the eye. */
.is-flashed {
    animation: flashed 1.2s ease-out;
}

@keyframes flashed {
    from { box-shadow: 0 0 0 0 var(--highlight); }
    to { box-shadow: 0 0 0 12px transparent; }
}

.notice.is-out {
    animation: notice-out 0.35s ease-in forwards;
}

.notice.is-in {
    animation: notice-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes notice-out {
    to { opacity: 0; transform: translateY(-18px); }
}

@keyframes notice-in {
    from { opacity: 0; transform: translateY(-28px) scale(0.95); }
}

.village-sign.is-popping .village-sign__panel {
    animation: sign-pop 0.35s ease-out;
}

@keyframes sign-pop {
    40% { transform: scale(1.06) rotate(-1deg); }
}

/* Ambient motion, stopped by the pause button (.motion-paused on <html>) and by the reduced-motion setting. */
@media (prefers-reduced-motion: no-preference) {
    .bunting__flag {
        transform-box: fill-box;
        transform-origin: 50% 0;
        animation: sway 3.2s ease-in-out infinite alternate;
    }

    .flutter {
        transform-box: fill-box;
        transform-origin: 0 50%;
        animation: flutter 1.4s ease-in-out infinite alternate;
    }

    .motion-paused .bunting__flag,
    .motion-paused .flutter {
        animation-play-state: paused;
    }
}

@keyframes sway {
    from { transform: rotate(-6deg); }
    to { transform: rotate(6deg); }
}

@keyframes flutter {
    from { transform: scaleX(1) skewY(0); }
    to { transform: scaleX(0.8) skewY(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .slot,
    .mock-switch,
    .mock-switch::after,
    .mock-button,
    .mock-month span {
        transition: none;
    }

    .motion-toggle {
        display: none;
    }
}

@media (max-width: 60rem) {
    .landing-nav {
        display: none;
    }

    .landing-hero__grid,
    .landing-request {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero__text {
        padding-bottom: var(--space-2);
    }

    .landing-hero__visual {
        height: 520px;
    }

    .landing-hero__scene {
        left: -20px;
        width: calc(100% + 40px);
    }

    .phone {
        left: 50%;
    }

    .notice {
        left: 0;
        top: 300px;
        width: min(270px, 70%);
    }

    .village-sign {
        right: max(0px, calc(50% - 340px));
    }

    .pains,
    .selling-points,
    .faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-list,
    .pilot-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 35rem) {
    .landing-header .btn {
        display: none;
    }

    .trust-list,
    .pilot-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .selling-point,
    .pain,
    .landing-request__form {
        padding: var(--space-5);
    }

    .landing-hero__visual {
        height: 470px;
    }

    .phone {
        left: 40%;
        width: 270px;
    }

    .phone__screen {
        height: 500px;
    }

    /* Above the drawing: over it, it would cover the phone. */
    .landing-hero__visual {
        margin-top: 3.5rem;
    }

    .motion-toggle {
        top: -3.25rem;
    }

    .village-sign {
        right: -8px;
        bottom: 16px;
        z-index: 2;
        width: 130px;
    }
}
