:root {
  --bg: #f7f5ff;
  --bg-soft: #ede9fe;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6d28d9;
  --accent-2: #a855f7;
  --accent-soft: rgba(109, 40, 217, 0.12);
  --success: #059669;
  --danger: #dc2626;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1140px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 32px 80px rgba(79, 70, 229, 0.12);
  --header-bg: rgba(255, 255, 255, 0.82);
  --input-bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% -5%, rgba(79, 70, 229, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(6, 182, 212, 0.12), transparent 50%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 45%, #eef2ff 100%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark,
.logo-wand-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
  flex-shrink: 0;
}

.logo-wand {
  display: block;
  flex-shrink: 0;
}

.logo-wand-inline {
  vertical-align: middle;
  margin-right: 0.35rem;
  display: inline-block;
}

.footer-tag .logo-wand-inline,
.site-footer p .logo-wand-inline {
  margin-right: 0.25rem;
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-ai {
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:not(.btn) {
  color: var(--muted);
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--text);
}

.currency-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: middle;
}

.pricing-grid-plans {
  /* Prefer .pricing-grid.pricing-grid-plans for column count (higher specificity). */
  gap: 0.65rem;
}

.price small {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.dashboard-shell {
  padding: 0.5rem 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.dash-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0;
  padding: 0.95rem 1.1rem;
}

.dash-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.dash-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-dashboard .dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr;
  gap: 0.65rem;
  align-items: stretch;
  min-height: 0;
  /* The shared .dashboard-grid adds 2rem/3rem here, which pushed the cards past
     the fold on the dashboard. Spacing comes from .dashboard-shell instead. */
  padding: 0;
}

.page-dashboard .dashboard-grid .card {
  padding: 0.9rem 0.95rem;
  margin: 0;
}

.page-dashboard .dashboard-grid h3 {
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.page-dashboard .refer-copy,
.page-dashboard .steps,
.page-dashboard .tip-banner {
  font-size: 0.82rem;
}

.page-dashboard .steps {
  margin-top: 0.5rem !important;
}

.page-dashboard .tip-banner {
  margin-top: 0.65rem !important;
}

.page-dashboard .dash-quick-plans {
  gap: 0.35rem;
}

.page-dashboard .dash-plan-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}

.page-dashboard .stat {
  font-size: 1.65rem;
}

.page-dashboard .refer-progress {
  margin: 0.65rem 0 0.45rem;
}

@media (max-width: 1000px) {
  .page-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero {
    grid-template-columns: 1fr;
  }

  .dash-balance-block {
    text-align: left;
  }
}

@media (min-width: 901px) {
  /* The dashboard scrolls rather than clipping: on a short laptop screen the
     Refer & Earn panel is taller than the viewport, and hidden overflow meant
     that content simply could not be reached. */
  html.site-desktop-fit body.page-dashboard.page-fit .site-main {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html.site-desktop-fit body.page-download .site-main {
    overflow: hidden !important;
  }

  html.site-desktop-fit body.page-download .download-steps {
    display: none;
  }
}

.dash-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0;
  padding: 0.95rem 1.1rem;
}

@media (max-width: 800px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
}

.dash-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.dash-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.dash-balance-block {
  text-align: right;
}

@media (max-width: 800px) {
  .dash-balance-block {
    text-align: left;
  }
}

.dash-balance-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.muted-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

/* —— Dashboard time accounting —— */

.dash-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.dash-time-cell {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

/* The balance is the number people come here for, so it is the only tinted cell. */
.dash-time-cell.is-primary {
  border-color: rgba(109, 40, 217, 0.28);
  background: rgba(109, 40, 217, 0.06);
}

.dash-time-cell.is-primary .dash-metric {
  color: var(--accent);
}

.dash-time-cell .muted-label {
  font-size: 0.72rem;
  line-height: 1.2;
}

.dash-time-cell .dash-metric {
  font-size: 1rem;
  margin-top: 0.15rem;
}

.dash-metric-sm {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

.dash-time-note {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.dash-quick-label {
  margin: 0.6rem 0 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.dash-credits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dash-credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
}

.dash-credit-main {
  min-width: 0;
}

.dash-credit-label {
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-credit-date {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.dash-credit-amount {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--accent);
}

.dash-credit-empty,
.dash-credits-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.dash-credits-note {
  margin: 0.55rem 0 0;
}

button.linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.purchase-history-card {
  padding: 1rem 1.1rem 1.15rem;
}

.purchase-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.purchase-count {
  margin: 0;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.purchase-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.purchase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.purchase-table th,
.purchase-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.purchase-table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(109, 40, 217, 0.04);
}

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

.purchase-table tbody tr:hover td {
  background: rgba(109, 40, 217, 0.03);
}

.purchase-empty {
  color: var(--muted);
  text-align: center !important;
  padding: 1.4rem 1rem !important;
}

.purchase-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.purchase-order {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .purchase-history-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .purchase-table th:nth-child(5),
  .purchase-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 700px) {
  .dash-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-metric {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0.25rem 0 0;
}

.dash-quick-plans {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.dash-plan-btn {
  width: 100%;
  justify-content: space-between;
}

.refer-card .refer-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.refer-progress {
  margin: 1rem 0 0.75rem;
}

.refer-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.refer-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s ease;
}

.refer-progress-label {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.refer-status {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

.refer-status.ok {
  color: var(--success);
  font-weight: 600;
}

.refer-locked {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.refer-rule {
  margin-top: 0.35rem;
}

.refer-card-full {
  max-width: 640px;
}

.dash-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.dash-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.dash-tab.is-active {
  background: rgba(109, 40, 217, 0.1);
  color: var(--accent);
}

.dash-tab-panel[hidden] {
  display: none !important;
}

/* Slim purple scrollbar so overflow reads as part of the design. */
html.site-desktop-fit body.page-dashboard .site-main,
html.site-desktop-fit body.page-pricing .site-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 40, 217, 0.35) transparent;
  scroll-behavior: smooth;
  padding-right: 0.15rem;
}

html.site-desktop-fit body.page-dashboard .site-main::-webkit-scrollbar,
html.site-desktop-fit body.page-pricing .site-main::-webkit-scrollbar {
  width: 9px;
}

html.site-desktop-fit body.page-dashboard .site-main::-webkit-scrollbar-track,
html.site-desktop-fit body.page-pricing .site-main::-webkit-scrollbar-track {
  background: transparent;
}

html.site-desktop-fit body.page-dashboard .site-main::-webkit-scrollbar-thumb,
html.site-desktop-fit body.page-pricing .site-main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.55), rgba(109, 40, 217, 0.45));
  border: 2px solid transparent;
  background-clip: content-box;
}

html.site-desktop-fit body.page-dashboard .site-main::-webkit-scrollbar-thumb:hover,
html.site-desktop-fit body.page-pricing .site-main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(109, 40, 217, 0.7));
  background-clip: content-box;
}

/* —— Sign out control (present in every header while signed in) —— */
.btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, #fff, #fff5f5);
  color: #b91c1c !important;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(190, 18, 60, 0.1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.btn-signout svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-signout:hover:not(:disabled) {
  border-color: rgba(220, 38, 38, 0.45);
  background: linear-gradient(180deg, #fff, #ffecec);
  box-shadow: 0 10px 22px rgba(190, 18, 60, 0.18);
  transform: translateY(-1px);
}

.btn-signout:active:not(:disabled) {
  transform: translateY(0);
}

.btn-signout:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Sits outside the collapsible drawer, so signing out never needs the menu. */
.nav-signout-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header order is set here rather than by markup order, because the control is
   injected into pages whose nav elements sit in different positions. */
.site-header .nav .logo {
  order: 1;
}

.site-header .nav #primary-nav {
  order: 2;
}

.site-header .nav .nav-signout-slot {
  order: 3;
}

.site-header .nav .nav-toggle {
  order: 4;
}

@media (min-width: 901px) {
  /* Keeps the links + sign out button grouped on the right of the header. */
  .site-header .nav #primary-nav {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .nav-signout-slot {
    margin-left: auto;
    margin-right: 0.15rem;
  }

  .btn-signout {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .btn-signout .btn-signout-label {
    display: none;
  }
}

.dashboard-grid-overview {
  grid-template-columns: 1.25fr 0.95fr 0.85fr !important;
}

@media (max-width: 1180px) {
  .dashboard-grid-overview {
    grid-template-columns: 1.1fr 0.9fr !important;
  }
}

@media (max-width: 820px) {
  .dashboard-grid-overview {
    grid-template-columns: 1fr !important;
  }
}

.dash-balance-stat {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-balance-sub {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.label-optional {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1em;
}

.field-hint.ok {
  color: #059669;
}

.field-hint.error {
  color: var(--danger);
}

.refer-link-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.refer-link-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.5);
  filter: brightness(1.05);
}

.btn-cta {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.38);
}

