:root {
    --bg-0: #050814;
    --bg-1: #0a1124;
    --ink: #f5f7ff;
    --ink-dim: rgba(245, 247, 255, 0.62);
    --ink-faint: rgba(245, 247, 255, 0.40);
    --accent: #0a84ff;          /* iOS system blue */
    --accent-2: #64d2ff;
    --good: #30d158;
    --warn: #ff9f0a;
    --bad: #ff453a;
    --glass-stroke: rgba(255, 255, 255, 0.18);
    --glass-fill: rgba(255, 255, 255, 0.08);
    --glass-fill-2: rgba(255, 255, 255, 0.05);
    --radius: 26px;
    --radius-sm: 16px;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Atmospheric background: soft moving color fields behind the glass. */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: -30vmax;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38vmax 38vmax at 18% 12%, rgba(10, 132, 255, 0.45), transparent 60%),
        radial-gradient(34vmax 34vmax at 86% 18%, rgba(191, 90, 242, 0.38), transparent 60%),
        radial-gradient(42vmax 42vmax at 70% 92%, rgba(100, 210, 255, 0.30), transparent 62%),
        radial-gradient(36vmax 36vmax at 12% 88%, rgba(48, 209, 88, 0.20), transparent 60%);
    filter: saturate(120%);
    animation: drift 26s ease-in-out infinite alternate;
}
body::after {
    background:
        radial-gradient(30vmax 30vmax at 60% 30%, rgba(255, 159, 10, 0.18), transparent 60%),
        radial-gradient(40vmax 40vmax at 30% 70%, rgba(10, 132, 255, 0.22), transparent 60%);
    animation-duration: 34s;
    animation-direction: alternate-reverse;
    z-index: -3;
}
@keyframes drift {
    0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
    100% { transform: translate3d(2vmax,-3vmax,0) rotate(8deg) scale(1.08); }
}

/* Subtle grain to keep gradients from banding. */
body > .grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- The Liquid Glass primitive ---- */
.glass {
    position: relative;
    background: linear-gradient(150deg, var(--glass-fill), var(--glass-fill-2));
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 1px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
/* Specular highlight sweeping the top edge — the signature of Liquid Glass. */
.glass::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        130deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.06) 18%,
        transparent 42%,
        transparent 100%
    );
    mix-blend-mode: screen;
    opacity: 0.7;
}
/* Refraction edge glow. */
.glass::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(100, 210, 255, 0.12);
}

/* Layout shell */
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 22px 80px; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; margin-bottom: 28px;
    border-radius: 999px;
    position: sticky; top: 14px; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 18px; }
