:root {
    --ink: #102c33;
    --muted: #6a7f85;
    --teal: #0aa8b6;
    --teal-dark: #005f68;
    --teal-soft: #0c7d8a;
    --navy: #062f35;
    --navy-2: #041e23;
    --paper: #f4f7f7;
    --white: #ffffff;
    --line: #d8e3e4;
    --accent: #f3b329;
    --shadow: 0 26px 70px rgba(5, 47, 53, .14);
    --shadow-soft: 0 18px 40px rgba(9, 48, 54, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.promo-bar {
    padding: 12px 18px;
    background: var(--accent);
    color: #2b2205;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .03em;
}

.site-header {
    height: 76px;
    padding: 0 clamp(18px, 5vw, 82px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(16, 42, 47, .08);
    position: sticky;
    top: 0;
    z-index: 30;
}
.site-header.compact { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-pill {
    display: inline-flex;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,168,182,.2);
}
.pill-box {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    background: #11b4c4;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
}
.pill-box.inverse { background: #ffffff; color: #0b9cac; }
.brand-name { font-size: 18px; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.main-nav a:not(.nav-account):hover { color: var(--teal-soft); }
.nav-account {
    padding: 11px 18px;
    border-radius: 999px;
    color: var(--navy);
    background: #eef6f7;
    border: 1px solid #d7e8ea;
}
.menu-button {
    display: none;
    border: 0;
    background: var(--paper);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
}

.hero {
    min-height: 720px;
    padding: clamp(64px, 8vw, 110px) clamp(22px, 6vw, 105px);
    display: grid;
    grid-template-columns: minmax(0,.92fr) minmax(390px,1.08fr);
    align-items: center;
    gap: clamp(36px, 7vw, 110px);
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(3, 167, 180, .18), transparent 30%),
        linear-gradient(135deg, var(--navy), var(--navy-2) 72%);
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to right, transparent 5%, black 65%);
    pointer-events: none;
}
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #88f7ef;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow.dark { color: var(--teal-dark); }
.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: -.06em;
    max-width: 700px;
}
.hero p {
    margin: 26px 0 0;
    max-width: 650px;
    color: #cae0e2;
    font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 780;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--teal); color: #032d33; box-shadow: 0 15px 35px rgba(9,168,182,.24); }
.button.light-solid { background: #ffffff; color: var(--navy); box-shadow: 0 15px 34px rgba(0,0,0,.14); }
.button.ghost { background: rgba(255,255,255,.04); color: #ffffff; border-color: rgba(255,255,255,.28); }
.button.secondary { background: #ffffff; color: var(--navy); }
.button.full { width: 100%; }
.button.dark-outline { background: #ffffff; color: var(--navy); border-color: var(--line); }
.hero-mini {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 24px;
    max-width: 760px;
}
.hero-mini div { display: flex; flex-direction: column; gap: 4px; }
.hero-mini strong { font-size: 21px; }
.hero-mini span { color: #a9c3c6; font-size: 13px; }

.hero-visual { display: grid; place-items: center; min-height: 540px; }
.core-stack {
    position: relative;
    width: min(38vw, 560px);
    aspect-ratio: 1.1;
    transform: translateY(10px) rotate(-18deg);
}
.chip-base,
.chip-face {
    position: absolute;
    border-radius: 72px;
    box-shadow: 0 0 55px rgba(16, 238, 243, .22), 0 60px 120px rgba(0, 0, 0, .45);
}
.chip-base {
    inset: 80px 20px 10px 10px;
    background: linear-gradient(180deg, rgba(12, 190, 201, .3), rgba(3,31,37,.95));
    border: 1px solid rgba(95, 247, 240, .2);
}
.chip-base::after {
    content: "";
    position: absolute;
    inset: auto 12px 20px 12px;
    height: 24px;
    background: radial-gradient(circle at center, rgba(95,247,240,.65), transparent 65%);
    filter: blur(14px);
}
.chip-face {
    inset: 0 0 70px 70px;
    background: linear-gradient(145deg, rgba(12,174,182,.18), rgba(5, 53, 61, .9));
    border: 2px solid rgba(99,249,242,.8);
    overflow: hidden;
}
.chip-face::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,.18);
}
.chip-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 0 8%, rgba(114,255,247,.35) 8% 8.6%, transparent 8.6% 17%),
        linear-gradient(transparent 0 12%, rgba(114,255,247,.28) 12% 12.8%, transparent 12.8% 22%),
        linear-gradient(115deg, rgba(114,255,247,.16) 0 30%, transparent 30% 100%);
}

.section { padding: 96px clamp(22px, 6vw, 105px); }
.section.alt { background: var(--paper); }
.section-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.05em;
}
.section-head p { margin: 14px auto 0; max-width: 760px; color: var(--muted); font-size: 18px; }
.section-head.center { text-align: center; }

.plan-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
    position: relative;
    padding: 32px 28px 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e6eeee;
}
.plan-card.highlight { border-color: rgba(10,168,182,.45); box-shadow: 0 26px 80px rgba(0,112,122,.18); transform: translateY(-12px); }
.plan-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, #0d90a0, #0a7f8e);
    color: #ffffff;
    font-weight: 850;
    letter-spacing: .05em;
}
.plan-top { padding-top: 6px; }
.plan-card.highlight .plan-top { padding-top: 44px; }
.product-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f7f8;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}
.plan-card h3 { margin: 16px 0 10px; font-size: 40px; line-height: 1; letter-spacing: -.05em; color: var(--teal-soft); }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; color: #30484e; }
.plan-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6caf28;
    font-weight: 900;
}
.plan-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0 24px;
}
.plan-meta div {
    padding: 14px 12px;
    background: #f6fbfb;
    border: 1px solid #e3efef;
    border-radius: 14px;
    text-align: center;
}
.plan-meta strong { display: block; font-size: 26px; line-height: 1.1; }
.plan-meta span { color: var(--muted); font-size: 13px; }
.price-tag { margin: 18px 0 24px; font-size: 40px; font-weight: 760; letter-spacing: -.05em; }
.price-tag small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-tag.dynamic { margin-bottom: 8px; }
.plan-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.selector-box {
    margin: 18px 0 10px;
    padding: 18px;
    border-radius: 16px;
    background: #f7fbfb;
    border: 1px solid #dfeceb;
}
.selector-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.selector-head strong { font-size: 15px; }
.selector-head span { color: var(--muted); font-size: 12px; }
.selector-controls { display: grid; grid-template-columns: 44px 1fr 44px; gap: 14px; align-items: center; }
.qty-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.qty-display { text-align: center; }
.qty-display strong { display: block; font-size: 34px; line-height: 1; }
.qty-display span { color: var(--muted); font-size: 13px; }

