:root {
    --ink: #1b2126;
    --muted: #5d7686;
    --topbar: #32363b;
    --gold: #f0c14b;
    --header: #d4eefb;
    --blue: #1887ee;
    --deep: #033b5d;
    --line: #d7e3ea;
    --paper: #ffffff;
    --wash: #f4f8fb;
    --footer: #2a2f34;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 {
    font-family: Prompt, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.15;
    color: #111;
}
p { margin: 0 0 1rem; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    z-index: 50;
}
.skip:focus { top: 12px; z-index: 60; }

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header);
    box-shadow: 0 1px 0 rgba(16, 32, 48, .12);
}
.topbar { background: var(--topbar); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar p { margin: 0; }
.topbar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.topbar-tools { display: flex; align-items: center; gap: 12px; }
.topbar .register-btn {
    color: #111;
    background: var(--gold);
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.topbar .register-btn:hover { background: #ffe08a; }
.top-search { display: flex; align-items: center; background: #fff; border-radius: 4px; overflow: hidden; }
.top-search input {
    border: 0;
    padding: 7px 10px;
    width: 180px;
    font: inherit;
    font-size: 14px;
}
.top-search button {
    border: 0;
    background: #fff;
    width: 36px;
    height: 34px;
    cursor: pointer;
}
.top-search svg { width: 18px; height: 18px; fill: none; stroke: #333; stroke-width: 2; }

.site-header { background: var(--header); position: relative; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.logo img { height: 74px; width: auto; display: block; }
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid #1b2126;
    padding: 8px 12px;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.nav a {
    color: rgba(39, 42, 47, .82);
    text-decoration: none;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 0;
    display: inline-block;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #1c2126; color: #111; }
.has-sub { position: relative; }
.nav ul.sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 8px 0;
    box-shadow: 0 12px 28px rgba(16, 32, 48, .14);
    z-index: 40;
}
.nav .has-sub:hover > ul.sub { display: block; }
.nav ul.sub a { display: block; padding: 8px 16px; text-transform: none; letter-spacing: 0; font-size: 15px; }

.adminbar { background: #111; color: #fff; font-size: 14px; }
.adminbar-inner { display: flex; gap: 18px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.adminbar a, .adminbar button { color: #fff; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.adminbar span { background: var(--gold); color: #111; border-radius: 99px; padding: 0 7px; font-weight: 700; }

.banner { padding: 12px 20px; text-align: center; }
.banner.success { background: #e5f6ea; color: #14532d; }
.banner.error { background: #fde8e8; color: #991b1b; }

.hero {
    position: relative;
    color: #fff;
    background: #163a66 url("../img/hero-bg.jpg") center/cover no-repeat;
    min-height: 540px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 36, 72, .28), rgba(8, 28, 62, .55));
}
.hero-grid, .hero-more { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: center;
    min-height: 500px;
    padding: 36px 0 64px;
}
.hero-products { width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)); }
.hero h1 { color: #fff; font-size: clamp(42px, 5vw, 68px); margin: 0 0 12px; }
.hero-copy p { font-size: 22px; margin-bottom: 22px; }
.hero-more {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    color: #111;
}
.hero-more svg { width: 42px; height: 42px; fill: none; stroke: #111; stroke-width: 1.6; background: #fff; }

.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 22px;
    border: 2px solid #111;
    cursor: pointer;
}
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: #111; }
.btn.ghost:hover { background: #111; color: #fff; }

.band { padding: 64px 0; }
.band.alt { background: var(--wash); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.split img { width: 100%; height: 360px; object-fit: cover; }
.line-links { padding-left: 18px; }
.line-links a { font-weight: 700; }

.scanner-band {
    color: #fff;
    background: linear-gradient(135deg, #28ade3 0%, #1e8fc4 52%, #7a4ea8 100%);
    padding: 56px 0;
}
.scan-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 22px;
    padding: 36px 40px;
}
.scanner-band h2, .scanner-band h3 { color: #fff; }
.scanner-band h2 { font-size: 32px; font-weight: 600; margin: 0 0 16px; }
.scanner-band p { font-size: 17px; line-height: 1.6; }
.scan-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    border-radius: 18px;
    padding: 18px 12px;
}
.scan-phone img { width: 148px; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .28)); }
.scan-devices {
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 16px 18px 8px;
    margin: 8px 0 18px;
}
.scan-devices h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.scan-devices ul { list-style: none; margin: 0; padding: 0; }
.scan-devices li {
    position: relative;
    padding: 0 0 10px 26px;
    font-size: 16px;
}
.scan-devices li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7dffe8;
    font-weight: 700;
}
.scan-tagline { font-style: italic; margin: 4px 0 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    min-height: 100%;
}
.product-card img, .photo-fallback { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.photo-fallback { display: block; background: var(--wash); }
.product-card h3 { margin: 14px 16px 4px; font-size: 22px; }
.card-link {
    margin: 0 16px 16px;
    color: var(--deep);
    font-family: Poppins, sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.product-card:hover { border-color: #8fb4c8; }

.page-head { background: #e7f5fc; padding: 46px 0 28px; }
.page-head h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 8px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-family: Poppins, sans-serif; margin-bottom: 6px; }
.eyebrow a { color: inherit; }

.line-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.side-links a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-photo { background: var(--wash); padding: 18px; }
.product-photo img { width: 100%; object-fit: contain; }
.specs { margin: 22px 0; }
.specs div { margin-bottom: 16px; }
.specs dt { color: var(--deep); font-family: Prompt, sans-serif; font-size: 20px; }
.specs dd { margin: 4px 0 0; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.line-note { font-size: 20px; }
.phone-row { font-size: 22px; font-family: Prompt, sans-serif; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.contact-form label, .narrow label { display: block; font-weight: 600; margin-bottom: 12px; }
.contact-form input, .contact-form textarea, .narrow input, .narrow textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid #c5d3dc;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.contact-form small { color: #991b1b; font-weight: 600; }
.recaptcha-field { margin: 4px 0 16px; }
.recaptcha-field small { display: block; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

.prose { max-width: 760px; }
.prose.wrap, .wrap.prose { max-width: 760px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 28px; }
.plan { border: 1px solid var(--line); padding: 18px 18px 8px; background: #fff; }
.signoff { margin-top: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card { border: 1px solid var(--line); padding: 20px; background: #fff; }
.team-card .role { color: var(--deep); font-weight: 700; }
.form-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-list article { border: 1px solid var(--line); padding: 20px; background: #fff; }
.search-results, .narrow { max-width: 760px; }
.result-list { list-style: none; padding: 0; }
.result-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-list span { display: block; color: var(--muted); font-size: 14px; }
.address-block { font-size: 18px; }

.service-row { background: #fff; border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    padding: 26px 10px;
    font-family: Prompt, sans-serif;
}
.service-grid svg { width: 34px; height: 34px; fill: none; stroke: var(--deep); stroke-width: 1.6; }
.service-grid a:hover { background: var(--wash); }

.site-footer { background: var(--footer); color: #e6edf2; padding: 42px 0 0; font-size: 16px; }
.site-footer h2 { color: #fff; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 28px; }
.footer-logo { height: 64px; width: auto; background: #e7f5fc; padding: 6px 8px; }
.scanner { height: 88px; width: auto; }
.store-badge { height: 42px; width: auto; background: transparent; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding: 14px 0; font-size: 14px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.message-body { background: var(--wash); padding: 16px; margin: 16px 0; }
.setup-error { background: #fde8e8; padding: 12px; }

.page-hero {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
    background: #5a5a5a center/cover no-repeat;
    padding: 48px 20px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(30, 30, 30, .42); }
.page-hero h1 { position: relative; color: #fff; margin: 0; font-size: clamp(42px, 6vw, 68px); text-align: center; }
.page-intro { max-width: 760px; margin: 8px auto 36px; text-align: center; font-size: 20px; }
.plan-tabs { max-width: 920px; margin: 0 auto; }
.plan-tablist { display: flex; }
.plan-tablist button {
    flex: 1;
    border: 0;
    background: #f7f7f7;
    color: #333;
    padding: 16px 12px;
    font-family: Poppins, "Segoe UI", sans-serif;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.plan-tablist button[aria-selected="true"] { background: #f0f0f0; font-weight: 600; }
.plan-panel { background: #f0f0f0; padding: 28px 32px 32px; }
.plan-panel h2 { margin: 0 0 10px; font-size: 28px; }
.plan-panel p { margin: 0; }
.person { text-align: center; margin: 56px auto 0; max-width: 520px; }
.person img { width: min(100%, 460px); border-radius: 18px; box-shadow: 0 12px 28px rgba(16, 32, 48, .16); }
.person figcaption { margin-top: 14px; }
.care { max-width: 860px; margin: 56px auto 0; }
.care ul { padding-left: 22px; }
.ask-band { background: #cfc6be center/cover no-repeat; padding: 72px 0; }
.ask-card {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 28px;
    align-items: center;
    background: #fff;
    padding: 32px;
}
.ask-card h2 { margin: 0 0 8px; font-size: 40px; }
.ask-lead { font-size: 22px; margin-bottom: 8px; }
.ask-phones { font-size: 20px; }
.ask-phones a { font-weight: 700; text-decoration: none; }
.form-shot img { width: 100%; height: auto; display: block; border: 1px solid #e6e6e6; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-block; }
    .header-inner { flex-wrap: wrap; }
    .nav { display: none; width: 100%; padding-bottom: 12px; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav.open ul.sub { position: static; display: block; box-shadow: none; background: transparent; padding-left: 10px; }
    .hero-grid, .split, .scan-card, .card-grid, .line-layout, .product-layout, .contact-layout, .plan-grid, .team-grid, .form-list, .footer-grid, .service-grid, .form-grid, .ask-card {
        grid-template-columns: 1fr;
    }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .split img { height: 240px; }
    .scan-phone { max-width: 220px; margin: 0 auto; }
    .scanner-band h2, .scan-tagline { text-align: center; }
    .hero { min-height: 0; }
    .hero-grid { min-height: 0; }
    .topbar-inner { flex-wrap: wrap; padding: 8px 0; }
}

@media (max-width: 640px) {
    .card-grid, .service-grid { grid-template-columns: 1fr; }
    .top-search input { width: 130px; }
}
