:root {
    --bg: #ffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #111827;
    --brand2: #1f2937;
    --accent: #22c55e;
    --accent-2: #0ea5e9;
    --shadow: 0 24px 64px rgba(2, 6, 23, .1);
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px
}

/* Header */
header {
    position: relative;
    /* top: 0; */
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    /* avoid fixed height so nav content doesn't overflow and overlap page */
    height: auto;
    padding: 6px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.2px
}

.badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .2)
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center
}

.nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: .2s
}

.nav-link:hover {
    color: #0f172a
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: .2s
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    border-radius: 10px
}

.btn.primary:hover {
    transform: translateY(-1px)
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text)
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc, #fff)
}

.hero-graphics {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background:
    radial-gradient(900px 360px at 10% -10%, rgba(14, 165, 233, .08), transparent 60%),
    radial-gradient(800px 360px at 90% -20%, rgba(34, 197, 94, .08), transparent 60%)
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 72px 0 28px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em
}

h1 {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -.9px;
    margin: 14px 0 10px
}

.subhead {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap
}

.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

.hero-card-header {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #fbfbfb;
    border-bottom: 1px solid var(--line)
}

.hero-card-header-iframe {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #fbfbfb;
    border-bottom: 1px solid var(--line);
    height: 42px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.dot.r {
    background: #ef4444
}

.dot.y {
    background: #f59e0b
}

.dot.g {
    background: #22c55e
}

.hero-card-body {
    padding: 18px
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #fcfcfc;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px
}

.chart {
    height: 180px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: 14px;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    background:
    linear-gradient(transparent 97%, #eef2f7 0) 0 0/100% 24px,
    linear-gradient(90deg, transparent 97%, #eef2f7 0) 0 0/24px 100%
}

/* Logos */
.logos {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.logo-row {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center
}

.logo-item {
    height: 26px;
    width: auto;
    opacity: .65;
    filter: grayscale(100%)
}

/* Value props */
.section {
    padding: 80px 0
}

.section-header {
    text-align: center;
    margin-bottom: 14px
}

.section h2 {
    font-size: 36px;
    letter-spacing: -.5px;
    margin: 0
}

.lead {
    color: var(--muted);
    max-width: 720px;
    margin: 8px auto 0
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow)
}

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 10px 24px rgba(17, 24, 39, .15);
    margin-bottom: 12px
}

.card h3 {
    margin: 6px 0 6px;
    font-size: 18px
}

.card p {
    color: var(--muted)
}

/* Use cases */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 26px
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.panel img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8fafc
}

.panel .body {
    padding: 18px
}

.panel .body h3 {
    margin: 0 0 8px
}

.panel .body p {
    margin: 0;
    color: var(--muted)
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffff);
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.cta-band .note {
    color: var(--muted)
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 0 auto
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(2, 6, 23, .04)
}

.faq-item+.faq-item {
    margin-top: 12px
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700
}

.faq-a {
    display: none;
    color: var(--muted);
    padding-top: 10px
}

.faq-item.open .faq-a {
    display: block
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    background: #fff
}

.foot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    padding: 28px 0
}

.foot p {
    color: var(--muted)
}

.foot h4 {
    margin: 0 0 8px
}

/* Modal */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000
}

.overlay.show {
    display: flex
}

.modal {
    width: min(520px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfbfb
}

.modal-body {
    padding: 18px
}

.close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 10px
}

.input,
.select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit
}

.input:focus,
.select:focus {
    outline: none;
    border-color: #cbd5e1
}

.btn.block {
    width: 100%;
    justify-content: center
}

.small {
    font-size: 12px;
    color: var(--muted)
}

/* Toast */
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #111827;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: .2s;
    z-index: 1001
}

.toast.show {
    opacity: 1;
    transform: translateY(0)
}

.toast.error {
    background: #ef4444
}

.toast.success {
    background: #22c55e
}

/* Responsive */
@media (max-width: 980px) {
    .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 14px
    }

    h1 {
    font-size: 36px
    }

    .grid-3 {
    grid-template-columns: 1fr 1fr
    }

    .grid-2 {
    grid-template-columns: 1fr
    }

    .foot {
    grid-template-columns: 1fr 1fr
    }

    .cta-band {
    flex-direction: column;
    text-align: center
    }
}

