/* Shared layout and components for the public product pages. */
:root {
    --night: #243d26;
    --green: #4a6d3c;
    --sage: #91a96f;
    --canvas: #f3f5f4;
    --border: #d4d9d5;
    --text: #202820;
    --muted: #59675d;
    --serif: georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--mpd-nav-height);
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font: 16px/1.6 var(--sans);
}

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

a:hover {
    text-decoration-thickness: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -10000px;
    top: 5px;
    padding: 8px 14px;
    background: #fff;
    z-index: 1100;
}

.skip:focus {
    left: 5px;
}

/* Shared public navigation and primary actions. */
.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--mpd-nav-background);
    color: #fff;
    border-bottom: 1px solid var(--mpd-nav-border);
    box-shadow: 0 1px 2px rgb(22 24 27 / 5%);
}

.header-inner {
    min-height: var(--mpd-nav-height);
    padding-inline: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    display: block;
    width: var(--mpd-nav-logo-width);
    height: auto;
    max-width: 100%;
}

.logo:focus-visible,
.menu summary:focus-visible,
.nav a:focus-visible,
.menu-links a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--mpd-nav-font);
    font-size: var(--mpd-nav-link-size);
    font-weight: 400;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
    padding: 0.5rem;
}

.nav a:hover,
.nav a:focus-visible {
    border-bottom-color: var(--mpd-nav-hover);
}

.nav a[aria-current="page"] {
    border-bottom-color: #fff;
}

.nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--night);
    border-radius: 7px;
    padding: 0.5rem 1rem;
    border-bottom: 0;
    box-shadow: inset 0 -3px 0 transparent;
    margin-left: 8px;
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible,
.nav .nav-cta[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--night);
}

.menu {
    display: none;
    position: relative;
}

.menu summary {
    cursor: pointer;
    border: 1px solid #a9bea4;
    border-radius: 7px;
    padding: 8px 12px;
    list-style: none;
}

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

.menu-links {
    position: absolute;
    right: 0;
    top: calc(100% + 18px);
    display: grid;
    gap: 0;
    width: min(280px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--mpd-nav-height) - 12px);
    overflow-y: auto;
    background: var(--night);
    border: 1px solid #8fab88;
    border-radius: 8px;
    padding: 12px;
    z-index: 10;
    box-shadow: 0 8px 22px #1a2d1c40;
}

.menu-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    font: 400 1rem/1.5 var(--mpd-nav-font);
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    padding: 0.65rem 0.75rem;
}

.menu-links a:hover,
.menu-links a:focus-visible {
    background: rgb(255 255 255 / 11%);
}

.menu-links a[aria-current="page"] {
    border-left-color: #fff;
    background: rgb(255 255 255 / 18%);
}

