@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Scroll works; scrollbars hidden on landing + auth */
html,
body,
.landing-page,
.landing-page * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.landing-page::-webkit-scrollbar,
.landing-page *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ─────────────────────────────────────────
   Amboit landing — editorial grid / premium
   ───────────────────────────────────────── */

.landing-page {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4,
.landing-page p {
  color: var(--white);
}

/* Full-page grid */
.landing-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 75%);
}

.landing-grid-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.landing-page:hover .landing-grid-glow {
  opacity: 1;
}

.landing-page > *:not(.landing-grid):not(.landing-grid-glow) {
  position: relative;
  z-index: 1;
}

/* Nav */
.landing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.landing-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.landing-logo svg,
.landing-logo .amboit-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-brand:hover .amboit-mark,
.auth-brand-logo:hover .amboit-mark {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  transition: filter 0.25s ease;
}

.landing-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.landing-nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.landing-nav-links a:hover {
  color: var(--white);
}

.landing-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.landing-nav-actions .link-btn {
  background: none;
  border: 0;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s;
}

.landing-nav-actions .link-btn:hover {
  color: var(--white);
}

.landing-nav-actions .nav-cta {
  background: var(--white);
  color: var(--black);
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.landing-nav-actions .nav-cta:hover {
  opacity: 0.88;
}

/* Hero — full viewport editorial */
.landing-hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.landing-hero-copy {
  max-width: 640px;
}

.landing-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 32px;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
}

.landing-hero p.lead {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 480px;
}

.landing-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.landing-btn {
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  border: 1px solid transparent;
}

.landing-btn.primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.landing-btn.primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.landing-btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.landing-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Live evaluation preview — hero right */
.landing-preview {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  align-self: center;
}

.landing-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-600);
}

.landing-preview-bar span:first-child { background: #ef4444; }
.landing-preview-bar span:nth-child(2) { background: #eab308; }
.landing-preview-bar span:nth-child(3) { background: #22c55e; }

.landing-preview-body {
  padding: 24px;
  font-size: 13px;
  line-height: 1.8;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.landing-preview-body .dim { color: var(--gray-600); }
.landing-preview-body .label { color: var(--gray-400); }
.landing-preview-body .val { color: var(--white); }
.landing-preview-body .apply { color: #4ade80; }
.landing-preview-body .skip { color: #f87171; }

.landing-preview-verdict {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-preview-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Stats strip */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
}

.landing-stat {
  padding: 32px 40px;
  border-right: 1px solid var(--line);
  text-align: left;
}

.landing-stat:last-child { border-right: 0; }

.landing-stat b {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.landing-stat span {
  font-size: 13px;
  color: var(--white);
  line-height: 1.4;
  opacity: 0.88;
}

/* Sections */
.landing-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
  border-bottom: 1px solid var(--line);
}

.landing-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}

.landing-section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.landing-section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.88;
}

.landing-eyebrow-sm {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}

/* Feature rows — editorial, not bento */
.landing-features {
  display: flex;
  flex-direction: column;
}

.landing-feature {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.landing-feature:last-child {
  border-bottom: 1px solid var(--line);
}

.landing-feature-num {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.landing-feature h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.landing-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
  opacity: 0.88;
}

/* Prep — manifesto list */
.landing-manifesto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.landing-manifesto-item {
  background: var(--black);
  padding: 32px 36px;
  transition: background 0.2s;
}

.landing-manifesto-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.landing-manifesto-item .num {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.landing-manifesto-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.landing-manifesto-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.88;
}

/* Pipeline steps — horizontal */
.landing-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line);
}

.landing-pipeline-step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.landing-pipeline-step:last-child { border-right: 0; }

.landing-pipeline-step .step {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.landing-pipeline-step h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.landing-pipeline-step p {
  margin: 0;
  font-size: 13px;
  color: var(--white);
  opacity: 0.88;
  line-height: 1.55;
}

/* Gmail block */
.landing-gmail-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.landing-gmail-copy,
.landing-gmail-aside {
  background: var(--black);
  padding: 40px;
}

.landing-gmail-copy h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.landing-gmail-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white);
  opacity: 0.88;
}

.landing-gmail-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-gmail-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-gmail-aside li {
  font-size: 14px;
  color: var(--white);
  opacity: 0.88;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.landing-gmail-aside li:last-child { border-bottom: 0; }

.landing-gmail-aside li em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* Final CTA */
.landing-final {
  text-align: center;
  padding: 120px 40px;
  border-bottom: 1px solid var(--line);
}

.landing-final h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--white);
}

.landing-final p {
  margin: 20px auto 36px;
  max-width: 440px;
  font-size: 16px;
  color: var(--white);
  opacity: 0.88;
  line-height: 1.6;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--gray-600);
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.landing-footer a {
  color: var(--gray-500);
  text-decoration: none;
}

.landing-footer a:hover { color: var(--white); }

/* ── Auth — premium split panel ── */
.auth-modal-backdrop {
  --black: #000000;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(960px, 100%);
  max-height: min(820px, 92vh);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.auth-brand {
  position: relative;
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
}

.auth-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  margin-bottom: 32px;
}

.auth-shell,
.auth-shell h1,
.auth-shell h2,
.auth-shell h3,
.auth-shell h4,
.auth-shell p,
.auth-shell label,
.auth-shell span,
.auth-shell em {
  color: #ffffff !important;
}

.auth-brand-eyebrow,
.auth-eyebrow {
  color: rgba(255, 255, 255, 0.55) !important;
}

.auth-brand-copy,
.auth-sub,
.auth-foot {
  color: rgba(255, 255, 255, 0.88) !important;
}

.auth-field span em.auth-optional {
  color: rgba(255, 255, 255, 0.45) !important;
}

.auth-brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.auth-brand-copy {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.auth-modal {
  position: relative;
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #050505;
  color: #ffffff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-panels {
  flex: 1;
  min-height: 0;
}

.auth-modal-top {
  margin-bottom: 28px;
}

.auth-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.auth-modal-top h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gray-400);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.auth-close:hover {
  border-color: var(--line-strong);
  color: var(--white);
  opacity: 1;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.auth-tab {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  color: var(--gray-500) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  opacity: 1 !important;
}

.auth-tab:hover {
  color: var(--gray-400) !important;
  opacity: 1 !important;
}

.auth-tab.active {
  background: var(--white) !important;
  color: var(--black) !important;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72) !important;
  cursor: pointer;
}

.auth-terms input {
  width: auto !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: #fff;
  cursor: pointer;
}

.auth-terms a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover {
  opacity: 0.85;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-field span em.auth-optional {
  font-style: normal;
  font-weight: 400;
}

.auth-field input,
.auth-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-family: inherit;
  margin: 0 !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-field input::placeholder {
  color: var(--gray-600);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--white) !important;
  color: var(--black) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  opacity: 1 !important;
}

.auth-submit:hover {
  transform: translateY(-1px);
  opacity: 0.92 !important;
}

.auth-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-link {
  background: none !important;
  border: 0 !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1 !important;
}

.auth-link:hover {
  opacity: 0.8 !important;
}

/* ── Mobile gate — desktop only ── */
.mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: #000;
  text-align: center;
}