@media (max-width: 640px) {
    .nav-links {
    display: none
    }

    .grid-3 {
    grid-template-columns: 1fr
    }

    .logo-item {
    height: 22px
    }
}

/* Tablet */
@media (max-width: 768px) {
    .btn.primary {
    font-size: 14px;
    padding: 10px 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .btn.primary {
    font-size: 13px;
    padding: 8px 14px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .btn.primary {
    font-size: 12px;
    padding: 6px 12px;
    }
}

/* Data audit styles */
table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

th {
    text-align: left;
    padding: 12px 16px;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

td {
    background: #fff;
    padding: 16px;
    border-radius: 0px;
    vertical-align: top;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px
}

.alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.alert {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.duplicate {
    background: #fff4e6;
    color: #d17a00;
}

.missing {
    background: #ffe6e6;
    color: #cc0000;
}

.normalized {
    background: #e6f5ff;
    color: #0369a1;
}

.inventory {
    background: #f0fdf4;
    color: #15803d;
}

.barcode {
    background: #f5f3ff;
    color: #6d28d9;
}

.clean-table td {
    background: #f9fafb;
    box-shadow: none;
    border: 1px solid var(--line);
}

.clean-table th {
    background: #e4e7ec;
}

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 40px;
}

@media(max-width:960px) {
    .compare {
    grid-template-columns: 1fr
    }
}

/* Issue highlight tags */
.issues {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* === Product Data Quality Report Table === */
.product-table {
    border-collapse: separate;
    border-spacing: 0px 12px;
    /* horizontal + vertical spacing */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    table-layout: fixed;
    /* ensures consistent column widths */
}

.product-table th,
.product-table td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
}

/* Header */
.product-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border-radius: 0px;
}

/* Row as a single card */
.product-table tr {
    background: #fff;
    border-radius: 0px;
    box-shadow: var(--shadow);
}

/* Remove per-cell shadow/background — row handles it */
.product-table td {
    background: transparent;
    box-shadow: none;
    vertical-align: top;
}

/* Round row corners properly */
.product-table td:first-child {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.product-table td:last-child {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

/* Column widths */
.product-table th:nth-child(1),
.product-table td:nth-child(1) {
    width: 6%;
    text-align: center;
    /* SKU */
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
    width: 24%;
    /* Title */
}

.product-table th:nth-child(3),
.product-table td:nth-child(3) {
    width: 10%;
    text-align: right;
    /* Price */
}

.product-table th:nth-child(4),
.product-table td:nth-child(4) {
    width: 10%;
    text-align: center;
    /* Inventory */
}

.product-table th:nth-child(5),
.product-table td:nth-child(5) {
    width: 15%;
    /* Category */
}

.product-table th:nth-child(6),
.product-table td:nth-child(6) {
    width: 10%;
    text-align: center;
    /* Barcode */
}

.product-table th:nth-child(7),
.product-table td:nth-child(7) {
    width: 35%;
    /* Issues */
}

/* Issue tags */
.issues {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Tag colors */
.duplicate {
    background: #fff4e6;
    color: #d17a00;
}

.missing {
    background: #ffe6e6;
    color: #cc0000;
}

.normalized {
    background: #e6f5ff;
    color: #0369a1;
}

.inventory {
    background: #f0fdf4;
    color: #15803d;
}

.barcode {
    background: #f5f3ff;
    color: #6d28d9;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet view (768px and below) */
@media (max-width: 768px) {
    .product-table {
    border-spacing: 0 8px;
    }

    .product-table th,
    .product-table td {
    padding: 10px 12px;
    font-size: 13px;
    }

    /* Hide less important columns */
    .product-table th:nth-child(6),
    /* Barcode */
    .product-table td:nth-child(6) {
    display: none;
    }

    /* Adjust remaining column widths */
    .product-table th:nth-child(1),
    .product-table td:nth-child(1) {
    width: 8%;
    }

    .product-table th:nth-child(2),
    .product-table td:nth-child(2) {
    width: 30%;
    }

    .product-table th:nth-child(3),
    .product-table td:nth-child(3) {
    width: 12%;
    }

    .product-table th:nth-child(4),
    .product-table td:nth-child(4) {
    width: 10%;
    }

    .product-table th:nth-child(5),
    .product-table td:nth-child(5) {
    width: 15%;
    }

    .product-table th:nth-child(7),
    .product-table td:nth-child(7) {
    width: 25%;
    }

    .tag {
    font-size: 11px;
    padding: 3px 6px;
    }
}

/* Mobile view (480px and below) */
@media (max-width: 480px) {

    /* Stack table as cards */
    .product-table,
    .product-table thead,
    .product-table tbody,
    .product-table th,
    .product-table td,
    .product-table tr {
    display: block;
    }

    .product-table {
    border-spacing: 0;
    }

    /* Hide table header */
    .product-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
    }

    /* Style each row as a card */
    .product-table tbody tr {
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    background: #fff;
    }

    /* Style each cell as a data row */
    .product-table td {
    border: none;
    padding: 8px 0;
    text-align: left !important;
    border-radius: 0 !important;
    position: relative;
    padding-left: 35%;
    background: transparent;
    }

    /* Add labels before each cell */
    .product-table td:nth-child(1):before {
    content: "SKU: ";
    }

    .product-table td:nth-child(2):before {
    content: "Title: ";
    }

    .product-table td:nth-child(3):before {
    content: "Price: ";
    }

    .product-table td:nth-child(4):before {
    content: "Inventory: ";
    }

    .product-table td:nth-child(5):before {
    content: "Category: ";
    }

    .product-table td:nth-child(6):before {
    content: "Barcode: ";
    }

    .product-table td:nth-child(7):before {
    content: "Issues: ";
    }

    .product-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 30%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    }

    /* Show barcode column again on mobile */
    .product-table th:nth-child(6),
    .product-table td:nth-child(6) {
    display: block;
    }

    /* Adjust issues layout for mobile */
    .issues {
    margin-top: 4px;
    }

    .tag {
    font-size: 10px;
    padding: 2px 6px;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .product-table tbody tr {
    padding: 12px;
    margin-bottom: 12px;
    }

    .product-table td {
    padding: 6px 0;
    padding-left: 40%;
    }

    .product-table td:before {
    width: 35%;
    font-size: 11px;
    }
}

/* Limit widget width */
.widget-wrapper {
    width: 100%;
    max-width: 720px;
    /* adjust as needed: 640px, 720px, 820px */
    margin: 0 auto;
    /* center horizontally */
    padding: 0 16px;
    /* side breathing room */
}

.widget-container {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(2, 6, 23, .08);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.widget-iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* 60% overlay */
.widget-overlay {
    position: absolute;
    inset: 48px 0 0 0;
    /* sits over iframe area (below header) */
    background: rgba(15, 23, 42, 0.6);
    /* 60% opacity */
    top: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.widget-overlay .overlay-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: saturate(140%) blur(6px);
}

.overlay-title {
    font-weight: 800;
    letter-spacing: -.2px;
    font-size: 18px;
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* On tablets: slightly wider widget */
@media (max-width: 980px) {
    .widget-wrapper {
    max-width: 90%;
    /* almost full width but still with side space */
    padding: 0 12px;
    }

    .widget-iframe {
    height: 350px;
    }
}

/* On phones: full width */
@media (max-width: 640px) {
    .widget-wrapper {
    max-width: 100%;
    /* Full width */
    padding: 0 8px;
    }

    .widget-iframe {
    height: 300px;
    }
}
/* Simple show/hide */
.faq-item .faq-a { display: none; }
.faq-item.open .faq-a { display: block; }

/* If you want a smooth collapse/expand */
.faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq-item.open .faq-a {
  max-height: 1000px; /* set large enough for your content */
}

.hero-trust span {
  font-weight:600;
  background:#e0f2fe;
  padding:4px 8px;
  border-radius:6px;
}
