/* Guisera — marketing site.
 *
 * Matches the LeadsSentry website's visual language (Inter, var(--brand), 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: var(--brand);
  --primary-hover: var(--brand-dark);
  --primary-light: var(--brand-soft);
  --teal: var(--brand);
  --teal-dark: var(--brand);
  --success: var(--ok);
  --warning: var(--warn);
  --error: var(--bad);
  --text-dark: #0f172a;
  --text-medium: #475569;
  /* Same 2.56:1 problem under a different name. The tool taglines that used it
     were repointed individually during the homepage pass; fixing the token
     stops the next thing that reaches for it inheriting the failure. */
  --text-light: var(--ink-muted);
  --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: var(--brand);
  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: var(--brand);
  position: relative;
}
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav-spacer {
  flex: 1;
}

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

.btn-primary-brand {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 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(var(--brand-rgb), 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(var(--brand-rgb), 0.09), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(var(--brand-rgb), 0.12), transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(var(--brand-rgb), 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(var(--brand-rgb), 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(var(--brand-rgb), 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(var(--brand-rgb), 0.3);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  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: '✓';
  /* Decoration, not a status: nothing has succeeded here, it is a bullet. */
  color: var(--brand);
  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: var(--warn);
}


/* ---------------- 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: var(--brand);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.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;
}

/* Header items never wrap mid-label ("Sign / in", "AI / TOOLS"). */
.nav-links a,
.nav-desktop-cta {
  white-space: nowrap;
}

/* Tablets (up to 1099px) get the drawer too: at ~820px the full menu plus two
   buttons does not fit and every label wrapped onto two lines. */
@media (max-width: 1099px) {
  .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;
  }
}

@media (max-width: 767px) {
  .hero {
    clip-path: none;
  }
}

@media (min-width: 1100px) {
  /* 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;
}

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

/*
 * DARK, because the section above it is dark.
 *
 * The previous version was white and sat directly beneath a
 * `linear-gradient(160deg, var(--dark-raised), var(--dark))` closing band, which cut the page
 * in half at exactly the point it should feel finished. This continues that
 * gradient down to black instead, so the page lands rather than stops.
 */

.site-footer {
  position: relative;
  margin-top: 0;
  background: linear-gradient(180deg, var(--dark) 0%, #080b14 100%);
  /* Named, not spelled. The same hex fails on white, so anybody measuring
     it out of context would 'fix' this and break the footer. */
  color: var(--dark-ink-muted);
  overflow: hidden;
}

/* A hairline of brand colour along the top edge. One pixel, but it is the
   difference between "the page ended" and "a section began". */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--brand-rgb), 0.55) 22%,
    rgba(var(--brand-rgb), 0.55) 62%,
    transparent
  );
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px 28px;
}

.footer-top {
  display: grid;
  /* The brand column is wider than the rest and holds the description; the four
     that follow are equal. Named areas are avoided on purpose -- this collapses
     to two columns and then one, and fractions reflow more predictably than a
     template redefined at every breakpoint. */
  grid-template-columns: 2.1fr 1fr 1fr 1fr 1.35fr;
  gap: 44px 36px;
}

/* ---- brand ---- */

.footer-brand { max-width: 330px; }

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-mark-copy { display: flex; flex-direction: column; line-height: 1.15; }
.footer-mark-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.footer-mark-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  /* Was #64748b: 3.95:1 against the footer at 10.5px, and uppercase tracked
     type is harder to read than its size suggests, not easier. */
  color: var(--ink-faint);
  margin-top: 3px;
}

.footer-blurb {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8b95a9;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--dark-ink-muted);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.footer-badge:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
  background: rgba(var(--brand-rgb), 0.08);
  color: #c7d2fe;
}
.footer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.18);
}

/* ---- link columns ---- */

.footer-col h2 {
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);  /* see the note on .footer-mark-tag */
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* A list, so each link is its own row. The previous markup put anchors as
     siblings in a flex container that never received its rules, and they ran
     together inline -- "Home AI Tools Pricing Download Blog FAQ" as one
     sentence. A <ul> is block-level and reads correctly even unstyled, which is
     the state a visitor sees while the stylesheet is still arriving. */
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* `:not(.footer-btn)` is load-bearing, not tidiness.
 *
 * The call-to-action block carries `footer-col` too -- it wants the same column
 * heading -- so this rule matched the buttons inside it. At (0,1,1) it beats
 * `.footer-btn--primary` at (0,1,0), so the "Create an account" button rendered
 * slate grey on a blue gradient: unreadable until hovered, because only the
 * hover rule restated the colour. Exactly the trap that hid the Sign in button
 * on the auth pages, one specificity point apart.
 *
 * Excluding buttons here rather than inflating the button's specificity: this
 * rule is about LINKS IN A LIST, and saying so is what stops the next person
 * hitting the same thing. */
.footer-col a:not(.footer-btn) {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--dark-ink-muted);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}
.footer-col a:not(.footer-btn):hover {
  color: #f1f5f9;
  /* Two pixels. Enough to feel responsive, small enough that a column of links
     does not appear to wobble as the pointer crosses it. */
  transform: translateX(2px);
}

/* ---- the call to action column ---- */

.footer-cta p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b95a9;
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 9px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.05);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.footer-btn:hover {
  background: rgba(148, 163, 184, 0.11);
  border-color: rgba(148, 163, 184, 0.34);
  color: #f1f5f9;
}

.footer-btn--primary,
.footer-btn--primary:link,
.footer-btn--primary:visited {
  border-color: transparent;
  background: var(--brand);
  /* :link and :visited raise this to (0,2,0) so a future `.something a` rule
     cannot quietly take the label off the button again. */
  color: #fff;
}
.footer-btn--primary:hover {
  /* The gradient must be restated: a plain background on hover would replace it
     with a flat colour. Same trap as the sign-in button. */
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  filter: brightness(1.08);
}

/* ---- bottom bar ---- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12.5px;
  /* #64748b was 3.95:1 against the footer. The copyright line is the least
     important text on the page and still has to be legible -- "unimportant" is
     an argument for making it smaller, never for making it unreadable. */
  color: var(--ink-faint);
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom-links a {
  color: #8b95a9;
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-bottom-links a:hover { color: #f1f5f9; }

/* ---- responsive ---- */

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
  /* The CTA moves under the brand rather than being squeezed into a third of a
     row where the button labels would wrap. */
  .footer-cta { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .footer-inner { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand,
  .footer-cta { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  /* Stacked links need a real target, not a 13px line among nine others. */
  .footer-col ul { gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-col a:not(.footer-btn):hover { transform: none; }
}