.coverage-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.coverage-col {
    padding: 30px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2ecec;
}
.coverage-col h3 { margin: 0 0 16px; font-size: 28px; letter-spacing: -.03em; }
.coverage-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coverage-col li { position: relative; padding-left: 26px; color: #355056; }
.coverage-col li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #89bc2d;
    font-weight: 900;
}

.customer-banner {
    padding: 54px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(135deg, #046d79, #042e35);
}
.customer-banner h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -.05em;
    max-width: 900px;
}
.customer-banner p { margin: 14px 0 0; color: #cce3e5; }

.badges-section { padding-top: 20px; }
.badge-row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.award-badge {
    width: 170px;
    min-height: 110px;
    padding: 18px 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    text-align: center;
    background: #eceeef;
    color: #707679;
    border: 1px solid #d6dbdc;
    font-weight: 800;
    line-height: 1.05;
}
.award-badge span { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.site-footer {
    padding: 34px clamp(22px, 6vw, 105px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #7a8d90;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.site-footer p { margin: 4px 0; }
.compact-footer { justify-content: center; text-align: center; background: #ffffff; }

.portal-page { background: var(--paper); }
.portal-main { padding: 70px clamp(22px, 6vw, 105px) 110px; }
.lookup-panel {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 70px;
    align-items: center;
}
.lookup-copy h1 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.05em;
}
.lookup-copy > p { max-width: 620px; color: var(--muted); font-size: 17px; }
.demo-credentials {
    margin-top: 28px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 4px solid var(--teal);
    background: #e9f7f8;
    font-size: 14px;
}
.lookup-form {
    padding: 34px;
    display: grid;
    gap: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border-radius: 18px;
    border: 1px solid #e5eeee;
}
.lookup-form label { font-size: 13px; font-weight: 800; }
.lookup-form input {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    padding: 0 15px;
    border: 1px solid #cad8da;
    border-radius: 10px;
    background: #fbfdfd;
    color: var(--ink);
    outline: none;
}
.lookup-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,168,182,.12); }
.alert { padding: 13px 15px; margin-bottom: 7px; border-radius: 8px; font-size: 13px; }
.alert.error { color: #a72d3f; background: #fff0f2; border: 1px solid #ffd3da; }

.purchase-card {
    max-width: 1180px;
    margin: 56px auto 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.purchase-header {
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
}
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: #27bb78;
    box-shadow: 0 0 0 5px rgba(39,187,120,.12);
}
.status-text { color: #1b8a59; font-size: 13px; font-weight: 800; }
.purchase-header h2 { margin: 12px 0 3px; font-size: 30px; letter-spacing: -.035em; }
.purchase-header p { margin: 0; color: var(--muted); }
.price-block { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); }
.price-block strong { color: var(--ink); font-size: 28px; }
.purchase-details {
    padding: 28px 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.purchase-details div { display: flex; flex-direction: column; gap: 3px; }
.purchase-details span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.purchase-details strong { font-size: 15px; }
.purchase-actions { padding: 0 34px 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.modal { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,20,24,.76); backdrop-filter: blur(5px); }
.modal-panel {
    position: absolute;
    inset: 4vh 4vw;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 30px 100px rgba(0,0,0,.4);
    border-radius: 18px;
    overflow: hidden;
}
.modal-header {
    min-height: 78px;
    padding: 14px 20px 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.modal-header .eyebrow { margin: 0 0 2px; }
.modal-header h2 { margin: 0; font-size: 22px; }
.modal-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    font-size: 30px;
    cursor: pointer;
}
.invoice-frame-wrap { flex: 1; min-height: 0; background: #dbe3e4; }
.invoice-frame-wrap iframe { width: 100%; height: 100%; border: 0; }
.modal-note { margin: 0; padding: 10px 18px; color: #41555a; background: #eef5f6; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
    .plan-grid, .coverage-grid { grid-template-columns: 1fr; }
    .plan-card.highlight { transform: none; }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-visual { min-height: 420px; }
    .core-stack { width: min(78vw, 520px); }
    .hero-mini,
    .lookup-panel,
    .purchase-details { grid-template-columns: 1fr; }
    .customer-banner { flex-direction: column; align-items: flex-start; }
    .price-block { align-items: flex-start; }
    .purchase-header { flex-direction: column; }
}

@media (max-width: 720px) {
    .site-header { padding: 0 16px; }
    .menu-button { display: block; }
    .main-nav:not(.visible) {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .main-nav.visible { gap: 10px; }
    .main-nav.visible a:not(.nav-account) { display: none; }
    .hero { padding: 70px 22px; }
    .hero h1 { font-size: 42px; }
    .section { padding: 72px 22px; }
    .customer-banner { padding: 36px 26px; }
    .customer-banner h2 { font-size: 40px; }
    .site-footer { flex-direction: column; padding: 28px 22px; }
    .portal-main { padding: 50px 18px 80px; }
    .lookup-form { padding: 24px; }
    .purchase-card { border-radius: 16px; }
    .purchase-header,
    .purchase-details,
    .purchase-actions { padding-left: 22px; padding-right: 22px; }
    .modal-panel { inset: 1.5vh 2vw; }
    .selector-head,
    .selector-controls { gap: 10px; }
    .promo-bar { font-size: 12px; }
}