.eyebrow {
    display: block;
    color: var(--green);
    font-size: 0.77rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

/* Homepage introduction and product overview. */
.hero {
    padding: 72px 0 76px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
    align-items: center;
}

.hero h1,
.page-intro h1 {
    font: 500 clamp(2.5rem, 4.8vw, 4.65rem)/1.07 var(--serif);
    letter-spacing: -0.035em;
    margin: 13px 0 22px;
}

.hero p,
.page-intro p {
    font-size: 1.13rem;
    color: #4b594f;
    max-width: 60ch;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.button.primary {
    background: var(--night);
    color: #fff;
}

.button.secondary {
    background: #fff;
    color: var(--night);
    border-color: #bfcbbd;
}

.button:hover {
    filter: brightness(0.95);
}

.button:focus-visible,
.preview-arrow:focus-visible,
.preview-dots button:focus-visible,
.viewer-close:focus-visible,
.viewer-arrow:focus-visible,
.tab:focus-visible,
.field :is(input, textarea, select):focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.small-note {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
}

.screen {
    margin: 0;
    border: 1px solid #b8c9b7;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 45px #243d261b;
}

.screen-top {
    background: #e9eee7;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 31px;
    padding: 0 13px;
}

.screen-top i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bac8b7;
}

.screen img {
    display: block;
    width: 100%;
}

.section {
    padding: 70px 0;
}

.section.white {
    background: #fff;
}

.section.tint {
    background: #e9eee7;
}

.section h2 {
    font: 500 clamp(2rem, 3.3vw, 3.15rem)/1.15 var(--serif);
    letter-spacing: -0.025em;
    margin: 9px 0 17px;
}

.section-lead {
    max-width: 700px;
    color: var(--muted);
    margin: 0 0 28px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 23px;
}

.card h3 {
    font: 500 1.45rem/1.2 var(--serif);
    margin: 10px 0;
}

.card p {
    color: var(--muted);
    margin: 0;
}

.card .number {
    color: var(--green);
    font-weight: 800;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 52px;
}

.split.reverse .media {
    order: -1;
}

.usecase {
    border-left: 3px solid var(--sage);
    padding: 2px 0 2px 17px;
}

.usecase h3 {
    font: 500 1.35rem var(--serif);
    margin: 0 0 5px;
}

.usecase p {
    color: var(--muted);
    margin: 0;
}

.stack {
    display: grid;
    gap: 19px;
}

.closing {
    padding: 54px 0;
    background: #e6eee2;
}

.closing-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.closing h2 {
    font: 500 2.3rem var(--serif);
    margin: 0 0 8px;
}

.closing p {
    margin: 0;
    color: #4b594f;
}

/* Shared public footer. */
.footer {
    background: var(--night);
    color: #e6eee2;
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer img {
    width: 175px;
    display: block;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 24px;
    row-gap: 8px;
    flex-wrap: wrap;
}

.footer a {
    color: #fff;
}

.footer-links a {
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    color: #d9e3d7;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    border-bottom-color: var(--sage);
    color: #fff;
}

.footer a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.page-intro {
    padding: 62px 0 35px;
}

.page-intro p {
    margin: 0;
}

.faq-page {
    padding: 30px 0 75px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 1fr;
    gap: 30px;
    align-items: start;
    padding: 0 0 75px;
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 28px;
    box-shadow: 0 5px 22px #243d260f;
}

.panel h2 {
    font: 500 2rem var(--serif);
    margin: 0 0 8px;
}

.panel p {
    color: var(--muted);
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 23px;
}

.tab {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 10px 14px;
    color: var(--muted);
}

.tab[aria-selected="true"] {
    border-bottom-color: var(--green);
    color: var(--text);
    font-weight: 700;
}

.field {
    margin: 18px 0;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.field small {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    display: block;
    width: 100%;
    border: 1px solid #acb9ac;
    border-radius: 7px;
    background: #fff;
    padding: 10px 12px;
    color: var(--text);
}

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

.field input[type="file"] {
    padding: 11px;
}

.notice {
    padding: 13px 16px;
    background: #edf3ea;
    border: 1px solid #c6d6c0;
    border-radius: 9px;
    font-size: 0.9rem;
}

/* Account entry pages use the existing Django forms. */
.auth {
    padding: 70px 0 95px;
}

.auth-head {
    max-width: 720px;
    margin: 0 auto 25px;
}

.auth-head h1 {
    font: 500 3rem var(--serif);
    margin: 0 0 9px;
}

.auth-head p {
    color: var(--muted);
    margin: 0;
}

.auth-card {
    max-width: 720px;
    margin-inline: auto;
}

.auth-card .field {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.auth-card .field label {
    padding-top: 9px;
}

.auth-bottom {
    padding-left: 196px;
}

.auth-field-link {
    padding-left: 196px;
    margin: -3px 0 20px;
    font-size: 0.9rem;
}

.auth-bottom p {
    font-size: 0.9rem;
}

.roadmap {
    padding: 0 0 80px;
}

.roadmap .panel {
    max-width: 820px;
}

.roadmap .panel p {
    max-width: 65ch;
}

@media (max-width: 1199px) {
    .nav {
        display: none;
    }

    .menu {
        display: block;
    }
}

@media (max-width: 950px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-grid .screen {
        max-width: 760px;
    }
}

@media (max-width: 800px) {
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .split.reverse .media {
        order: 0;
    }

    .hero {
        padding: 50px 0;
    }

    .closing-inner,
    .about-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .header-inner {
        padding-inline: 1rem;
    }
}

@media (max-width: 600px) {
    .wrap,
    .narrow {
        width: min(100% - 28px, 1180px);
    }

    .logo img {
        width: 188px;
    }

    .hero h1,
    .page-intro h1 {
        font-size: 2.68rem;
    }

    .section {
        padding: 50px 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        column-gap: 24px;
        row-gap: 8px;
    }

    .panel {
        padding: 20px;
    }

    .auth-card .field {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .auth-card .field label {
        padding: 0;
    }

    .auth-bottom {
        padding: 0;
    }

    .auth-field-link {
        padding-left: 0;
    }

    .tabs {
        gap: 0;
    }

    .tab {
        flex: 1;
        padding-inline: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.product-name {
    font-weight: 700;
    color: var(--night);
}

/* Homepage question cards, previews and image viewer. */
.answer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.answer-card {
    min-height: 245px;
    padding: 26px;
    border: 1px solid #c6d4c0;
    border-radius: 14px;
    background: linear-gradient(155deg, #f8faf6, #edf3e9);
}

.answer-card:nth-child(2) {
    background: #f3f6f1;
}

.answer-card:nth-child(3) {
    background: #e8efe3;
}

.answer-label {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.answer-card h3 {
    font: 500 1.8rem/1.16 var(--serif);
    letter-spacing: -0.02em;
    margin: 15px 0 12px;
    max-width: 18ch;
}

.answer-card p {
    color: #4b594f;
    margin: 0;
}

.image-zoom {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom img {
    display: block;
    width: 100%;
    transition: transform 0.22s ease;
}

.image-zoom:hover img,
.image-zoom:focus-visible img {
    transform: scale(1.035);
}

.zoom-cue {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #b9c9b7;
    border-radius: 50%;
    background: #fffdf7ed;
    color: var(--night);
    font-size: 0;
    box-shadow: 0 4px 14px #243d2630;
}

.zoom-cue::before {
    content: "";
    width: 17px;
    height: 17px;
    border: 2px solid currentcolor;
    border-radius: 50%;
    transform: translate(-2px, -2px);
}

.zoom-cue::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 2px;
    background: currentcolor;
    transform: translate(10px, 10px) rotate(45deg);
}

.preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.preview-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.preview-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #b8c8b3;
    border-radius: 50%;
    background: #fff;
    color: var(--night);
    font:
        500 1.15rem/1 Arial,
        sans-serif;
}

.preview-arrow:hover,
.preview-arrow:focus-visible {
    background: #e8f0e5;
}

.preview-slide {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 26px;
    align-items: stretch;
    height: 430px;
    padding: 32px;
    border: 1px solid #cbd7c7;
    border-radius: 17px;
    background: #f2f6ef;
}

.preview-slide[hidden] {
    display: none;
}

.preview-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.preview-copy h3 {
    font: 500 clamp(1.8rem, 2.8vw, 2.6rem)/1.15 var(--serif);
    letter-spacing: -0.025em;
    margin: 18px 0 14px;
}

.preview-copy p {
    color: #4b594f;
    margin: 0 0 24px;
    max-width: 38ch;
}

.preview-cta {
    gap: 10px;
    margin-top: auto;
}

.preview-visual {
    min-width: 0;
    min-height: 0;
}

.preview-visual .screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 12px 35px #243d261a;
}

.preview-visual .screen .image-zoom {
    flex: 1;
    min-height: 0;
}

.preview-visual .screen img {
    height: 100%;
    object-fit: contain;
}

.preview-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.preview-dots button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

.preview-dots button::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1px solid var(--green);
    border-radius: 50%;
    background: #fff;
}

.preview-dots button[aria-current="true"]::before {
    background: var(--green);
}

.preview-dots button:hover::before {
    box-shadow: 0 0 0 5px #e8f0e5;
}

.repair-flow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 24px;
    border: 1px solid #b8cdb3;
    border-radius: 12px;
    background: linear-gradient(150deg, #e5efe0, #f8faf6);
}

.flow-origin {
    display: grid;
    gap: 4px;
    padding: 14px 17px;
    border-radius: 10px;
    background: var(--night);
    color: #fff;
}

.flow-origin span {
    color: #bdd2b5;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.flow-origin strong {
    font: 500 1.2rem var(--serif);
}

.flow-origin small {
    color: #e6ede2;
    font-size: 0.8rem;
}

.flow-branch {
    display: grid;
    gap: 7px;
    margin: 4px 0 0 22px;
    padding: 11px 0 0 22px;
    border-left: 2px solid #88a47f;
}

.flow-task {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 8px 12px;
    border: 1px solid #c6d5c1;
    border-radius: 8px;
    background: #fff;
    color: var(--night);
    font-size: 0.88rem;
}

.flow-task::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 22px;
    border-top: 2px solid #88a47f;
}

.flow-task span {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcead5;
    color: var(--night);
    font-size: 0.72rem;
    font-weight: 800;
}

.flow-task strong {
    font-weight: 600;
}

.upcoming-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.upcoming-strip p {
    color: #4b594f;
    max-width: 58ch;
}

.upcoming-previews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.upcoming-previews div {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid #bad0b2;
    border-radius: 10px;
    background: #f7faf5;
}

.upcoming-previews span {
    color: var(--green);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.upcoming-previews strong {
    font: 500 1.08rem/1.25 var(--serif);
}

.faq-cta {
    gap: 10px;
    margin-top: 12px;
}

.media-viewer {
    width: min(94vw, 1400px);
    height: min(88vh, 900px);
    max-width: none;
    max-height: 94vh;
    padding: 16px;
    border: 1px solid #cbd7c7;
    border-radius: 14px;
    background: #f8faf7;
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 30px 80px #0008;
}

.media-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.media-viewer::backdrop {
    background: #122116dc;
}

.viewer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.viewer-bar p {
    margin: 0;
    color: var(--night);
    font-weight: 700;
}

.viewer-close,
.viewer-arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #b8c8b3;
    border-radius: 50%;
    background: #fff;
    color: var(--night);
    font-size: 1.2rem;
}

.viewer-close svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    stroke-linecap: round;
}

.viewer-body {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    min-height: 0;
}

.viewer-body img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.viewer-arrow:hover,
.viewer-close:hover {
    background: #e8f0e5;
}

@media (max-width: 950px) {
    .preview-slide {
        grid-template-columns: 1fr;
    }

    .preview-slide {
        height: auto;
    }

    .preview-copy {
        padding: 0;
    }

    .preview-visual {
        height: 400px;
    }

    .preview-cta {
        margin-top: 4px;
    }
}

@media (max-width: 800px) {
    .answer-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-strip {
        grid-template-columns: 1fr;
    }

    .answer-card {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .preview-heading {
        align-items: start;
        flex-direction: column;
    }

    .preview-controls {
        margin-bottom: 12px;
    }

    .preview-slide {
        min-height: 650px;
        padding: 18px;
    }

    .preview-visual {
        height: 290px;
    }

    .answer-card h3 {
        max-width: none;
    }

    .upcoming-previews {
        grid-template-columns: 1fr;
    }

    .repair-flow {
        padding: 12px;
    }

    .flow-branch {
        margin-left: 12px;
        padding-left: 15px;
    }

    .flow-task::before {
        left: -17px;
        width: 15px;
    }

    .media-viewer {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        padding: 10px;
        border-radius: 0;
    }

    .viewer-body {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }

    .viewer-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-zoom img {
        transition: none;
    }
}

.history-screen-top {
    height: 39px;
    color: var(--night);
    font-size: 0.83rem;
    font-weight: 700;
}

.history-screen-top span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer img {
    width: 100px;
}

/* Coming Soon page. */
.roadmap-feedback h2 {
    font: 500 clamp(1.8rem, 3vw, 2.6rem)/1.15 var(--serif);
    margin: 9px 0 12px;
}

.roadmap-note {
    color: var(--muted);
    margin: 18px 0 0;
}

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

.roadmap-card {
    padding: 22px;
    border: 1px solid #cbd8c6;
    border-radius: 12px;
    background: #fff;
}

.roadmap-card span {
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.roadmap-card h3 {
    font: 500 1.43rem/1.2 var(--serif);
    margin: 10px 0;
}

.roadmap-card p {
    margin: 0;
    color: var(--muted);
}

.roadmap-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 25px;
    padding: 24px;
    border-radius: 12px;
    background: #e8efe4;
}

.roadmap-feedback h2 {
    font-size: 1.7rem;
    margin: 0 0 7px;
}

.roadmap-feedback p {
    margin: 0;
    color: #4b594f;
}

.roadmap-feedback .button {
    flex: none;
}

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

@media (max-width: 600px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-feedback {
        align-items: flex-start;
        flex-direction: column;
    }
}

.faq-report-link {
    gap: 10px;
    margin-top: 14px;
}

/* Contact forms and reusable searchable select. */
.contact-intro,
.contact-layout {
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
}

.contact-layout {
    display: block;
    padding-bottom: 75px;
}

.contact-layout .panel {
    width: 100%;
}

.required-mark {
    color: var(--text);
    font-weight: 700;
}

.field .app-select {
    width: 100%;
}

.field .app-select-trigger {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 38px 10px 12px;
    border: 1px solid #acb9ac;
    border-radius: 7px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23243d26' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 13px center;
    color: var(--text);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.field .app-select-trigger:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.app-select-popup {
    position: fixed;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    max-height: 15rem;
    overflow: hidden;
    border: 1px solid #adb5af;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px #0002;
}

.app-select-popup[hidden] {
    display: none;
}

.app-select-results {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-select-option,
.app-select-empty {
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-select-option {
    cursor: pointer;
}

.app-select-option:not([aria-disabled="true"]):hover,
.app-select-option:not([aria-disabled="true"]).is-active {
    color: var(--night);
    background: #e6eedc;
}

.app-select-option.is-selected {
    font-weight: 600;
}

.app-select-option.is-disabled,
.app-select-empty {
    color: var(--muted);
}

@media (max-width: 600px) {
    .contact-intro,
    .contact-layout {
        width: min(100% - 28px, 760px);
    }
}

/* Numbered FAQ cards. */
.faq-column {
    width: min(800px, calc(100% - 40px));
    margin-inline: auto;
}

.faq-intro {
    padding-bottom: 0;
}

.faq-page.faq-column {
    padding-top: 35px;
}

.faq-numbered-list {
    display: grid;
    gap: 10px;
    max-width: 800px;
}

.faq-numbered-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #cbd8c7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px #243d2609;
}

.faq-question-no {
    color: var(--green);
    font: 500 1.4rem var(--serif);
}

.faq-numbered-card details {
    min-width: 0;
}

.faq-numbered-card summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}

.faq-numbered-card summary::-webkit-details-marker {
    display: none;
}

.faq-numbered-card summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
    border-radius: 3px;
}

.faq-numbered-card .faq-plus {
    color: var(--green);
    font: 400 1.6rem/1 var(--sans);
    transition: transform 0.15s ease;
}

.faq-numbered-card details[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--muted);
    max-width: 68ch;
    padding: 0 30px 2px 0;
}

.faq-answer p {
    margin: 12px 0 0;
}

.faq-answer .faq-report-link {
    margin-top: 15px;
}

@media (max-width: 600px) {
    .faq-column {
        width: min(100% - 28px, 800px);
    }

    .faq-numbered-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-numbered-card .faq-plus {
        transition: none;
    }
}

/* Keep short account pages anchored without changing long product pages. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1;
}

/* Django form errors use the same readable treatment on contact and account pages. */
.form-error,
.invalid-feedback {
    display: block;
    margin: 7px 0;
    color: #8f2825;
    font-size: 0.91rem;
    font-weight: 600;
}

.form-text {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

#id_report-steps {
    min-height: 80px;
}
