/* Measurebase — shared design system (dashboard + admin apps).
   Marketing pages moved to css/home.css; this file now serves
   dashboard.measurebase.com and admin.measurebase.com (plus the auth-flow
   pages both docroots carry). Tokens below mirror home.css so the apps and
   the marketing site read as one brand: warm paper ground, Satoshi, warm
   hairlines, single cobalt accent. Token NAMES are the pre-redesign ones
   (--bg-soft, --border-soft, ...) because ~6k lines of app CSS consume
   them; only the VALUES moved to the home.css palette. */

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

[hidden] {
  display: none !important;
}

.banner-success {
  background: rgba(30,142,62,0.08);
  border: 1px solid rgba(30,142,62,0.25);
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

:root {
  --bg: #ffffff;             /* elevated surfaces (cards, controls) */
  --bg-soft: #f3f3ef;        /* paper-deep: soft fills, hovers, chips */
  --bg-soft-2: #f9f9f7;      /* paper: the app ground */
  --tint: #efefe9;           /* flat tonal fill (home.css --tint) */
  --text: #17181a;           /* ink */
  --text-soft: #55585e;
  --text-faint: #8a8d93;
  --border: #d8d8d1;         /* line-strong */
  --border-soft: #e6e6e0;    /* hairlines on paper */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dark: #0058b0;
  --accent-wash: #e8f2fd;    /* pale blue chip/tint */
  --accent-orange: #ff8a00;
  --success: #1e8e3e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-width: 1120px;
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(23,24,26,0.04), 0 1px 1px rgba(23,24,26,0.03);
  --shadow-md: 0 1px 2px rgba(23,24,26,0.04), 0 12px 32px rgba(23,24,26,0.06);
  --shadow-lg: 0 2px 6px rgba(23,24,26,0.05), 0 32px 80px rgba(23,24,26,0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* "Measurebase" wordmark lockup (vector outlines from Satoshi-Bold, defined
   as a hidden <g id="mbLockup"> on the pages that use it -- see index.html).
   Monochrome: fills with currentColor. Mirrors home.css's rule so the hub
   pages (accounts, link-agency-account) match the marketing nav. */
.logo-lockup {
  height: 17px;
  width: auto;
  display: block;
  color: var(--text);
}

.nav-logo .logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-soft);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 980px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,74,143,0.22), 0 8px 24px rgba(0,113,227,0.16);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-secondary:hover { background: var(--border-soft); }

.btn-ghost {
  color: var(--accent);
  padding: 10px 4px;
}
.btn-ghost:hover { color: var(--accent-dark); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 100px 24px 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
}

.eyebrow .flag { font-size: 14px; }

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

#partners .hero-actions {
  margin-top: 24px;
}

#resources-preview .hero-actions {
  margin-top: 24px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Trust bar ---------- */

.trustbar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft-2);
  padding: 22px 0;
}

.trustbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
}

.trustbar span { display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */

.section {
  padding: 90px 24px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 38px;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 650;
}

.section-header p {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0;
}

.section-header p a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.section-header p a:hover { color: var(--accent-dark); }

.section-alt { background: var(--bg-soft-2); }

/* ---------- Feature grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  background: var(--bg-soft);
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}

.card p a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.card p a:hover { color: var(--accent-dark); }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
}

.step p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Pricing ---------- */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--text-soft);
}

.switch {
  width: 44px;
  height: 26px;
  background: var(--border);
  border-radius: 980px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.switch.on { background: var(--accent); }
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.switch.on .knob { transform: translateX(18px); }

.save-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(30,142,62,0.1);
  padding: 3px 10px;
  border-radius: 980px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}

.plan h3 {
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 600;
}

.plan .plan-desc {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 20px;
  min-height: 32px;
}

.plan .price {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.plan .price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-faint);
}

.plan .price-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.plan li:last-child { border-bottom: none; }

.plan li .check {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-footnote {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Compare table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th, .compare td {
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.compare th:first-child, .compare td:first-child {
  text-align: left;
  color: var(--text-soft);
}

.compare thead th {
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 20px;
}

.compare .brand-col {
  color: var(--accent);
  font-weight: 600;
}

.compare .yes { color: var(--success); font-weight: 600; }
.compare .no { color: var(--text-faint); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 {
  font-size: 34px;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
}

.cta-band-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.cta-band-note a {
  color: #6cb2ff;
  font-weight: 500;
  text-decoration: none;
}

.cta-band-note a:hover { color: #fff; }

.cta-band.cta-prelaunch {
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  position: relative;
  overflow: hidden;
}

.cta-band.cta-prelaunch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -20%, rgba(255,255,255,0.25), transparent 55%);
  pointer-events: none;
}

.cta-band .cta-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 980px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.cta-band.cta-prelaunch h2,
.cta-band.cta-prelaunch p,
.cta-band.cta-prelaunch .btn { position: relative; }

.cta-band.cta-prelaunch p { color: rgba(255,255,255,0.85); }

.cta-band.cta-prelaunch .btn-primary {
  background: #fff;
  color: var(--text);
}

.cta-band.cta-prelaunch .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 32px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 12px; }

.footer-brand p {
  max-width: 260px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ---------- Auth ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft-2);
}

.auth-nav {
  padding: 24px;
}

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  text-align: center;
}

