:root {
  --bg: #101318;
  --bg-2: #161a21;
  --bg-3: #1c212a;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --text-dim: #a3adbb;
  --text-dim-2: #6d7787;
  --accent: oklch(0.69 0.2 38);
  --accent-2: oklch(0.75 0.14 190);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, .font-head {
  font-family: "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #fff;
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

.btn-primary {
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary,
.btn-ghost {
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-2) !important;
}

.nav-link {
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: #fff !important;
}

.feat-card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2) !important;
}

.prod-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.price-card {
  transition: transform 0.18s ease;
}
.price-card:hover {
  transform: translateY(-4px);
}

.faq-row {
  cursor: pointer;
}

.review-track {
  scroll-snap-type: x proximity;
}
.review-card {
  scroll-snap-align: start;
}

.glow-orb {
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim-2);
}
input, textarea {
  outline: none;
  font-family: inherit;
}
input:focus, textarea:focus {
  border-color: var(--accent) !important;
}

.icon-btn {
  cursor: pointer;
  transition: background 0.15s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.step-row:last-child .step-line {
  display: none;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------------------
   Mobile.

   The markup carries inline `style` attributes (it was ported from the design
   canvas), and inline styles beat stylesheet rules — so the layout overrides
   below need !important. Only layout is touched here; colours, spacing details
   and typography stay where they are.
   --------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* --- shared page chrome --- */
  .section {
    padding: 56px 18px !important;
  }

  /* The lockup is written with fixed px so it reads at desktop scale; on a
     phone header it has to come down or it crowds out the nav. */
  [data-brand] svg,
  [data-brand] img {
    width: 32px !important;
    height: 32px !important;
  }

  [data-brand] [data-text="brand.name"] {
    font-size: 18px !important;
    letter-spacing: 0.06em !important;
  }

  .site-header {
    padding: 14px 14px !important;
    gap: 10px;
  }

  /* The two calls to action must stay on one line each — wrapped "Log / in"
     reads like a broken button. */
  .site-header .btn-primary,
  .site-header .btn-ghost {
    white-space: nowrap;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  /* In-page anchors don't fit next to the buttons; the sections are reachable
     by scrolling, the sign-up buttons are what must stay visible. */
  .site-nav {
    display: none !important;
  }

  .site-footer {
    flex-direction: column !important;
    gap: 18px;
    text-align: center;
    padding: 32px 18px !important;
  }

  /* --- landing --- */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 44px) !important;
  }
  .hero-art {
    height: auto !important;
    order: -1;
  }
  .hero-art img {
    max-height: 260px !important;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch !important;
  }
  .hero-cta > * {
    text-align: center;
  }

  .feat-grid,
  .product-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    margin-top: 40px !important;
  }
  /* The screenshot mockups stay legible two-up. */
  .screens-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .product-cta {
    flex-direction: column;
    align-items: stretch !important;
  }
  .product-cta > * {
    text-align: center;
  }

  .trial-banner {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .trial-banner button {
    width: 100%;
  }

  .review-card {
    flex-basis: 260px !important;
  }

  .modal-card {
    width: min(400px, calc(100vw - 28px)) !important;
    padding: 26px 22px !important;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  /* --- admin panel --- */
  /* The stats charts sit two-up and the invite form three-up on a desktop;
     both have to stack or they overflow the phone viewport. */
  .stats-charts,
  #newInvite {
    grid-template-columns: 1fr !important;
  }

  /* --- dashboard --- */
  .dash-header {
    padding: 14px 16px !important;
  }
  /* The header runs out of room at phone widths: drop the "Dashboard" label and
     clip a long username rather than pushing the log-out button off-screen.
     display:inline-block is required — max-width does nothing on an inline span. */
  .dash-header-sub {
    display: none !important;
  }
  .dash-header #usernameLabel {
    display: inline-block;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  .dash-layout {
    flex-direction: column !important;
    padding: 20px 16px 60px 16px !important;
    gap: 20px !important;
  }
  /* Sidebar becomes a scrollable strip above the content. */
  .dash-sidebar {
    width: 100% !important;
    position: static !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px !important;
    overflow-x: auto;
  }
  .dash-sidebar .sidebar-nav-item {
    padding: 11px 14px !important;
    white-space: nowrap;
  }
  /* Settings sub-items drop onto their own row instead of indenting. */
  #settingsSubnav {
    flex-basis: 100%;
    flex-direction: row !important;
    margin: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    gap: 6px !important;
  }

  #productTabs {
    align-self: stretch !important;
    overflow-x: auto;
  }

  .status-bar {
    gap: 16px !important;
    padding: 14px 16px !important;
  }
  .status-cells {
    gap: 14px 20px !important;
  }
  /* The thin vertical rules between cells only read as noise once wrapped. */
  .status-cells > div[style*="width:1px"] {
    display: none !important;
  }
  .status-bar > button {
    width: 100%;
  }

  .guide-split {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .guide-head {
    align-items: flex-start !important;
  }

  .plans-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .step-body {
    gap: 12px !important;
  }
}

/* Narrow phones: the two-up screenshot grid stops being readable. */
@media (max-width: 460px) {
  .screens-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Smallest phones still in use (360px). The dashboard header carries the brand,
   the avatar, the username and Log out; at this width it overflows the viewport
   by a few pixels, so the flexible parts give way instead of the button. */
@media (max-width: 400px) {
  .dash-header {
    padding: 12px 12px !important;
    gap: 8px;
  }

  .dash-header #usernameLabel {
    max-width: 56px;
  }

  .dash-header #logoutBtn {
    padding: 8px 12px !important;
    white-space: nowrap;
  }

  [data-brand] {
    gap: 8px !important;
  }

  [data-brand] [data-text="brand.name"] {
    font-size: 16px !important;
  }
}