.btn-cta:hover {
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.48);
  filter: brightness(1.04);
}

.btn-nav {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

.btn-lg-inline {
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
}

.btn-nav-download {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: #fff;
  color: var(--text) !important;
  border: 2px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(79, 70, 229, 0.35);
  background: #fafbff;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  width: 100%;
  border: 1px solid #dadce0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-visual {
    order: -1;
  }
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease-out both;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease-out 0.08s both;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 34rem;
  animation: fadeUp 0.7s ease-out 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.7s ease-out 0.2s both;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-visual {
  perspective: 1200px;
  animation: fadeUp 0.85s ease-out 0.12s both;
}

.hero-3d-stage {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 1;
  transform-style: preserve-3d;
}

.hero-orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px dashed rgba(79, 70, 229, 0.2);
  animation: orbitSpin 24s linear infinite;
}

.hero-orbit-2 {
  inset: 18%;
  border-color: rgba(6, 182, 212, 0.25);
  animation-duration: 18s;
  animation-direction: reverse;
}

.hero-glow {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25), transparent 70%);
  filter: blur(8px);
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-robot-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(40px);
  animation: robotFloat 4.5s ease-in-out infinite;
}

.hero-robot-float img {
  width: min(88%, 340px);
  filter: drop-shadow(0 28px 48px rgba(79, 70, 229, 0.25));
  transform: rotateY(-8deg) rotateX(6deg);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.feature-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}

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

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  background: var(--accent-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-grid.pricing-grid-plans {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: min(1320px, 100%);
  gap: 0.65rem;
  width: 100%;
}

/* Five packs only stay legible side by side on a wide screen. Below that they
   wrap, and .page-pricing lets the page scroll so nothing is clipped. */
@media (max-width: 1180px) {
  .pricing-grid.pricing-grid-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(860px, 100%);
  }
}