.brand .dot {
    width: 26px; height: 26px; border-radius: 9px;
    background: linear-gradient(150deg, var(--accent-2), var(--accent));
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.6);
}
.nav { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
    appearance: none; cursor: pointer; font-family: inherit; font-weight: 590;
    font-size: 15px; color: var(--ink); letter-spacing: -0.01em;
    padding: 11px 20px; border-radius: 999px;
    border: 1px solid var(--glass-stroke);
    background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 16px rgba(0,0,0,0.28);
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 24px rgba(0,0,0,0.34); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary {
    color: #fff; border-color: transparent;
    background: linear-gradient(160deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 22px rgba(10,132,255,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-danger {
    color: #fff;
    background: linear-gradient(160deg, #ff6b61, var(--bad));
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(255,69,58,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* Cards & sections */
.card { padding: 26px; margin-bottom: 22px; }
.card h2 { font-size: 21px; font-weight: 640; margin-bottom: 4px; }
.card .sub { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 20px; }

.hero { padding: 56px 40px; text-align: center; margin-bottom: 26px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 680; line-height: 1.02; letter-spacing: -0.03em; }
.hero p { color: var(--ink-dim); font-size: 19px; max-width: 560px; margin: 18px auto 30px; line-height: 1.45; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 7px; font-weight: 560; }
.input, textarea.input, select.input {
    width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
    padding: 13px 15px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-stroke);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, textarea.input:focus, select.input:focus {
    outline: none; border-color: var(--accent);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 4px rgba(10,132,255,0.25);
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.45; }
.counter { font-size: 12px; color: var(--ink-faint); text-align: right; margin-top: 5px; }
.row { display: grid; gap: 14px; }
@media (min-width: 620px) { .row.cols-2 { grid-template-columns: 1fr 1fr; } .row.cols-3 { grid-template-columns: 2fr 1fr 1fr; } }

/* Listing list grouped by address */
.listing {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; margin-bottom: 12px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
}
.listing .addr { font-weight: 590; font-size: 16px; }
.listing .meta { color: var(--ink-dim); font-size: 13px; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.01em; }
.pill.ready { background: rgba(48,209,88,0.18); color: #5be584; }
.pill.pending { background: rgba(255,159,10,0.18); color: #ffcf70; }
.pill.failed { background: rgba(255,69,58,0.18); color: #ff8a82; }
.pill.num { background: rgba(10,132,255,0.18); color: var(--accent-2); font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-dim); }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14.5px; }
.flash.err { background: rgba(255,69,58,0.16); border: 1px solid rgba(255,69,58,0.4); }
.flash.ok { background: rgba(48,209,88,0.16); border: 1px solid rgba(48,209,88,0.4); }

.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.stat { padding: 20px; }
.stat .n { font-size: 32px; font-weight: 660; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; color: var(--ink-dim); font-weight: 560; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; }
table.tbl td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.num-pick { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1); }
.muted { color: var(--ink-faint); font-size: 13px; }
a.link { color: var(--accent-2); text-decoration: none; }
a.link:hover { text-decoration: underline; }

.fade-up { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================== Landing page ============================== */
.lp-hero { text-align: center; padding: 64px 28px 52px; }
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--accent-2); padding: 7px 14px; border-radius: 999px;
    background: rgba(10,132,255,0.12); border: 1px solid rgba(100,210,255,0.28);
    margin-bottom: 22px;
}
.lp-hero h1 { font-size: clamp(38px, 6.5vw, 66px); font-weight: 690; line-height: 1.0; letter-spacing: -0.035em; }
.lp-hero .lede { color: var(--ink-dim); font-size: clamp(17px, 2.2vw, 21px); max-width: 600px; margin: 22px auto 30px; line-height: 1.5; }
.lp-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta-note { color: var(--ink-faint); font-size: 13px; margin-top: 16px; }

.lp-section { margin: 56px 0; }
.lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.lp-section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 660; letter-spacing: -0.025em; }
.lp-section-head p { color: var(--ink-dim); font-size: 17px; margin-top: 12px; line-height: 1.5; }

/* Step flow */
.lp-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { padding: 28px; position: relative; }
.lp-step .num {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 680; font-size: 18px; color: #fff; margin-bottom: 16px;
    background: linear-gradient(150deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 18px rgba(10,132,255,0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}
.lp-step h3 { font-size: 19px; font-weight: 620; margin-bottom: 8px; }
.lp-step p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; }

/* Feature grid */
.lp-features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .lp-features { grid-template-columns: 1fr 1fr; } }
.lp-feature { padding: 26px; }
.lp-feature .ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    margin-bottom: 14px; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-stroke);
}
.lp-feature .ic svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.lp-feature h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 7px; }
.lp-feature p { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }

/* Phone mockup */
.lp-split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .lp-split { grid-template-columns: 1.1fr 0.9fr; } }
.phone {
    width: 270px; max-width: 78vw; margin: 0 auto; aspect-ratio: 9 / 18.5;
    border-radius: 42px; padding: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
    border: 1px solid var(--glass-stroke);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
}
.phone .screen {
    width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
    background: linear-gradient(170deg, #0b1530, #0a1d3d);
    display: flex; flex-direction: column; padding: 22px 18px;
}
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 86px; height: 7px; border-radius: 99px; background: rgba(0,0,0,0.5); }
.call-row { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.call-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(150deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.call-meta .t { font-weight: 600; font-size: 15px; }
.call-meta .s { color: var(--ink-dim); font-size: 12px; }
.bubble {
    margin-top: 16px; padding: 12px 14px; border-radius: 16px 16px 16px 5px;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.12);
    font-size: 13px; line-height: 1.45; color: var(--ink);
}
.sms {
    margin-top: auto; align-self: flex-end; max-width: 88%;
    padding: 11px 14px; border-radius: 18px 18px 5px 18px;
    background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: #fff;
    font-size: 13px; line-height: 1.4; box-shadow: 0 6px 18px rgba(10,132,255,0.4);
}
.keypad-hint { text-align: center; color: var(--ink-faint); font-size: 11px; margin-top: 12px; }

/* Pricing */
.lp-price { max-width: 460px; margin: 0 auto; text-align: center; padding: 40px 32px; }
.lp-price .amt { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.lp-price .amt span { font-size: 22px; font-weight: 500; color: var(--ink-dim); }
.lp-price .per { color: var(--ink-dim); font-size: 15px; margin-top: 6px; }
.lp-price ul { list-style: none; text-align: left; margin: 26px auto 28px; max-width: 320px; display: grid; gap: 12px; }
.lp-price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.lp-price li svg { width: 18px; height: 18px; stroke: var(--good); flex-shrink: 0; margin-top: 2px; }

/* FAQ */
.lp-faq { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 20px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.faq-item p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; }

.lp-final { text-align: center; padding: 52px 28px; }
.lp-final h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 670; letter-spacing: -0.025em; }
.lp-final p { color: var(--ink-dim); font-size: 17px; margin: 14px auto 26px; max-width: 480px; }

.lp-footer { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 30px 0 10px; }
.lp-footer a { color: var(--ink-dim); text-decoration: none; }
.lp-footer a:hover { color: var(--ink); }

/* Responsive topbar — keep brand + nav on one row on small screens */
@media (max-width: 520px) {
    .topbar { padding: 10px 12px; }
    .brand { font-size: 16px; gap: 8px; }
    .brand span[style*="11px"] { display: none; }   /* hide 'by Sidestreet' credit in cramped bar */
    .nav { gap: 6px; }
    .nav .btn-sm { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 380px) {
    .nav .btn-ghost { display: none; }               /* drop secondary 'Sign in' on tiny screens */
}
