/* ===========================================================================
   MB Planning Alerts — clean civic-blue design system
   Light, white-card, rounded-panel aesthetic (Racket-Coach layout language).
   Light default + dark theme. One stylesheet, no build step.
   =========================================================================== */

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

:root {
    --brand:      #1864ab;   /* civic blue */
    --brand-2:    #1971c2;   /* lighter blue — links/hover */
    --brand-deep: #14507f;
    --brand-ink:  #0b3a63;   /* deep blue — footer / cta / hero deep */
    --brand-tint: #e7f1fb;   /* very pale blue — hover / selected / hero */
    --accent:     #1864ab;
    --accent-hover:#1971c2;
    --gold:       #d9a441;
    --gold-tint:  #fdf3da;

    --bg:        #f6f8fb;    /* page background */
    --bg-card:   #ffffff;    /* card surface */
    --bg-soft:   #eef3f9;    /* soft surfaces */
    --bg-input:  #ffffff;
    --border:    #dde5ee;    /* hairline */
    --ink:       #15212e;
    --ink-dim:   #51606e;
    --ink-faint: #8a98a6;
    --text:      #15212e;
    --text-muted:#51606e;

    --green: #2f9e44;
    --amber: #c77700;
    --red:   #c92a2a;
    --blue:  #1864ab;
    --blue-light: #e7f1fb;

    --radius:    14px;
    --radius-lg: 22px;
    --radius-sm: 9px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.05);
    --shadow:    0 4px 14px rgba(15,23,42,.08);
    --shadow-lg: 0 18px 44px rgba(15,40,70,.14);
    --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand:     #4c9be8;
        --brand-2:   #6cb0f0;
        --brand-deep:#3a86d6;
        --brand-ink: #0a2740;
        --brand-tint:#13283f;
        --accent:    #4c9be8;
        --accent-hover:#6cb0f0;
        --bg:        #0d1420;
        --bg-card:   #151d2b;
        --bg-soft:   #121a27;
        --bg-input:  #0f1722;
        --border:    #25303f;
        --ink:       #e6edf5;
        --ink-dim:   #9fb0c0;
        --ink-faint: #6b7c8d;
        --text:      #e6edf5;
        --text-muted:#9fb0c0;
        --blue-light:#13283f;
        --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
        --shadow:    0 6px 18px rgba(0,0,0,.45);
        --shadow-lg: 0 18px 44px rgba(0,0,0,.55);
    }
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1,h2,h3 { line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }
.skip-link { position:absolute; left:-999px; top:0; background:var(--brand); color:#fff; padding:.6rem 1rem; z-index:200; }
.skip-link:focus { left:0; }

/* ── Navbar — pill links ─────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; }
.navbar-brand { font-size: 1.1rem; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: .5rem; }
.navbar-brand:hover { text-decoration: none; color: var(--brand-2); }
.brand-mark { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; }
.navbar-nav { display: flex; list-style: none; gap: .5rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.navbar-nav a {
    color: var(--ink-dim); font-weight: 600; font-size: .9rem;
    padding: .5rem .85rem; border-radius: 999px; border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.navbar-nav a:hover { color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.nav-cta { background: var(--brand) !important; color: #fff !important; }
.nav-cta:hover { background: var(--brand-2) !important; color:#fff !important; }
.navbar-toggle { display:none; background:none; border:0; font-size:1.5rem; color:var(--brand); cursor:pointer; margin-left:auto; }

main.container { padding-top: 1.75rem; padding-bottom: 3rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    font-weight: 700; font-size: .95rem; padding: .72rem 1.3rem; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .08s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color:#fff; }
.btn-outline, .btn-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-outline:hover, .btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-white { background:#fff; color: var(--brand); }
.btn-gold { background: var(--gold); color:#3a2a05; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
@media (prefers-color-scheme: dark){ .btn-outline,.btn-white{ background: var(--bg-card);} }

/* ── Hero — pale rounded panel + white input card ────────────────────────── */
.hero-band {
    position: relative; overflow: hidden;
    max-width: var(--maxw); margin: 1.5rem auto 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(1100px 360px at 50% -40%, var(--brand-tint), transparent 70%),
        linear-gradient(160deg, var(--brand-tint) 0%, #ffffff 55%, var(--gold-tint) 130%);
    box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark){
    .hero-band { background: linear-gradient(160deg, var(--brand-tint), var(--bg-card) 60%); }
}
/* optional photo layer — appears only when /assets/img/hero.jpg exists, faded */
.hero-band::before {
    content:""; position:absolute; inset:0; z-index:0; opacity:.10;
    background-image: url('/assets/img/hero.jpg'); background-size: cover; background-position: center;
}
/* faint rooftop texture */
.hero-band::after {
    content:""; position:absolute; inset:0; z-index:0; opacity:.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%231864ab' stroke-width='1.5'%3E%3Cpath d='M0 55 L20 40 L40 55 M40 55 L40 30 L70 30 L70 55 M70 55 L90 38 L110 55'/%3E%3Crect x='46' y='38' width='8' height='10'/%3E%3Crect x='58' y='38' width='8' height='10'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 3.5rem 1.5rem 3rem; text-align: center; }
.hero-badge { display:inline-block; background: var(--gold); color:#3a2a05; font-weight:800;
    font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:.4rem .9rem; border-radius:999px; margin-bottom:1.1rem; }
.hero-content h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 850; color: var(--ink); }
.hero-accent { color: var(--brand); }
.hero-sub { margin: 1rem auto 0; max-width: 620px; font-size: 1.12rem; color: var(--ink-dim); }
/* white input card */
.hero-search { display:flex; gap:.6rem; max-width: 640px; margin: 1.9rem auto 0;
    background: var(--bg-card); padding: .7rem; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-search-input { flex:1; border:1px solid var(--border); border-radius: var(--radius-sm);
    padding: .8rem 1.1rem; font-size: 1rem; background: var(--bg-input); color: var(--text); }
.hero-search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.hero-search-btn { white-space: nowrap; }
.hero-trust { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-dim); }
.hero-trust strong { color: var(--ink); }

/* ── Home sections ────────────────────────────────────────────────────────── */
.home-section { max-width: var(--maxw); margin: 0 auto 3rem; padding: 0 1.25rem; }
.band-soft { max-width: none; background: var(--bg-soft); padding: 3rem 1.25rem; margin-bottom: 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.band-soft > * { max-width: var(--maxw); margin-left:auto; margin-right:auto; }
.section-title { text-align: center; font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; margin-bottom: 1.8rem; }
.section-title.left { text-align: left; }

.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s; text-align:center; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width:54px; height:54px; margin:0 auto .8rem; display:grid; place-items:center;
    border-radius:50%; background: var(--brand-tint); font-size: 1.5rem; }
.feature h3 { margin: .2rem 0 .35rem; font-size: 1.12rem; }
.feature p { color: var(--ink-dim); font-size: .95rem; }

/* steps (how-it-works) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin: 1.75rem 0 2.5rem; }
.step { position: relative; background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-num { position:absolute; top:-18px; left:1.5rem; width:38px; height:38px; border-radius:50%; background: var(--brand); color:#fff; display:grid; place-items:center; font-weight:800; box-shadow: var(--shadow); }
.step h2 { font-size: 1.12rem; margin: .4rem 0; }
.step p { color: var(--ink-dim); }

/* ── Two-column ───────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 1.75rem; align-items: start; }
.col-aside { display: grid; gap: 1.25rem; position: sticky; top: 80px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.card-cta { background: linear-gradient(160deg, #fff, var(--brand-tint)); border-color: color-mix(in srgb, var(--brand) 22%, var(--border)); }
@media (prefers-color-scheme: dark){ .card-cta{ background: linear-gradient(160deg, var(--bg-card), var(--brand-tint)); } }
.card-price { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.card-price small { font-size: .9rem; font-weight: 500; color: var(--ink-dim); }
.card-price-alt { font-size: .85rem; color: var(--ink-dim); font-weight:600; }
.card-title { font-weight: 700; margin-bottom: .6rem; }

/* ── Application feed ─────────────────────────────────────────────────────── */
.app-list { display: grid; gap: .9rem; }
.app-item { background: var(--bg-card); border:1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .1s; }
.app-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.app-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--ink-faint); }
.app-address a { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.app-address a:hover { color: var(--brand); }
.app-desc { color: var(--ink-dim); margin: .25rem 0 .5rem; font-size: .95rem; }
.app-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--ink-faint); }
.app-area { color: var(--brand); font-weight: 600; }