@media (max-width: 820px) {
  .pricing-grid.pricing-grid-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .pricing-grid.pricing-grid-plans {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 920px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.pricing-page-head {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.55rem;
}

.pricing-page-head h2 {
  margin-bottom: 0.35rem;
}

.pricing-page-head p {
  margin: 0;
}

html.site-desktop-fit body.landing-page-refined .site-main {
  overflow-y: auto;
  scrollbar-width: thin;
}

@media (min-width: 901px) {
  html.site-desktop-fit body.page-fit .site-main {
    overflow: hidden !important;
  }
}

.price-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: auto;
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.price-card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 0.45rem;
  flex: 0 0 auto;
}

.page-pricing .price-card,
.landing-pricing-grid .price-card {
  height: auto;
}

.page-pricing .price-card-desc,
.landing-pricing-grid .price-card-desc {
  flex: none;
  min-height: 0;
}

.price-card .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.price-card.featured {
  border-color: rgba(109, 40, 217, 0.45);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.12), var(--shadow-lg);
}

.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: 14px;
  right: -28px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 2rem;
}

.price {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.35rem 0;
}

.price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .instruction-grid {
    grid-template-columns: 1fr;
  }
}

.instruction-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.instruction-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.instruction-card ol,
.instruction-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.instruction-card li {
  margin-bottom: 0.45rem;
}

.tip-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(79, 70, 229, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-size: 0.92rem;
  color: var(--text);
}

.tip-banner strong {
  color: var(--accent);
}

/* —— Auth pages (sign in / create account) ——
   The card holds interactive controls, so nothing here may move on hover or
   resize after async data arrives — every status line reserves its space. */

html.auth-root-noscroll,
html.auth-root-noscroll body.auth-page-noscroll {
  height: 100%;
  overflow: hidden;
}

/* Narrow or very short viewports scroll normally instead of clipping the card.
   The tightened card needs ~590px, so anything taller stays locked. */
@media (max-width: 980px), (max-height: 640px) {
  html.auth-root-noscroll,
  html.auth-root-noscroll body.auth-page-noscroll {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(760px 400px at 6% -14%, rgba(168, 85, 247, 0.18), transparent 62%),
    radial-gradient(720px 400px at 104% 2%, rgba(79, 70, 229, 0.16), transparent 60%),
    linear-gradient(180deg, #fcfbff 0%, var(--bg) 100%);
}

.auth-page .site-header-compact {
  flex: none;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-page .site-header-compact .nav {
  padding: 0.75rem 0;
}

.auth-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 452px);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(var(--max), 92vw);
  margin-inline: auto;
  padding: clamp(0.5rem, 2vh, 1.75rem) 0 clamp(1rem, 3vh, 2.25rem);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: minmax(0, 452px);
    justify-content: center;
    align-items: start;
    padding-top: 1rem;
  }

  .auth-aside {
    display: none;
  }
}

