/* malai.ai — premium marketing site
   Restrained palette · generous whitespace · serious typography. */

:root {
  /* EXACT match to app.malai.ai dashboard tokens (see src/styles.css).
     Single green accent (#2E8B6F). Warm off-white surface. */
  --pearl: #FAFAF9;          /* page bg — matches dashboard --background */
  --pearl-deep: #F5F5F5;     /* subtle sections — matches --surface */
  --pearl-soft: #F5F5F5;     /* footer / between */
  --bone: #FFFFFF;            /* cards — matches --card */
  --ink: #2D2D2D;            /* primary text — matches --foreground */
  --ink-soft: #404040;
  --mint: #2E8B6F;            /* THE single green — matches --primary */
  --leaf: #2E8B6F;            /* same green, used in buttons */
  --leaf-soft: #266F58;       /* deeper for hover */
  --text: #2D2D2D;
  --text-soft: #707070;       /* matches --muted-foreground */
  --text-faint: #989898;
  --text-mute: #707070;
  --hairline-light: #E8E6E3; /* matches --border */
  --hairline-soft: #EFEDE9;
  /* gold deprecated — resolves to ink */
  --gold: var(--ink);
  --gold-soft: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: "Manrope", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  background: var(--pearl);
  line-height: 1.55;
  font-size: 17px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================ */
/* NAV                                                          */
/* ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline-light);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-logo .dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--mint);
  margin-left: 0.06em;
  vertical-align: baseline;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: transparent;
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid rgba(14, 17, 22, 0.16);
  transition: all 0.18s;
}
.nav-cta:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* ============================================================ */
/* HERO                                                         */
/* ============================================================ */

.hero {
  background: var(--pearl);
  color: var(--ink);
  padding: 200px 28px 180px 28px;
  position: relative;
}
.hero::before { display: none; }
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.04;
  margin-bottom: 56px;
  max-width: 22ch;
}
.hero h1 .leaf {
  display: block;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0;
  margin-top: 20px;
  text-transform: none;
}
.hero h1 .accent { color: var(--gold); }
.hero h1 .leaf { color: var(--leaf); }
.hero h1 .arrow {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-right: 0.18em;
  vertical-align: -0.06em;
}
.hero .lede {
  font-size: clamp(17px, 1.85vw, 20px);
  color: var(--text-soft);
  font-weight: 400;
  max-width: 72ch;
  margin: 0 auto 26px auto;
  line-height: 1.65;
}
.hero .lede:last-of-type { margin-bottom: 56px; }
.hero .lede strong {
  color: var(--ink);
  font-weight: 600;
}
.hero .lede em {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}
.hero .eyebrow {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  margin-bottom: 44px;
}
.hero h1 { color: var(--ink); }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--leaf);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  transition: all 0.18s;
}
.btn-primary:hover {
  background: var(--leaf-soft);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(30, 106, 85, 0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(14, 17, 22, 0.22);
  transition: all 0.18s;
}
.btn-secondary:hover {
  background: rgba(14, 17, 22, 0.05);
  border-color: rgba(14, 17, 22, 0.4);
}

/* (tagline strip removed — tagline now lives in the hero H1) */

/* ============================================================ */
/* PILLAR ROW                                                   */
/* ============================================================ */

.section {
  padding: 110px 28px;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--leaf);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-h {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 22ch;
}
.section-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 56px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--bone);
  border-radius: 18px;
  padding: 36px 32px;
  border: 1px solid var(--hairline-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(14, 17, 22, 0.15);
}
.pillar .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 18px;
}
.pillar h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.pillar p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
}
.pillar .stat {
  margin-top: 22px;
  font-size: 13px;
  color: var(--leaf);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================ */
/* PRINCIPLE — the why                                          */
/* ============================================================ */

.principle {
  background: var(--pearl);
  padding: 140px 28px 130px;
}
.principle .section-inner {
  max-width: 980px;
  margin: 0 auto;
}
.principle-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 34px;
}
.principle-h {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 56px 0;
  max-width: 22ch;
}
.principle-h em {
  font-style: italic;
  color: var(--mint);
  font-weight: 500;
}
.principle-grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  margin-top: 24px;
}
.principle-body {
  flex: 1 1 0;
  max-width: 58ch;
}
.principle-phone-wrap {
  flex: 0 0 380px;
}
.principle-body p {
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.principle-body p:last-child { margin-bottom: 0; }
.principle-body p.principle-pivot {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 28px 0;
  line-height: 1.4;
}
.principle-body p.principle-caption {
  font-size: 14px;
  font-style: italic;
  color: var(--text-mute);
  margin-top: 36px;
}

@media (max-width: 920px) {
  .principle-grid { flex-direction: column; gap: 36px; }
  .principle-phone-wrap { flex: 1 1 auto; align-self: stretch; }
}
.principle-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================ */
/* SMS EXAMPLE (dark)                                           */
/* ============================================================ */

.sms-section {
  background: var(--pearl-deep);
  color: var(--ink);
}
.sms-section .section-eyebrow { color: var(--gold); }

.sms-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sms-prose h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 26px;
  color: var(--ink);
}
.sms-prose p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 20px;
}
.sms-prose strong { color: var(--ink); font-weight: 600; }

