/* STOPGAP full landing — sections aligned to Figma STOPGAP Landing Page */

:root {
  --stopgap-bg: #000000;
  --stopgap-input-bg: rgba(200, 210, 215, 0.3);
  --stopgap-cta: #5ac8b4;
  --stopgap-cta-text: #000000;
  --stopgap-field-h: 73px;
  --stopgap-field-radius: 10px;
  --stopgap-max: min(1120px, 92vw);
  --stopgap-body: 23px;
  --stopgap-body-lh: 1.45;
}

.stopgap-landing {
  margin: 0;
  background: var(--stopgap-bg);
  color: #ffffff;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
}

.stopgap-landing * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--stopgap-cta);
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header / logo ——— */
.landing-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  pointer-events: none;
}

.landing-header .landing-logo {
  pointer-events: auto;
  display: inline-block;
  line-height: 0;
}

.landing-header .landing-logo img {
  display: block;
  height: clamp(32px, 3vw, 44px);
  width: auto;
}

/* ——— Hero (fluid gradient) ——— */
/* Bottom edge matches #000 so the next section reads as a sharp horizontal cut, not a soft blend. */
.landing-hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(5.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 90% 70% at 75% 15%, rgba(236, 72, 153, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 55% at 15% 45%, rgba(139, 92, 246, 0.35), transparent 50%),
    radial-gradient(ellipse 80% 60% at 85% 85%, rgba(59, 130, 246, 0.3), transparent 55%),
    linear-gradient(165deg, #0c0618 0%, #1a0a28 32%, #08050f 78%, #000000 100%);
  background-repeat: no-repeat;
  overflow: hidden;
}

.landing-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--stopgap-max);
  margin: 0 auto;
}

.landing-hero__title {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.92;
}

.landing-hero__stop {
  display: block;
  font-size: clamp(3rem, 13vw, 9rem);
  letter-spacing: -0.02em;
}

.landing-hero__sub {
  display: block;
  font-size: clamp(1.6rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
}

.landing-hero__lede {
  margin: 1.75rem 0 2rem;
  font-size: var(--stopgap-body);
  font-weight: 400;
  line-height: 30px;
  max-width: 42rem;
}

.landing-hero__lede p {
  margin: 0 0 0.75rem;
}

.landing-hero .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 6px 28px;
  border-radius: var(--stopgap-field-radius);
  background: var(--stopgap-cta);
  color: var(--stopgap-cta-text);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.landing-hero .btn-primary:hover {
  filter: brightness(1.06);
}

/* ——— Black content sections ——— */
.landing-section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.landing-section--black {
  background: #000;
  color: #fff;
  margin-top: 0;
  /* Flush with hero: same #000 as hero gradient terminus — no seam or gradient bleed between sections */
}

.landing-section h2,
.landing-section .h2 {
  margin: 0 0 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
}

.landing-prose {
  font-size: var(--stopgap-body);
  line-height: var(--stopgap-body-lh);
  max-width: 52rem;
}

.landing-prose p {
  margin: 0 0 1.25rem;
}

.landing-prose ul {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
}

.landing-prose li {
  margin: 0.4rem 0;
}

.landing-prose--tight {
  max-width: 48rem;
}

/* ——— Floating tab ——— */
/* Straight edge flush to viewport right; rounded corners on the left (toward content).
   Do not rotate the whole tab — that flips which edge sits on the browser chrome. */
.floating-playbook-tab {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 50;
  padding: 0.65rem 0.45rem;
  background: var(--stopgap-cta);
  color: #000;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  border-radius: 10px 0 0 10px;
  text-decoration: none;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.35);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-width: 3.25rem;
  text-align: center;
}

.floating-playbook-tab:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .floating-playbook-tab {
    display: none;
  }
}

/* ——— How it works (white) ——— */
.landing-how {
  background: #ffffff;
  color: #000000;
}

