/* Viva Longer — public site (aligned with nextjs-web design tokens) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
}

:root {
  /* nextjs DefaultColors / designTokens */
  --green: #08722f;
  --green-dark: #04551f;
  --green-light: #e6f4ea;
  --logo-green: #66ac34;
  --ink: #111a12;
  --ink-muted: #526052;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --line: #dde5d8;
  --grey-100: #f3f6f0;
  --grey-400: #758172;
  --footer-bg: #07110a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 15, 0.04), 0 4px 16px rgba(15, 23, 15, 0.03);
  --font-body: "Inter", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 70px;
  --motion: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--green);
}

.brand__lockup {
  height: 28px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background var(--motion), transform var(--motion);
}

.nav__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* Buttons — match app weight / radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--motion), color var(--motion), border-color var(--motion),
    transform var(--motion);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--green-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--green) !important;
  border: 1px solid var(--green);
}

.btn--ghost:hover {
  background: rgba(8, 114, 47, 0.06);
}

.btn--light {
  background: #fff;
  color: var(--green) !important;
}

.btn--light:hover {
  background: var(--green-light);
}

.btn--on-dark {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn--on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero — soft brand canvas + phone product shot */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(8, 114, 47, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(230, 244, 234, 0.9), transparent 50%),
    var(--canvas);
}

.hero__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

.hero__copy {
  max-width: 34rem;
  padding-top: 0.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 32rem;
  line-height: 1.55;
  opacity: 0;
  animation: rise 0.8s ease 0.25s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.8s ease 0.4s forwards;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3.5rem;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

/* Phone bezel — product screenshot frame, not a card */
.phone {
  width: min(100%, 240px);
  border-radius: 36px;
  padding: 10px;
  background: #1a1f1b;
  box-shadow:
    0 0 0 1px rgba(15, 23, 15, 0.12),
    0 24px 48px rgba(7, 17, 10, 0.18);
}

.phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.phone--lg {
  width: min(100%, 280px);
}

.phone-stack {
  position: relative;
  width: min(100%, 360px);
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone-stack .phone--back {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 210px;
  transform: rotate(6deg);
  z-index: 1;
  opacity: 0.96;
}

.phone-stack .phone--front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 230px;
  transform: rotate(-4deg);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 3rem;
    text-align: left;
  }

  .hero__visual {
    order: 2;
    margin-top: 0.5rem;
  }

  .phone-stack {
    height: 360px;
    width: min(100%, 300px);
  }

  .phone-stack .phone--back {
    width: 170px;
  }

  .phone-stack .phone--front {
    width: 190px;
  }
}

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

/* Sections */
.section {
  padding: 5rem 0;
}

.section__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section__lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 40rem;
  line-height: 1.55;
}

/* Concierge / AI */
.concierge {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.ai-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--green);
}

.ai-item p {
  margin: 0;
  color: var(--ink-muted);
}

.disclaimer {
  margin: 2.25rem 0 0;
  max-width: 40rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(216, 74, 58, 0.35);
  background: rgba(216, 74, 58, 0.08);
  color: #8f2f26;
}

.disclaimer__title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b83a2e;
}

.disclaimer__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #8f2f26;
}

@media (max-width: 800px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.features {
  background: var(--canvas);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    order: -1;
  }
}

.about {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.about__media,
.about__shade {
  position: absolute;
  inset: 0;
}

.about__media {
  z-index: -2;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__shade {
  z-index: -1;
  background: linear-gradient(120deg, rgba(7, 17, 10, 0.88), rgba(8, 114, 47, 0.72));
}

.about .section__inner {
  max-width: 40rem;
}

.about .section__eyebrow {
  color: #b7e0c4;
}

.about p {
  color: rgba(255, 255, 255, 0.9);
}

.about .btn {
  margin-top: 1.5rem;
}

/* Inner pages — brand canvas (physicians / feedback) */
.page-shell {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(8, 114, 47, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 5% 90%, rgba(230, 244, 234, 0.85), transparent 50%),
    var(--canvas);
  padding: 3.5rem 0;
}

.page-shell__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.page-shell--split .page-shell__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.page-shell--split-top .page-shell__inner {
  align-items: start;
}

.page-shell--split-top .page-visual {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.page-copy {
  max-width: 34rem;
}

.page-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-copy__lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.page-points {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.page-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.page-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
}

.page-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-photo {
  width: min(100%, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(8, 114, 47, 0.1);
  box-shadow: var(--shadow);
}

.page-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 560px;
}

.page-form {
  max-width: 32rem;
}

.page-faq {
  max-width: 40rem;
}

.page-shell--split .page-faq,
.page-shell--split .page-about {
  max-width: none;
}

.faq-item p + p {
  margin-top: 0.65rem;
}

.faq-item ol {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.faq-item ol li + li {
  margin-top: 0.35rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.faq-item {
  border: 1px solid rgba(8, 114, 47, 0.12);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.entity-card {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(8, 114, 47, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 114, 47, 0.04);
}

.entity-card__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entity-card__list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.entity-card__list dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.entity-card__list dd {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.entity-card__note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.page-form .form {
  margin-top: 0.25rem;
}

.page-about {
  max-width: 40rem;
}

.about-prose {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.about-prose p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--grey-400);
}

.page-note a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .page-shell--split .page-shell__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-visual {
    order: -1;
  }

  .page-shell--split-top .page-visual {
    position: static;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(8, 114, 47, 0.28);
  border-color: var(--green);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form__status {
  min-height: 1.4rem;
  font-size: 0.875rem;
  color: var(--green);
}

/* Legal */
.legal-hero {
  padding: 2.75rem 0 1.75rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(8, 114, 47, 0.08), transparent 55%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
}

.legal-hero .section__eyebrow {
  margin-bottom: 0.5rem;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
  color: var(--ink);
}

.legal {
  padding: 2.5rem 0 5rem;
  background: var(--paper);
}

.legal__body {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
}

.legal__doc-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.legal__body > p:first-of-type,
.legal__body .legal__doc-title + p {
  margin-top: 0;
}

.legal__body h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal__body h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__body p {
  margin: 0 0 1rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.legal__body li {
  margin: 0 0 0.45rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.legal__body strong,
.legal__body b {
  font-weight: 600;
  color: var(--ink);
}

.legal__body em {
  font-style: italic;
  font-weight: inherit;
}

.legal__body a {
  font-weight: 500;
}

.legal__shout {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
  font-weight: 500 !important;
}

.legal__callout {
  border: 1px solid rgba(216, 74, 58, 0.28);
  background: rgba(216, 74, 58, 0.06);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
}

.legal__callout p {
  margin: 0;
  color: #8f2f26;
  font-size: 0.875rem;
  line-height: 1.55;
}

.legal__callout strong {
  color: #8f2f26;
  font-weight: 650;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.site-footer__brand {
  display: grid;
  gap: 1rem;
}

.site-footer__lockup {
  height: 28px;
  width: auto;
}

.site-footer__email {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__email a {
  display: block;
  margin-top: 0.35rem;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer__copy {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