/* —— Brand column —— */

.auth-aside-inner {
  max-width: 30rem;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.22);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-aside-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.auth-aside-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  max-width: 26rem;
}

.auth-checklist {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.auth-checklist li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.28);
}

.auth-aside-note {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(109, 40, 217, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 24rem;
}

.auth-aside-note strong {
  color: var(--accent);
}

/* —— Form card —— */

.auth-panel {
  width: 100%;
  justify-self: end;
}

@media (max-width: 980px) {
  .auth-panel {
    justify-self: center;
  }
}

.auth-card {
  width: 100%;
  padding: clamp(1.15rem, 2.1vh, 1.6rem) clamp(1.25rem, 2vw, 1.7rem) clamp(0.95rem, 1.7vh, 1.25rem);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, #ffffff 0%, #fdfcff 100%);
  box-shadow: 0 26px 60px rgba(30, 27, 75, 0.13), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Interactive panel: never lift or shift under the cursor. */
.auth-card,
.auth-card:hover,
.page-motion .auth-card,
.page-motion .auth-card:hover {
  transform: none;
  transition: box-shadow 0.25s ease;
}

.page-motion .auth-card .btn:hover:not(:disabled) {
  transform: none;
}

.auth-card-head {
  margin-bottom: clamp(0.7rem, 1.4vh, 1rem);
}

.auth-card-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.3rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: clamp(0.5rem, 1.1vh, 0.72rem);
}

.auth-form-row {
  display: grid;
  gap: clamp(0.5rem, 1.1vh, 0.72rem);
}

@media (min-width: 420px) {
  .auth-form-row-split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin: 0;
  min-width: 0;
}

.form-group label {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.auth-form input {
  padding: 0.7rem 0.85rem;
  border-radius: 11px;
  font-size: 0.94rem;
  background: #fbfaff;
}

.input-shell {
  position: relative;
}

.input-shell input {
  padding-right: 3.4rem;
}

.pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.32rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.auth-form .btn-lg {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.82rem 1.1rem;
  font-size: 0.97rem;
}

/* Status lines keep a fixed height so async text never resizes the card. */
/* No reserved gap: messages only take room once they actually have text. */
.auth-status {
  display: grid;
  align-content: start;
}

.auth-status .msg {
  margin: 0.5rem 0 0;
  min-height: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.auth-status .msg:empty {
  display: none;
}

/* Scoped to the card so it wins over the generic `.card p { margin: 0 }` reset. */
.auth-card .auth-foot {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-foot a {
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1.35rem 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.divider span {
  flex-shrink: 0;
}

.btn-google-pro {
  width: 100%;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.btn-google-pro:hover {
  background: #f8f9fa;
  text-decoration: none;
}

.btn-google-disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.35);
}

.auth-card .divider {
  margin: clamp(0.55rem, 1.2vh, 0.8rem) 0 clamp(0.5rem, 1.1vh, 0.7rem);
  font-size: 0.72rem;
}

.auth-card .btn-google-pro {
  padding: 0.68rem 1rem;
  font-size: 0.9rem;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  padding: 0.72rem 0.9rem;
}

.msg.warn {
  color: #b45309;
}

.msg {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

.msg.error {
  color: var(--danger);
}

.msg.ok {
  color: var(--success);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.stat {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
}

.site-footer-compact {
  padding: 0.28rem 0;
}

.site-footer-compact .footer-tag {
  display: none;
}

.site-footer .footer-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem 1rem;
  min-height: 1.65rem;
  line-height: 1.2;
}

.site-footer .footer-nav {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-footer .footer-nav-start {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
}

.site-footer .footer-nav-end {
  flex: 0 1 auto;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.site-footer .footer-credit-inline {
  display: inline;
  margin-left: 0.45rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--border);
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.88;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-footer .footer-bar {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .site-footer .footer-nav-end {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .site-footer .footer-credit-inline {
    margin-left: 0.35rem;
    padding-left: 0.35rem;
  }
}

.footer-tag {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

.footer-credit,
.auth-developer-credit {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.auth-developer-credit {
  text-align: center;
  padding: 0.35rem 1rem 0.75rem;
  flex: 0 0 auto;
}

/* —— Landing (MagicMenty AI) —— */

.landing-page .hero-landing {
  padding: 2.5rem 0 1rem;
}

.hero-landing-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-landing-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .hero-actions,
  .hero-copy .feature-pills {
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-visual {
    order: -1;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .hero-badges {
    justify-content: center;
  }
}

.badge-glow {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(6, 182, 212, 0.12));
}

.badge-stealth {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}

.text-gradient {
  background: linear-gradient(135deg, #4338ca, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.08rem;
}

.hero-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.stealth-card-float {
  position: absolute;
  top: 8%;
  right: -4%;
  z-index: 2;
  animation: robotFloat 5s ease-in-out infinite;
}

@media (max-width: 900px) {
  .stealth-card-float {
    right: 4%;
    top: 4%;
  }
}

.stealth-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(5, 150, 105, 0.35);
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.15);
  max-width: 220px;
  text-align: left;
}

.stealth-card strong {
  display: block;
  font-size: 0.82rem;
  color: #047857;
}

.stealth-card p {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.stealth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.stealth-band {
  padding: 2rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f766e 120%);
  color: #e2e8f0;
}

.stealth-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .stealth-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stealth-band-icon {
    justify-self: center;
  }
  .stealth-band .btn {
    justify-self: center;
  }
}

.stealth-band-icon {
  font-size: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.stealth-band h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: #fff;
  line-height: 1.25;
}

.stealth-band p {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 42rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-accent {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08), var(--shadow);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 860px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.1));
  border-block: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-on-dark {
  background: #fff;
}

.landing-page .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.nav-links-landing a:not(.btn) {
  font-weight: 600;
}

.hero-pro {
  position: relative;
  padding: 3rem 0 0;
  overflow: hidden;
}

.hero-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 40%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79, 70, 229, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(6, 182, 212, 0.14), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-pro h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  max-width: 34rem;
  line-height: 1.45;
}

.hero-highlights {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-highlights {
    text-align: left;
    max-width: 20rem;
    margin-inline: auto;
  }
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-3d-compact {
  position: absolute;
  bottom: -10%;
  right: -8%;
  width: 180px;
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-3d-compact {
    display: none;
  }
}

.product-mock {
  width: min(100%, 420px);
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.06),
    0 32px 64px rgba(79, 70, 229, 0.22);
  overflow: hidden;
  text-align: left;
}

.product-mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mock-dot-r { background: #f87171; }
.mock-dot-y { background: #fbbf24; }
.mock-dot-g { background: #34d399; }

.mock-title {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.product-mock-body {
  padding: 1rem 1.1rem 1.1rem;
}

.mock-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mock-label {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: rgba(125, 211, 252, 0.2);
  color: #7dd3fc;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.mock-label-a {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.mock-row p,
.mock-row ul {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.mock-row ul {
  padding-left: 1rem;
}

.mock-row li {
  margin-bottom: 0.35rem;
}

.mock-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mock-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.mock-pill-live {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

@media (max-width: 860px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.stat-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.section-features {
  padding-top: 3.5rem;
}

.feature-tabs {
  max-width: 920px;
  margin: 0 auto;
}

.feature-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.feature-tab {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.feature-tab:hover {
  color: var(--text);
  background: rgba(79, 70, 229, 0.06);
}

.feature-tab.is-active {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.feature-panel {
  animation: fadeUp 0.45s ease-out both;
}

.feature-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .feature-panel-grid {
    grid-template-columns: 1fr;
  }
}

.feature-panel-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.feature-panel-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card-soft {
  background: linear-gradient(165deg, #fafbff 0%, #fff 100%);
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.panel-caption {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.mini-qa {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.mini-qa span {
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  margin-right: 0.35rem;
}

.mini-a span {
  color: #0891b2;
}

.mini-code {
  margin: 0;
  padding: 0.85rem;
  border-radius: 10px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-x: auto;
}

.stealth-visual {
  display: grid;
  gap: 0.75rem;
}

.share-mock {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px dashed var(--border);
}

.share-mock-you .share-screen-you {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  border-color: rgba(79, 70, 229, 0.2);
}

.share-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.share-screen {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.steps-row-pro .step-card {
  border-top: 3px solid var(--accent);
  position: relative;
}

.cta-band-pro {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #134e4a 100%);
  border: none;
}

.cta-band-pro h2,
.cta-band-pro p {
  color: #e2e8f0;
}

.cta-band-pro p {
  color: #94a3b8;
}

.cta-band-pro .btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

@media (max-width: 900px) {
  .nav-links-landing a[href="#features"],
  .nav-links-landing a[href="#how-it-works"] {
    display: none;
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}

.steps li {
  counter-increment: step;
  padding: 0.85rem 0 0.85rem 2.75rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 0.85rem;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -0.9rem;
  top: 0.75rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes robotFloat {
  0%, 100% {
    transform: translateY(0) translateZ(40px);
  }
  50% {
    transform: translateY(-12px) translateZ(52px);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.reveal {
  animation: fadeUp 0.75s ease-out both;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.45rem;
  }
  .nav-links .btn-nav {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }
}

[hidden] {
  display: none !important;
}

/* —— Page motion —— */

@media (prefers-reduced-motion: reduce) {
  .page-motion *,
  .page-motion *::before,
  .page-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page-motion {
  animation: pageEnter 0.55s ease-out both;
}

/* Prefer visibility if motion is disabled or animation is interrupted */
@media (prefers-reduced-motion: reduce) {
  .page-motion {
    animation: none;
    opacity: 1;
  }
}

.page-pricing.page-motion,
.landing-page.page-motion,
.page-dashboard.page-motion {
  /* Ensure shell pages never stay stuck at opacity 0 */
  animation: pageEnter 0.45s ease-out both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade {
  animation: fadeUp 0.65s ease-out both;
}

.animate-rise {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-animate-stagger] > .animate-rise:nth-child(1) {
  animation-delay: 0.05s;
}
[data-animate-stagger] > .animate-rise:nth-child(2) {
  animation-delay: 0.12s;
}
[data-animate-stagger] > .animate-rise:nth-child(3) {
  animation-delay: 0.19s;
}
[data-animate-stagger] > .animate-rise:nth-child(4) {
  animation-delay: 0.26s;
}

.page-motion .card,
.page-motion .platform-card,
.page-motion .price-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-motion .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-motion .btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.page-motion .logo-wand {
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 4px 12px rgba(109, 40, 217, 0.25));
  }
  50% {
    filter: drop-shadow(0 6px 18px rgba(168, 85, 247, 0.45));
  }
}

/* —— Hero banner (promo art) —— */

.hero-banner-section {
  padding: 1.25rem 0 0.5rem;
}

.hero-banner-section--no-art {
  display: none;
}

.hero-banner-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(109, 40, 217, 0.15);
  background: #fff;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-banner-tagline {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.85rem auto 0;
  padding-bottom: 0.25rem;
}

.hero-promo-light {
  padding: 2rem 0 1.5rem;
}

.promo-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.promo-script {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
}

.promo-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .promo-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .promo-tiles {
    grid-template-columns: 1fr;
  }
}

.promo-tile {
  text-align: center;
  padding: 1.25rem 1rem;
  border-color: rgba(109, 40, 217, 0.12);
}

.promo-tile-icon {
  font-size: 1.65rem;
  display: block;
  margin-bottom: 0.5rem;
}

.promo-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.promo-tile p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-band-light {
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.9), rgba(255, 255, 255, 0.95));
  border-block: 1px solid var(--border);
}

.trust-band-light .trust-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.trust-band-light h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--text);
}

.trust-band-light p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.trust-band-icon {
  font-size: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .trust-band-light .trust-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust-band-icon {
    justify-self: center;
  }
  .trust-band-light .btn {
    justify-self: center;
  }
}

.cta-band-light {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(168, 85, 247, 0.1));
  border-block: 1px solid var(--border);
}

.cta-band-light h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cta-band-light p {
  margin: 0;
  color: var(--muted);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* —— Site shell: no document scroll on desktop —— */

@media (min-width: 901px) {
  html.site-desktop-fit {
    height: 100%;
  }

  html.site-desktop-fit body.site-shell {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  html.site-desktop-fit body.site-shell .site-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  html.site-desktop-fit body.page-scroll-desktop .site-main {
    overflow-y: auto;
    scrollbar-width: thin;
  }

  html.site-desktop-fit .site-footer-compact {
    flex-shrink: 0;
    padding: 0.22rem 0;
  }

  html.site-desktop-fit .site-footer-compact .footer-tag {
    display: none;
  }

  html.site-desktop-fit .site-footer-compact .footer-nav {
    font-size: 0.76rem;
  }

  html.site-desktop-fit .site-footer-compact .footer-credit-inline {
    font-size: 0.58rem;
  }
}

@media (max-width: 900px) {
  html.site-desktop-fit body.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.nav-open {
    overflow: hidden;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  #primary-nav.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 4.5rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }

  #primary-nav.nav-links.is-open {
    transform: translateX(0);
  }

  #primary-nav.nav-links a:not(.btn) {
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  #primary-nav.nav-links .btn-nav {
    width: 100%;
    margin-top: 0.35rem;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 23, 42, 0.35);
  }
}

.site-header-pro .nav {
  padding: 0.65rem 0;
}

@media (min-width: 901px) {
  .landing-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
  }

  .landing-page-banner-only .landing-main {
    gap: 0;
    padding: 0;
  }

  .landing-main .hero-banner-img {
    max-height: min(38vh, 300px);
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .landing-mobile-only {
    display: none !important;
  }

  .landing-blog-teaser .blog-teaser-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

/* —— Landing: full banner + single CTA —— */

.landing-page-banner-only .landing-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.landing-banner-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 0.35rem 0 0.5rem;
}

.landing-banner-frame {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--max), 96vw);
  min-height: 0;
  margin: 0 auto;
}

.landing-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(109, 40, 217, 0.12);
}

.landing-banner-cta {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.15rem;
  text-align: center;
  width: 100%;
}

.landing-get-started {
  min-width: min(300px, 88vw);
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (min-width: 901px) {
  .landing-page-banner-only .landing-banner-img {
    max-height: calc(100vh - 10.5rem);
  }
}

/* —— Landing refined: hero + 3D robot + pricing —— */

.landing-page-refined .landing-main {
  padding-bottom: 0;
}

.landing-pricing-grid .price-meta {
  display: none;
}

.landing-pricing-grid .price-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.25rem 0 0.2rem;
}

.landing-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.landing-lead {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32rem;
  line-height: 1.4;
}

.robot-3d-stage {
  position: relative;
  width: min(220px, 55vw);
  margin: 0 auto;
  perspective: 1000px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero-copy .promo-kicker {
    justify-content: center;
  }

  .landing-hero-actions {
    justify-content: center;
  }
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.robot-3d-plinth {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 72%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.28) 0%, transparent 70%);
  filter: blur(8px);
}

.robot-3d {
  display: block;
  width: 100%;
  height: auto;
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: robot3dFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 48px rgba(109, 40, 217, 0.28));
}

@keyframes robot3dFloat {
  0%,
  100% {
    transform: rotateY(-14deg) rotateX(6deg) translateY(0);
  }
  50% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-12px);
  }
}

.landing-banner-wrap {
  padding: 0.15rem 0 0.35rem;
}

.landing-banner-wrap .landing-banner-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(109, 40, 217, 0.12);
  background: #0b1020;
  width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.landing-banner-wrap .landing-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* —— Page navigation loader (multi-page app feedback) —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.page-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #c084fc);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
  opacity: 0;
}

.page-loader.is-loading .page-loader-bar {
  opacity: 1;
  animation: pageLoaderCreep 8s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}

.page-loader.is-done .page-loader-bar {
  opacity: 1;
  animation: pageLoaderFinish 0.42s ease-out forwards;
}

/* Longer waits get a soft veil and spinner; quick hops only show the bar. */
.page-loader-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(250, 249, 255, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-loader.show-veil .page-loader-veil {
  opacity: 1;
}

.page-loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(109, 40, 217, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: pageLoaderSpin 0.75s linear infinite;
}

@keyframes pageLoaderCreep {
  0% {
    width: 0;
  }
  40% {
    width: 62%;
  }
  100% {
    width: 94%;
  }
}

@keyframes pageLoaderFinish {
  /* Starts part-filled so it reads as a continuation of the previous page. */
  0% {
    width: 45%;
    opacity: 1;
  }
  60% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

@keyframes pageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-spinner {
    animation-duration: 1.6s;
  }
  .page-loader.is-loading .page-loader-bar,
  .page-loader.is-done .page-loader-bar {
    animation-duration: 0.2s;
  }
}

/* Rotating hero tagline. Height is reserved in JS so swaps never shift the page. */
.landing-title {
  perspective: 700px;
}

.tagline-rotator {
  /* Grid keeps the text full-width (so text-align still applies) while letting
     short taglines sit centred inside the height reserved for the longest one. */
  display: grid;
  align-content: center;
  /* Sole headline now, so it carries full weight. */
  font-size: 1em;
  line-height: 1.15;
  transform-origin: 50% 0;
  backface-visibility: hidden;
}

.tagline-rotator.is-in {
  animation: taglineIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tagline-rotator.is-out {
  animation: taglineOut 0.38s cubic-bezier(0.55, 0, 0.85, 0.35) both;
}

@keyframes taglineIn {
  from {
    opacity: 0;
    transform: translateY(0.5em) rotateX(-55deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes taglineOut {
  from {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-0.45em) rotateX(45deg);
    filter: blur(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tagline-rotator.is-in,
  .tagline-rotator.is-out {
    animation: none;
    opacity: 1;
  }
}

.landing-pricing {
  padding: clamp(1rem, 3.5vh, 2.25rem) 0 clamp(1.25rem, 4vh, 2.5rem);
}

.landing-pricing-head {
  text-align: center;
  margin: 0 0 clamp(0.85rem, 2.2vh, 1.4rem) !important;
}

.landing-pricing-head h2 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.landing-pricing-head p {
  margin: 0;
  font-size: 0.85rem;
}

.landing-pricing-grid .price-card {
  padding: 0.7rem 0.65rem 0.65rem;
}

.landing-pricing-grid .price {
  font-size: 1.35rem;
  margin: 0.1rem 0;
}

.landing-pricing-grid .price-card h3 {
  font-size: 0.95rem;
}

.landing-pricing-grid .price-card-desc,
.landing-pricing-grid .price-meta {
  font-size: 0.74rem;
  margin-bottom: 0.25rem;
}

.landing-pricing-grid .price-card .btn {
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}

.landing-pricing-grid .price-card.featured::before {
  font-size: 0.55rem;
  top: 8px;
  right: -34px;
  padding: 0.15rem 2rem;
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.blog-teaser-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-teaser-card:hover {
  text-decoration: none;
}

.blog-teaser-card .blog-read {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.pricing-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: clamp(1.25rem, 4vh, 2.75rem) 0 clamp(1rem, 3vh, 2rem);
  min-height: 0;
  overflow: hidden;
}

.pricing-page-inner {
  padding: 0;
  width: 100%;
  /* Auto margins centre the block when there is room, and collapse instead of
     clipping the top when the viewport is short. */
  margin-block: auto;
}

.pricing-page-head {
  margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
}

.pricing-page-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.pricing-page-head p {
  font-size: 0.9rem;
  margin: 0;
}

.page-pricing .pricing-grid-plans {
  gap: clamp(0.6rem, 1vw, 0.95rem);
}

.pricing-note {
  max-width: 760px;
  margin: clamp(0.85rem, 2.2vh, 1.35rem) auto 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 12px;
  background: rgba(109, 40, 217, 0.05);
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.6;
  text-align: center;
}

.pricing-note strong {
  color: var(--accent);
}

.page-pricing .price-card {
  padding: clamp(1.05rem, 2.2vh, 1.5rem) clamp(0.9rem, 1.2vw, 1.2rem);
}

.page-pricing .price-plan-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
}

.page-pricing .price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.page-pricing .price {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  margin: 0.45rem 0 0.35rem;
}

.page-pricing .price-card-desc {
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.page-pricing .price-meta {
  font-size: 0.74rem;
  margin-bottom: 0.15rem;
}

.page-pricing .price-card .btn {
  margin-top: 0.85rem;
  padding: 0.68rem 0.8rem;
  font-size: 0.87rem;
}

.page-pricing .price-card.featured::before {
  font-size: 0.58rem;
  top: 10px;
  right: -32px;
  padding: 0.2rem 2rem;
}

.page-pricing .pricing-footnote {
  margin-top: clamp(1rem, 2.6vh, 1.6rem);
  font-size: 0.82rem;
  line-height: 1.6;
}

.page-pricing .pricing-msg,
.page-pricing #pricing-msg {
  margin-top: 0.6rem !important;
  min-height: 0;
}

@media (min-width: 901px) {
  html.site-desktop-fit body.page-pricing.site-shell .site-main {
    overflow: hidden !important;
  }
}

.price-card.animate-rise,
.price-card.animate-on-scroll {
  opacity: 1;
  transform: none;
}

.price-card.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

.price-plan-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-meta {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}

.pricing-footnote {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 901px) {
  html.site-desktop-fit body.page-download.page-fit .site-main,
  html.site-desktop-fit body.page-pricing.page-fit .site-main {
    overflow: hidden !important;
  }

  html.site-desktop-fit body.page-dashboard.page-fit .site-main {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html.site-desktop-fit body.page-download .download-steps {
    display: none;
  }
}

/* Five packs fit on one row only above ~1180px. On a narrower desktop they wrap
   to a second row that is taller than the viewport, so the pricing page scrolls
   there rather than hiding a card behind the fold. */
@media (min-width: 901px) and (max-width: 1180px) {
  html.site-desktop-fit body.page-pricing .site-main,
  html.site-desktop-fit body.page-pricing.site-shell .site-main,
  html.site-desktop-fit body.page-pricing.page-fit .site-main {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}
