/*
 * trustandi.com - marketing homepage styles.
 * Same palette + typography as the chat app for visual continuity.
 * Mobile-first, scales up gracefully. No frameworks, no preprocessor.
 */

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --text: #2A2E33;
  --text-muted: #6B6E73;
  --accent-teal: #3A6B7E;
  --accent-teal-hover: #2E5868;
  --accent-sage: #6B8E6F;
  --accent-warm: #C28A5E;
  --andi-bubble: #ECE9E2;
  --border: #E2DED2;
  --max-width: 1100px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Charter, "Iowan Old Style", "Georgia Pro", Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(58, 107, 126, 0.4); }
a:hover { color: var(--accent-teal-hover); }

.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;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 57%;
  background: var(--andi-bubble);
  overflow: hidden;
}
.logo-text {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-cta {
  text-decoration: none;
  color: var(--accent-teal);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background-color 0.15s, border-color 0.15s;
}
.nav-cta:hover { background: var(--andi-bubble); border-color: var(--accent-teal); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s, transform 0.05s;
  min-height: 52px;            /* generous tap target */
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-teal);
  color: var(--surface);
}
.btn-primary:hover { background: var(--accent-teal-hover); color: var(--surface); }
.btn-ghost {
  background: transparent;
  color: var(--accent-teal);
  border: 1.5px solid var(--accent-teal);
}
.btn-ghost:hover { background: var(--andi-bubble); }
.btn-large { font-size: 20px; padding: 18px 32px; }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 24px auto 48px;
  padding: 24px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lede {
  margin: 0 0 28px;
  font-size: 21px;
  color: var(--text);
  max-width: 36em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 57%;
  background: var(--andi-bubble);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(58, 107, 126, 0.08);
}

/* --- Sections --- */
.section {
  padding: 64px 24px;
}
.section-soft {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-cta {
  background: var(--andi-bubble);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-narrow {
  max-width: var(--content-width);
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-text {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.65;
  max-width: 38em;
}

/* --- Features grid --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.feature {
  background: var(--surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.feature h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
}
.feature p {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

/* --- Trust list --- */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}
.trust-list li {
  font-size: 18px;
  line-height: 1.65;
  padding-left: 28px;
  position: relative;
}
.trust-list li::before {
  content: "•";
  color: var(--accent-sage);
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 24px;
  line-height: 1.4;
}

/* --- Final CTA / Waitlist --- */
.cta-row {
  margin: 24px 0 36px;
}
.waitlist {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  margin-top: 12px;
}
.waitlist h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}
.waitlist p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--text);
}
.waitlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1 1 240px;
  padding: 14px 16px;
  font: inherit;
  font-size: 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-form input:focus { border-color: var(--accent-teal); }
.waitlist-form button { flex: 0 0 auto; }
.waitlist-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}
.waitlist-note.success { color: var(--accent-sage); font-weight: 500; }
.waitlist-note.error { color: #B0473A; font-weight: 500; }

/* --- Footer --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
}
.footer-nav a:hover { color: var(--accent-teal); text-decoration: underline; }
.footer-fineprint {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 60em;
  line-height: 1.55;
}

/* --- Mobile tweaks --- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    margin-top: 12px;
  }
  .hero-actions { justify-content: center; }
  .hero-avatar { width: 160px; height: 160px; }
  .section { padding: 48px 20px; }
  .feature { padding: 22px; }
  .waitlist { padding: 22px; }
  .waitlist-form input,
  .waitlist-form button { flex: 1 1 100%; }
  .site-header { padding: 16px 20px; }
}
