/* AnimaEcho — animaecho.com
   Minimalist light theme: white canvas, near-black ink, grotesque sans,
   squared corners, big type. A warm pink accent carries the companion
   feeling. Shared across the home page and every subpage. */

:root {
  --bg: #ffffff;
  --bg-alt: #faf9f8;      /* faint warm off-white for alternating sections */
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: #e6e6e6;
  --line-strong: #0a0a0a;
  --stage: #f5f3f1;       /* warm off-white behind the avatar */
  --warm: #e0577f;        /* pink accent — the companion's warmth */
  --warm-soft: #fbeef2;
  --bubble-her: #f2f0ee;
  --bubble-you: #0a0a0a;
  --radius: 4px;          /* sharp corners */
  --radius-lg: 10px;
  --maxw: 1120px;
  --font: "ABC Diatype", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ======================================================= nav ============= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark .echo { color: var(--warm); }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }

/* ======================================================= buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn .soon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}
.btn-ghost .soon { background: var(--warm-soft); color: var(--warm); }

/* ======================================================= sections ======== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
}
.section .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}
.section-head { margin-bottom: 52px; }

/* ======================================================= hero =========== */
.hero {
  padding: 72px 0 20px;
  text-align: center;
}
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero .pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm); display: inline-block;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 auto 22px;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--warm); }
.hero .sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .cta-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* marquee of little value props under the hero */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  margin-top: 56px;
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-x 26s linear infinite;
  width: max-content;
}
.marquee span {
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee span::after { content: "·"; color: var(--warm); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================================================= live demo ======= */
.demo { padding: 84px 0; }
.demo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 10, 0.28);
  background: var(--bg);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: 560px;
}

/* avatar stage */
.stage-wrap {
  position: relative;
  background: var(--stage);
  border-right: 1px solid var(--line);
  overflow: hidden;
  touch-action: none;
}
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(245, 243, 241, 0.6);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 24px;
}
.stage-overlay.hidden { opacity: 0; pointer-events: none; }
.stage-overlay h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.stage-overlay p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 280px; }
.start-btn {
  margin-top: 4px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.start-btn:hover { opacity: 0.88; }

.zoom-controls {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2;
}
.zoom-controls button {
  width: 36px; height: 36px;
  font-size: 19px; font-weight: 600; line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.zoom-controls button:hover { background: #fff; border-color: var(--line-strong); }
.zoom-controls button:active { transform: translateY(1px); }

.speaking-dot {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
  opacity: 0; transition: opacity 0.25s ease;
}
.speaking-dot.on { opacity: 1; }
.speaking-dot i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warm); display: inline-block;
  animation: pulse 1s infinite ease-in-out;
}
@keyframes pulse { 0%,100% { transform: scale(0.7); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } }

/* chat */
.chat { display: flex; flex-direction: column; min-height: 0; }
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 80%;
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.45;
  border-radius: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.her { align-self: flex-start; background: var(--bubble-her); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.you { align-self: flex-end; background: var(--bubble-you); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--ink-soft); font-style: italic; background: var(--bubble-her); }

/* the "you've reached the limit" card that replaces the composer */
.limit-card {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--warm-soft);
}
.limit-card.hidden { display: none; }
.limit-card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.limit-card strong { font-weight: 700; }

.composer {
  border-top: 1px solid var(--line);
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.composer.hidden { display: none; }
.composer textarea {
  flex: 1;
  resize: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  max-height: 120px;
  outline: none;
}
.composer textarea:focus { box-shadow: 0 0 0 2px rgba(10,10,10,0.12); }
.send {
  padding: 11px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  height: 44px;
}
.send:disabled { opacity: 0.4; cursor: default; }
.turns-left {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 0 0 12px;
}

/* ======================================================= feature grid ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border-radius: var(--radius);
  background: var(--warm-soft);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ======================================================= steps =========== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--warm);
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--ink); }

/* ======================================================= pricing ========= */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 22px;
  justify-content: center;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 20px 50px -28px rgba(10,10,10,0.35); position: relative; }
.plan .badge {
  position: absolute; top: -12px; left: 32px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--warm); color: #fff;
  padding: 5px 12px; border-radius: 999px;
}
.plan .plan-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price .amt { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; }
.plan .price .per { font-size: 15px; color: var(--ink-faint); }
.plan .price-note { font-size: 14px; color: var(--ink-faint); margin: 0 0 24px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { font-size: 15px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--warm); font-weight: 700; }
.plan .btn { width: 100%; margin-top: auto; }

/* ======================================================= CTA band ======== */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 66px 40px;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; }
.cta h2 .accent { color: var(--warm); }
.cta p { font-size: 18px; color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 30px; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { opacity: 0.9; }
.cta .cta-note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* ======================================================= prose (legal) === */
.prose-head { padding: 64px 0 20px; border-bottom: 1px solid var(--line); }
.prose-head h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; margin: 0 0 10px; }
.prose-head .updated { color: var(--ink-faint); font-size: 15px; }
.prose { max-width: 760px; padding: 48px 0 96px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; letter-spacing: -0.01em; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--warm); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

/* ======================================================= footer ========= */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg-alt);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot .brand .wordmark { font-size: 20px; }
.foot .brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 260px; }
.foot h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot ul a { font-size: 15px; color: var(--ink-soft); }
.foot ul a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ======================================================= responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; height: auto; }
  .stage-wrap { border-right: none; border-bottom: 1px solid var(--line); height: 46vh; min-height: 320px; }
  .chat { height: 440px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; }
}
