/*
  TGStudio Marketing Theme
  Priority 5 cleanup: consolidated component CSS and removed patch-over-patch overrides.
  Scope: public marketing, auth, onboarding and legal templates.
*/

/* 1. Design tokens and base ------------------------------------------------ */
:root {
  --tg-navy: #070d33;
  --tg-navy-2: #0b1642;
  --tg-ink: #0d173d;
  --tg-muted: #65708d;
  --tg-blue: #1689f2;
  --tg-purple: #5b3ff4;
  --tg-violet: #8e52ff;
  --tg-cyan: #00b7e6;
  --tg-success: #13a86b;
  --tg-soft: #f4f7ff;
  --tg-line: #e5eaf7;
  --tg-card: #ffffff;
  --tg-radius: 22px;
  --tg-radius-lg: 28px;
  --tg-shadow: 0 24px 70px rgba(23, 35, 84, .12);
  --tg-shadow-sm: 0 12px 34px rgba(23, 35, 84, .10);
  --tg-section: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--tg-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
a { text-decoration: none; }
img, svg { max-width: 100%; }
.text-muted { color: var(--tg-muted)!important; }
.fw-black { font-weight: 900; }
.max-w-760 { max-width: 760px; }
.sticky-offset-110 { top: 110px; }
.integration-note { font-size: .875rem; color: var(--tg-muted); }

/* 2. Navigation ----------------------------------------------------------- */
.navbar {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(229, 234, 247, .78);
  backdrop-filter: blur(16px);
}
.navbar .container { position: relative; }
.navbar-brand {
  color: var(--tg-navy)!important;
  font-size: 1.45rem;
  font-weight: 900;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-purple));
  color: #fff;
  box-shadow: 0 10px 25px rgba(91, 63, 244, .25);
}
.nav-link {
  color: var(--tg-ink)!important;
  font-weight: 800;
}
.nav-link.active,
.nav-link:hover { color: var(--tg-purple)!important; }
.dropdown-menu {
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  box-shadow: var(--tg-shadow-sm);
  padding: .75rem;
}
.dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: #17224a;
  font-weight: 800;
  line-height: 1.3;
  padding: .65rem .75rem;
  white-space: normal;
}
.dropdown-item:hover,
.dropdown-item:focus { background: #f4f2ff; color: #3f2ed1; }
.mega-dropdown { position: static; }
.mega-menu {
  left: 50%;
  right: auto;
  width: min(820px, calc(100vw - 32px));
  min-width: 0;
  transform: translateX(-50%);
}
.mega-label {
  padding: .35rem .75rem;
  color: var(--tg-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .navbar .dropdown:not(.mega-dropdown) { position: relative; }
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .14s ease, visibility .14s ease, transform .14s ease;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu,
  .navbar .dropdown-menu:hover,
  .navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mega-dropdown .mega-menu {
    top: 100%;
    margin-top: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transform: translateX(-50%) translateY(6px);
  }
  .mega-dropdown:hover .mega-menu,
  .mega-dropdown:focus-within .mega-menu,
  .mega-dropdown .mega-menu:hover,
  .mega-dropdown .mega-menu.show { transform: translateX(-50%) translateY(0); }
  .mega-dropdown .mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
}

/* 3. Buttons, badges and cards ------------------------------------------ */
.btn-tg {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tg-purple), var(--tg-blue));
  color: #fff;
  font-weight: 900;
  padding: .86rem 1.3rem;
  box-shadow: 0 16px 35px rgba(91, 63, 244, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-tg:hover,
.btn-tg:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 42px rgba(91, 63, 244, .30); }
.btn-soft {
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fff;
  color: var(--tg-ink);
  font-weight: 900;
  padding: .86rem 1.2rem;
  box-shadow: 0 10px 24px rgba(23, 35, 84, .05);
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: #f0efff;
  color: #4631d8;
  font-weight: 900;
  padding: .52rem 1rem;
}
.tg-card,
.feature-card,
.price-card,
.auth-card,
.mini-dashboard {
  border: 1px solid var(--tg-line);
  background: #fff;
  box-shadow: 0 12px 35px rgba(19, 36, 77, .05);
}
.tg-card,
.feature-card { border-radius: var(--tg-radius); transition: transform .2s ease, box-shadow .2s ease; }
.tg-card:hover,
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--tg-shadow-sm); }
.page-card-link { display: block; color: inherit; }
.page-card-link:hover { color: inherit; }
.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 17px;
  background: #f1f0ff;
  color: var(--tg-purple);
  font-size: 1.5rem;
}
.learn-link { display: inline-flex; align-items: center; gap: .2rem; color: var(--tg-purple); font-weight: 900; }
.price-card { border-radius: 24px; padding: 30px; box-shadow: var(--tg-shadow-sm); }
.price-card.featured { border: 2px solid var(--tg-purple); transform: translateY(-8px); }