.mobile-gate.hidden {
  display: none;
}

.mobile-gate-inner {
  max-width: 360px;
}

.mobile-gate-mark {
  display: block;
  margin: 0 auto 20px;
}

.mobile-gate-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.mobile-gate-inner h1 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.mobile-gate-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.mobile-gate-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.mobile-gate-sub strong {
  color: #fff;
  font-weight: 600;
}

html.mobile-blocked,
html.mobile-blocked body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .auth-brand {
    display: none;
  }
  .auth-modal {
    padding: 32px 24px 24px;
  }
}

.gmail-setup-card {
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.gmail-setup-card.connected {
  border-style: solid;
  border-color: rgba(74, 222, 128, 0.3);
}

@media (max-width: 1024px) {
  .landing-nav { grid-template-columns: 1fr auto; padding: 16px 24px; }
  .landing-nav-links { display: none; }
  .landing-hero { grid-template-columns: 1fr; padding: 48px 24px 64px; min-height: auto; }
  .landing-preview { order: -1; max-width: 520px; }
  .landing-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-stat { border-bottom: 1px solid var(--line); }
  .landing-stat:nth-child(2) { border-right: 0; }
  .landing-section { padding: 72px 24px; }
  .landing-section-head { grid-template-columns: 1fr; gap: 20px; }
  .landing-feature { grid-template-columns: 48px 1fr; gap: 16px; }
  .landing-feature p { grid-column: 2; }
  .landing-manifesto { grid-template-columns: 1fr; }
  .landing-pipeline { grid-template-columns: 1fr 1fr; }
  .landing-pipeline-step { border-bottom: 1px solid var(--line); }
  .landing-gmail-block { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .landing-stats { grid-template-columns: 1fr; }
  .landing-pipeline { grid-template-columns: 1fr; }
  .landing-cta-row { flex-direction: column; }
  .landing-btn { width: 100%; text-align: center; }
}
