/* =======================================================
   Em — Landing Page Styles
   Editorial. Black + terracotta accent on warm off-white.
   Lato for headings, Georgia for body.
   ======================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #f5f1e8;   /* warm off-white */
  --bg-alt:        #efe9dc;   /* slightly deeper for section bands */
  --ink:           #000000;   /* pure black, per brand */
  --ink-muted:     #3a3a3a;   /* muted body (Georgia dark grey) */
  --ink-subtle:    #6e6e6e;   /* labels, eyebrows, footer links */
  --accent:        #E34234;   /* terracotta — brand accent */
  --accent-ink:    #c9382c;   /* slightly deeper terracotta for hover */
  --accent-soft:   #f6e5e0;   /* warm terracotta tint (gap card — swipe) */
  --cool-soft:     #e6ebef;   /* cool tint (gap card — matrimonial) */
  --hairline:      #d9d2c3;   /* thin rules + borders */
  --button-bg:     #000000;
  --button-hover:  #E34234;

  --font-heading:  'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body:     Georgia, 'Times New Roman', Times, serif;

  --measure:       720px;
  --measure-wide:  880px;

  --radius:        2px;
  --ease:          cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0 auto;
  max-width: calc(var(--measure) + 48px);
  width: calc(100% - 48px);
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 24px;
}

.section__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  text-align: center;
  color: var(--ink);
}

/* ---------- Navigation ---------- */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav__logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color .2s var(--ease);
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 112px;
  text-align: center;
}
.hero__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero__headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}
.hero__sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 48px;
}

/* ---------- Signup form ---------- */
.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "input button"
    "note  note"
    "success success"
    "error   error";
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  align-items: stretch;
}
.signup input {
  grid-area: input;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-width: 0;
}
.signup input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 66, 52, 0.12);
}
.signup input.error {
  border-color: var(--accent);
}
.signup button {
  grid-area: button;
  padding: 14px 22px;
  background: var(--button-bg);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.signup button:hover:not(:disabled) {
  background: var(--button-hover);
}
.signup button:active:not(:disabled) { transform: translateY(1px); }
.signup button:disabled { opacity: 0.6; cursor: default; }
.signup__note {
  grid-area: note;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-subtle);
  margin: 4px 0 0;
  text-align: center;
}
.signup__success,
.signup__error {
  margin: 0;
  font-size: 15px;
  text-align: center;
  min-height: 0;
}
.signup__success {
  grid-area: success;
  color: var(--accent);
  font-style: italic;
}
.signup__error {
  grid-area: error;
  color: var(--accent-ink);
}
.signup.is-success input,
.signup.is-success button,
.signup.is-success .signup__note { display: none; }

/* ---------- The Gap ---------- */
.gap {
  padding: 88px 0;
}
.gap__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.gap__card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}
.gap__card--swipe      { background: var(--accent-soft); }
.gap__card--matrimonial { background: var(--cool-soft); }
.gap__card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.gap__card p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
.gap__close {
  text-align: center;
  margin: 48px 0 0;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--ink);
}
.gap__close em { font-style: italic; color: var(--ink); }

/* ---------- Principles ---------- */
.principles {
  padding: 88px 0;
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.principle {
  padding: 40px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-align: left;
}
.principle__icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.principle h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--ink);
}
.principle p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Founder ---------- */
.founder {
  padding: 88px 0;
}
.founder .eyebrow { text-align: center; }
.founder__card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
img.founder__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.founder__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}
.founder__linkedin {
  color: var(--ink-subtle);
  transition: color .2s var(--ease);
  display: inline-flex;
}
.founder__linkedin:hover { color: var(--accent); }
.founder__role {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin: 0 0 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.founder__bio {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.founder__bio--final {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 0;
}
.founder__bio--final em { font-style: italic; }

/* ---------- Close / Second CTA ---------- */
.close {
  padding: 112px 0 96px;
  background: var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.close__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.close__headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}
.close__sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 auto 40px;
  max-width: 480px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.footer__brand {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.footer__links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  padding-bottom: 1px;
}
.footer__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; }

  .nav { padding: 16px 0; }
  .nav__logo img { height: 40px; }
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 13px; }

  .hero { padding: 64px 0 72px; }
  .hero__sub { font-size: 17px; margin-bottom: 36px; }

  .signup {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input"
      "button"
      "note"
      "success"
      "error";
  }

  .gap, .principles, .founder { padding: 64px 0; }

  .gap__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gap__card { padding: 28px 24px; }
  .gap__close { font-size: 18px; margin-top: 36px; }

  .principles__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .principle { padding: 28px 24px; }

  .founder__card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
    text-align: left;
  }
  img.founder__avatar { width: 88px; height: 88px; }

  .close { padding: 80px 0 72px; }
  .close__sub { margin-bottom: 32px; font-size: 17px; }

  .footer__links { gap: 16px 24px; }
}

/* ---------- Subtle page-load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__headline,
  .hero__sub,
  .hero .signup,
  .hero .eyebrow {
    opacity: 0;
    transform: translateY(8px);
    animation: rise .7s var(--ease) forwards;
  }
  .hero .eyebrow        { animation-delay: 0.05s; }
  .hero__headline       { animation-delay: 0.15s; }
  .hero__sub            { animation-delay: 0.30s; }
  .hero .signup         { animation-delay: 0.45s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
