:root {
    --ink: #090909;
    --muted: #686868;
    --line: #dededb;
    --surface: #ffffff;
    --soft: #f5f5f3;
    --accent: #090909;
    --accent-dark: #282828;
    --success: #111111;
    --danger: #b42318;
    --shadow: 0 16px 45px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; font: 700 20px Manrope, Arial, sans-serif; letter-spacing: -.055em; }
.brand strong span { color: #858585; font-weight: 600; }
.brand.inverse { color: #fff; }
.brand.inverse strong span { color: #9b9b9b; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; transition: .18s ease; }
.button:hover { border-color: var(--ink); transform: translateY(-1px); }
.button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: transparent; }
.button.full { width: 100%; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.link-button:hover { text-decoration: underline; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* Marketing */
.site-header { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 32px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: var(--ink); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.text-link { font-size: 13px; font-weight: 700; }
.hero { min-height: 660px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 64px; padding-block: 72px; }
.hero h1 { max-width: 650px; margin: 18px 0; font: 700 clamp(52px, 6vw, 82px)/.98 Manrope, Arial, sans-serif; letter-spacing: -.065em; }
.hero-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; }
.proof-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 11px; }
.proof-line span::before { content: "✓"; margin-right: 6px; color: var(--success); font-weight: 700; }
.product-preview { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.preview-head, .chart-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-head > div { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.preview-head small, .chart-caption small { color: var(--muted); font-weight: 400; }
.status-pill, .role-pill, .filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 24px; margin-top: 20px; border-block: 1px solid var(--line); }
.preview-metrics article { min-width: 0; }
.preview-metrics small, .preview-metrics span { display: block; color: var(--muted); font-size: 10px; }
.preview-metrics strong { display: block; margin: 7px 0 4px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.preview-metrics span { color: var(--success); }
.preview-chart { padding-top: 22px; }
.chart-caption { font-size: 12px; font-weight: 700; }
.preview-chart svg { display: block; width: 100%; height: 190px; margin-top: 14px; overflow: visible; }
.preview-chart svg g line { stroke: var(--line); stroke-width: 1; }
.preview-chart svg path { fill: none; stroke: var(--success); stroke-width: 3; }
.preview-events { border-top: 1px solid var(--line); }
.preview-events > div { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.preview-events > div:last-child { border-bottom: 0; }
.preview-events span { color: var(--success); font-weight: 700; }
.preview-events b { font-weight: 500; }
.trust-strip { border-block: 1px solid var(--line); background: var(--soft); }
.trust-strip .container { min-height: 104px; display: grid; grid-template-columns: .7fr 1fr 1.4fr; align-items: center; gap: 24px; }
.trust-strip .container > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.trust-strip .container > strong { font-size: 15px; }
.trust-strip .container > div { display: flex; justify-content: flex-end; gap: 24px; color: var(--muted); font-size: 12px; }
.content-section, .product-section .container, .security-section { padding-block: 100px; }
.section-heading { max-width: 700px; }
.section-heading h2, .security-section h2, .final-cta h2 { margin: 14px 0; font: 700 clamp(38px, 4.5vw, 58px)/1.06 Manrope, Arial, sans-serif; letter-spacing: -.055em; }
.section-heading > p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.step-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.step-grid article, .feature-grid article { padding: 28px 30px 18px 0; border-right: 1px solid var(--line); }
.step-grid article + article, .feature-grid article + article { padding-left: 30px; }
.step-grid article:last-child, .feature-grid article:last-child { border-right: 0; }
.step-grid article > span { color: var(--muted); font-size: 11px; }
.step-grid h3, .feature-grid h3 { margin: 34px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.step-grid p, .feature-grid p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.product-section { background: var(--soft); border-block: 1px solid var(--line); }
.feature-grid article { min-height: 360px; display: flex; flex-direction: column; }
.feature-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; }
.feature-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { margin-top: 28px; }
.feature-stat { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }
.feature-stat strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.feature-stat span { color: var(--muted); font-size: 11px; }
.location-list { margin-top: auto; }
.location-list span { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.security-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.security-section h2 { max-width: 500px; font-size: clamp(36px, 4vw, 52px); }
.security-points p { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.security-points p:first-child { border-top: 1px solid var(--line); }
.security-points strong { font-size: 13px; }
.security-points span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 76px; border-top: 1px solid var(--line); }
.final-cta h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 50px); }
.site-footer { padding-block: 44px; border-top: 1px solid var(--line); background: var(--soft); }
.site-footer .container { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 30px; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 22px; font-size: 12px; }
.site-footer small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

/* Authentication */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 44px 6vw; background: var(--ink); color: #fff; }
.auth-story > div { max-width: 560px; }
.auth-story .eyebrow { color: #b8b8b8; }
.auth-story h1 { margin: 18px 0; font: 700 clamp(45px, 5.5vw, 72px)/1 Manrope, Arial, sans-serif; letter-spacing: -.06em; }
.auth-story p { max-width: 500px; color: #b8b8b8; font-size: 16px; line-height: 1.65; }
.auth-story footer { display: flex; flex-direction: column; gap: 7px; padding-top: 20px; border-top: 1px solid #3c3c3c; font-size: 12px; }
.auth-story footer span { color: #929292; }
.auth-panel { display: grid; place-items: center; padding: 48px; background: var(--soft); }
.auth-card { width: min(100%, 420px); }
.auth-card h2 { margin: 0 0 8px; font: 700 42px/1.1 Manrope, Arial, sans-serif; letter-spacing: -.05em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.mobile-brand { display: none; margin-bottom: 36px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 14px 0 7px; font-size: 12px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--surface); }
.auth-form input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
.form-row { display: flex; justify-content: space-between; margin: 18px 0; color: var(--muted); font-size: 11px; }
.form-row a, .auth-switch a { color: var(--ink); font-weight: 700; }
.auth-switch { margin-top: 24px !important; font-size: 12px; }
.form-alert { margin-bottom: 12px; padding: 12px 14px; border: 1px solid #f2b8b5; border-radius: 8px; background: #fff1f0; color: var(--danger); font-size: 12px; }
.form-alert.success { border-color: #b7dfc2; background: #f0faf3; color: #176b32; }
.google-auth-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 11px; border: 1px solid #c9c9c6; border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 700; transition: .18s ease; }
.google-auth-button:hover { border-color: var(--ink); background: var(--soft); transform: translateY(-1px); }
.google-auth-button svg { width: 20px; height: 20px; flex: 0 0 20px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.auth-divider span { white-space: nowrap; }
.help-text { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.help-text ul { margin: 3px 0 5px; padding-left: 18px; }
.field-error { margin-top: 5px; color: var(--danger); font-size: 10px; }
.signup-card { padding-block: 18px; }
.reset-button { margin-top: 22px; }

/* Product workspace */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--soft); }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar-workspace { padding: 4px 8px 20px; border-bottom: 1px solid var(--line); }
.sidebar-workspace > small, .app-sidebar nav > small { display: block; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-workspace strong { display: flex; align-items: center; gap: 9px; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-workspace strong span { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; }
.app-sidebar nav { display: flex; flex-direction: column; padding-top: 13px; }
.app-sidebar nav > small { margin: 18px 10px 7px; }
.app-sidebar nav a { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.app-sidebar nav a:hover { background: var(--soft); color: var(--ink); }
.app-sidebar nav a.active { background: var(--ink); color: #fff; }
.sidebar-account { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.sidebar-account > a { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar-account > a.active .avatar { outline: 3px solid #c8c8c5; outline-offset: 2px; }
.avatar { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }
.sidebar-account p { display: flex; min-width: 0; flex-direction: column; margin: 0; font-size: 10px; }
.sidebar-account p strong, .sidebar-account p small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-account p small { color: var(--muted); }
.sidebar-account form button { display: flex; align-items: center; gap: 7px; padding: 12px 0 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.sidebar-account form button:hover { color: var(--ink); }
.app-workspace { min-width: 0; }
.app-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-topbar > div { display: flex; align-items: center; gap: 12px; }
.workspace-name { color: var(--muted); font-size: 11px; }
.app-content { width: min(1280px, 100%); margin-inline: auto; padding: 36px 32px 50px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.range-filter { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.range-filter a { min-width: 34px; padding: 7px 9px; border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; }
.range-filter a:hover, .range-filter a.active { background: var(--ink); color: #fff; }
.date-range-form { display: flex; align-items: end; gap: 10px; margin: -12px 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.date-range-form label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.date-range-form input { min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; }
.date-range-form button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.date-range-form > span { margin: 0 0 9px auto; color: var(--muted); font-size: 10px; font-weight: 700; }
.live-status { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.live-status > i { width: 7px; height: 7px; border-radius: 50%; background: #111; box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); }
.live-status.is-error > i { background: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.page-heading h1 { margin: 0 0 5px; font: 700 clamp(32px, 4vw, 44px)/1.1 Manrope, Arial, sans-serif; letter-spacing: -.055em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric-grid.compact { grid-template-columns: repeat(3, 1fr); }
.metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric-grid small, .metric-grid span { display: block; color: var(--muted); font-size: 10px; }
.metric-grid strong { display: block; margin: 13px 0 7px; font-size: 31px; letter-spacing: -.045em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr); gap: 20px; }
.data-panel, .table-panel { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-heading > a { color: var(--muted); font-size: 11px; font-weight: 700; }
.main-chart svg { display: block; width: 100%; height: 250px; margin-top: 20px; }
.main-chart svg line { stroke: var(--line); stroke-width: 1; }
.main-chart svg text { fill: var(--muted); font: 10px DM Sans, Arial, sans-serif; }
.chart-series { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-series.clicks { stroke: var(--ink); }
.chart-series.conversions { stroke: var(--success); }
.chart-point { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-point.clicks { fill: var(--ink); }
.chart-point.conversions { fill: var(--success); }
.chart-legend { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 999px; }
.chart-legend i.clicks { background: var(--ink); }
.chart-legend i.conversions { background: var(--success); }
.main-chart > p { margin: 0; color: var(--muted); font-size: 10px; }
.device-panel { display: flex; flex-direction: column; }
.device-list { display: grid; gap: 20px; margin-top: 32px; }
.device-list > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 11px; }
.device-list i { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.device-list em { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.device-panel > small { margin-top: auto; color: var(--muted); font-size: 10px; line-height: 1.5; }
.table-panel { margin-top: 20px; }
.responsive-table { overflow-x: auto; margin-top: 14px; }
.responsive-table table { width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.responsive-table th { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.responsive-table td strong, .responsive-table td small { display: block; }
.responsive-table td small { margin-top: 3px; color: var(--muted); }
.responsive-table tr:last-child td { border-bottom: 0; }
.align-right { text-align: right !important; }
.status-label { display: inline-flex; align-items: center; gap: 7px; }
.status-label i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3a0; }
.status-label i.active { background: var(--success); }
.status-label i.paused { background: #d19c2f; }
.status-label i.complete { background: #3875b6; }
.empty-state { padding: 34px 10px !important; color: var(--muted); text-align: center !important; }
.table-link { display: block; }
.table-link:hover strong { color: var(--success); }
.success-banner { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #c9c9c6; border-radius: 9px; background: #f1f1ef; color: #111; font-size: 12px; font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.campaign-heading { align-items: flex-end; }
.heading-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.journey-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.journey-summary article { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.journey-summary small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.journey-summary strong { font-size: 26px; }
.journey-summary span { color: var(--muted); font-size: 10px; }
.journey-path { min-width: 280px; line-height: 1.6; }
.tracker-install { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 24px; margin-top: 20px; padding: 24px; border-radius: 14px; background: var(--ink); color: #fff; }
.tracker-install small { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.tracker-install h2 { margin: 8px 0; font-size: 20px; }
.tracker-install p { margin: 0; color: #aaa; font-size: 10px; line-height: 1.6; }
.snippet-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.snippet-row > code { min-width: 0; flex: 1; overflow-x: auto; padding: 15px; border: 1px solid #444; border-radius: 8px; background: #171717; color: #e9e9e9; font-size: 10px; white-space: nowrap; }
.rank-list { display: grid; gap: 18px; margin-top: 24px; }
.rank-list > div > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; }
.rank-list i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.rank-list em { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.panel-empty { margin: 0; padding: 28px 0; color: var(--muted); font-size: 11px; }
.link-list { margin-top: 16px; }
.link-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.link-list > article:last-child { border-bottom: 0; }
.link-main { min-width: 0; }
.link-url { display: flex; align-items: center; gap: 10px; }
.link-url strong { overflow: hidden; color: var(--success); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.copy-button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 700; }
.link-main > a { display: block; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.link-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.link-tags span, .event-pill { padding: 5px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 700; }
.link-stats { display: flex; align-items: center; gap: 20px; }
.link-stats > span:not(.status-label) { display: flex; flex-direction: column; color: var(--muted); font-size: 9px; }
.link-stats > span strong { color: var(--ink); font-size: 16px; }
.empty-action { padding: 50px 20px; text-align: center; }
.empty-action h3 { margin: 0 0 8px; }
.empty-action p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.event-pill { background: #e9e9e6; color: #111; }
.event-pill.muted { background: var(--soft); color: var(--muted); }
.form-workspace { max-width: 1180px; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.product-form { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.field-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.field-group label { margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.field-group input, .field-group select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--surface); color: var(--ink); }
.field-group input:focus, .field-group select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
.field-group > small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.field-group > small.field-error { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.builder-help { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.builder-help h2 { margin: 20px 0 8px; font-size: 20px; letter-spacing: -.035em; }
.builder-help ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: builder; }
.builder-help li { position: relative; padding: 0 0 20px 34px; counter-increment: builder; }
.builder-help li::before { content: counter(builder); position: absolute; left: 0; top: 0; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--soft); font-size: 9px; font-weight: 700; }
.builder-help li strong, .builder-help li span { display: block; font-size: 11px; }
.builder-help li span { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.privacy-note { padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-note strong { font-size: 11px; }
.privacy-note p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Account */
.account-workspace { max-width: 1180px; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 20px; align-items: start; }
.account-stack { display: grid; gap: 20px; }
.account-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.account-card-heading { display: flex; align-items: center; gap: 13px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.account-card-heading h2 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.025em; }
.account-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.account-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; }
.account-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-form { border: 0; border-radius: 0; }
.account-form input:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.account-facts { margin: 0; padding: 8px 24px 18px; }
.account-facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.account-facts > div:last-child { border-bottom: 0; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; font-weight: 700; text-align: right; }
.security-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.security-action:hover { background: var(--soft); }
.security-action span:first-child { display: flex; flex-direction: column; gap: 3px; }
.security-action strong { font-size: 11px; }
.security-action small { color: var(--muted); font-size: 9px; }
.form-help { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.form-help ul { margin: 5px 0 10px; padding-left: 18px; }
.shared-notice { margin: -10px 0 20px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 11px; }
.permission-metrics { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.compact-event-table { margin: 0; min-width: 0; }
.lazy-insights { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lazy-insights h2 { margin: 4px 0 6px; font: 700 20px/1.2 Manrope, Arial, sans-serif; letter-spacing: -.025em; }
.lazy-insights p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.lazy-insights > div[data-insights-content] { display: grid; grid-column: 1 / -1; gap: 20px; }
.lazy-insights.is-loaded { display: block; padding: 0; border: 0; background: transparent; }
.lazy-insights.is-loaded > div:first-child, .lazy-insights.is-loaded > button { display: none; }
.share-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.generated-invite { margin-bottom: 20px; padding: 24px; border: 1px solid #b8d79b; border-radius: 12px; background: #f4faee; }
.generated-invite h2 { margin: 5px 0 7px; font: 700 20px/1.2 Manrope, Arial, sans-serif; letter-spacing: -.025em; }
.generated-invite p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.generated-invite > small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.invite-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: 18px; }
.invite-link-row input { min-width: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 10px; }
.form-panel { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.invite-form > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.invite-form > input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; }
.invite-form fieldset { display: grid; gap: 10px; margin: 24px 0; padding: 0; border: 0; }
.invite-form legend { margin-bottom: 12px; font-size: 13px; font-weight: 800; }
.permission-option { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.permission-option:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.permission-option input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--ink); }
.permission-option strong, .permission-option small { display: block; }
.permission-option strong { font-size: 11px; }
.permission-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.privacy-note { margin: 13px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.share-side { display: grid; gap: 20px; }
.share-side .table-panel { margin: 0; }
.access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.access-row:last-child { border-bottom: 0; }
.access-row strong, .access-row small { display: block; }
.access-row strong { font-size: 11px; }
.access-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.text-danger { padding: 0; border: 0; background: none; color: var(--danger); font-size: 10px; font-weight: 700; cursor: pointer; }
.invite-landing { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr); background: var(--soft); }
.invite-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 42px; background: var(--ink); color: #fff; }
.invite-brand > span { color: #999; font-size: 10px; letter-spacing: .16em; }
.invite-card { width: min(520px, calc(100% - 40px)); margin: auto; padding: 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.invite-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; }
.invite-card h1 { margin: 10px 0; font: 700 38px/1.08 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.invite-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.permission-summary { display: grid; gap: 9px; margin: 24px 0; padding: 18px; border-radius: 10px; background: var(--soft); }
.permission-summary strong { margin-bottom: 4px; font-size: 11px; }
.permission-summary span { font-size: 11px; }
.invite-actions { display: grid; gap: 10px; }
.invite-actions .text-link { margin-top: 6px; font-size: 11px; font-weight: 700; text-align: center; }
.invite-card > small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .product-preview { max-width: 700px; }
    .trust-strip .container { grid-template-columns: 1fr 1fr; padding-block: 24px; }
    .trust-strip .container > div { grid-column: 1 / -1; justify-content: flex-start; }
    .auth-layout { grid-template-columns: .85fr 1.15fr; }
    .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
    .sidebar-workspace strong { justify-content: center; }
    .sidebar-workspace strong { font-size: 0; }
    .app-sidebar nav a { justify-content: center; font-size: 0; }
    .app-sidebar nav > small, .sidebar-workspace > small, .sidebar-account p, .sidebar-account form { display: none; }
    .sidebar-account > a { justify-content: center; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .insight-grid { grid-template-columns: 1fr 1fr; }
    .builder-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .share-layout { grid-template-columns: 1fr; }
    .tracker-install { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 66px; grid-template-columns: 1fr auto; }
    .site-header nav, .header-actions .text-link { display: none; }
    .hero { min-height: auto; gap: 42px; padding-block: 52px; }
    .hero h1 { font-size: 49px; }
    .hero-copy > p { font-size: 15px; }
    .proof-line { display: grid; grid-template-columns: 1fr 1fr; }
    .product-preview { padding: 18px; border-radius: 12px; }
    .preview-metrics { gap: 10px; }
    .preview-metrics strong { font-size: 20px; }
    .preview-chart svg { height: 150px; }
    .trust-strip .container, .step-grid, .feature-grid, .security-section, .site-footer .container { grid-template-columns: 1fr; }
    .trust-strip .container > div { display: grid; grid-template-columns: 1fr 1fr; }
    .content-section, .product-section .container, .security-section { padding-block: 70px; }
    .step-grid article, .feature-grid article, .step-grid article + article, .feature-grid article + article { min-height: auto; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .step-grid h3 { margin-top: 18px; }
    .feature-stat, .location-list { margin-top: 28px; }
    .security-section { gap: 30px; }
    .security-points p { grid-template-columns: 1fr; gap: 8px; }
    .final-cta { align-items: flex-start; flex-direction: column; }
    .site-footer nav { grid-row: auto; }
    .site-footer small { grid-column: auto; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100vh; padding: 34px 22px; }
    .mobile-brand { display: inline-flex; }
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { position: relative; z-index: 2; height: auto; display: block; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
    .sidebar-workspace, .sidebar-account { display: none; }
    .app-sidebar nav { flex-direction: row; padding: 0; }
    .app-sidebar nav a { min-width: max-content; font-size: 11px; }
    .app-sidebar nav a .nav-icon { width: 16px; height: 16px; }
    .app-topbar { padding: 0 16px; }
    .workspace-name { display: none; }
    .app-content { padding: 26px 14px 40px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; flex-wrap: wrap; }
    .date-range-form { align-items: stretch; flex-wrap: wrap; }
    .date-range-form > span { width: 100%; margin: 2px 0 0; }
    .metric-grid, .metric-grid.compact { grid-template-columns: 1fr 1fr; }
    .metric-grid article { padding: 16px; }
    .metric-grid strong { font-size: 25px; }
    .data-panel, .table-panel { padding: 16px; }
    .main-chart svg { height: 180px; }
    .breakdown-grid, .insight-grid, .journey-summary, .form-grid { grid-template-columns: 1fr; }
    .lazy-insights { grid-template-columns: 1fr; }
    .snippet-row { align-items: stretch; flex-direction: column; }
    .link-list > article { grid-template-columns: 1fr; }
    .link-stats { justify-content: flex-start; }
    .campaign-heading { align-items: flex-start; }
    .invite-landing { grid-template-columns: 1fr; }
    .invite-brand { min-height: 92px; padding: 26px; }
    .invite-brand > span { display: none; }
    .invite-card { margin-block: 28px; padding: 28px 22px; }
    .invite-link-row { grid-template-columns: 1fr 1fr; }
    .invite-link-row input { grid-column: 1 / -1; min-height: 44px; }
}
