/* ViVi home website. Static, single-CTA page.
   Tranquil system on incumbent tokens: Fraunces display, Inter body,
   deep green #245C46, cream #FAF6EF. Generous whitespace, no gradients. */

:root {
  --ivory: #faf6ef;
  --ivory-deep: #f4eee1;
  --ink: #1e2b26;
  --green: #245c46;
  --green-dark: #1b4736;
  --green-tint: #e7f0e9;
  --muted: #5c6f66;
  --line: #e5ddcd;
  --sand: #f1ebdd;
  --on-green: #faf6ef;
  --on-green-muted: #cfddd3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 660px; }

img, svg { display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  text-decoration: none; font-weight: 600; cursor: pointer;
  border-radius: 999px; border: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-small { padding: 0.55rem 1.35rem; font-size: 0.95rem; }
.btn-big { padding: 1rem 2.1rem; font-size: 1.08rem; }

/* Hero */
.hero { padding: 5.5rem 0 5rem; }
.hero-grid {
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1.4rem; text-wrap: balance;
}
.lede { font-size: 1.22rem; color: var(--muted); margin-bottom: 2.2rem; text-wrap: balance; max-width: 34ch; }
.hero .btn-big { margin-bottom: 1.1rem; }
.hero-note { font-size: 0.95rem; color: var(--muted); max-width: 38ch; }

/* Chat transcript panel */
.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgba(30, 43, 38, 0.18);
  overflow: hidden;
  margin: 0;
}
.chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  background: var(--green);
  color: var(--on-green);
}
.chat-avatar {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(250, 246, 239, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem;
}
.chat-name { font-weight: 600; font-size: 0.98rem; }
.chat-status { margin-left: auto; font-size: 0.8rem; color: var(--on-green-muted); }
.chat-body {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.3rem 1.2rem 1.1rem;
  background-color: #fdfbf6;
}
.msg {
  max-width: 82%;
  padding: 0.6rem 0.85rem 0.45rem;
  border-radius: 14px;
  font-size: 0.93rem; line-height: 1.5;
  box-shadow: 0 1px 1px rgba(30, 43, 38, 0.07);
}
.msg p { margin: 0; }
.msg time {
  display: block; text-align: right;
  font-size: 0.7rem; color: var(--muted);
  margin-top: 0.2rem; font-variant-numeric: tabular-nums;
}
.msg.vivi {
  align-self: flex-start;
  background: var(--green-tint);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.msg.patient {
  align-self: flex-end;
  background: var(--sand);
  border-bottom-right-radius: 4px;
  color: var(--ink);
}
.msg .who {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--green); margin-bottom: 0.15rem;
}
.pay-chip {
  display: inline-block; margin-top: 0.45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.4rem 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--green);
}
.chat figcaption {
  padding: 0.7rem 1.2rem 0.9rem;
  font-size: 0.8rem; color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Sections */
.section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.section-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  line-height: 1.18; letter-spacing: -0.015em;
  margin-bottom: 1.1rem; text-wrap: balance;
}
.section-lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 2.5rem; text-wrap: balance; max-width: 56ch; }

/* Division of labor: two columns, one hairline, no boxes */
.duo {
  display: grid; gap: 2.5rem;
  margin-top: 0.5rem;
}
@media (min-width: 760px) {
  .duo { grid-template-columns: 1fr 1fr; gap: 0; }
  .duo > div:first-child { padding-right: 2.75rem; border-right: 1px solid var(--line); }
  .duo > div:last-child { padding-left: 2.75rem; }
}
.duo h3 {
  font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1rem;
}
.duo ul { list-style: none; display: grid; gap: 0.85rem; }
.duo li { color: var(--muted); padding-left: 1.6rem; position: relative; }
.duo li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em;
  color: var(--green); font-weight: 700;
}
.duo strong { color: var(--ink); }

/* ICP scenarios: calm list */
.scenarios { list-style: none; display: grid; gap: 0; margin-top: 0.5rem; }
.scenarios li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.3rem;
}
.scenarios li:last-child { border-bottom: 1px solid var(--line); }
.scenarios h3 {
  font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-weight: 600;
}
.scenarios p { color: var(--muted); max-width: 60ch; }

/* Day timeline */
.timeline { list-style: none; display: grid; margin-top: 0.5rem; }
.timeline li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.15rem; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.timeline p { color: var(--muted); }
.timeline strong { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { list-style: none; display: grid; gap: 2rem; margin-top: 0.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { color: var(--muted); }
.steps strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.35rem; }

/* Pilot band: one calm green field */
.band {
  background: var(--green);
  color: var(--on-green);
  padding: 4.5rem 0;
}
.band .section-title { color: var(--on-green); }
.band p { color: var(--on-green-muted); max-width: 60ch; margin-bottom: 1.1rem; font-size: 1.08rem; }
.band p strong { color: var(--on-green); }
.band a { color: var(--on-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.band a:hover { color: #fff; }

/* Price */
.price { padding: 4.5rem 0; text-align: center; border-top: 1px solid var(--line); }
.price .amount {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -0.015em;
  margin-bottom: 0.8rem; text-wrap: balance;
}
.price p { color: var(--muted); max-width: 52ch; margin: 0 auto 0.6rem; }
.price .pilot-note { font-size: 0.95rem; }

/* Closing CTA */
.closing { padding: 5rem 0 5.5rem; text-align: center; border-top: 1px solid var(--line); }
.closing .section-title { margin-bottom: 1rem; }
.closing .section-lede { margin: 0 auto 2.2rem; }
.closing .hero-note { margin: 1.1rem auto 0; }

/* Article pages (privacidad, terminos) */
.article { padding: 3.5rem 0 4.5rem; }
.article h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em;
  margin-bottom: 0.6rem; text-wrap: balance;
}
.article .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2rem; }
.article h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; margin: 2.4rem 0 0.6rem; }
.article p, .article li { color: var(--muted); margin-bottom: 0.8rem; }
.article p strong, .article li strong { color: var(--ink); }
.article ul { padding-left: 1.25rem; }
.article a { color: var(--green); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.footer-nav { display: flex; gap: 1.35rem; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-small { font-size: 0.85rem; color: var(--muted); }

/* One authored motion: the chat composes itself once, in view.
   Content is visible by default; JS adds .chat-play to animate. */
@media (prefers-reduced-motion: no-preference) {
  .chat-play .msg {
    opacity: 0;
    animation: msg-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 200ms);
  }
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3.5rem; }
  .lede { font-size: 1.12rem; }
  .timeline li { grid-template-columns: 3.75rem 1fr; gap: 0.9rem; }
  .section { padding: 3.5rem 0; }
}

/* Console screenshots: calm 3D browser frames, floating with soft shadows.
   Subtle perspective only; no motion, no gradients. */
.shot { margin: clamp(2rem, 5vw, 3.25rem) auto 0; max-width: 960px; perspective: 1600px; }
.shot-frame {
  background: #fff;
  border: 1px solid rgba(36, 92, 70, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 42px 70px -42px rgba(31, 59, 44, 0.30),
    0 16px 32px -16px rgba(31, 59, 44, 0.14);
  transform: rotateX(3deg);
  transform-origin: 50% 0;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #f4f0e6;
  border-bottom: 1px solid rgba(36, 92, 70, 0.10);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2bf; }
.shot-bar span { margin-left: 8px; font-size: 0.8rem; color: #8a8471; letter-spacing: 0.02em; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