.auth-card .auth-sub {
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
  margin: 0 0 28px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-google:hover { background: var(--bg-soft); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-faint);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

.field-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.field-row .field {
  margin-bottom: 0;
}

.field-row-between label { margin-bottom: 0; }

.field-link {
  font-size: 13px;
  color: var(--accent);
}
.field-link:hover { color: var(--accent-dark); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.check-row input { margin-top: 2px; }
.check-row a { color: var(--accent); }
.check-row a:hover { color: var(--accent-dark); }

.auth-footer-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 24px;
}

.auth-footer-note a { color: var(--accent); font-weight: 500; }
.auth-footer-note a:hover { color: var(--accent-dark); }

.auth-trust {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 28px;
}

/* ---------- Auth — extra states (verify / reset / confirm) ---------- */

.auth-emblem {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  margin: 0 auto 20px;
}

.field-optional { color: var(--text-faint); font-weight: 400; }

.auth-emblem.success {
  background: linear-gradient(135deg, #1e8e3e, #34a853);
}

.auth-sub .auth-email-strong {
  color: var(--text);
  font-weight: 600;
}

.field .field-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
}

.field-error {
  font-size: 12px;
  color: #d93025;
  margin-top: 6px;
  display: none;
}

.field-error.show { display: block; }

.auth-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 20px;
}

.auth-resend button,
.auth-linkbtn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.auth-resend button:hover,
.auth-linkbtn:hover { color: var(--accent-dark); }

.auth-demo {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
}

.auth-demo a { color: var(--text-faint); text-decoration: underline; }

/* ---------- Pre-launch / building-in-public banner ---------- */

.prelaunch-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  color: #fff;
  font-size: 13.5px;
  text-align: center;
}

.prelaunch-banner .pl-badge {
  background: rgba(255,255,255,0.2);
  border-radius: 980px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prelaunch-banner .pl-text strong { font-weight: 700; }

.prelaunch-banner .pl-cta {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.prelaunch-banner .pl-cta:hover { opacity: 0.85; }

/* ---------- Logo marquee ---------- */

.logo-section {
  padding: 40px 0 8px;
}

.logo-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 24px;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-group {
  display: flex;
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  color: var(--text-soft);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity .15s ease;
}

.logo-item:hover { opacity: 1; }

.logo-item svg { flex-shrink: 0; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* Sticky early-access toggle (bottom-left, all pages) */
.pl-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.pl-toggle:hover { border-color: var(--text-faint); }

.pl-toggle-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 980px;
  background: var(--border);
  transition: background .15s ease;
  flex-shrink: 0;
}

.pl-toggle.on .pl-toggle-switch {
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
}

.pl-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform .15s ease;
}

.pl-toggle.on .pl-toggle-knob { transform: translateX(14px); }

.pl-toggle-label { white-space: nowrap; }

.pl-toggle-state {
  color: var(--text-faint);
  font-weight: 500;
  min-width: 20px;
  text-align: left;
}

/* Sticky feedback widget (bottom-right, dashboard only) */
.feedback-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  pointer-events: none;
}

.feedback-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 13px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 980px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feedback-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.feedback-trigger svg { flex-shrink: 0; opacity: 0.9; }

.feedback-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.16);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.feedback-widget.open .feedback-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feedback-widget.open .feedback-trigger {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.feedback-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.feedback-panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.feedback-panel-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.45;
}

.feedback-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.feedback-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.feedback-form {
  padding: 16px 18px 18px;
}

.feedback-form .field { margin-bottom: 14px; }

.feedback-form .field:last-of-type { margin-bottom: 0; }

.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.feedback-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.feedback-form select:focus,
.feedback-form textarea:focus,
.feedback-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.feedback-success {
  padding: 32px 24px;
  text-align: center;
}

.feedback-success-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(30,142,62,0.12);
  color: var(--success);
  font-size: 20px;
  font-weight: 700;
  line-height: 44px;
}

.feedback-success h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.feedback-success p {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .feedback-panel,
  .feedback-trigger { transition: none; }
}