/* 4. Layout sections ------------------------------------------------------ */
.section { padding: var(--tg-section) 0; }
.section-soft { background: linear-gradient(180deg, #f7faff, #fff); }
.enterprise-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f3ff, #eef7ff);
}
.page-hero {
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(135deg, #f8fbff, #f1efff);
}
.breadcrumb-mini,
.eyebrow { color: #6553f4; font-weight: 900; }
.display-title {
  color: var(--tg-navy);
  font-size: clamp(2.25rem, 3.75vw, 4.05rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -.04em;
}
.page-hero .display-title { font-size: clamp(2.15rem, 3.7vw, 3.8rem); line-height: 1.1; }
.lead-lg { color: #4f5d7d; font-size: 1.1rem; line-height: 1.75; }
.logo-strip { opacity: .74; }
.logo-pill { display: flex; align-items: center; gap: .55rem; color: #606b83; font-weight: 900; }
.logo-pill i { color: #7b849a; font-size: 1.35rem; }
.cta-band {
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 10% 0%, #2f49ff, #0b1050 45%, #110a48);
  color: #fff;
}
.cta-band .lead { color: rgba(255,255,255,.8); }
.cta-band .btn-light { border-radius: 14px; color: var(--tg-navy); font-weight: 900; }

/* 5. Homepage hero and product mock -------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 72px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -170px;
  top: 70px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(91, 63, 244, .25);
  border-radius: 50%;
}
.hero .row { min-height: 560px; }
.hero .lead-lg { max-width: 590px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: #34405e; font-size: .95rem; }
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .52rem .78rem;
  border: 1px solid var(--tg-line);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 8px 20px rgba(23,35,84,.04);
}
.hero-meta i { color: var(--tg-purple); }
.hero-visual-stack { position: relative; max-width: 720px; margin-left: auto; padding: 34px 12px 44px 26px; }
.mock-window { overflow: hidden; border: 1px solid var(--tg-line); border-radius: 24px; background: #fff; box-shadow: var(--tg-shadow); }
.mock-window.hero-visual { max-width: 680px; margin-left: auto; border-radius: 26px; }
.mock-shell { display: grid; grid-template-columns: 142px 1fr; min-height: 430px; }
.mock-side { padding: 20px 14px; background: linear-gradient(180deg, #0c1640, #07102e); color: #aeb8dc; }
.mock-brand { display: flex; align-items: center; gap: .45rem; color: #fff; font-size: .9rem; font-weight: 900; }
.mock-nav { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; padding: .55rem .75rem; border-radius: 9px; font-size: .8rem; font-weight: 900; }
.mock-side .active { background: #5240f4; color: #fff; }
.mock-main { padding: 22px; background: #fbfcff; }
.metric-card { border: 1px solid var(--tg-line); border-radius: 14px; background: #fff; padding: 14px; }
.metric-card h4 { margin: .12rem 0; color: var(--tg-navy); font-weight: 900; }
.metric-up,
.metric-ok { color: var(--tg-success); font-size: .72rem; font-weight: 900; }
.line-chart { position: relative; overflow: hidden; height: 150px; padding: 18px 14px 10px; border-radius: 16px; background: linear-gradient(180deg, #f7f8ff, #fff); }
.line-chart svg { width: 100%; height: 100%; }
.chart-label { margin-bottom: 4px; color: var(--tg-muted); font-size: .75rem; font-weight: 900; }
.top-list { border: 1px solid var(--tg-line); border-radius: 16px; background: #fff; padding: 14px; font-size: .78rem; }
.top-list div:not(:first-child) { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.dot.blue { background: var(--tg-blue); }
.dot.purple { background: var(--tg-purple); }
.dot.cyan { background: var(--tg-cyan); }
.mock-status-list { display: none!important; }
.hero-floating {
  position: absolute;
  z-index: 3;
  padding: 15px 16px;
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 52px rgba(23,35,84,.16);
  color: var(--tg-ink);
}
.floating-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--tg-blue), var(--tg-purple)); color: #fff; }
.hero-floating-sent { top: 8px; right: 0; width: 270px; }
.hero-floating-mod { left: 0; bottom: 42px; width: 236px; }
.hero-floating-join { right: 18px; bottom: 0; width: 242px; }
.mini-btn { border-radius: 9px; background: #eef2ff; color: var(--tg-ink); padding: .4rem .65rem; font-size: .75rem; font-weight: 900; }
.mini-btn.approve { background: #1fc77e; color: #fff; }
.page-hero .hero-visual-stack { max-width: 560px; padding: 0; }
.page-hero .hero-floating { display: none; }
.page-hero .mock-window.hero-visual { max-width: 560px; }
.page-hero .mock-shell { min-height: 360px; }

/* 6. Built for Scale visual ---------------------------------------------- */
.scale-showcase-composed { position: relative; display: block; min-height: 540px; padding: 24px 108px 48px 8px; }
.calendar-mock,
.calendar-mock-pro {
  position: relative;
  z-index: 1;
  min-height: 505px;
  padding: 24px;
  border: 1px solid rgba(229,234,247,.95);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(23,35,84,.15);
}
.calendar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.calendar-head strong { display: block; color: var(--tg-navy); font-size: 1.02rem; line-height: 1.2; }
.calendar-head small { display: block; margin-top: 3px; color: var(--tg-muted); }
.calendar-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.calendar-toolbar span { display: inline-flex; align-items: center; gap: 6px; padding: .42rem .62rem; border: 1px solid var(--tg-line); border-radius: 999px; background: #f8faff; color: #405071; font-size: .72rem; font-weight: 900; }
.calendar-toolbar i { color: var(--tg-purple); }
.calendar-week,
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-week span { text-align: center; color: var(--tg-muted); font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.calendar-cell { min-height: 76px; padding: 8px; overflow: hidden; border: 1px solid #e8edf8; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(23,35,84,.035); }
.calendar-cell.muted { background: #f7f9fd; border-style: dashed; box-shadow: none; }
.calendar-cell b { display: block; margin-bottom: 6px; color: #2d395b; font-size: .78rem; }
.calendar-cell.active { border-color: rgba(91,63,244,.38); background: linear-gradient(180deg, #fff, #fbfaff); }
.event-pill { display: block; max-width: 100%; padding: 5px 7px; border-radius: 999px; background: #edf2ff; color: #3727c5; font-size: .64rem; font-weight: 900; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-pill.green { background: #e7fff3; color: #08764b; }
.event-pill.amber { background: #fff6dc; color: #956600; }
.event-pill.purple { background: #f0e9ff; color: #5b3ff4; }
.event-pill.cyan { background: #e8fbff; color: #0780a0; }
.schedule-list { display: none; }
.scale-phone-pro { position: absolute; z-index: 3; right: 0; top: 84px; width: 220px; min-height: 390px; padding: 14px; border: 10px solid #081133; border-radius: 36px; background: linear-gradient(180deg, #f9fbff, #fff); box-shadow: 0 30px 75px rgba(10,16,56,.24); }
.phone-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--tg-navy); font-size: .72rem; }
.phone-topbar span { width: 34px; height: 5px; border-radius: 999px; background: #dfe6f4; }
.phone-topbar i { color: var(--tg-blue); font-size: 1.05rem; }
.chat-bubble { margin-bottom: 12px; padding: 12px; border: 1px solid var(--tg-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(23,35,84,.07); }
.chat-bubble.user { background: #f5f7ff; }
.chat-bubble small { display: block; margin-bottom: 3px; color: var(--tg-muted); font-weight: 800; }
.chat-bubble strong { display: block; color: var(--tg-navy); }
.chat-bubble p { margin: 5px 0 0; color: #4f5d7d; font-size: .78rem; line-height: 1.45; }
.phone-status-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--tg-muted); font-size: .72rem; }
.scale-floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--tg-line); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 22px 52px rgba(23,35,84,.16); }
.scale-floating-card i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--tg-blue), var(--tg-purple)); }
.scale-floating-card strong { display: block; color: var(--tg-navy); font-size: .86rem; }
.scale-floating-card span { display: block; color: var(--tg-muted); font-size: .75rem; }
.scale-card-delivery { right: 42px; top: 18px; }
.scale-card-alert { left: 26px; bottom: 8px; }

/* 7. Auth, onboarding and forms ------------------------------------------ */
.auth-page,
.onboarding-page { min-height: 100vh; background: linear-gradient(135deg, #f8fbff, #f2efff); }
.auth-shell,
.onboarding-shell { min-height: 100vh; padding: 30px 0 64px; }
.auth-top,
.onboard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 52px; }
.auth-card { border-radius: var(--tg-radius-lg); box-shadow: var(--tg-shadow); padding: 34px; }
.auth-card .form-control-lg,
.auth-card .form-select-lg { min-height: 52px; border-radius: 14px; }
.auth-card textarea.form-control { border-radius: 14px; }
.auth-card details summary { cursor: pointer; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 12px; color: var(--tg-muted); font-size: .9rem; }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.onboard-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 980px; margin: 0 auto 34px; }
.onboard-step { border: 1px solid var(--tg-line); border-radius: 18px; background: rgba(255,255,255,.7); padding: 12px 8px; text-align: center; font-size: .78rem; font-weight: 900; color: var(--tg-muted); }
.onboard-step.active { border-color: rgba(91,63,244,.45); background: #fff; color: var(--tg-purple); box-shadow: var(--tg-shadow-sm); }
.app-step { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--tg-line); border-radius: 20px; background: #fff; }
.step-no { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--tg-blue), var(--tg-purple)); color: #fff; font-weight: 900; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 18px; border: 1px solid var(--tg-line); border-radius: 20px; background: #fff; cursor: pointer; }
.choice-card .form-check-input { flex: 0 0 auto; margin-top: 0; }
.choice-card span { min-width: 0; }

/* 8. Generic inner-page templates --------------------------------------- */
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-lede,
.lede { color: var(--tg-muted); font-size: 1.08rem; line-height: 1.75; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { height: 100%; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); background: #fff; padding: 26px; box-shadow: 0 12px 35px rgba(19,36,77,.05); }
.split-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li,
.list-check li { position: relative; margin: .75rem 0; padding-left: 1.8rem; }
.check-list li::before,
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; color: var(--tg-purple); font-size: .75rem; font-weight: 900; }
.list-check { list-style: none; margin: 0; padding: 0; }
.legal-shell { max-width: 1100px; margin: 0 auto; }
.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal-toc { position: sticky; top: 108px; border: 1px solid var(--tg-line); border-radius: 20px; background: #fff; padding: 20px; box-shadow: 0 12px 35px rgba(19,36,77,.05); }
.legal-section { border-bottom: 1px solid var(--tg-line); padding: 26px 0; }
.legal-copy { color: #405071; line-height: 1.8; }

/* 9. Footer --------------------------------------------------------------- */
.footer { background: #070d33; color: #aeb7d8; }
.footer a { color: #d6defa; }
.footer a:hover { color: #fff; }
.footer p { color: #aeb7d8; }
.footer .navbar-brand { color: #fff!important; }
.footer-cta { border-color: rgba(255,255,255,.1); background: linear-gradient(135deg, #18215b, #0a1038); box-shadow: none; }
.footer .tg-card:hover { transform: none; }
.footer-cta .btn-soft { background: rgba(255,255,255,.95); color: var(--tg-ink); }
.footer-links li { margin-bottom: .55rem; }
.footer .border-secondary { border-color: rgba(255,255,255,.14)!important; }
.mobile-cta { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 1000; display: none; }

/* 10. Responsive rules ---------------------------------------------------- */
@media (max-width: 1199px) {
  .hero-visual-stack { padding: 22px 0 28px; }
  .hero-floating,
  .scale-floating-card { display: none; }
  .hero .row { min-height: auto; }
  .mock-shell { grid-template-columns: 128px 1fr; }
  .scale-showcase-composed { min-height: auto; padding: 0 0 30px; }
  .scale-phone-pro { position: relative; right: auto; top: auto; width: min(340px, 100%); min-height: auto; display: block; margin: -26px auto 0; }
  .calendar-mock,
  .calendar-mock-pro { min-height: auto; }
}

@media (max-width: 991px) {
  :root { --tg-section: 56px; }
  body:not(.auth-page):not(.onboarding-page):not(.no-mobile-cta) { padding-bottom: 82px; }
  body.no-mobile-cta .mobile-cta { display: none!important; }
  .mobile-cta { display: block; }
  .navbar-collapse { padding-top: 1rem; }
  .navbar .dropdown-menu { display: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; }
  .navbar .dropdown-menu.show { display: block; }
  .mega-menu { width: 100%; transform: none; }
  .page-hero { padding: 56px 0; }
  .display-title,
  .hero .display-title { font-size: clamp(2.05rem, 8vw, 3.15rem); letter-spacing: -.03em; }
  .page-hero .display-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero { padding: 46px 0 56px; }
  .hero-visual-stack { max-width: 100%; margin-top: 10px; padding: 0; }
  .mock-window.hero-visual { max-width: 100%; }
  .mock-shell,
  .hero-visual .mock-shell { grid-template-columns: 1fr; min-height: 320px; }
  .mock-side,
  .hero-visual .mock-side { display: none; }
  .mock-main { padding: 18px; }
  .mock-status-list { display: grid!important; }
  .info-grid,
  .split-grid,
  .two-column,
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .calendar-week,
  .calendar-grid { display: none; }
  .schedule-list { display: grid; gap: 10px; margin-top: 12px; }
  .schedule-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--tg-line); border-radius: 16px; background: #f8faff; }
  .scale-phone-pro { margin-top: 16px; }
  .price-card.featured { transform: none; }
  .onboard-progress { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .logo-strip .logo-pill { justify-content: center; }
  .calendar-mock,
  .calendar-mock-pro { padding: 18px; }
  .schedule-list div { flex-direction: column; gap: 4px; }
  .footer .border-top { justify-content: center!important; text-align: center; }
}

@media (max-width: 575px) {
  .hero { padding: 38px 0 44px; }
  .hero-meta { flex-direction: column; gap: .7rem; }
  .hero-meta span { width: 100%; justify-content: center; font-size: .85rem; }
  .btn-lg { padding: .78rem 1rem; font-size: 1rem; }
  .hero .d-flex.flex-wrap.gap-3 .btn,
  .page-hero .d-flex.flex-wrap.gap-3 .btn { width: 100%; }
  .mock-window { border-radius: 18px; }
  .mock-shell,
  .hero-visual .mock-shell { min-height: 280px; }
  .mock-main { padding: 16px; }
  .metric-card { padding: 12px; }
  .line-chart { height: 120px; }
  .top-list { display: none; }
  .calendar-toolbar span { width: 100%; }
  .scale-phone-pro { border-width: 8px; border-radius: 30px; }
  .auth-top,
  .onboard-top { gap: 12px; margin-bottom: 34px; }
  .auth-top .btn,
  .onboard-top .btn { padding: .65rem .9rem; }
  .onboard-progress { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .onboard-step { padding: 10px 6px; }
  .mobile-cta { left: 12px; right: 12px; bottom: 12px; }
}
