/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111111;
  background: #f7f7f5;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}


/* =========================================================
   NAV
   ========================================================= */

.top-nav {
  background: #f7f7f5;
  border-bottom: 1px solid #d9d9d5;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-login {
  color: var(--lemma-copy, #555967);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #11131a;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2 {
  color: #111111;
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

p {
  margin-top: 0;
  color: #666666;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-content {
  text-align: center;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 20px;
  line-height: 1.55;
  color: #555555;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 6px;

  background: #111111;
  color: #ffffff;

  padding: 15px 24px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.primary-btn:hover {
  opacity: 0.88;
}

.primary-btn:active {
  transform: translateY(1px);
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-it-works {
  background: #ffffff;
  border-top: 1px solid #d9d9d5;
  border-bottom: 1px solid #d9d9d5;
}

.how-it-works h2 {
  text-align: center;
}

.step-grid {
  display: flex;
  gap: 40px;
}

.step-item {
  flex: 1;
}

.step-heading {
  margin-bottom: 10px;
}

.step-num {
  font-weight: 700;
  color: #111111;
  margin-right: 5px;
}

.step-title {
  font-weight: 600;
  color: #111111;
}

.step-text {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}


/* =========================================================
   TESTIMONIAL
   ========================================================= */

.testimonial-section {
  background: #f7f7f5;
}

.testimonial-section h2 {
  text-align: center;
}

.testimonial-card {
  max-width: 680px;
  margin: 0 auto;

  background: #ffffff;

  border: 1px solid #d9d9d5;
  border-radius: 8px;

  padding: 36px;
}

.testimonial-card blockquote {
  margin: 0 0 28px;
  padding: 0;

  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;

  color: #111111;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.testimonial-author strong {
  color: #111111;
}

.testimonial-author span {
  color: #666666;
}

/* Proven Results */

.results-intro {
  text-align: center;
  margin-bottom: 32px;
  color: #666666;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item strong {
  font-size: 32px;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.04em;
}

.result-item span {
  font-size: 14px;
  color: #666666;
}

.result-item small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #888888;
}

.result-item a {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.founder-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.founder-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.founder-title {
  margin: 2px 0 0;
  font-size: 14px;
  color: #666666;
}

.founder-statement {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  border-left: 3px solid #111111;
  padding-left: 16px;
  margin-bottom: 32px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  background: #ffffff;
  border-top: 1px solid #d9d9d5;
  border-bottom: 1px solid #d9d9d5;
}

.faq-section h2 {
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid #d9d9d5;
  padding: 22px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid #d9d9d5;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;

  font-size: 16px;
  font-weight: 600;

  color: #111111;

  padding-right: 32px;

  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;

  font-size: 22px;
  font-weight: 400;

  color: #666666;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 14px 0 0;
  padding-right: 40px;

  font-size: 15px;
  line-height: 1.65;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
  text-align: center;
}

.final-cta-content h2 {
  margin-bottom: 28px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #ffffff;
  border-top: 1px solid #d9d9d5;
}

.footer-container {
  padding-top: 28px;
  padding-bottom: 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 13px;
  color: #666666;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #111111;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 700px) {
  .hero h1 {
    white-space: normal;
  }


  section {
    padding: 64px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-container {
    padding: 16px 20px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .primary-btn {
    width: 100%;
    max-width: 360px;
  }

  .step-grid {
    flex-direction: column;
    gap: 34px;
  }

  .step-item {
    width: 100%;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .testimonial-card blockquote {
    font-size: 20px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }

  .result-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e1;
  }

  .result-item:first-child {
    padding-top: 0;
  }

  .result-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .result-item strong {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 28px;
  }

  .result-item span {
    align-self: end;
  }

  .result-item small {
    margin-top: 0;
  }

  .result-item a {
    grid-column: 2;
    margin-top: 6px;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 420px) {

  h1 {
    font-size: 28px;
    white-space: nowrap;
    letter-spacing: -0.04em;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }
}
/* =========================================================
   WAITLIST MODAL
   ========================================================= */

.waitlist-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.waitlist-dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

.waitlist-modal {
  position: relative;
  background: #ffffff;
  border: 1px solid #d9d9d5;
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.waitlist-modal h2 {
  margin-bottom: 12px;
}

.waitlist-copy {
  margin-bottom: 26px;
  color: #555555;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #666666;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.form-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #c9c9c4;
  border-radius: 6px;
  padding: 12px 14px;
  background: #ffffff;
  color: #111111;
  outline: none;
}

.form-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.form-error {
  min-height: 22px;
  margin: 8px 0 10px;
  color: #9d1c1c;
  font-size: 13px;
}

#waitlist-email-error:empty,
#waitlist-password-error:empty {
  display: none;
}

.waitlist-submit {
  width: 100%;
}

.waitlist-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: #888888;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c9c4;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media screen and (max-width: 520px) {
  .waitlist-modal {
    padding: 30px 22px 24px;
  }
}


/* =========================================================
   LEMMA BRAND REFRESH
   Matches the visual language of the ad creative while
   preserving the existing page structure and behaviour.
   ========================================================= */

:root {
  --lemma-ink: #11131a;
  --lemma-copy: #555967;
  --lemma-muted: #7b7f8b;
  --lemma-bg: #fbfaf7;
  --lemma-white: #ffffff;
  --lemma-border: #e7e4ee;
  --lemma-purple: #5a54f5;
  --lemma-purple-dark: #4d46eb;
  --lemma-lavender: #b9b4ff;
  --lemma-lavender-soft: #efedff;
}

/* Global palette */

body {
  color: var(--lemma-ink);
  background: var(--lemma-bg);
}

p {
  color: var(--lemma-copy);
}

.container {
  max-width: 860px;
}

section {
  padding: 96px 0;
}


/* Navigation */

.top-nav {
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--lemma-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1120px;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Typography */

h1,
h2 {
  color: var(--lemma-ink);
}

h1 {
  font-size: clamp(48px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 28px;
}

h2 {
  font-size: 32px;
  letter-spacing: -0.035em;
}


/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: 132px;
  background:
    radial-gradient(circle at 88% 78%, rgba(185, 180, 255, 0.24) 0, rgba(185, 180, 255, 0.10) 20%, transparent 44%),
    radial-gradient(circle at 12% 15%, rgba(90, 84, 245, 0.07) 0, transparent 28%),
    var(--lemma-bg);
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -175px;
  top: 110px;
  border-radius: 80px;
  background: rgba(239, 237, 255, 0.72);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -105px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(90, 84, 245, 0.07);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero-sub {
  max-width: 700px;
  margin-bottom: 38px;
  font-size: 21px;
  line-height: 1.55;
  color: var(--lemma-copy);
}


.hero-proof {
  margin: -10px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--lemma-copy);
}


/* Buttons */

.primary-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lemma-purple), #665fff);
  color: #ffffff;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 10px 24px rgba(90, 84, 245, 0.18),
    0 2px 5px rgba(17, 19, 26, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.primary-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(90, 84, 245, 0.24),
    0 3px 7px rgba(17, 19, 26, 0.08);
}

.primary-btn:active {
  transform: translateY(0);
}


/* How it works */

.how-it-works {
  background: var(--lemma-white);
  border-top: 1px solid var(--lemma-border);
  border-bottom: 1px solid var(--lemma-border);
}

.step-grid {
  gap: 28px;
}

.step-item {
  padding: 26px 24px;
  border: 1px solid var(--lemma-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 19, 26, 0.035);
}

.step-heading {
  margin-bottom: 12px;
}

.step-num {
  color: var(--lemma-purple);
  font-weight: 700;
}

.step-title {
  color: var(--lemma-ink);
}

.step-text {
  color: var(--lemma-copy);
}


/* Results */

.testimonial-section {
  background:
    radial-gradient(circle at 5% 90%, rgba(185, 180, 255, 0.16), transparent 26%),
    var(--lemma-bg);
}

.testimonial-card {
  border: 1px solid var(--lemma-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 18px 50px rgba(17, 19, 26, 0.05);
}

.founder-statement {
  color: #343741;
  border-left-color: var(--lemma-purple);
}

.result-item strong {
  color: var(--lemma-ink);
}

.result-item a {
  color: var(--lemma-purple-dark);
}


/* FAQ */

.faq-section {
  background: #ffffff;
  border-top: 1px solid var(--lemma-border);
  border-bottom: 1px solid var(--lemma-border);
}

.faq-item {
  border-color: var(--lemma-border);
}

.faq-item:last-child {
  border-color: var(--lemma-border);
}

.faq-item summary::after {
  color: var(--lemma-purple);
}


/* Final CTA */

.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(185, 180, 255, 0.25), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(90, 84, 245, 0.09), transparent 26%),
    var(--lemma-bg);
}

.final-cta-content {
  position: relative;
  z-index: 1;
}

.final-cta-content h2 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 30px;
}


/* Footer */

footer {
  background: #ffffff;
  border-top: 1px solid var(--lemma-border);
}

.footer-container {
  color: var(--lemma-muted);
}

.footer-links a:hover {
  color: var(--lemma-purple-dark);
}


/* Modal */

.waitlist-dialog {
  border-radius: 20px;
}

.waitlist-dialog::backdrop {
  background: rgba(17, 19, 26, 0.62);
  backdrop-filter: blur(3px);
}

.waitlist-modal {
  border-color: var(--lemma-border);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(17, 19, 26, 0.22);
}

.form-input {
  border-color: #d9d6e3;
  border-radius: 10px;
}

.form-input:focus {
  border-color: var(--lemma-purple);
  box-shadow: 0 0 0 3px rgba(90, 84, 245, 0.11);
}

.secondary-btn {
  border-color: var(--lemma-border);
  border-radius: 999px;
}



/* Keep the main value proposition on one line where space allows */
.hero h1 {
  white-space: nowrap;
}


.final-cta-content h2 {
  white-space: nowrap;
}

/* Responsive refinements */

@media screen and (max-width: 700px) {
  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .step-grid {
    gap: 18px;
  }

  .step-item {
    padding: 22px 20px;
  }

  .testimonial-card {
    border-radius: 18px;
  }
}

@media screen and (max-width: 420px) {
  h1 {
    font-size: 34px;
    white-space: normal;
    line-height: 1.02;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}


/* =========================================================
   FORMS
   ========================================================= */

.page-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  white-space: normal;
}

.page-lead {
  margin: 0 0 24px;
  color: var(--lemma-copy);
  font-size: 16px;
  line-height: 1.5;
}

.section-title {
  margin: 4px 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.form-field {
  margin: 0 0 16px;
}

.form-label .required-mark {
  color: var(--lemma-purple);
}

.form-field-error {
  margin: 6px 0 0;
  color: #9d1c1c;
  font-size: 13px;
  line-height: 1.4;
}

.form-field-error:empty,
.form-notice:empty {
  display: none;
}

.form-success {
  margin: 0 0 16px;
  color: #1d7a46;
  font-size: 14px;
  font-weight: 600;
}

select.form-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #555967 50%),
    linear-gradient(135deg, #555967 50%, transparent 50%);
  background-position: calc(100% - 18px) 54%, calc(100% - 13px) 54%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

textarea.form-input {
  min-height: 160px;
  line-height: 1.5;
  resize: vertical;
}

@media screen and (max-width: 700px) {
  .final-cta-content h2 {
    white-space: normal;
  }
}

/* Keep hero headline on one line on mobile without overflowing */
@media screen and (max-width: 700px) {
  .hero h1 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.05;
    white-space: nowrap;
    letter-spacing: -0.055em;
  }
}