.badge { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-grey { background: var(--bg-soft); color: var(--ink-dim); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-amber{ background: var(--gold-tint); color: var(--amber); }
.badge-green{ background: #ebfbee; color: var(--green); }
.badge-red  { background: #fff5f5; color: var(--red); }
@media (prefers-color-scheme: dark) {
    .badge-amber{ background:#3a2a10; } .badge-green{ background:#10331b; } .badge-red{ background:#3a1414; }
}

/* ── Guides ───────────────────────────────────────────────────────────────── */
.page-head { text-align: center; margin: .5rem auto 2rem; max-width: 760px; }
.page-head h1 { font-size: clamp(1.9rem,4vw,2.6rem); font-weight: 850; }
.page-head-sub { color: var(--ink-dim); font-size: 1.08rem; margin-top: .6rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin: .25rem 0 1rem; }
.breadcrumb span { opacity: .6; margin: 0 .3rem; }

.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.guide-card { background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s; display:block; color: var(--ink); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-color: color-mix(in srgb,var(--brand) 30%,var(--border)); }
.guide-card-icon { width:48px;height:48px;border-radius:50%;background:var(--brand-tint);display:grid;place-items:center; font-size: 1.5rem; }
.guide-card h2 { font-size: 1.12rem; margin: .7rem 0 .4rem; }
.guide-card p { color: var(--ink-dim); font-size: .93rem; }
.guide-card-link { color: var(--brand); font-weight: 700; font-size: .9rem; display:inline-block; margin-top:.6rem; }

.guide-article { max-width: 820px; margin: 0 auto; }
.prose { font-size: 1.05rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 2.4rem; box-shadow: var(--shadow-sm); }
.prose .lead { font-size: 1.18rem; color: var(--ink); margin-bottom: 1.4rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .7rem; }
.prose h2:first-child, .prose .lead:first-child, .prose p:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose code { background: var(--bg-soft); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }

/* FAQ */
.faq { max-width: 760px; margin: 2.5rem auto 0; }
.faq h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.faq-item { background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: .7rem; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-top: .6rem; color: var(--ink-dim); }

/* info band */
.info-band { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin: 0 auto 3rem; max-width: var(--maxw); box-shadow: var(--shadow-sm); }
.info-col h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.tick-list { list-style: none; }
.tick-list li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--ink-dim); }
.tick-list li::before { content:"✓"; position:absolute; left:0; color: var(--brand); font-weight: 800; }
.tick-list.small li { font-size: .9rem; }
.link-list { list-style:none; } .link-list li { margin-bottom: .45rem; font-size: .92rem; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band { text-align: center; background: linear-gradient(150deg, var(--brand-ink), var(--brand)); color:#fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; margin: 3rem auto; max-width: var(--maxw); }
.cta-band h2 { color:#fff; font-size: clamp(1.4rem,3vw,2rem); }
.cta-band p { color: rgba(255,255,255,.9); margin: .6rem 0 1.4rem; }
.cta-band .btn-primary { background:#fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--gold-tint); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0,350px)); gap: 1.5rem; justify-content: center; align-items: stretch; }
.pricing-card { position: relative; background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; }
.pricing-card--highlight { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.pricing-ribbon { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--gold); color:#3a2a05; font-weight:800; font-size:.72rem; padding:.3rem .8rem; border-radius:999px; letter-spacing:.03em; text-transform:uppercase; }
.pricing-card .price { font-size: 2.3rem; font-weight: 850; color: var(--brand); margin: .4rem 0; }
.pricing-card .price small { font-size: .95rem; font-weight: 500; color: var(--ink-dim); }
.price-alt { color: var(--ink-dim); font-size: .9rem; margin-bottom: 1rem; }
.feature-list { list-style: none; margin: 1rem 0 1.5rem; flex: 1; }
.feature-list li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.feature-list li::before { content:"✓"; position:absolute; left:0; color: var(--brand); font-weight: 800; }
.stripe-note { font-size: .8rem; color: var(--ink-faint); text-align:center; margin-top:.7rem; }
.current-plan { color: var(--ink-dim); font-weight: 600; text-align:center; }

/* ── Auth / forms ─────────────────────────────────────────────────────────── */
.account-page { max-width: 720px; margin: 1rem auto; }
.auth-card { max-width: 440px; margin: 1rem auto; background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.55rem; text-align:center; }
.auth-sub { text-align:center; color: var(--ink-dim); margin: .4rem 0 1.4rem; }
.account-form { display: grid; gap: 1rem; }
.form-group { display: grid; gap: .35rem; }
.form-group label { font-weight: 600; font-size: .88rem; color: var(--ink-dim); }
.form-control { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text); font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.auth-alt { text-align:center; font-size: .9rem; margin-top: 1rem; color: var(--ink-dim); }
.auth-fineprint { text-align:center; font-size: .8rem; color: var(--ink-faint); margin-top: 1rem; }
.cf-turnstile { display:flex; justify-content:center; }

.plan-select { border: 0; display: grid; gap: .6rem; }
.plan-select legend { font-weight: 700; margin-bottom: .3rem; }
.plan-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; border:1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; cursor: pointer; }
.plan-option.is-selected, .plan-option:hover { border-color: var(--brand); background: var(--brand-tint); }
.plan-option--featured { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.plan-name { font-weight: 700; } .plan-price { font-weight: 800; color: var(--brand); } .plan-desc { grid-column: 2 / -1; font-size: .82rem; color: var(--ink-dim); }
.plan-badge { background: var(--gold); color:#3a2a05; font-size:.65rem; padding:.1rem .45rem; border-radius:999px; font-weight:800; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
/* 2026-06-07: palette darkened to pass WCAG AA (old success pair was 3.2:1)
   + missing .alert-warning added (delete.php uses it). */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; font-weight: 600; }
.alert-error { background: #fbeaea; color: #8f1f1f; border:1px solid #f0c4c4; }
.alert-success { background: #e8f6ec; color: #1f6b32; border:1px solid #bfe3c8; }
.alert-info { background: var(--blue-light); color: var(--brand-deep); border:1px solid #a5d8ff; }
.alert-warning { background: var(--gold-tint); color: #7a5208; border:1px solid var(--gold); }
@media (prefers-color-scheme: dark) {
    .alert-error{background:#3a1414;border-color:#5b1d1d;color:#f1a0a0;}
    .alert-success{background:#10331b;border-color:#1d5b2d;color:#7fd494;}
    .alert-info{background:#13283f;border-color:#1d4a5b;color:#9ec9ee;}
    .alert-warning{background:#3a2a10;border-color:#7a5a14;color:#e7c878;}
}

.empty-state { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--ink-dim); }

/* ── Map ──────────────────────────────────────────────────────────────────── */
#app-map { height: 340px; border-radius: var(--radius); border:1px solid var(--border); margin: 1rem 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.82); margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color:#fff; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color:#fff; }
.footer-col h4 { color:#fff; font-size: .95rem; margin-bottom: .7rem; }
.footer-col ul { list-style: none; } .footer-col li { margin-bottom: .4rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 1rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.8); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-row, .steps, .guide-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .col-aside { position: static; }
    .info-band { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .navbar-nav { display: none; position: absolute; top: 100%; left:0; right:0; background: var(--bg-card); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .navbar-nav.open { display: flex; }
    .navbar-toggle { display: block; }
    .feature-row, .steps, .guide-grid, .pricing-cards { grid-template-columns: 1fr; }
    .hero-search { flex-direction: column; }
    .hero-search-input, .hero-search-btn { width:100%; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Account / My Alerts dashboard (2026-06-07)
   The dashboard markup always used these classes but the styles were never
   written — the flow rendered browser-default. Same card language as the
   rest of the site: white panels, civic-blue accents, pill buttons.
   =========================================================================== */
.account-page { max-width: 880px; margin: 2rem auto 3.5rem; padding: 0 18px; }
.dashboard-header { margin-bottom: 1.4rem; }
.dashboard-header h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.dashboard-header p { color: var(--ink-dim); }
.dashboard-header a { color: var(--brand-2); font-weight: 600; }

/* badge base lives with the application-card badges (~line 221); these are
   the account-tier variants + dashboard-local spacing only */
.dashboard-header .badge { vertical-align:middle; margin-left:.3rem; }
.badge-paid { background: var(--gold-tint); color:#7a5a14; border:1px solid var(--gold); }
.badge-free { background: var(--bg-soft); color: var(--ink-dim); border:1px solid var(--border); }
@media (prefers-color-scheme: dark){
    .badge-paid { background:#3a2a10; color:#e7c878; border-color:#7a5a14; }
}

.dashboard-section { background: var(--bg-card); border:1px solid var(--border);
    border-radius: var(--radius-lg); padding:1.5rem 1.6rem; margin-bottom:1.4rem;
    box-shadow: var(--shadow-sm); }
.dashboard-section h2 { font-size:1.15rem; margin-bottom:1rem; }

/* saved-locations table → stacked cards on small screens */
.data-table { width:100%; border-collapse:collapse; font-size:.95rem; }
.data-table th { text-align:left; font-size:.74rem; letter-spacing:.06em;
    text-transform:uppercase; color: var(--ink-dim); font-weight:700;
    padding:.45rem .75rem .45rem 0; border-bottom:1px solid var(--border); }
.data-table td { padding:.8rem .75rem .8rem 0; border-bottom:1px solid var(--border);
    vertical-align:middle; }
.data-table tr:last-child td { border-bottom:0; }
.data-table a { color: var(--brand-2); font-weight:600; }

.select-inline { padding:.45rem .7rem; border:1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-input); color: var(--ink);
    font: inherit; font-size:.88rem; }
.select-inline:focus { outline:none; border-color: var(--brand);
    box-shadow:0 0 0 3px var(--brand-tint); }

/* .btn-secondary is grouped with .btn-outline near the other button styles */
.btn-danger { background:#fff; border-color:#f0c4c4; color: var(--red); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color:#fff; }
@media (prefers-color-scheme: dark){
    .btn-secondary { background: var(--bg-card); }
    .btn-danger { background: var(--bg-card); border-color:rgba(201,42,42,.5); color:#f1a0a0; }
    .btn-danger:hover { color:#fff; }
}

.add-location-details { margin-top:1.1rem; }
.add-location-details summary { list-style:none; }
.add-location-details summary::-webkit-details-marker { display:none; }
.add-location-details[open] summary { margin-bottom:1rem; }
/* form-group/form-control bases live with the auth-card styles (~line 300);
   inside the dashboard card just cap the control width on desktop */
.add-location-form .form-control,
.add-location-form .btn-primary { max-width:420px; }

.alert-list { list-style:none; }
.alert-list li { padding:.7rem 0; border-bottom:1px solid var(--border);
    display:flex; gap:.8rem; align-items:baseline; flex-wrap:wrap; }
.alert-list li:last-child { border-bottom:0; }
.alert-date { color: var(--ink-faint); font-size:.82rem; white-space:nowrap; }
.alert-desc { color: var(--ink-dim); font-size:.88rem; flex-basis:100%; }

.dashboard-danger p + p { margin-top:.7rem; }

@media (max-width: 640px) {
    .account-page { margin-top:1.2rem; }
    .dashboard-section { padding:1.1rem 1rem; }
    /* table → stacked cards (thead hidden; td labelled via data-label) */
    .data-table thead { display:none; }
    .data-table tr { display:block; border:1px solid var(--border);
        border-radius: var(--radius-sm); padding:.55rem .9rem; margin-bottom:.8rem; }
    .data-table tr:last-child { margin-bottom:0; }
    .data-table td { display:flex; justify-content:space-between; align-items:center;
        gap:.8rem; border-bottom:0; padding:.4rem 0; }
    .data-table td::before { content: attr(data-label); font-size:.74rem;
        letter-spacing:.06em; text-transform:uppercase; color: var(--ink-dim);
        font-weight:700; }
    .add-location-form .form-control,
    .add-location-form .btn-primary { max-width:none; }
}
