/* ============================================================
   Vivelarc — landing page styles
   ============================================================ */

:root {
  /* Brand palette — "living arc" of wellness */
  --ink: #14211f;
  --ink-soft: #46524f;
  --ink-faint: #7c8884;
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --line: #e6e3da;

  /* brand palette — green/teal duotone, gold accent (no spectrum) */
  --arc-1: #1f8a70;   /* deep vital green */
  --arc-2: #2bb2a0;   /* teal */
  --arc-3: #4fb286;   /* fresh green */
  --gold:  #f0b24a;   /* warm arc accent */
  --accent: #1f8a70;
  --accent-ink: #0f4a3c;

  --grad: linear-gradient(110deg, #1f8a70 0%, #2bb2a0 58%, #4fb286 100%);

  --shadow-sm: 0 1px 2px rgba(20, 33, 31, 0.06), 0 2px 8px rgba(20, 33, 31, 0.05);
  --shadow-md: 0 8px 30px rgba(20, 33, 31, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 33, 31, 0.14);

  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1120px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper-2); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(251, 250, 247, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.brand .mark {
  width: 34px;
  height: auto;
  display: inline-block;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 0.5em;
}
.hero-copy .eyebrow { display: block; margin-top: -10px; margin-bottom: 16px; }
.hero h1 .oneline { white-space: nowrap; }
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1.6em;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  margin-top: 1.4em;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* Arc visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.float-card .chip {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--paper-2);
  font-size: 1rem;
  flex: none;
}
.float-card .ft {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  max-width: 168px;
}
.float-card .ft small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 1px;
}
/* Digital twin floats above the leaf; the other two sit at the smile's corners */
.fc-1 { top: 6%;  left: 50%; translate: -50% -50%; animation: floaty 6s ease-in-out infinite; }
.fc-3 { top: 74%; left: 20%; translate: -50% -50%; animation: floaty 5.5s ease-in-out infinite 1.1s; }
.fc-2 { top: 74%; left: 80%; translate: -50% -50%; animation: floaty 7s ease-in-out infinite 0.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* soft background blobs */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  z-index: -1;
}
.hero::before { width: 460px; height: 460px; background: var(--arc-2); top: -120px; right: -80px; }
.hero::after  { width: 380px; height: 380px; background: var(--arc-3); bottom: -140px; left: -100px; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 92px 0; }
.section-head {
  max-width: 38em;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 0.4em; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Vitalog Village heading — single-line */
#product .section-head { max-width: none; }
#product .section-head p { font-size: 1rem; }
.section-alt { background: var(--paper-2); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--grad);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.founder-photo .placeholder {
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.founder-photo .placeholder span { font-size: 3rem; display: block; margin-bottom: 8px; }
.about-grid .about-body p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1em; }
.about-grid .about-body strong { color: var(--ink); }
.credentials {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.credentials .cred .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.credentials .cred .lbl { font-size: 0.85rem; color: var(--ink-faint); }

/* Science block (replaces founder bio) */
.science-block { max-width: 46em; margin: 0 auto; text-align: center; }
/* Unified section start-texts (eyebrows): font, size, and gap below
   all match the "Built on science" treatment */
.science-block .eyebrow,
#product .section-head .eyebrow,
#contact .section-head .eyebrow,
.signup .eyebrow {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.science-block h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}
.science-block .science-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 0.7em;
}
.science-note {
  margin: 24px auto 0;
  max-width: 40em;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.science-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 1.15em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

/* Product / feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: var(--paper-2);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* product banner mockup */
.product-mock {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.product-mock .screen {
  background: #0f1c1a;
  border-radius: 24px;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  text-align: center;
  padding: 40px;
}

/* ============================================================
   Email signup
   ============================================================ */
.signup {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.signup::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0.16;
}
.signup > * { position: relative; }
.signup h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.4em; }
.signup p.sub { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 0.9em 1.2em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
}
.signup-form input::placeholder { color: rgba(255,255,255,0.55); }
.signup-form input:focus {
  outline: none;
  border-color: var(--arc-2);
  background: rgba(255,255,255,0.14);
}
.signup .privacy { margin-top: 16px; font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.form-msg {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--arc-2);
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-wrap .section-head { max-width: none; text-align: center; margin-bottom: 34px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8em 1em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.14);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-form .form-msg {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}
.contact-alt {
  text-align: center;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.contact-alt a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 20px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .brand { font-size: 1.2rem; margin-bottom: 12px; }
.footer .brand .mark { width: 28px; }
.footer .tag { color: var(--ink-faint); font-size: 0.92rem; max-width: 22em; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ============================================================
   Sub-page hero (about / vitalog)
   ============================================================ */
.page-hero {
  padding: 80px 0 40px;
  position: relative;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.page-hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

.prose { max-width: 44em; }
.prose p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 1.3em; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4em 1em;
  border-radius: 999px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.screenshot-row .shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--grad);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo { max-width: 360px; }
  .cards { grid-template-columns: 1fr; }
  .screenshot-row { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; width: 100%; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .signup { padding: 48px 24px; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
