:root {
  color-scheme: dark;
  --bg: #0f1113;
  --ink: #ffffff;
  --muted: #a7adb5;
  --muted-strong: #c7cdd4;
  --line: #2a3037;
  --surface: #171a1e;
  --surface-soft: #1d2126;
  --sidebar: #0b0d0f;
  --sidebar-soft: #171b1f;
  --blue: #00e676;
  --emerald: #00e676;
  --amber: #f6c85f;
  --red: #ff5c5c;
  --purple: #a3e635;
  --cyan: #4f8cff;
  --violet: #f6c85f;
  --sky: #4f8cff;
  --lime: #f6c85f;
  --teal: #22c7a9;
  --coral: #ff7a70;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  --control-height: 44px;
  --radius: 12px;
}

.billing-summary {
  margin-bottom: 24px;
}

.billing-summary > p {
  margin: 18px 0 0;
  color: var(--muted);
}

.billing-plans {
  margin-top: 22px;
}

.billing-plans .pricing-card button {
  width: 100%;
  margin-top: auto;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  max-width: min(440px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 230, 118, 0.12), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(79, 140, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0d0f 0%, #0f1113 42%, #101316 100%);
  overflow: hidden;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1380px, calc(100% - 40px));
  min-height: 132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(16px);
}

.landing-brand,
.landing-nav nav {
  display: flex;
  align-items: center;
}

.landing-brand {
  min-height: 48px;
  justify-content: center;
  font-weight: 850;
}

