@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Product theme tokens keep pages branded without inline CSS. */
.theme-fastquote { --primary: #2563eb; }
.theme-remotemeasure { --primary: #0f766e; }
.theme-reviewspark { --primary: #7c3aed; }
.theme-ringpro { --primary: #ea580c; }
.theme-crewtime { --primary: #16a34a; }

/* Shared SaaS design system. */
:root {
    --primary: #2563eb;
    --primary-dark: color-mix(in srgb, var(--primary), #000 18%);
    --bg: #f7f9fc;
    --surface: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --success: #16a34a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

/* Marketing layout. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}
.nav-shell, .hero, .section, .footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}
.nav-shell, .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}
.brand span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: white;
}
.nav-links, .footer nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 600;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary), transparent 72%);
    transition: transform 0.18s ease, background 0.18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--primary-dark); outline: none; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.button-secondary {
    background: #eef4ff;
    color: var(--primary);
    box-shadow: none;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: center;
    padding: 76px 0 38px;
}
.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}
.hero-subtitle, .section-heading p, .price-card p, .feature-card p, .quote-card p {
    color: var(--muted);
    line-height: 1.7;
}
.hero-actions, .proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.proof-row {
    margin-top: 20px;
    color: var(--muted);
    font-weight: 700;
}
.product-preview, .panel, .demo-card, .quote-card, .price-card, .feature-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.product-preview { overflow: hidden; }
.preview-topbar {
    display: flex;
    gap: 7px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}
.preview-body { padding: 24px; }
.preview-label { color: var(--muted); font-size: 0.9rem; }
.preview-body ul {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}
.preview-body li {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
}
.logo-strip {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}
.logo-strip span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255,255,255,0.7);
}
.section { padding: 74px 0 0; }
.section-heading {
    max-width: 700px;
    margin-bottom: 22px;
}
.section-heading h2 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}
.feature-grid, .pricing-grid, .testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card, .quote-card, .price-card { padding: 22px; }
.icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 800;
}
.demo-frame .demo-card { box-shadow: none; }
.testimonials { grid-template-columns: repeat(2, 1fr); }
.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price {
    color: var(--text);
    font-size: 2.7rem;
    font-weight: 800;
}
.price span { color: var(--muted); font-size: 1rem; }
.price-card.featured {
    border-color: color-mix(in srgb, var(--primary), white 45%);
    box-shadow: 0 22px 55px color-mix(in srgb, var(--primary), transparent 82%);
}
.footer {
    margin-top: 76px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* Dashboard layout and app controls. */
.dashboard-page { background: #eef2f7; }
.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
    padding: 22px;
    border-right: 1px solid var(--line);
    background: #fff;
}
.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 30px;
}
.sidebar nav a {
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
}
.sidebar nav a.active, .sidebar nav a:hover {
    background: #eef4ff;
    color: var(--primary);
}
.workspace { min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
}
.topbar h1 { margin: 0; }
.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-weight: 700;
}
.user-menu a { color: var(--primary); }
.dashboard-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}
.panel, .demo-card { padding: 22px; }
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.form-grid, .inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.inline-form {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 700;
}
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
}
input:focus, textarea:focus {
    border-color: var(--primary);
    outline: 3px solid color-mix(in srgb, var(--primary), transparent 82%);
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}
th, td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
td input { min-width: 120px; }
.result-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.map-canvas {
    width: 100%;
    min-height: 280px;
    margin: 14px 0;
    border: 2px dashed color-mix(in srgb, var(--primary), white 35%);
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    color: var(--muted);
    font-weight: 800;
}
.map-canvas.drawn {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary), white 72%), #f8fafc);
    color: var(--primary);
}
.pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ecfdf5;
    color: var(--success);
    font-weight: 800;
    font-size: 0.82rem;
}
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .nav-shell, .footer, .topbar { align-items: flex-start; flex-direction: column; }
    .nav-links, .footer nav { flex-wrap: wrap; }
    .hero, .feature-grid, .pricing-grid, .testimonials, .app-shell {
        grid-template-columns: 1fr;
    }
    .logo-strip { grid-template-columns: repeat(2, 1fr); }
    .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-grid, .inline-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hero { padding-top: 42px; }
    .logo-strip, .sidebar nav { grid-template-columns: 1fr; }
    .panel-heading { flex-direction: column; }
}