:root {
    --ink: #172018;
    --muted: #667067;
    --paper: #f7f7f2;
    --card: #ffffff;
    --line: #dfe4dc;
    --accent: #2f6b4f;
    --accent-dark: #23533d;
    --warm: #e8c98b;
    --shadow: 0 18px 50px rgba(23,32,24,.09);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-size: 1.05rem;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(47,107,79,.22);
}

.navlinks {
    display: flex;
    gap: 28px;
    color: var(--muted);
    font-size: .94rem;
}

    .navlinks a:hover {
        color: var(--ink);
    }

.nav-cta {
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    background: white;
    font-weight: 700;
}

.hero {
    padding: 74px 0 88px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e9f1eb;
    color: var(--accent-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: .97;
    letter-spacing: -.065em;
    margin: 0 0 25px;
    max-width: 700px;
}

.hero p {
    color: var(--muted);
    font-size: 1.18rem;
    max-width: 610px;
    margin: 0 0 30px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 12px 26px rgba(47,107,79,.22);
}

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
}

.hero-note {
    margin-top: 16px;
    color: #7b837c;
    font-size: .84rem;
}

.phone {
    width: min(370px, 100%);
    margin-left: auto;
    background: #151916;
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(20,28,22,.23);
    transform: rotate(2deg);
}

.screen {
    background: #f7f8f5;
    border-radius: 32px;
    min-height: 650px;
    overflow: hidden;
    padding: 24px 18px;
}

.status {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: #7a817a;
    padding: 0 5px 24px;
}

.app-title {
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -.045em;
    margin-bottom: 5px;
}

.app-sub {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 18px;
}

.search {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 13px 14px;
    display: flex;
    gap: 9px;
    align-items: center;
    color: #818881;
    box-shadow: 0 5px 18px rgba(23,32,24,.04);
}

    .search strong {
        color: var(--ink);
        font-size: .88rem;
    }

.scan-card {
    margin-top: 14px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    padding: 19px;
    position: relative;
    overflow: hidden;
}

    .scan-card:after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        right: -35px;
        top: -35px;
        background: rgba(255,255,255,.08);
    }

    .scan-card .big {
        font-size: 1.1rem;
        font-weight: 850;
    }

    .scan-card p {
        margin: 4px 0 16px;
        color: #dbe9df;
        font-size: .78rem;
    }

.mini-btn {
    display: inline-block;
    background: white;
    color: var(--accent-dark);
    padding: 8px 11px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
}

.section-label {
    font-size: .75rem;
    font-weight: 850;
    color: #798179;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin: 22px 2px 9px;
}

.item {
    background: white;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.item-img {
    width: 47px;
    height: 47px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #eceee9;
    font-size: 1.35rem;
}

.item strong {
    display: block;
    font-size: .82rem;
}

.item span {
    display: block;
    color: #7a817b;
    font-size: .7rem;
    margin-top: 2px;
}

section {
    padding: 90px 0;
}

.section-head {
    max-width: 680px;
    margin-bottom: 42px;
}

    .section-head h2 {
        font-size: clamp(2.2rem, 4vw, 3.6rem);
        line-height: 1.02;
        letter-spacing: -.055em;
        margin: 0 0 15px;
    }

    .section-head p {
        color: var(--muted);
        font-size: 1.08rem;
    }

.problem {
    background: #172018;
    color: white;
}

    .problem .section-head p {
        color: #bdc8bf;
    }

.quote {
    border-left: 3px solid var(--warm);
    padding-left: 22px;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -.025em;
    max-width: 850px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step, .feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 25px rgba(23,32,24,.035);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e9f1eb;
    color: var(--accent-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 24px;
}

.step h3, .feature h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.step p, .feature p {
    color: var(--muted);
    margin: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-icon {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.demo {
    background: #ebece6;
}

.demo-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 35px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow);
}

    .demo-box h3 {
        font-size: 2rem;
        letter-spacing: -.04em;
        margin: 0 0 12px;
    }

    .demo-box p {
        color: var(--muted);
    }

.demo-search {
    border: 2px solid #d9dfd7;
    border-radius: 16px;
    padding: 15px;
    width: 100%;
    outline: none;
    margin: 8px 0 15px;
}

    .demo-search:focus {
        border-color: var(--accent);
    }

.result {
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 16px;
    display: none;
}

    .result.show {
        display: block;
    }

.result-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.confidence {
    background: #e9f1eb;
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.location {
    margin-top: 10px;
    padding: 10px;
    background: #f4f5f1;
    border-radius: 11px;
    font-size: .82rem;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 820px;
}

.price-card {
    border: 1px solid var(--line);
    border-radius: 25px;
    background: white;
    padding: 30px;
}

    .price-card.pro {
        border: 2px solid var(--accent);
        position: relative;
    }

.popular {
    position: absolute;
    right: 20px;
    top: 20px;
    background: var(--accent);
    color: white;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

.price {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -.06em;
}

    .price small {
        font-size: .9rem;
        color: var(--muted);
        letter-spacing: 0;
    }

.price-card ul {
    padding-left: 20px;
    color: var(--muted);
}

.price-card li {
    margin: 8px 0;
}

.cta {
    background: var(--accent);
    color: white;
    border-radius: 32px;
    padding: 55px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

    .cta h2 {
        margin: 0 0 8px;
        font-size: clamp(2rem, 4vw, 3.3rem);
        letter-spacing: -.05em;
        line-height: 1;
    }

    .cta p {
        color: #dce9df;
        margin: 0;
    }

    .cta .btn-primary {
        background: white;
        color: var(--accent-dark);
        box-shadow: none;
        white-space: nowrap;
    }

footer {
    padding: 35px 0 50px;
    color: #788078;
    font-size: .86rem;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    .phone {
        margin: 0 auto;
        transform: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .demo-box {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px;
    }

    .navlinks {
        display: none;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 28px, 1120px);
    }

    h1 {
        font-size: 3.15rem;
    }

    section {
        padding: 65px 0;
    }

    .pricing {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Global (unscoped) drag ghost for the Locations page — created by JS outside the component
   scope, so it cannot rely on the component's scoped stylesheet. */
.dih-drag-ghost {
    position: fixed;
    z-index: 9999;
    padding: 0.4rem 0.8rem;
    background: #ffffff;
    border: 1px solid #dfe4dc;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #172018;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

/* Persistent subscription-tier banner (TierBanner component) */
.tier-banner {
    margin: 0 0 1rem;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--line, #dfe4dc);
}

.tier-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tier-banner a {
    text-decoration: underline;
    color: inherit;
}

.tier-banner-trial {
    background: #fff8e6;
    color: #6b4e12;
    border-color: #ecd9a0;
}

.tier-banner-free {
    background: #eef1ec;
    color: var(--muted, #667067);
}

.tier-banner-free a.link-underline-light {
    color: var(--muted, #667067);
}

.tier-banner-premium {
    background: #e8f3ec;
    color: #23533d;
    border-color: #bcdac6;
}

.tier-banner-upgrade {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.6rem;
    --bs-btn-font-size: 0.85rem;
    background: var(--accent, #2f6b4f);
    border-color: var(--accent, #2f6b4f);
    color: #fff;
    white-space: nowrap;
}

.tier-banner-upgrade:hover {
    background: var(--accent-dark, #23533d);
    color: #fff;
}

.billing-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent, #2f6b4f);
}