.landing-logo-img {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-nav nav {
  justify-content: center;
  gap: 18px;
}

.landing-nav a,
.landing-nav .text-button {
  min-height: auto;
  padding: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.landing-nav a:hover,
.landing-nav .text-button:hover {
  color: var(--ink);
}

.landing-nav-cta {
  min-height: 40px;
}

.landing-main {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-hero {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(620px, 1.34fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0 52px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-logo {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.hero-logo-img {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  margin: -8px 0 -10px;
  object-fit: contain;
}

.eyebrow {
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 1;
}

.hero-lead {
  max-width: 640px;
  color: #d7dde5;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-trial {
  width: fit-content;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 230, 118, 0.08);
  box-shadow: 0 14px 42px rgba(0, 230, 118, 0.08);
}

.hero-trial strong {
  font-size: 1.08rem;
}

.hero-trial span {
  color: var(--muted-strong);
}

.hero-actions,
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary {
  min-height: 54px;
  padding: 0 22px;
  font-size: 1rem;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-product {
  position: relative;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: 9% -6% auto auto;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  filter: blur(46px);
}

.dashboard-screenshot-frame {
  position: relative;
}

.dashboard-preview-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(23, 26, 30, 0.88);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.product-window {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(23, 26, 30, 0.88);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.dashboard-window {
  gap: 14px;
}

.dashboard-preview-header,
.preview-panel-title,
.preview-legend,
.preview-funnel-legend {
  display: flex;
  align-items: center;
}

.dashboard-preview-header {
  justify-content: space-between;
  gap: 16px;
}

.dashboard-preview-header h3 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.preview-pill {
  padding: 7px 10px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.window-topbar {
  display: flex;
  gap: 7px;
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34404b;
}

.window-topbar span:first-child {
  background: var(--emerald);
}

.product-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-kpis article,
.pricing-card,
.feature-grid article,
.integration-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 23, 0.82);
}

.product-kpis article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border-top: 3px solid var(--line);
}

.product-kpis .kpi-investment {
  border-top-color: #4f8cff;
}

.product-kpis .kpi-value {
  border-top-color: var(--emerald);
}

.product-kpis .kpi-conversions {
  border-top-color: #b7e4c7;
}

.product-kpis span,
.product-kpis small {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-kpis strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  gap: 14px;
}

.preview-panel {
  min-height: 270px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 17, 19, 0.78);
}

.preview-panel-wide {
  min-width: 0;
}

.preview-panel-title {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-panel-title strong,
.preview-panel-title span {
  display: block;
}

.preview-panel-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.preview-legend {
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.preview-legend span::before,
.preview-funnel-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 2px;
  background: currentColor;
}

.legend-investment {
  color: #4f8cff;
}

.legend-value {
  color: #b8ff5a;
}

.legend-conversions {
  color: #29a96b;
}

.dashboard-chart {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.chart-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 25%;
}

.chart-bars {
  position: absolute;
  inset: 18px 8px 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 7px;
}

.chart-bars span {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2fb877, #1b744d);
  opacity: 0.96;
}

.chart-lines {
  position: absolute;
  inset: 18px 8px 14px;
  width: calc(100% - 16px);
  height: calc(100% - 32px);
  overflow: visible;
}

.chart-lines polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.line-value {
  stroke: #b8ff5a;
}

.line-investment {
  stroke: #4f8cff;
}

.preview-funnel {
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.preview-funnel span {
  height: 44px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.preview-funnel span:nth-child(1) {
  width: 100%;
  background: #1b4332;
}

.preview-funnel span:nth-child(2) {
  width: 82%;
  background: #40916c;
}

.preview-funnel span:nth-child(3) {
  width: 58%;
  background: #74c69d;
}

.preview-funnel span:nth-child(4) {
  width: 30%;
  background: #b7e4c7;
  color: #07110c;
}

.preview-funnel-legend {
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.landing-section {
  padding: 80px 0;
}

.section-heading,
.landing-problem > div:first-child,
.final-cta {
  max-width: 780px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2,
.landing-problem h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.16;
}

.section-heading p,
.landing-problem p,
.pricing-card p,
.integration-card p,
.final-cta p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid,
.pricing-grid,
.integration-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.feature-grid article,
.pricing-card,
.integration-card {
  padding: 22px;
}

.feature-grid article {
  display: grid;
  gap: 12px;
}

.feature-icon,
.plan-badge,
.integration-card span {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 850;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 14px;
}

.pricing-card.is-highlighted {
  border-color: rgba(0, 230, 118, 0.48);
  box-shadow: 0 24px 60px rgba(0, 230, 118, 0.08);
}

.pricing-card strong {
  font-size: 2rem;
}

.pricing-card small {
  color: var(--muted-strong);
  font-weight: 740;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 4px 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted-strong);
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.integration-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.integration-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 12px;
  min-height: 210px;
}

.integration-card span {
  align-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.integration-card.is-live {
  border-color: rgba(0, 230, 118, 0.4);
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(18, 20, 23, 0.82) 42%),
    rgba(18, 20, 23, 0.82);
}

.faq-section {
  max-width: 980px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 23, 0.82);
  overflow: hidden;
}

.faq-item-highlight {
  border-color: rgba(0, 230, 118, 0.42);
  background: rgba(0, 230, 118, 0.055);
}

.faq-item summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--emerald);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item strong {
  color: var(--ink);
}

.faq-item code {
  color: var(--emerald);
}

.final-cta {
  margin: 30px auto 80px;
  padding: 42px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  border: 1px solid rgba(0, 230, 118, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.11), rgba(79, 140, 255, 0.07)),
    rgba(18, 20, 23, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.landing-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 22px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.landing-footer strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.landing-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.landing-footer a:hover {
  color: var(--ink);
}

.landing-footer small {
  grid-column: 1 / -1;
}

.trial-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 230, 118, 0.11), transparent 28%),
    radial-gradient(circle at 86% 88%, rgba(0, 230, 118, 0.05), transparent 30%),
    var(--bg);
}

.auth-panel {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 26, 30, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand-row,
.sidebar-brand,
.sidebar-account,
.panel-title,
.platform-row-header,
.connection-card header,
.connection-actions {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 230, 118, 0.45);
  background: #121417;
  color: var(--emerald);
  font-weight: 850;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
.sidebar-brand,
.topbar-brand {
  font-family: "Poppins", Inter, sans-serif;
}

h1 {
  font-size: 1.38rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.brand-row p,
.page-header p,
.panel-title span {
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 23, 31, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form-heading {
  display: grid;
  gap: 6px;
}

.auth-form-heading h2,
.auth-form-heading p {
  margin: 0;
}

.auth-form-heading p {
  color: var(--muted);
}

.auth-link-button {
  width: 100%;
  color: var(--muted-strong);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.form-error {
  color: var(--red);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 760;
}

input,
select {
  width: 100%;
  height: var(--control-height);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14);
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: var(--control-height);
  border-radius: var(--radius);
  padding: 0 14px;
  border: 1px solid transparent;
  font-weight: 780;
  white-space: nowrap;
}

.primary-button {
  background: var(--emerald);
  color: #07110c;
  box-shadow: 0 10px 26px rgba(0, 230, 118, 0.16);
}

.primary-button:hover {
  background: #24f58f;
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: rgba(0, 230, 118, 0.5);
  background: var(--surface-soft);
}

.danger-button {
  border-color: rgba(255, 92, 92, 0.3);
  background: rgba(255, 92, 92, 0.08);
  color: var(--red);
}

.text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
}

.app-shell {
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

.sidebar {
  width: min(320px, calc(100vw - 32px));
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 22px;
  background: var(--sidebar);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 26px 0 60px rgba(0, 0, 0, 0.38);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(20, 23, 31, 0.42);
  backdrop-filter: blur(4px);
}

.sidebar-brand {
  gap: 12px;
}

.app-logo-img {
  width: 180px;
  height: auto;
  display: block;
  flex: 0 1 auto;
  object-fit: contain;
}

.app-logo-img-small {
  width: 112px;
}

.sidebar-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-close span,
.sidebar-close span::after {
  width: 15px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.sidebar-close span::after {
  content: "";
  transform: rotate(90deg);
}

.sidebar-brand strong,
.sidebar-brand span,
.sidebar-account strong,
.sidebar-account span {
  display: block;
}

.sidebar-brand span,
.sidebar-account span {
  color: #aeb9c8;
  font-size: 0.86rem;
}

.side-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.side-nav-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  font-weight: 780;
  padding: 0 12px;
}

.side-nav-item:hover,
.side-nav-item.is-active {
  background: var(--sidebar-soft);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.side-nav-item.is-active {
  color: var(--emerald);
  border-color: rgba(0, 230, 118, 0.22);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--emerald);
}

.nav-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: currentColor;
}

.nav-icon-accounts::before {
  width: 14px;
  height: 10px;
  border-radius: 999px 999px 5px 5px;
}

.sidebar-account {
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-account div {
  min-width: 0;
}

.sidebar-account strong,
.sidebar-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.sidebar-account .plan-usage {
  width: fit-content;
  max-width: 190px;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 780;
}

.workspace {
  width: min(1500px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.menu-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 820;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.menu-button:hover {
  border-color: rgba(0, 230, 118, 0.5);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}
.view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.view > *,
.analysis-grid,
.metric-grid,
.filter-band,
.panel {
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.page-header > div {
  display: grid;
  gap: 6px;
}

.eyebrow {
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-band {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.filter-band > label {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  contain: inline-size;
}

.filter-band select,
.filter-band input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-band input[type="date"] {
  display: block;
  -webkit-min-logical-width: 0;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  text-align: left;
}

.filter-band input[type="date"]::-webkit-date-and-time-value {
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: left;
}

.filter-action {
  width: 100%;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.panel,
.connection-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.metric-card {
  min-height: 128px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.gauge-card {
  min-height: 226px;
  padding: 8px;
}

.gauge-chart {
  width: 100%;
  height: 210px;
}

.metric-card[data-tone="green"] {
  --card-accent: var(--emerald);
}

.metric-card[data-tone="blue"] {
  --card-accent: var(--cyan);
}

.metric-card[data-tone="amber"] {
  --card-accent: var(--amber);
}

.metric-card[data-tone="red"] {
  --card-accent: var(--coral);
}

.metric-card[data-tone="purple"] {
  --card-accent: var(--violet);
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.62rem;
  line-height: 1.05;
  font-weight: 850;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.metric-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.metric-note.positive {
  color: var(--emerald);
}

.metric-note.negative {
  color: var(--red);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

.panel-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title > div {
  display: grid;
  gap: 4px;
}

.chart-shell {
  position: relative;
}

.chart {
  width: 100%;
  min-height: 300px;
  display: block;
}

.chart-daily {
  height: 340px;
}

.chart-funnel {
  height: 340px;
}

.chart-ranking {
  height: 390px;
}

.chart-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.platform-breakdown {
  display: grid;
  gap: 14px;
}

.platform-row {
  display: grid;
  gap: 8px;
}

.platform-row-header {
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 820;
}

.platform-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #282d33;
}

.platform-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.platform-bar .meta {
  background: var(--blue);
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap.compact table {
  min-width: 760px;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(0, 230, 118, 0.035);
}

.badge {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.badge.connected,
.badge.completed {
  background: rgba(0, 230, 118, 0.12);
  color: var(--emerald);
}

.badge.needs_attention,
.badge.failed {
  background: rgba(255, 92, 92, 0.12);
  color: var(--red);
}

.badge.running {
  background: rgba(0, 230, 118, 0.12);
  color: var(--blue);
}

.badge.queued {
  background: rgba(183, 121, 31, 0.12);
  color: var(--amber);
}

.connection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.connections-list {
  display: grid;
  gap: 14px;
}

.connection-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.connection-card header {
  justify-content: space-between;
  gap: 12px;
}

.connection-card h4 {
  margin-bottom: 4px;
}

.connection-card header span:not(.badge),
.connection-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.connection-meta {
  display: grid;
  gap: 6px;
}

.connection-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-selection {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 230, 118, 0.055);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.meta-selection-header h3 {
  margin-top: 4px;
}

.meta-selection-header p {
  margin-top: 6px;
  color: var(--muted);
}

.meta-selection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.meta-account-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 23, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.meta-account-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
}

.meta-account-option strong,
.meta-account-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-account-option small {
  margin-top: 3px;
  color: var(--muted);
}

.meta-selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.meta-selection-actions span {
  color: var(--muted);
  font-weight: 720;
}

.config-notice,
.empty-state {
  padding: 18px;
  border: 1px dashed #3a424b;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

@media (max-width: 1180px) {
  .landing-hero,
  .feature-grid,
  .pricing-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .sidebar-account strong,
  .sidebar-account span {
    max-width: none;
  }

  .filter-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-action {
    grid-column: 1 / -1;
  }

  .analysis-grid,
  .connection-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .landing-nav {
    width: min(100% - 28px, 1380px);
    min-height: auto;
    padding: 14px 0;
    align-items: center;
    flex-direction: column;
  }

  .landing-brand {
    width: 100%;
  }

  .landing-nav nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .landing-nav a {
    font-size: 0.82rem;
  }

  .landing-nav-cta,
  .landing-nav .text-button {
    flex: 1 1 auto;
  }

  .landing-main {
    width: min(100% - 28px, 1380px);
  }

  .landing-hero {
    padding: 46px 0 34px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .hero-trial {
    width: 100%;
  }

  .hero-actions button {
    width: 100%;
  }

  .product-window {
    padding: 14px;
  }

  .product-kpis,
  .dashboard-preview-grid,
  .meta-selection-list {
    grid-template-columns: 1fr;
  }

  .preview-panel,
  .dashboard-chart,
  .preview-funnel {
    min-height: 190px;
  }

  .dashboard-preview-header,
  .preview-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-section {
    padding: 48px 0;
  }

  .feature-grid article,
  .pricing-card,
  .integration-card,
  .final-cta {
    padding: 18px;
  }

  .final-cta {
    margin-bottom: 48px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .landing-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-footer small {
    grid-column: auto;
  }

  .workspace {
    padding: 18px;
  }

  .auth-screen {
    padding: 18px;
  }

  .auth-panel {
    padding: 20px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header button {
    width: 100%;
  }

  .filter-band {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .filter-action {
    grid-column: auto;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-account,
  .connection-card header,
  .connection-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .connection-actions button {
    width: 100%;
  }

  .metric-value {
    font-size: 1.42rem;
  }
}