.landing-how h2 {
  text-align: center;
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 800px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

.how-step {
  text-align: center;
}

.how-step__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.how-step__icon svg {
  width: 56px;
  height: 56px;
}

.how-step__title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.how-step__text {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
  color: #1a1a1a;
}

.how-connector {
  display: none;
}

@media (min-width: 801px) {
  .how-steps {
    position: relative;
  }
  .how-steps::before {
    content: "";
    position: absolute;
    left: 16.66%;
    right: 16.66%;
    top: 60px;
    height: 2px;
    background: #000;
    opacity: 0.15;
    z-index: 0;
  }
  .how-step {
    position: relative;
    z-index: 1;
  }
}

/* ——— Mid gradient band ——— */
.landing-gradient-mid {
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(251, 191, 36, 0.25), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(236, 72, 153, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(139, 92, 246, 0.25), transparent 55%),
    linear-gradient(180deg, #1a0a1f 0%, #2d1535 50%, #1a1020 100%);
  color: #fff;
}

.landing-gradient-mid h2 {
  max-width: 52rem;
}

.search-heading__line {
  display: block;
}

.landing-gradient-mid .landing-prose {
  max-width: 48rem;
}

/* ——— Right-aligned audit ——— */
.landing-audit-right {
  text-align: right;
}

.landing-audit-right .landing-prose {
  margin-left: auto;
}

/* ——— Lead form two-column ——— */
.landing-lead {
  position: relative;
  background-color: #000;
  background-image: url("/api/audit/email/ui/bg-form-jpg?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.landing-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.landing-lead > * {
  position: relative;
  z-index: 1;
}

.landing-lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--stopgap-max);
  margin: 0 auto;
}

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

.landing-lead__copy h2 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  text-align: left;
}

.landing-lead__copy .landing-prose {
  margin: 0;
}

/* ——— Form (shared) ——— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.email-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.stopgap-landing form input[type="text"],
.stopgap-landing form input[type="email"] {
  width: 100%;
  min-height: var(--stopgap-field-h);
  padding: 0 1.35rem;
  border: none;
  border-radius: var(--stopgap-field-radius);
  background: var(--stopgap-input-bg);
  color: #ffffff;
  font-family: inherit;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
}

.stopgap-landing form input::placeholder {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
}

.stopgap-landing form input:focus {
  outline: 2px solid var(--stopgap-cta);
  outline-offset: 2px;
}

.stopgap-landing .actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
}

.stopgap-landing .btn-primary {
  width: 100%;
  max-width: 404px;
  min-height: 54px;
  padding: 6px 28px;
  border-radius: var(--stopgap-field-radius);
  background: var(--stopgap-cta);
  color: var(--stopgap-cta-text);
  font-size: 22px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.stopgap-landing .btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.stopgap-landing .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.domain-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}

.stopgap-landing .status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.stopgap-landing .status.error {
  color: #ff8a8a;
}

.stopgap-landing .empty-preview {
  margin-top: 1.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
}

.stopgap-landing .empty-preview.hidden {
  display: none;
}

.stopgap-landing .empty-preview:not(.is-running) .stage-panel {
  display: none;
}

.stopgap-landing .stage-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.stopgap-landing .stage-text {
  color: #ffffff;
}

.stopgap-landing .stage-note {
  color: rgba(255, 255, 255, 0.65);
}

.stopgap-landing .stage-spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: var(--stopgap-cta);
}

/* ——— Footer ——— */
.landing-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: var(--stopgap-max);
  margin: 0 auto 2.5rem;
}

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

@media (max-width: 540px) {
  .landing-footer__grid {
    grid-template-columns: 1fr;
  }
}

.landing-footer__logo {
  margin-bottom: 1rem;
  line-height: 0;
}

.landing-footer__logo a {
  display: inline-block;
  line-height: 0;
}

.landing-footer__logo a:hover {
  text-decoration: none;
}

.landing-footer__logo img {
  display: block;
  height: clamp(44px, 5vw, 64px);
  width: auto;
}

.landing-footer p,
.landing-footer a {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.landing-footer a {
  color: inherit;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.landing-footer__newsletter .footer-label {
  margin: 0 0 0.75rem;
}

.landing-footer__newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0;
  align-items: stretch;
}

.landing-footer__newsletter-row input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  color: #505050;
  font-size: 1rem;
  font-family: inherit;
}

.landing-footer__newsletter-row button {
  padding: 0.65rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.landing-footer__newsletter-row button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.landing-footer__col h3 {
  margin: 0 0 0.75rem;
  font-size: 18px;
  font-weight: 700;
}

.landing-footer__col address {
  font-style: normal;
  margin: 0;
}

.landing-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-footer__social-list li {
  margin: 0.35rem 0;
}

.landing-footer__bottom {
  max-width: var(--stopgap-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.landing-footer__links a {
  text-decoration: underline;
}

.landing-footer__designed {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 14px;
  opacity: 0.75;
}
