/* ==========================================================================
   Reviewmo — stylesheet
   1. Design tokens
   2. Base / reset
   3. Utilities & shared components (icons, buttons, cards, brand)
   4. Home: nav, hero, sections, footer
   5. Content pages (Terms, Privacy, Blog, Help)
   6. App screens (sign up, onboarding, dashboard)
   7. Responsive
   8. Reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Accent — the one tweakable colour (script.js → setAccent). Options in the
     original design: #1A85F0 (default), #2F9E6E, #475569, #0F172A */
  --accent: #1A85F0;

  /* Fixed brand blues (do NOT follow the accent in the original design) */
  --blue: #1A85F0;
  --blue-dark: #0F5FB8;
  --blue-soft: #E8F2FE;
  --blue-border: #C9E2FA;
  --sky: #7FB6F5;

  /* Ink & greys */
  --ink: #0F172A;
  --ink-2: #334155;
  --slate: #475569;
  --muted: #5B6478;
  --faint: #94A0B4;
  --on-dark: #B4BDCC;
  --on-dark-2: #7A8598;

  /* Surfaces & lines */
  --bg: #F8FAFC;
  --bg-2: #F1F4F8;
  --white: #FFFFFF;
  --line: #E7EBF2;
  --line-2: #D2DAE5;
  --dot: #C4CCDA;
  --warm-track: #EAEAE0;
  --warm-seg: #F1EEE5;

  /* Signals */
  --gold: #FFC107;
  --gold-text: #B4880C;
  --red: #DC2626;
  --green: #2F9E6E;
  --amber: #FFB86B;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-card: 14px;
  --shadow-float: 0 24px 48px -24px rgba(15, 23, 42, 0.18);
  --nav-h: 72px;
}

/* 2. BASE / RESET -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

button, input { font-family: inherit; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

section[id] { scroll-margin-top: var(--nav-h); }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.plain { list-style: none; margin: 0; padding: 0; }

/* 3. SHARED COMPONENTS --------------------------------------------------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Icons (SVG sprite) */
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--filled { fill: currentColor; stroke: none; }
.icon-14 { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }
.accent-stroke { color: var(--accent); }

.icon-circle {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: filter .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 20px; }
.btn-primary, .btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-primary:hover { filter: brightness(0.93); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-light, .btn-light:hover { background: var(--white); color: var(--ink); }
.btn-light:hover { filter: brightness(0.95); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.card-title { font-size: 17px; font-weight: 700; }
.card-text { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }

.divider { height: 1px; background: var(--line); margin: 24px 0; }

/* Brand lockup */
/* Wordmark "review" + blue "mo" + ".io", tagline centred underneath */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-size: 19px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.brand__mo { color: var(--blue); }
.brand__tagline {
  font-size: 7.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate);
}

/* Avatar */
.avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--blue-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 800;
}
.avatar--sm { width: 32px; height: 32px; font-size: 12px; color: var(--blue-dark); }

/* Stars */
.stars { display: flex; gap: 3px; }
.stars--lg { gap: 6px; }
.star-on { color: var(--gold); }
.star-off { color: var(--line); }

/* Eyebrow & section heads */
.eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue); margin: 0 0 12px;
}
.eyebrow--sky { color: var(--sky); }

.section { padding: 96px 32px; }
.section--lg { padding: 104px 32px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head--tight { margin-bottom: 48px; }
.section-head--40 { margin-bottom: 40px; }
.section-title { font-size: 36px; font-weight: 800; }
.section-title--34 { font-size: 34px; line-height: 1.25; }
.section-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }

.band--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--grey { background: var(--bg-2); }
.band--dark { background: var(--ink); }

/* Card grids — balanced column counts per breakpoint (no orphan cards)
   --240: 4 → 2 → 1 columns   --300: 3 → 2 → 1   --video: 3 → 1 */
.grid-cards { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; }
.grid-cards--240 { --cols: 4; }
.grid-cards--300 { --cols: 3; }
.grid-cards--video { --cols: 3; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-float);
  max-width: calc(100% - 32px);
}

