/*
 * Styles of the mapinamo.com landing and privacy pages. Cut out of the old place web app's css/style.css
 * (removed in the same change), keeping only the rules these two pages and js/ use.
 */

/* Reset and Base Styles */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    /* Designer palette (mapinamo_demo_180526) */
    --primary: #44B6C5;
    --text: #0F172A;
    --text-tertiary: #94A3B8;
    --bg: #EAF1F4;
    --radius-btn: 10px;

    /* Backward-compat aliases (legacy --c-* tokens map to new palette) */
    --c-text: var(--text);
    --c-text-dark: var(--text);
    --c-text-heading: var(--text);
    --c-text-muted: var(--text-tertiary);
    --c-bg: var(--bg);
    --c-bg-accent: var(--bg);
    --c-glass: rgba(255, 255, 255, 0.95);
    --c-link: var(--primary);

    /* Accent palette (kept for charts/legends/error states) */
    --c-magenta: #C939A3;
    --grad-magenta-teal: linear-gradient(135deg, var(--c-magenta) 0%, var(--primary) 100%);

    /* Typography tokens */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body{
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ── Landing & About Pages ── */

.landing-body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--c-bg-accent);
}

.landing-home{
    background-color: #EDE6F2;
    background-image:
        linear-gradient(180deg, rgba(252, 249, 255, 0.70) 0%, rgba(245, 240, 250, 0.70) 100%),
        url('../images/mapinamo_background2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing-home .navbar{
    background-color: transparent;
}

.landing-home .navbar{
    width: 100%;
    max-width: none;
    padding: 20px 32px 0;
    justify-content: space-between;
}

.landing-body .top-panel-header{
    display: flex !important;
    flex-direction: column;
}

.landing-home .nav-links a,
.landing-home .landing-footer,
.landing-home .top-panel-subtitle{
    color: #111111;
}

.landing-home .nav-links a:hover{
    color: #000000;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px 0;
    background-color: var(--c-bg-accent);
}

.logo-container{
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img{
    height: 32px;
    width: auto;
}

.nav-links{
    display: flex;
    gap: 24px;
}

.nav-links a{
    text-decoration: none;
    color: var(--c-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover{
    color: var(--c-text-heading);
}

.hero-title{
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--c-text-dark);
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 24px;
    letter-spacing: -0.03em;
    text-align: center;
}

.landing-footer a{
    color: var(--c-link);
    text-decoration: none;
    font-weight: 600;
}

.landing-footer a:hover{
    text-decoration: underline;
}

.landing-footer{
    max-width: 1400px;
    width: 100%;
    margin: auto auto 0;
    padding: 24px 20px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.6);
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}

@media (max-width: 840px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* ── Product Landing Page ── */

.landing-home{
    --landing-ink: #102A34;
    --landing-muted: #526973;
    --landing-paper: #F8FBFA;
    --landing-line: #D8E4E2;
    --landing-teal: #087F7B;
    --landing-coral: #C54D69;
    background: var(--landing-paper);
    color: var(--landing-ink);
}

.landing-home .landing-nav{
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: none;
    padding: 16px max(24px, calc((100% - 1200px) / 2));
    background: rgba(248, 251, 250, 0.94);
    border-bottom: 1px solid var(--landing-line);
    backdrop-filter: blur(14px);
}

.landing-home .top-panel-header h1{
    font-size: 19px;
    letter-spacing: 0;
}

.landing-home .top-panel-subtitle{
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-home .nav-links{
    align-items: center;
    gap: 22px;
}

.landing-home .nav-links a{
    color: var(--landing-muted);
    font-size: 13px;
}

.landing-home .nav-links a:last-child{
    color: var(--landing-ink);
    font-weight: 700;
}

.landing-home .nav-links a:hover{
    color: var(--landing-teal);
}

.landing-shell{
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-hero{
    padding: 76px 0 84px;
    border-bottom: 1px solid var(--landing-line);
    background-color: #EDF6F4;
    background-image:
        linear-gradient(rgba(248, 251, 250, 0.84), rgba(248, 251, 250, 0.84)),
        url('../images/mapinamo_background2.jpeg');
    background-position: center;
    background-size: cover;
}

.landing-hero-grid{
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: 64px;
}

.landing-hero-copy{
    max-width: 510px;
}

.landing-eyebrow{
    margin-bottom: 16px;
    color: var(--landing-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-hero h2,
.landing-section h2,
.landing-beta h2{
    color: var(--landing-ink);
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

.landing-lede{
    max-width: 500px;
    margin-top: 22px;
    color: var(--landing-muted);
    font-size: 18px;
    line-height: 1.65;
}

.landing-primary-action{
    border: 1px solid var(--landing-teal);
    border-radius: var(--radius-btn);
    padding: 14px 22px;
    background: var(--landing-teal);
    color: #FFFFFF;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.landing-primary-action:hover:not(:disabled){
    border-color: #056562;
    background: #056562;
    transform: translateY(-1px);
}

.landing-primary-action:disabled{
    cursor: not-allowed;
}

.landing-availability{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--landing-muted);
    font-size: 13px;
}

.landing-availability span{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3AAE86;
}

a.landing-primary-action{
    display: inline-block;
    text-decoration: none;
}

.landing-hero-visual{
    border: 1px solid rgba(16, 42, 52, 0.14);
    border-radius: 8px;
    padding: 24px;
    background: #F8FBFA;
    box-shadow: 0 22px 44px rgba(16, 42, 52, 0.15);
}

.landing-hero-visual-title{
    margin-bottom: 20px;
    color: var(--landing-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.landing-hero-visual .landing-location-form{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
}

.landing-hero-visual .landing-location-submit{
    align-self: end;
    min-height: 48px;
}

.landing-section{
    padding: 104px 0;
    scroll-margin-top: 84px;
}

.landing-hero,
.landing-beta{
    scroll-margin-top: 84px;
}

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

.landing-section-heading-center{
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.landing-video,
.landing-shots{
    background: #FFFFFF;
    border-bottom: 1px solid var(--landing-line);
}

.landing-shots .landing-carousel{
    width: 80%;
    margin: 8px auto 0;
}

.landing-carousel-viewport{
    overflow: hidden;
    border: 1px solid rgba(16, 42, 52, 0.14);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 18px 36px rgba(16, 42, 52, 0.12);
}

.landing-carousel-track{
    display: flex;
    transition: transform 0.35s ease;
}

.landing-carousel-slide{
    flex: 0 0 100%;
    margin: 0;
}

.landing-carousel-slide img{
    display: block;
    width: 100%;
    height: auto;
    background: #F4F7F6;
}

.landing-carousel-slide figcaption{
    padding: 18px 64px 22px;
    text-align: center;
}

.landing-carousel-slide figcaption strong{
    display: block;
    color: var(--landing-ink);
    font-size: 16px;
}

.landing-carousel-slide figcaption p{
    max-width: 680px;
    margin: 8px auto 0;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.65;
}

.landing-carousel-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.landing-carousel-arrow{
    width: 40px;
    height: 40px;
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--landing-ink);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.landing-carousel-arrow:hover{
    border-color: var(--landing-teal);
    color: var(--landing-teal);
}

.landing-carousel-dots{
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-carousel-dot{
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #C5D4D1;
    cursor: pointer;
}

.landing-carousel-dot[aria-current="true"]{
    width: 22px;
    background: var(--landing-teal);
}

@media (prefers-reduced-motion: reduce){
    .landing-carousel-track{
        transition: none;
    }
}

.video-wrapper{
    position: relative;
    overflow: hidden;
    width: min(100%, 837px);
    margin: 0 auto;
    border: 1px solid rgba(16, 42, 52, 0.14);
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 18px 36px rgba(16, 42, 52, 0.12);
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.landing-questions{
    background: #FAF6F2;
}

.landing-question-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.landing-question{
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    background: #FFFFFF;
}

.landing-question h3{
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.landing-question-toggle{
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "number . mark"
        "title title mark";
    gap: 28px 16px;
    width: 100%;
    min-height: 168px;
    padding: 24px 26px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.landing-question-toggle:hover{
    color: var(--landing-teal);
}

.landing-question-number{
    grid-area: number;
    color: var(--landing-coral);
    font-size: 13px;
    font-weight: 800;
}

.landing-question-title{
    grid-area: title;
    color: var(--landing-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.landing-question-toggle:hover .landing-question-title{
    color: var(--landing-teal);
}

.landing-question-toggle::after{
    grid-area: mark;
    align-self: center;
    color: var(--landing-coral);
    content: "+";
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.landing-question-toggle[aria-expanded="true"]{
    min-height: 0;
    gap: 12px 16px;
}

.landing-question-toggle[aria-expanded="true"]::after{
    content: "−";
}

.landing-question-answer{
    padding: 0 26px 24px;
}

.landing-question-answer p{
    max-width: 520px;
    color: var(--landing-muted);
    font-size: 15px;
    line-height: 1.65;
}

.landing-story{
    background: #FFFFFF;
}

.landing-story-inner{
    max-width: 720px;
    margin: 0 auto;
}

.landing-story-inner p{
    color: var(--landing-ink);
    font-size: 20px;
    line-height: 1.75;
}

.landing-story-inner p + p{
    margin-top: 22px;
}

.landing-story-inner p:last-child{
    color: var(--landing-teal);
    font-size: 24px;
    font-weight: 800;
}

.landing-legal{
    background: #FFFFFF;
}

.landing-legal-inner{
    max-width: 760px;
    margin: 0 auto;
}

.landing-legal-inner h2{
    color: var(--landing-ink);
    font-size: 36px;
    margin: 6px 0 4px;
}

.landing-legal-inner h3{
    color: var(--landing-ink);
    font-size: 20px;
    font-weight: 700;
    margin: 34px 0 10px;
}

.landing-legal-inner p,
.landing-legal-inner li{
    color: var(--landing-muted);
    font-size: 16px;
    line-height: 1.7;
}

.landing-legal-inner p{
    margin: 0 0 12px;
}

.landing-legal-inner ul{
    margin: 0 0 12px;
    padding-left: 22px;
}

.landing-legal-inner li{
    margin-bottom: 8px;
}

.landing-legal-inner strong{
    color: var(--landing-ink);
}

.landing-legal-updated{
    color: var(--landing-muted);
    font-size: 14px;
}

.landing-location-score{
    padding: 76px 0;
    border-bottom: 1px solid var(--landing-line);
    background: #FFFFFF;
}

.landing-location-form{
    display: grid;
    grid-template-columns: minmax(180px, 0.72fr) minmax(240px, 1fr) auto;
    gap: 16px 14px;
    align-items: end;
}

.landing-location-field-wide{
    grid-column: 1 / -1;
}

.landing-location-field{
    display: grid;
    gap: 8px;
    min-width: 0;
}

.landing-location-field > span:first-child{
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-location-input-wrap{
    position: relative;
    display: block;
}

.landing-location-field input,
.landing-location-field select{
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(16, 42, 52, 0.18);
    border-radius: 8px;
    padding: 0 14px;
    background: #FFFFFF;
    color: var(--landing-ink);
    font: inherit;
    font-size: 14px;
}

.landing-location-field select{
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23102A34' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

.landing-location-field input{
    padding-right: 14px;
}

.landing-location-field input:focus,
.landing-location-field select:focus{
    border-color: var(--landing-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 116, 111, 0.14);
}

.landing-location-submit{
    min-height: 48px;
    white-space: nowrap;
}

.landing-location-status{
    min-height: 20px;
    margin-top: 14px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.5;
}

.landing-location-status[data-tone="success"]{
    color: var(--landing-teal);
}

.landing-location-status[data-tone="error"]{
    color: #B42318;
}

.landing-location-result{
    margin-top: 18px;
}

.landing-score-loader{
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    border: 1px dashed rgba(16, 42, 52, 0.18);
    border-radius: 8px;
    padding: 18px;
    color: var(--landing-muted);
    font-size: 13px;
    font-weight: 700;
}

.landing-score-loader svg{
    width: 48px;
    height: 48px;
    overflow: visible;
    flex: 0 0 auto;
}

.landing-score-loader-base{
    fill: none;
    stroke: rgba(16, 42, 52, 0.1);
    stroke-width: 4;
}

.landing-score-loader-run{
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 60 180;
    animation: landing-score-loader-run 2.2s linear infinite, landing-score-loader-color 3.4s linear infinite;
}

@keyframes landing-score-loader-run{
    from { stroke-dashoffset: 240; }
    to { stroke-dashoffset: 0; }
}

@keyframes landing-score-loader-color{
    0% { stroke: #d926c4; }
    25% { stroke: #9b5cf6; }
    50% { stroke: #4f8ef7; }
    75% { stroke: #22d3ee; }
    100% { stroke: #d926c4; }
}

.landing-score-card{
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    border: 1px solid rgba(16, 42, 52, 0.14);
    border-radius: 8px;
    padding: 22px;
    background: #FFFFFF;
}

.landing-score-kicker{
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-score-value{
    margin-top: 10px;
    color: var(--landing-ink);
    line-height: 1;
}

.landing-score-value span{
    font-size: 58px;
    font-weight: 800;
}

.landing-score-value small{
    margin-left: 4px;
    color: var(--landing-muted);
    font-size: 18px;
    font-weight: 800;
}

.landing-score-card-body h3{
    color: var(--landing-ink);
    font-size: 22px;
    line-height: 1.2;
}

.landing-score-card-body p{
    margin-top: 8px;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.55;
}

.landing-score-facts{
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
    color: var(--landing-ink);
    font-size: 14px;
    line-height: 1.55;
}

.landing-score-fact-value{
    display: inline-block;
    min-width: 2.2em;
    filter: blur(7px);
    -webkit-filter: blur(7px);
    user-select: none;
    pointer-events: none;
}

.landing-score-map-link{
    display: inline-block;
    margin-top: 18px;
    color: var(--landing-teal);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.landing-score-map-link span{
    color: var(--landing-coral);
}

.landing-section-heading{
    max-width: 680px;
}

.landing-section-heading h2,
.landing-beta h2{
    font-size: 44px;
}

.landing-section-heading > p:last-child{
    margin-top: 18px;
    color: var(--landing-muted);
    font-size: 16px;
    line-height: 1.7;
}

.landing-workflow{
    background: #E7F0EE;
}

.landing-workflow-grid{
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 96px;
}

.landing-steps{
    list-style: none;
    counter-reset: workflow;
}

.landing-steps li{
    position: relative;
    min-height: 86px;
    padding: 0 0 24px 58px;
    border-bottom: 1px solid rgba(16, 42, 52, 0.15);
    counter-increment: workflow;
}

.landing-steps li + li{
    padding-top: 24px;
}

.landing-steps li::before{
    position: absolute;
    left: 0;
    color: var(--landing-coral);
    content: "0" counter(workflow);
    font-size: 13px;
    font-weight: 800;
}

.landing-steps strong,
.landing-steps span{
    display: block;
}

.landing-steps strong{
    color: var(--landing-ink);
    font-size: 16px;
}

.landing-steps span{
    margin-top: 8px;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.55;
}

.landing-beta{
    padding: 74px 0;
    background: var(--landing-ink);
}

.landing-beta-inner{
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.landing-beta .landing-eyebrow{
    color: #6FD0BD;
}

.landing-beta h2{
    max-width: 680px;
    color: #FFFFFF;
}

.landing-beta p:last-child{
    max-width: 640px;
    margin-top: 16px;
    color: #C4D2D0;
    font-size: 15px;
    line-height: 1.65;
}

.landing-beta-panel{
    width: min(100%, 640px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
}

.landing-beta-form{
    display: grid;
    gap: 18px;
}

/* display: grid above would otherwise defeat the hidden attribute */
.landing-beta-form[hidden]{
    display: none;
}

.landing-beta-field{
    display: grid;
    gap: 8px;
    min-width: 0;
}

.landing-beta-field > span:first-child{
    color: #C4D2D0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-beta-field input,
.landing-beta-field select,
.landing-beta-field textarea{
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font: inherit;
    font-size: 14px;
}

.landing-beta-field textarea{
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.landing-beta-field select option{
    background: var(--landing-ink);
    color: #FFFFFF;
}

.landing-beta-field input::placeholder,
.landing-beta-field textarea::placeholder{
    color: #8FA5A3;
}

.landing-beta-field input:focus,
.landing-beta-field select:focus,
.landing-beta-field textarea:focus{
    border-color: #6FD0BD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 208, 189, 0.2);
}

.landing-beta-submit{
    justify-self: start;
    min-height: 48px;
    margin-top: 4px;
}

.landing-beta-status{
    min-height: 20px;
    color: #C4D2D0;
    font-size: 13px;
    line-height: 1.5;
}

.landing-beta-status[data-tone="error"]{
    color: #FFB4A8;
}

.landing-beta-success h3{
    color: #FFFFFF;
    font-size: 22px;
    line-height: 1.25;
}

.landing-beta-success p{
    margin-top: 12px;
    color: #C4D2D0;
    font-size: 15px;
    line-height: 1.65;
}

.landing-home .landing-footer{
    max-width: none;
    padding: 22px max(24px, calc((100% - 1200px) / 2));
    background: var(--landing-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #B7C6C4;
}

.landing-home .landing-footer a{
    color: #FFFFFF;
}

.landing-home a:focus-visible,
.landing-home button:focus-visible,
.landing-home summary:focus-visible{
    outline: 3px solid var(--landing-coral);
    outline-offset: 3px;
}

@media (max-width: 900px){
    .landing-hero-grid,
    .landing-workflow-grid,
    .landing-question-grid{
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .landing-hero{
        padding: 60px 0;
    }

    .landing-hero h2{
        font-size: 46px;
    }

    .landing-hero-copy{
        max-width: 640px;
    }

    .landing-hero-visual{
        max-width: 760px;
        padding: 20px;
    }

    .landing-beta-inner{
        grid-template-columns: 1fr;
        align-items: start;
    }

    .landing-location-form{
        grid-template-columns: 1fr 1fr;
    }

    .landing-hero-visual .landing-location-form{
        grid-template-columns: 1fr 1fr;
    }

    .landing-location-submit,
    .landing-hero-visual .landing-location-submit{
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px){
    .landing-home .landing-nav{
        padding: 13px 20px;
    }

    .landing-home .nav-links{
        gap: 14px;
    }

    .landing-home .nav-links a:nth-child(1),
    .landing-home .nav-links a:nth-child(2),
    .landing-home .nav-links a:nth-child(3){
        display: none;
    }

    .landing-shell{
        width: min(100% - 40px, 1200px);
    }

    .landing-hero{
        padding: 50px 0 58px;
    }

    .landing-hero h2{
        font-size: 34px;
    }

    .landing-section-heading h2,
    .landing-beta h2{
        font-size: 30px;
    }

    .landing-lede{
        font-size: 16px;
    }

    .landing-section{
        padding: 72px 0;
    }

    .landing-location-score{
        padding: 58px 0;
    }

    .landing-story-inner p{
        font-size: 17px;
    }

    .landing-story-inner p:last-child{
        font-size: 20px;
    }

    .landing-question-toggle{
        gap: 16px;
        min-height: 0;
    }

    .landing-question-title{
        font-size: 18px;
    }

    .landing-carousel-slide figcaption{
        padding: 16px 18px 18px;
    }

    .landing-beta-panel{
        padding: 20px;
    }

    .landing-beta-submit{
        justify-self: stretch;
    }

    .landing-hero-visual .landing-location-form,
    .landing-location-form,
    .landing-score-card{
        grid-template-columns: 1fr;
    }

    .landing-score-value span{
        font-size: 46px;
    }

    .landing-steps li{
        padding-left: 44px;
    }

    .landing-beta{
        padding: 58px 0;
    }
}

/* Top Horizontal Panel */

.top-panel-header h1{
    font-size: 32px;
    font-weight: 700;
    background: var(--grad-magenta-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    white-space: nowrap;
}

.top-panel-subtitle{
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Buttons */

button{
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--c-text);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: none;
}

button:hover{
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 57, 163, 0.5);
    transform: none;
}

button:active{
    transform: none;
}

/* Loading Overlay */

#loading{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: var(--c-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    color: var(--c-text);
    font-size: 16px;
}

/* Mobile Responsive */

@media (max-width: 768px) {

    .top-panel-header h1 {
        font-size: 20px;
    }

    .top-panel-subtitle {
        display: none;
    }
}

@media (max-width: 480px) {

    #map {
        top: 160px; /* Taller panel on mobile */
        height: calc(100vh - 160px);
    }
}

/* ── Tablet: tighten spacing, keep desktop layout ── */

@media (max-width: 768px) {
}

/* ── Phone: bottom-sheet layout + compact density ── */

@media (max-width: 480px) {
}

/* Brand is in left sidebar now — hide here */

.top-panel-header{
    display: none !important;
}

/* Map extends full height — no top panel bar consuming space */

#map
{
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh !important;
    z-index: 0;
}

/* ===== Onboarding on phones: footer and preset chips must fit the width ===== */
@media (max-width: 480px) {
}

/* ===== Hexagon loader (images/hex-loader.svg) — used for every wait ===== */

#loading{ text-align: center; }

#loading::before{
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: url('../images/hex-loader.svg') center / contain no-repeat;
}

/* Info tip bubble for [data-tip] icons (shared.js) */

[data-tip]{ cursor: pointer; }
