/* Guisera — marketing site.
 *
 * Matches the LeadsSentry website's visual language (Inter, #0078D4, glass nav,
 * glass cards, gradient CTA, diagonal hero) but hand-written rather than Tailwind:
 * their `tailwind.generated.css` is a 0-byte file, so that build is broken and
 * there is nothing to inherit.
 */

:root {
  --primary: #0078d4;
  --primary-hover: #0086ed;
  --primary-light: #d3e4ff;
  --teal: #4edea3;
  --teal-dark: #006b49;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #dc2626;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- nav ---------------- */

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-dark);
}
.nav-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-name {
  font-size: 15px;
  font-weight: 700;
}
.nav-brand-tagline {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0078d4, #00a8ff);
  color: #fff;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
}
/* The portal's distinctive nav treatment. */
.nav-links a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-medium);
}
.nav-links a:hover {
  color: var(--primary);
}
/* Which page you are on. The nav is identical on every public page now, so
   without this there is nothing to orient against. Colour plus an underline,
   not colour alone. */
.nav-links a.is-current {
  color: #1d4ed8;
  position: relative;
}
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: #2563eb;
}
.nav-spacer {
  flex: 1;
}

/* ---------------- buttons ---------------- */

.btn-primary-brand {
  display: inline-block;
  background: linear-gradient(135deg, #0078d4, #00a8ff);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 120, 212, 0.32);
}
.btn-secondary-brand {
  display: inline-block;
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}
.btn-secondary-brand:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 14px;
}

/* ---------------- hero ---------------- */

.hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 120, 212, 0.09), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(78, 222, 163, 0.12), transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(0, 168, 255, 0.07), transparent 55%);
  padding: 84px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 15ch;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 54ch;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* ---------------- cards ---------------- */

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow:
    0 2px 10px -3px rgba(0, 0, 0, 0.05),
    0 20px 40px -15px rgba(0, 120, 212, 0.05);
  transition: transform 0.2s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 120, 212, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
}

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

section.band {
  padding: 72px 0;
}
section.band h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
section.band p.sub {
  color: var(--text-medium);
  margin: 0 0 36px;
  max-width: 60ch;
}

/* ---------------- pricing ---------------- */

.price-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px -12px rgba(0, 120, 212, 0.3);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0078d4, #00a8ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-display {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-credits {
  color: var(--primary);
  font-weight: 700;
}
.price-meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.price-card li {
  padding: 6px 0;
  color: var(--text-medium);
  font-size: 14px;
}
.price-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------------- honesty notice ---------------- */

.notice {
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

/* ---------------- footer ---------------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-light);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------------- mobile menu ---------------- */

/* The hamburger. Hidden above the breakpoint, where the real bar is shown. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;                 /* 44px is the minimum comfortable tap target */
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-toggle:hover {
  border-color: rgba(15, 23, 42, 0.24);
}
.nav-toggle-bars {
  display: block;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark, #0f172a);
}
.nav-toggle-bars span + span {
  margin-top: 4px;
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nav-drawer-backdrop.is-open {
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
  /* Off-canvas by default; the class slides it in. Transform rather than
     `right`, so the animation runs on the compositor and does not relayout the
     page underneath on a low-end phone. */
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  /* Clears the notch/home indicator on iOS. Without it the last link sits under
     the gesture bar and cannot be tapped. */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.nav-drawer-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark, #0f172a);
}
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-medium, #475569);
  font-size: 16px;
  cursor: pointer;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  /* Full size and sentence case, NOT the desktop bar's 13px uppercase with
     0.14em tracking: that treatment is legible as a row of six short words and
     unreadable as a stacked list on a phone. */
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark, #0f172a);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.nav-drawer-links a i {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.3);
}
.nav-drawer-links a.is-current {
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #2563eb;
}
.nav-drawer-links a:active {
  background: rgba(15, 23, 42, 0.04);
}

.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 24px;
  margin-top: auto;   /* pinned to the bottom on a tall screen */
}
.nav-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  /* The two auth buttons crowded the bar next to the logo and left no room for
     anything else. They move into the drawer, where they are full width. */
  .nav-desktop-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    clip-path: none;
  }
}

@media (min-width: 768px) {
  /* Belt and braces: the drawer must never appear on desktop even if a resize
     happens while it is open and the script has not yet caught up. */
  .nav-drawer,
  .nav-drawer-backdrop {
    display: none !important;
  }
}

/* Someone who has asked their OS for less motion gets the drawer without the
   slide, not without the menu. */
@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-drawer-backdrop {
    transition: none;
  }
}

/* ---------------- back control ---------------- */

/* Shown only on pages reached from elsewhere on the site (see base.html). */
.site-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.site-back:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.site-back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