/* 4. HOME ---------------------------------------------------------------- */

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.site-nav__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.nav-link { font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-link:hover { color: var(--ink); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 20px;
  border-top: 1px solid var(--line); background: var(--white);
}
.mobile-menu .nav-link { padding: 12px 0; border-bottom: 1px solid var(--bg-2); }
.mobile-menu .btn { margin-top: 12px; }

/* Hero */
.hero { padding: 88px 32px 96px; display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.hero__copy { flex: 1 1 460px; min-width: 320px; }
.hero__title { font-size: 46px; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
.hero__lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__fineprint { margin-top: 20px; font-size: 14px; color: var(--faint); }
.hero__audience { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero__audience strong { color: var(--ink-2); }

/* Hero flow illustration */
.flow { flex: 1 1 380px; min-width: 300px; max-width: 440px; }
.flow__card { box-shadow: var(--shadow-float); }
.flow__card--step1 { padding: 24px; }
.flow__card--step2 { padding: 20px; }
.flow__label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--faint); margin-bottom: 14px;
}
.flow__biz { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.flow__biz-name { font-size: 13px; color: var(--faint); }
.flow__question { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.flow__connector { display: flex; flex-direction: column; align-items: center; padding: 12px 0 2px; }
.flow__dot { width: 8px; height: 8px; border-radius: 999px; border: 1.5px solid var(--dot); background: var(--white); }
.flow__pill {
  margin-top: 6px; padding: 4px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.flow__arrows { width: 100%; max-width: 300px; height: 44px; margin-top: 2px; overflow: visible; }
.flow__stem { stroke: var(--dot); }
.flow__fork { fill: var(--white); stroke: var(--dot); stroke-width: 1.5; }
.flow__branch--good { color: var(--gold); }
.flow__branch--bad { color: var(--red); }
.flow__branch path { stroke: currentColor; }
.flow__branch path:last-child { fill: currentColor; }

.flow__outcomes { display: flex; gap: 10px; }
.outcome { flex: 1; padding: 14px; border-radius: 10px; }
.outcome--good { background: var(--blue-soft); border: 1.5px dashed var(--gold); color: var(--blue-dark); }
.outcome--bad { background: var(--bg-2); border: 1.5px dashed var(--red); color: var(--slate); }
.outcome__title { font-size: 13px; font-weight: 700; margin-top: 8px; }
.outcome--bad .outcome__title { color: var(--ink-2); }
.outcome__desc { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.outcome__rule { font-size: 11px; font-weight: 700; margin-top: 10px; }
.outcome--good .outcome__rule { color: var(--gold-text); }
.outcome--bad .outcome__rule { color: var(--red); }
.flow__note { font-size: 11px; color: var(--faint); text-align: center; margin-top: 14px; }

/* Benefits */
.benefits { padding: 48px 32px; display: flex; gap: 40px; flex-wrap: wrap; }
.benefit { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 14px; }
.benefit__title { font-size: 16px; font-weight: 700; }
.benefit__text { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Compare */
.compare { display: flex; gap: 24px; flex-wrap: wrap; }
.compare__card { flex: 1 1 380px; padding: 32px; }
.compare__label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.compare__label--bad { color: var(--red); }
.compare__label--good { color: var(--accent); }
.compare__list { display: flex; flex-direction: column; gap: 16px; }
.compare__list li { display: flex; gap: 12px; align-items: flex-start; }
.compare__list .icon { margin-top: 2px; }
.compare__list--bad .icon { color: var(--red); }
.compare__list--good .icon { color: var(--accent); }
.compare__list p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* How it works */
.step { padding: 28px; }
.step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step__num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Outcomes (dark band) */
.outcomes { padding: 96px 32px; display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.outcomes__copy, .outcomes__list { flex: 1 1 380px; }
.outcomes__title { font-size: 32px; font-weight: 800; color: var(--white); line-height: 1.25; }
.outcomes__text { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--on-dark); }
.outcomes__list { display: flex; flex-direction: column; gap: 18px; }
.outcomes__list li { display: flex; align-items: flex-start; gap: 12px; }
.outcomes__list .icon { color: var(--sky); }
.outcomes__list span { font-size: 16px; color: var(--white); }

/* Features */
.feature { padding: 28px; }
.feature .icon-circle { margin-bottom: 16px; }

/* Videos */
.video__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); background: var(--ink);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.video__tag {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 11px; font-weight: 700; color: var(--on-dark); letter-spacing: 0.04em;
}
.video__title { margin-top: 14px; font-size: 15px; font-weight: 700; }
.video__text { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Use cases */
.use-case { padding: 26px; }
.use-case__title { margin-top: 14px; font-size: 16px; font-weight: 700; }
.use-case .card-text { margin-top: 6px; }

/* Testimonials marquee */
/* Auto-scroll is driven by script.js (scrollLeft), so users can also drag / swipe / scroll it */
.marquee {
  overflow-x: auto; overflow-y: hidden; position: relative; margin: 0 -4px;
  overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.marquee__track { display: flex; gap: 20px; width: max-content; padding: 4px 4px 16px; }
.marquee-bar {
  position: relative; height: 6px; max-width: 320px; margin: 16px auto 0;
  border-radius: 999px; background: var(--line-2); cursor: pointer; touch-action: none;
}
/* Bigger invisible hit area so the thin bar is easy to grab */
.marquee-bar::before { content: ''; position: absolute; inset: -10px 0; }
.marquee-bar__thumb {
  position: absolute; top: 0; left: 0; height: 100%; min-width: 24px;
  border-radius: inherit; background: var(--accent); cursor: grab;
}
.marquee-bar.is-dragging .marquee-bar__thumb { cursor: grabbing; }

.testimonial { flex: 0 0 300px; padding: 24px; display: flex; flex-direction: column; }
.testimonial .stars { margin-bottom: 16px; }
.testimonial__quote { font-size: 14px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.testimonial__person { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.testimonial__name { font-size: 13px; font-weight: 700; }
.testimonial__biz { font-size: 12px; color: var(--faint); }

/* Pricing */
.pricing { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.plan, .lifetime { flex: 1 1 360px; max-width: 420px; padding: 36px; }
.plan__name { font-size: 13px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan__amount { font-size: 48px; font-weight: 800; line-height: 1; }
.plan__period { font-size: 15px; color: var(--muted); }
.plan__billing { margin-top: 10px; font-size: 13px; color: var(--faint); }
.plan .btn-block { margin-top: 16px; }
.plan .divider { margin: 24px 0 20px; }
.plan__groups { display: flex; flex-direction: column; gap: 18px; }
.plan__group-title { margin-bottom: 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.plan__features { display: flex; flex-direction: column; gap: 10px; }
.plan__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.plan__features .icon { flex: none; margin-top: 2px; color: var(--green); }

.lifetime {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.lifetime__badge {
  position: absolute; top: -10px; right: 24px; padding: 5px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--white); background: var(--red);
}
.lifetime__head { display: flex; align-items: center; gap: 12px; }
.lifetime__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.12); color: var(--amber);
}
.lifetime__eyebrow { font-size: 12px; font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; }
.lifetime__title { margin-top: 20px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--white); }
.lifetime__mark {
  padding: 0 6px; border-radius: 4px; background: var(--gold); color: var(--ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lifetime__price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.lifetime__amount { font-size: 44px; font-weight: 800; line-height: 1; }
.lifetime__period { font-size: 14px; color: var(--on-dark); }
.lifetime__was { font-size: 22px; font-weight: 700; color: var(--on-dark-2); }
.lifetime__saving {
  align-self: flex-start; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--white); background: var(--green);
}
.ladder {
  display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding: 14px 16px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06);
}
.ladder__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark); }
.ladder__who { flex: none; font-weight: 700; color: var(--white); }
.ladder__what { text-align: right; }
.ladder__row--past .ladder__who, .ladder__row--past .ladder__what { color: var(--on-dark-2); text-decoration: line-through; }
.now {
  margin-left: 6px; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); background: var(--amber);
}
.lifetime__features { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.lifetime__features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--white); }
.lifetime__features .icon { flex: none; color: var(--sky); }
.lifetime__cta, .lifetime__cta:hover { margin-top: auto; background: var(--white); color: var(--ink); }
.lifetime__features + .lifetime__cta { margin-top: 28px; }
.lifetime__cta:hover { filter: brightness(0.94); }
.lifetime__foot { margin-top: 12px; font-size: 12px; color: var(--sky); text-align: center; }

/* FAQ */
.faq-section { max-width: 820px; }
.faq {
  display: flex; flex-direction: column; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.faq__item { background: var(--white); padding: 24px 28px; }
.faq__q { font-size: 16px; font-weight: 700; }
.faq__a { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Final CTA */
.final-cta { padding: 88px 32px; text-align: center; }
.final-cta__title { font-size: 34px; font-weight: 800; color: var(--white); max-width: 620px; margin: 0 auto; line-height: 1.3; }
.final-cta__text { margin-top: 16px; font-size: 16px; color: var(--on-dark); }
.final-cta__action { margin-top: 30px; }
.final-cta__note { margin-top: 16px; font-size: 13px; color: var(--on-dark-2); }

/* Footer — shared by every marketing page (see data-footer in index.html) */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.site-footer__inner { padding: 32px; text-align: center; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; }
.site-footer__links a { font-size: 13px; color: var(--muted); }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__meta { font-size: 12px; line-height: 1.7; color: var(--faint); }

/* 5. CONTENT PAGES (Terms, Privacy, Blog, Help) -------------------------- */
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.legal-container--wide { max-width: 1000px; }
.legal-nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.back-link--13 { font-size: 13px; margin-bottom: 22px; }

.legal { padding-top: 64px; padding-bottom: 120px; }
.legal__eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.legal__title { font-size: 36px; font-weight: 800; margin-top: 8px; }
.legal__title:focus { outline: none; }
.legal__date { margin-top: 10px; font-size: 14px; color: var(--faint); }

.notice { margin-top: 20px; padding: 16px 20px; border-radius: 10px; background: var(--blue-soft); border: 1px solid var(--blue-border); }
.notice p { font-size: 13px; color: var(--blue-dark); line-height: 1.6; }

.legal__sections { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.legal__sections h2 { font-size: 19px; font-weight: 800; }
.legal__sections p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.page-lead { margin-top: 12px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Blog category pills */
.cat-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cat--reputation { color: var(--blue); background: var(--blue-soft); }
.cat--getting-started { color: var(--green); background: rgba(47, 158, 110, 0.12); }
.cat--customer-feedback { color: var(--gold-text); background: rgba(255, 193, 7, 0.14); }
.cat--small-business { color: var(--muted); background: var(--bg-2); }

/* Blog listing */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.post-card {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 26px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover { color: var(--ink); border-color: var(--blue-border); box-shadow: var(--shadow-float); }
.post-card__title { margin-top: 14px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.post-card__excerpt { flex: 1; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-status { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; font-weight: 700; color: var(--green); }
.post-grid__more { display: flex; justify-content: center; margin-top: 32px; }

/* Blog article */
.article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.article__meta-text { font-size: 13px; color: var(--faint); }
.badge-published {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--green); background: rgba(47, 158, 110, 0.12);
}
.article__title { margin-top: 18px; line-height: 1.2; }
.article__dek { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.tldr { margin-top: 28px; padding: 18px 20px; border-radius: 10px; background: var(--blue-soft); border: 1px solid var(--blue-border); }
.tldr__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-dark); }
.tldr__text { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--blue-dark); }
.article__body { margin-top: 12px; }
.article__body p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.article__body h2 { margin-top: 40px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.article__h2 { font-size: 19px; font-weight: 800; }
.takeaways { margin-top: 48px; padding: 24px; }
.takeaways__list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.takeaways__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.takeaways__list .icon { margin-top: 2px; color: var(--green); }
.article__faq, .article__sources, .article__related { margin-top: 48px; }
.article__faq h3 { margin-top: 20px; font-size: 16px; font-weight: 700; }
.article__faq p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.article__sources ul { margin-top: 12px; }
.article__sources a { font-size: 14px; text-decoration: underline; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.related__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; color: var(--ink); }
.related__card:hover { color: var(--ink); border-color: var(--blue-border); }
.related__title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.article__back { margin-top: 40px; }

/* Help center */
.help-search { position: relative; max-width: 520px; margin-top: 28px; }
.help-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.help-search .help-search__input { margin-bottom: 0; padding: 13px 14px 13px 42px; font-size: 15px; }
.help-empty { margin-top: 24px; font-size: 14px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 36px; }
.help-cat { padding: 24px 24px 8px; }
.help-cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.help-cat__title { font-size: 17px; font-weight: 800; }
.help-cat__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-cat__icon--amber { color: var(--gold-text); background: rgba(255, 193, 7, 0.14); }
.help-cat__icon--blue { color: var(--blue); background: var(--blue-soft); }
.help-cat__icon--gold { color: var(--gold); background: rgba(255, 193, 7, 0.14); }
.help-cat__icon--gray { color: var(--ink-2); background: var(--bg-2); }
.help-q { border-top: 1px solid var(--line); }
.help-q__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 14px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.help-q__btn:hover { color: var(--blue); }
.help-q__chev { color: var(--faint); transition: transform .2s ease; }
.help-q__btn[aria-expanded="true"] .help-q__chev { transform: rotate(180deg); }
.help-q__a p { padding-bottom: 16px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.help-contact { margin-top: 32px; padding: 28px 24px; text-align: center; }
.help-contact__title { font-size: 17px; font-weight: 800; }
.help-contact__text { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* 6. APP SCREENS --------------------------------------------------------- */
.view--screen { min-height: 100vh; background: var(--bg); }

.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; }
.screen__inner { width: 100%; }
.screen__inner--360 { max-width: 360px; }
.screen__inner--420 { max-width: 420px; }

.screen__title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.screen__title--19 { font-size: 19px; }
.screen__title:focus, .dash__title:focus { outline: none; }
.screen__sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.screen__sub--13 { font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

/* Segmented control (tabs) */
.segmented {
  display: flex; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 18px;
  border-radius: 999px; background: var(--warm-seg);
}
.segmented__item {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.segmented__item--icon { display: flex; align-items: center; gap: 6px; }
.segmented__item[aria-selected="true"] { background: var(--white); color: var(--ink); }

/* Forms */
label { display: block; font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.field {
  width: 100%; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink); background: var(--white); margin-bottom: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field[aria-invalid="true"] { border-color: var(--red); }
.field--tight { margin-bottom: 8px; }
.field--sm { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 0; }

.field-error { font-size: 12px; color: var(--red); margin: -8px 0 10px; min-height: 0; }
.field-error:empty { display: none; }
.field--tight + .field-error { margin-top: 0; }

.hint { font-size: 11px; color: var(--faint); margin-bottom: 16px; }

.btn-solid {
  display: block; width: 100%; text-align: center; padding: 12px; margin-top: 4px;
  border: 0; border-radius: 9px; background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-solid:hover { filter: brightness(0.93); }

/* Payment */
.pay-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; margin-bottom: 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
}
.pay-summary__name { font-size: 14px; font-weight: 700; }
.pay-summary__note { margin-top: 2px; font-size: 12px; color: var(--faint); }
.pay-summary__price { flex: none; font-size: 22px; font-weight: 800; }
.pay-summary__period { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.screen__skip { text-align: center; margin-top: 14px; }
.muted-link { font-size: 13px; color: var(--muted); text-decoration: underline; }
.muted-link:hover { color: var(--ink); }

/* Progress */
.progress__label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 6px;
}
.progress { width: 100%; height: 6px; border-radius: 999px; background: var(--warm-track); overflow: hidden; margin-bottom: 22px; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 999px; }

/* Customers panel */
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 18px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel__title { font-size: 13px; font-weight: 700; }
.add-toggle {
  display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.customer-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.customer-form .field-error { margin: 0; }
.btn-outline-sm {
  align-self: flex-end; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 700;
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }
.divider--panel { margin: 4px 0 14px; }

.customer-list { display: flex; flex-direction: column; gap: 8px; }
.customer {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--bg);
}
.customer .avatar { width: 30px; height: 30px; font-size: 12px; }
.customer__info { flex: 1; min-width: 0; }
.customer__name { font-size: 13px; font-weight: 700; }
.customer__contact { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 11px; font-weight: 700; color: var(--faint); background: var(--bg-2); padding: 4px 9px; border-radius: 999px; }

.screen__continue { text-align: center; margin-top: 22px; }
.accent-link { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.accent-link:hover { color: var(--accent); filter: brightness(0.85); }

/* Dashboard preview */
.dash { max-width: 900px; margin: 0 auto; padding: 40px; min-height: 100vh; display: flex; flex-direction: column; }
.dash .back-link { align-self: flex-start; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.dash__title { font-size: 22px; font-weight: 800; }
.dash__sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.badge {
  font-size: 11px; font-weight: 800; color: var(--blue-dark); background: var(--blue-soft);
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0;
}
.stats { display: flex; gap: 20px; margin-bottom: 28px; }
.stat { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; }
.stat__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat__icon--accent { background: var(--blue-soft); color: var(--accent); }
.stat__icon--neutral { background: var(--bg-2); color: var(--slate); }
.stat__value { font-size: 28px; font-weight: 800; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dash__empty {
  flex: 1; min-height: 220px; max-height: 400px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px; display: flex; align-items: center; justify-content: center; text-align: center;
}
.dash__empty > div { max-width: 420px; }
.dash__empty-title { font-size: 15px; font-weight: 700; }
.dash__empty-text { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* 7. RESPONSIVE ---------------------------------------------------------- */

/* Small laptop / large tablet */
@media (max-width: 1100px) {
  .grid-cards--240 { --cols: 2; }
}

/* Tablet & below: collapse nav into a menu */
@media (max-width: 900px) {
  .site-nav__links, .site-nav__actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-cards--300 { --cols: 2; }
  .grid-cards { gap: 20px; }
}

@media (max-width: 700px) {
  .grid-cards--video { --cols: 1; }
  .post-grid, .help-grid, .related { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  .grid-cards--240, .grid-cards--300 { --cols: 1; }
  .grid-cards { gap: 16px; }
  /* 16px inputs stop iOS Safari from zooming in on focus */
  .field, .field--sm { font-size: 16px; }
  .btn-solid, .btn-outline-sm { min-height: 44px; }
}

@media (max-width: 768px) {
  .container, .legal-container { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 56px 20px 64px; gap: 40px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .section { padding: 64px 20px; }
  .section--lg { padding: 72px 20px; }
  .section-head { margin-bottom: 40px; }
  .section-title, .section-title--34 { font-size: 28px; line-height: 1.25; }
  .benefits { padding: 40px 20px; gap: 28px; }
  .outcomes { padding: 64px 20px; gap: 36px; }
  .outcomes__title { font-size: 26px; }
  .final-cta { padding: 64px 20px; }
  .final-cta__title { font-size: 26px; }
  .compare__card { padding: 24px; }
  .plan, .lifetime { padding: 28px; }
  .site-footer__inner { padding: 28px 20px; }
  .article__body h2 { font-size: 20px; }
  .article__dek { font-size: 17px; }
  .legal { padding-top: 40px; padding-bottom: 80px; }
  .legal__title { font-size: 30px; }
  .dash { padding: 28px 20px; }
}

@media (max-width: 640px) {
  .stats { flex-direction: column; gap: 12px; }
  .dash__head { flex-wrap: wrap; }
  .screen { padding: 24px 20px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__copy, .flow { min-width: 0; }
  .hero__title { font-size: 30px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .flow__outcomes { flex-direction: column; }
  .faq__item { padding: 20px; }
  .testimonial { flex-basis: 260px; }
  .legal-nav .brand { display: none; }
  .lifetime__badge { right: 16px; }
}

/* 8. REDUCED MOTION ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .help-q__chev { transition: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