@media (max-width: 600px) {
  .feedback-widget {
    right: 12px;
    bottom: 12px;
  }

  .feedback-trigger span { display: none; }

  .feedback-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Sticky support widget (bottom-right, next to feedback, dashboard only) */
.support-widget {
  position: fixed;
  right: 145px;
  bottom: 16px;
  z-index: 9998;
  pointer-events: none;
}

.support-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 13px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 980px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.support-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.support-trigger svg { flex-shrink: 0; opacity: 0.9; }

.support-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 980px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.16);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.support-widget.open .support-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.support-widget.open .support-trigger {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.support-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.support-panel-header-text { flex: 1; min-width: 0; }

.support-panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-panel-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-back,
.support-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.support-back:hover,
.support-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.support-body-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.support-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.support-jump {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.support-jump:hover { transform: translateX(-50%) translateY(-2px); }

.support-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
}

.support-convo-list { display: flex; flex-direction: column; }

.support-convo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  font-family: inherit;
}

.support-convo:hover { background: var(--bg-soft); }

.support-convo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-convo-body { min-width: 0; flex: 1; }

.support-convo-subject {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-convo-preview {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-convo-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.support-convo-time {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.support-convo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.support-convo-dot.open { background: var(--accent); }

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.support-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.support-msg.mine {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.support-msg.theirs {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.support-msg-meta {
  font-size: 10.5px;
  margin-top: 5px;
  opacity: 0.65;
}

.support-msg-system {
  align-self: center;
  max-width: 90%;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
  padding: 2px 0;
}

.support-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.support-status-dot.online { background: var(--success); }
.support-status-dot.offline { background: var(--text-faint); }

.support-compose {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-soft);
}

.support-compose textarea {
  flex: 1;
  resize: none;
  max-height: 90px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
}

.support-compose textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}

.support-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.support-send:hover { background: var(--accent-dark, var(--accent)); }
.support-send:disabled { opacity: 0.5; cursor: default; }

.support-attach-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
}

.support-attach-btn:hover { background: var(--bg-soft); color: var(--text); }

#support-compose-attachments:empty { display: none; }
#support-compose-attachments {
  padding: 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  .support-panel,
  .support-trigger { transition: none; }
}

@media (max-width: 600px) {
  .support-widget {
    right: 66px;
    bottom: 12px;
  }

  .support-trigger span { display: none; }

  .support-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .support-panel {
    width: calc(100vw - 24px);
  }
}

/* ---------- Resources / blog ---------- */

.resources-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.resources-filter {
  padding: 7px 14px;
  border-radius: 980px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.resources-filter:hover,
.resources-filter.active {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-soft-2);
}

.resources-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.resource-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.resource-card-featured {
  padding: 36px;
}

.resource-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.resource-card-featured h3 { font-size: 28px; }

.resource-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  flex: 1;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.resource-meta {
  font-size: 13px;
  color: var(--text-faint);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-page {
  padding: 48px 24px 90px;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
}

.article-back:hover { color: var(--accent); }

.article-header h1 {
  margin: 12px 0 16px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.article-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-orange));
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}

.article-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-faint);
}

.article-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}

.article-prose h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.article-prose p { margin: 0 0 18px; }

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.article-prose li { margin-bottom: 8px; }

.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
}

.article-prose pre {
  margin: 0 0 24px;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.article-prose pre code {
  padding: 0;
  background: none;
}

.article-prose a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.article-prose a:hover { color: var(--accent-dark); }

.article-related {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.article-related h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 650;
  color: var(--text);
}

/* ---------- Long-form article extras: callouts, TOC, tables, checklist ---------- */
/* Only used by the multi-section "complete guide" so far -- every other
   article is plain prose with no aside boxes, tables or on-page nav. */

.article-callout {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.article-callout-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.article-callout p:last-child { margin-bottom: 0; }

/* Reserved for asides you should actually pay attention to (warnings,
   testing-only features) -- every other callout (tips, prep lists, asides)
   uses the neutral default above. */
.article-callout.is-warning {
  border-color: rgba(255, 138, 0, 0.35);
  background: rgba(255, 138, 0, 0.07);
}

.article-toc {
  margin: 0 0 32px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.article-toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li { margin: 0 0 2px; }

.article-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
}

.article-toc a:hover { color: var(--accent); }

.article-toc-num {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-faint);
}

.article-prose table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-prose th,
.article-prose td {
  padding: 10px 16px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.article-prose th {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  white-space: nowrap;
}

.article-checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.article-checklist li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
}

.article-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .resources-grid, .resources-featured { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 32px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .compare { font-size: 12px; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .hero { padding: 70px 20px 50px; }
}