.phone {
  background: #2c2a26;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px -22px rgba(26, 24, 20, 0.32);
}
.phone .from {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #d4a648;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.phone .bubble {
  background: #3a3631;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #e8e3d7;
}
.phone .bubble strong { color: #ffffff; font-weight: 600; }
.phone .bubble .money {
  color: #2E8B6F;
  font-weight: 700;
}
.phone .reply {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.02em;
  padding-top: 6px;
}
.phone .reply strong { color: #2E8B6F; font-weight: 700; }

/* ============================================================ */
/* HOW IT WORKS                                                 */
/* ============================================================ */

.steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  margin-top: 24px;
}
.step {
  flex: 0 0 auto;
  text-align: center;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step .circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--leaf);
  color: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
  transition: all 0.2s;
}
.step:hover .circle {
  background: var(--leaf);
  color: #fff;
  transform: scale(1.06);
}
.step .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.connector {
  flex: 1 1 auto;
  height: 2px;
  background: var(--leaf);
  opacity: 0.3;
  margin-top: 28px;
}

/* ============================================================ */
/* WHY MALAI — dark                                             */
/* ============================================================ */

.why-section {
  background: var(--pearl);
}
.why-section .section-eyebrow { color: var(--gold); }
.why-section .section-h { color: var(--ink); }
.why-section .section-sub { color: var(--text-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.why-card {
  background: var(--bone);
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  padding: 32px 28px;
}
.why-card .vs {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.why-card .strike {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.why-card .we {
  color: var(--leaf);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  border-top: 1px solid var(--hairline-light);
  padding-top: 14px;
}

/* ============================================================ */
/* TRUST                                                        */
/* ============================================================ */

.trust-section {
  background: var(--pearl-deep);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.trust {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--hairline-light);
}
.trust .icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}
.trust h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.trust p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ============================================================ */
/* PRICING TEASE                                                */
/* ============================================================ */

.pricing-section {
  background: var(--pearl);
  color: var(--ink);
  text-align: center;
}
.pricing-inner {
  max-width: 760px;
  margin: 0 auto;
}
.pricing-section .eyebrow { color: var(--gold); margin-bottom: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.pricing-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--ink);
}
.pricing-section p {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 36px;
}
.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0;
}
.pricing-card {
  background: var(--bone);
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
}
.pricing-card .step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.pricing-card .price {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-card .desc {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ============================================================ */
/* FINAL CTA                                                    */
/* ============================================================ */

.final-cta {
  background: var(--pearl-deep);
  color: var(--ink);
  text-align: center;
  padding: 120px 28px;
  border-top: 1px solid var(--hairline-light);
}
.final-cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin-bottom: 26px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}
.final-cta .accent { color: var(--leaf); font-weight: 700; }
.final-cta .sub {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.final-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Inline audit form */
.audit-form {
  max-width: 540px;
  margin: 0 auto 44px auto;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}
.form-row:last-of-type { margin-bottom: 14px; }
.form-input {
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-light);
  background: var(--bone);
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-width: 0;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(46, 139, 111, 0.12);
}
.form-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 14px 22px;
  font-size: 14.5px;
  border-radius: 999px;
  cursor: pointer;
}
.form-note {
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .form-row { flex-direction: column; }
  .form-submit { width: 100%; }
}
.final-cta .btn-primary {
  background: var(--ink);
  color: #fff;
}
.final-cta .btn-primary:hover {
  background: var(--leaf);
  color: #fff;
}
.contact-line {
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.contact-line .email { color: var(--leaf); font-weight: 600; }
.contact-line .sep { margin: 0 10px; color: var(--text-faint); }

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */

.footer {
  background: var(--pearl-soft);
  color: var(--text-mute);
  padding: 36px 28px;
  border-top: 1px solid var(--hairline-light);
  text-align: center;
  font-size: 13px;
}
.footer .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer .logo .dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--mint);
  margin-left: 0.06em;
  vertical-align: baseline;
}
.footer .line {
  letter-spacing: 0.02em;
  margin-top: 10px;
}
.footer .line:first-of-type { margin-top: 16px; }
.footer-link {
  color: var(--leaf);
  font-weight: 600;
  transition: opacity 0.18s;
}
.footer-link:hover { opacity: 0.75; }
.footer .sep { margin: 0 10px; color: var(--text-faint); }
.footer .arrow-inline {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -0.16em;
  margin-right: 3px;
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 880px) {
  .nav-inner { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-links .nav-cta-mobile { display: block; }
  .hero { padding: 130px 22px 90px 22px; }
  .section { padding: 70px 22px; }
  .pillar-grid, .why-grid, .trust-grid, .pricing-row {
    grid-template-columns: 1fr;
  }
  .sms-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .step { flex-direction: row; gap: 14px; width: auto; text-align: left; }
  .step .circle { margin-bottom: 0; flex-shrink: 0; }
  .connector { display: none; }
  .final-cta { padding: 80px 22px; }
}
